The Download query definition functionality can be found in the Tools group of the Setup ribbon.
This option enables you to download the definition of the currently selected query. It provides an overview of the properties, tables, and relations for a query.

