How to do this will depend on the target genome and available
tracks. The best people to provide the query help are the UCSC Genome
Browser team at http://genome.ucsc.edu/contacts.html.
Once the query is worked out, it can be run from within Galaxy by
following the links "Get Data -> UCSC Main". The output will be sent
back to Galaxy as a dataset in the active history.