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
24.5223623.4967721.7312920.8331320.19589180.009438913495-0.1975538218072484503874773712896
22.7845121.462821.1539320.8935621.19361180.0007953402810.3646968889771436755674595819536
22.9535522.2966621.8157121.623121.7485180.0007965549690.3666580790453012310346883995828248
22.3658821.8093920.507120.1093419.95572180.0053815544330.3002511538047354503874773745664
23.9051222.8999422.0490821.557720.73325180.0075731852980.3557205908160674503874840854600
23.5131322.613121.8724221.5716620.98865180.013922887633-0.3524878061623984503874916319232
22.6769121.4107620.8311720.47920.20913180.009882486319-0.1169125337420486755674587398160
25.5446523.1577622.1850121.3226421.08943180.009871487142-0.06601342391072184503874782101760
24.1836523.3218722.3512421.7913821.26041180.010291084167-0.1134964990554854503874782101760
22.2664121.0332520.3138219.771519.27945180.003099390181-0.1274791099152324503874773745664