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
23.745422.606421.1220420.2054219.86932180.0023623456640.3319543784045684503874773712896
23.7733822.6958620.776920.2347119.84355180.002552775832-0.2809778240950944503874773745664
22.2664121.0332520.3138219.771519.27945180.003099390181-0.1274791099152324503874773745664
25.1435622.8998921.7424421.1603521.28817180.003528513414-0.1924095724135964503874773712896
22.905523.1605422.4751122.3064422.31093180.0036227141750.3576294909673254503874807300112
22.1064321.1027820.108419.8034419.98297180.0029978007130.3244640314961586755674587430928
21.8502920.6223419.793219.4063818.98901180.002789401379-0.3369061521769776755674587562512
23.6911723.6855722.5782722.3652422.13274180.003140903717-0.2543771825885134503874815688728