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.494822.7305321.9556922.1383222.44707180.043097468027-0.4999558845914164503874773712896
22.7457422.2588121.9053821.9739222.72579180.043933748786-0.4361877257025824503874773712896
23.4774122.7886822.08221.7959721.37784180.045354712829-0.4895910959190134503874907930624
23.4205622.7854321.7030821.2526421.12144180.044812312514-0.4561632015887434503874773712896
21.9226521.437520.4746220.2269120.03095180.180994463103-0.470891853809386755674587562000
23.2890421.4348320.5954220.1108120.30227180.013562546042-0.4822511735613774503874773745664
22.702822.3447421.8672421.4680521.37548180.01344710585-0.4890973233968574503874773712896
24.3500322.7496321.0579120.0938419.48202180.013990282366-0.493868550398614503874773746176
21.5855920.905520.1709620.0936820.48586180.014815814065-0.4424428037723134503874773746944
23.143122.7588522.2482722.4139222.24205180.014732427728-0.4551664129983294503874907930624