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.3439822.9323722.236322.416421.85511180.092515713428-0.4863306423424394503874773712896
23.7065822.894522.1903721.9666721.20445180.093331462165-0.4356977316747924503874907930624
24.307523.0589522.1830621.8347521.23693180.093350622759-0.4310741625774644503874773712896
22.426822.4473621.5569621.0172721.72171180.093964559306-0.4591306589391544503874782134528
23.0287220.780219.4483118.9467718.60083180.232153129827-0.423846245901254503874773880832
22.8384220.9149819.4950319.0626218.68004180.040592845135-0.4205790841838286755399709523992
23.2142721.0613419.6990619.2219218.80227180.051736889326-0.4267886203246854503874773745664
23.9601723.2447921.3511120.7430220.33364180.231601715898-0.4811345209439044503874773712896
23.2294122.5063522.387222.1956621.409180.040626937598-0.4800668996050224503874773712896
23.3042720.7749719.4317118.9892318.6563180.051862390653-0.4303461102585416755674587430928