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.1423822.9168221.9019121.4288820.89845180.0021834068170.3401629758711534503874773712896
22.4003821.8390620.7720520.0196619.72326180.002187817705-0.2392135072667514503874773712896
22.9844621.9230121.2692520.9141220.78033180.0005263102070.3364345200656394503874773848064
23.6271823.2744922.6857322.0566922.64138180.000365877976-0.2467916387186224503874807300120
22.878522.9338821.9283121.4813920.76749180.000444491251-0.2129254086512716755674730037520
23.7331823.4018521.8794421.5807221.23587180.0005697296710.3279981534850754503874782134272
22.4986622.5539621.6725721.4880521.11217180.002406352869-0.4285439810791494503874773746944
23.7733822.6958620.776920.2347119.84355180.002552775832-0.2809778240950944503874773745664
23.5309822.6739422.2122322.1712521.87223180.004606389103-0.3619709436216454503874773712896
26.1128823.0254122.236221.9050322.2442180.0069587441770.2842446204742274503874773712896