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
22.6938621.1119420.6928820.476720.95388180.116145012033-0.1690782139582424503874773712896
22.7664822.1751322.2758221.5177721.13149180.11622470406-0.05896673033251214503874782134528
24.2099822.9565122.0877521.9419321.49609180.122578409509-0.07518908956505549539871047417856
26.5884721.6890919.9991818.9167118.43325180.116259945937-0.204412285184254503874773745664
25.2757522.1228820.4108419.6217519.12599180.123044835993-0.1620308593164384503874773712896
22.8275522.3951521.3730721.2104821.27827180.018176653215-0.4330926207471684503874807435288
22.2084920.7981320.0357419.6429619.31464180.012331721062-0.04586581416717456755674587430928
24.0859722.2130620.5759619.6323819.12747180.013050418878-0.04440841646936382310346883987439632
19.2910317.5143516.5795916.1004515.74404180.020473988913-0.4309827665953216755674587566096
24.494822.7305321.9556922.1383222.44707180.043097468027-0.4999558845914164503874773712896