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
22.905523.1605422.4751122.3064422.31093180.0036227141750.3576294909673254503874807300112
22.1064321.1027820.108419.8034419.98297180.0029978007130.3244640314961586755674587430928
20.4455519.4632618.6861318.3717818.10311180.004808130914-0.04571523120173866755674587430936
20.9002719.4655218.8030118.4550718.22099180.0063326936690.4042841708162734503874773745664
23.3023824.0798522.6297622.3947521.58684180.006018742634-0.3818802381563934503874907930624
22.7785821.7875621.0056920.6936620.12515180.0084510392660.3520069237377116755674587430928
24.5944722.0578121.3426321.0935421.36164180.0096510752930.1277366311525164503874773745664
23.0359421.2847920.2548119.7577319.38108180.0104649295380.2165149931875574503874840821832
23.2906724.0923122.7910721.8092421.21917180.010241922143-0.3443091985504394503874907930640
22.8183822.0220321.4811821.6749621.78445180.011958363516-0.137569457111654503874849243208