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
23.0974121.513420.7198220.3899919.90683180.120747931237-0.4883151535806524503874840855880
23.1403822.1410721.6819721.635522.09857180.277885820604-0.47457823405174503874773745664
23.5631823.1655122.1322921.9753922.01248180.149952958039-0.4784309487272854503874773712896
19.2910317.5143516.5795916.1004515.74404180.020473988913-0.4309827665953216755674587566096
22.9893719.7107318.6699618.2309618.05821180.019932856934-0.4996916501945284503874782134544
22.9734722.5306721.6479821.6438121.05509180.020391219031-0.496509420455234503874807267344
20.7399319.4943718.5427818.0400417.7079180.2403695259-0.4805404241518776755674587430928
23.3971323.0590422.1356721.6013220.96937180.152793654936-0.4234352102370234503874773712896
21.8124419.856818.7722218.3077517.98499180.123358966602-0.1807301470246436755674587562008
21.9378621.2294420.0576119.5698919.0391180.241825802762-0.4770963697951294503874773745664