Your SQL command was:
 SELECT TOP 10 
 run, 
 camCol, 
 rerun, 
 field, 
 objID, 
 ra, 
 dec 
 FROM Galaxy 
 WHERE ( ( flags & (dbo.fPhotoFlags('BINNED1') 
 | dbo.fPhotoFlags('BINNED2') 
 | dbo.fPhotoFlags('BINNED4')) ) > 0 
 and ( flags & (dbo.fPhotoFlags('BLENDED') 
 | dbo.fPhotoFlags('NODEBLEND') 
 | dbo.fPhotoFlags('CHILD')) ) != dbo.fPhotoFlags('BLENDED') 
 and ( flags & (dbo.fPhotoFlags('EDGE') 
 | dbo.fPhotoFlags('SATURATED')) ) = 0 
 and petroMag_i > 17.5 
 and (petroMag_r > 15.5 or petroR50_r > 2) 
 and (petroMag_r > 0 and g > 0 and r > 0 and i > 0) 
 and ( (petroMag_r-extinction_r) < 19.2 
 and (petroMag_r - extinction_r < 
 (13.1 + (7/3) * (dered_g - dered_r) + 4 * (dered_r - dered_i) 
 - 4 * 0.18) ) 
 and ( (dered_r - dered_i - (dered_g - dered_r)/4 - 0.18) < 0.2) 
 and ( (dered_r - dered_i - (dered_g - dered_r)/4 - 0.18) > -0.2) 
 and ( (petroMag_r - extinction_r + 
 2.5 * LOG10(2 * 3.1415 * petroR50_r * petroR50_r)) < 24.2) ) 
 or ( (petroMag_r - extinction_r < 19.5) 
 and ( (dered_r - dered_i - (dered_g - dered_r)/4 - 0.18) > (0.45 - 4 * 
 (dered_g - dered_r)) ) 
 and ( (dered_g - dered_r) > (1.35 + 0.25 * (dered_r - dered_i)) ) ) 
 and ( (petroMag_r - extinction_r + 
 2.5 * LOG10(2 * 3.1415 * petroR50_r * petroR50_r) ) < 23.3 ) ) 

Your query output (max 500,000 rows):

runcamColrerunfieldobjIDradec
41341301201237663228529737747245.43034962005875.4638231475737
5959130111123767106684446314422.164681685702838.1801850594697
5181130111123766772535990689182.92383527074359.52348068865284
5181130111123766772535990689882.91971308506679.51351697596592
55981301111237669516361269278344.2577989800895.80245393181107
55981301111237669516361269279344.257381832765.80254898683219
3557130111123766075033301825266.350653806775222.7582994486387
5060130111123766720566886422571.287338014549656.8012567463533
41341301201237663228529737823245.65642898080175.5469756131548
3557130111123766075033301836366.344219044451322.801237634317

Use the button below to upload the results of the above query to the SAS and retrieve the corresponding FITS files:

Upload list of fields to SAS