Your SQL command was:
SELECT TOP 10 u,g,r,i,z,ra,dec, flags_r 
FROM Star 
WHERE 
 ra BETWEEN 180 and 181 AND dec BETWEEN -0.5 and 0.5
 AND ((flags_r & 0x10000000) != 0)
 AND ((flags_r & 0x8100000c00a4) = 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
24.2225422.4061821.6553721.294720.34921180.002648784049-0.4782900211612964503874773712896
24.5424723.1897522.4219822.2593222.17041180.005329605528-0.2380190330838624503874773712896
23.1571322.3234821.590521.9383221.24145180.0052503930490.07045662709346274503874773712896
22.6883623.4370422.9897722.7549322.78791180.000874412385-0.2122899048822684503874807267344
23.3443823.2208722.4367822.0572722.09502180.0101375347080.07811906981215134503874773712896
24.8453325.0643422.8872824.369322.5362180.004392523778-0.3371231986161024503874807267344
23.885323.0798522.264523.207822.67131180.011524721076-0.4216226195460952310346883995795472
25.3968224.7475922.8648223.6942622.98322180.012966035386-0.4143767026283974503874773712896
23.4389321.9784821.4457621.3445321.86419180.0124282664240.08698525662273534503874773712896
24.5621724.2383622.7595422.0882221.88552180.0137465947110.4284891258406174503874773712896