1. Open new Advanced Find from query section and build the required conditions you want in your query.
2. Now once just Execute query to test the desired output.
3. Now on the Advanced Find you can find the Download Fetch XML button as shown in the image.
4. This button will export the Fecth XML as shown in the image.
5. Now you can use this XML for further use.
By: Pramod Vilas Zite