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.587722.2465321.4564220.9637621.05019180.220338781482-0.4575050345854582310346883987571216
25.1330620.9043719.0627918.4052417.9279180.238343690949-0.4356719793296464503874840854600
20.8722619.694219.3759419.0900319.0053180.220338979815-0.4944991785913226755674587430928
22.6772221.47520.6213720.4041620.38045180.358596734465-0.4462743745241342310346883995959824
22.4936320.6258319.2991618.8191518.54232180.357081506365-0.4872169482453882310346883987439632
21.7219120.3818319.4410418.9582418.60952180.368175053879-0.4481587797517954503874773745688
23.0295723.0107421.9547922.1255322.75968180.232480543167-0.4429413717495484503874773712896
19.6510617.6408116.5766316.1266315.75204180.496629144401-0.4274496861040986755674587566096
22.001220.2521919.289818.8877918.57984180.499029473338-0.4311428943117224503874840854600
19.6913117.7101616.5564916.0999515.74558180.362532423057-0.4472880590505756755674587562000