Please note:
To be fair to other users, queries run from SkyServer search
tools are restricted in how long they can run and how much output they
return, by timeouts and row limits. Please see the Query Limits help page.
To run a query that is not restricted by a timeout or number of rows returned, please use the CasJobs batch query service.

The inclusion of the imaging and spectro columns for SAS upload in your query (as in the
default query on this page) will ensure that when you press Submit, the appropriate
button(s) are displayed on the query results page to allow you to upload the necessary
information to the SAS to retrieve the FITS file data corresponding to your CAS query. The
imaging columns needed for upload to the SAS are run, rerun, camcol, and
field. The spectroscopic columns needed are plate, mjd, fiberid,
and optionally sprerun (the latter requires a join with the PlateX table).