Your SQL command was:
SELECT TOP 10 u,g,r,i,z,ra,dec, flags_r 
FROM Galaxy 
WHERE
 ra BETWEEN 180 and 181 AND dec BETWEEN -0.5 and 0.5
 AND ((flags_r & 0x10000000) != 0)
 AND ((flags_r & 0x8100000c00a0) = 0) 
 AND (((flags_r & 0x400000000000) = 0) or (psfmagerr_r <= 0.2))
 AND (((flags_r & 0x100000000000) = 0) or (flags_r & 0x1000) = 0)

Your query output (max 500,000 rows):

ugrizradecflags_r
19.5004317.6347816.6779516.2364915.87566180.0000021124720.4148928103147186755674587430928
22.9844621.9230121.2692520.9141220.78033180.0005263102070.3364345200656394503874773848064
22.878522.9338821.9283121.4813920.76749180.000444491251-0.2129254086512716755674730037520
21.9294421.0292820.5147720.1341420.01579180.000696901391-0.02122548820035084503874773712896
22.7845121.462821.1539320.8935621.19361180.0007953402810.3646968889771436755674595819536
22.9535522.2966621.8157121.623121.7485180.0007965549690.3666580790453012310346883995828248
23.1205722.8319421.7873321.0259420.85061180.000923373086-0.2564720627010284503874782101760
22.905523.1605422.4751122.3064422.31093180.0036227141750.3576294909673254503874807300112
22.1064321.1027820.108419.8034419.98297180.0029978007130.3244640314961586755674587430928
23.5309822.6739422.2122322.1712521.87223180.004606389103-0.3619709436216454503874773712896