The tax claim number is associated with the application, not the revenue. The top level node cannot contain the tax claim number because there may be more than one associated with the revenue. To get the tax claim number in a revenue query it needs to be slected in the application details gift aid node.