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
21.1472419.1155818.0557917.5906617.22837180.069638857885-0.4776575759842426755674587566096
22.8384220.9149819.4950319.0626218.68004180.040592845135-0.4205790841838286755399709523992
23.2142721.0613419.6990619.2219218.80227180.051736889326-0.4267886203246854503874773745664
22.4235720.506420.0210719.7889620.18874180.069329928639-0.4796190303892572310346883987440912
23.2294122.5063522.387222.1956621.409180.040626937598-0.4800668996050224503874773712896
23.3042720.7749719.4317118.9892318.6563180.051862390653-0.4303461102585416755674587430928
23.823123.1198822.02421.9423222.25448180.040566748609-0.4636924764042564503874907930624
21.8302521.0783120.4034119.9573719.69912180.070113076229-0.4781538754395364574243551477777
24.3307423.1501521.6536321.0586320.42636180.051185913707-0.4337899381139824503874773712896
22.4075122.5133721.1858120.4172219.94742180.103436276509-0.4615899855793256755674587562000