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.1226922.2183421.3845120.9493420.93616180.108317904604-0.4359414625314734503874773712896
24.8002822.9483621.8915120.8112219.89801180.108430784083-0.4573137150503194503874782134272
22.4075122.5133721.1858120.4172219.94742180.103436276509-0.4615899855793256755674587562000
23.5068623.5237222.3021121.6496321.35847180.100317888912-0.4554745254258874503874916352256
22.0147921.3151520.937220.9609920.60583180.110440192244-0.487322417327536755674587398160
23.8934524.5933822.4405221.8483821.10357180.101307284655-0.4480170038266664503874916319488
19.7264118.6190918.2655718.0003217.90905180.227813265368-0.4767435192258444503874773745664
23.587722.2465321.4564220.9637621.05019180.220338781482-0.4575050345854582310346883987571216
23.5615224.2185222.0761321.4335220.90229180.103535528761-0.4437936521298084503874782134528
23.6091222.4017221.1725820.5812120.50041180.226547968167-0.4916107327443324503874773745664