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
22.6883623.4370422.9897722.7549322.78791180.000874412385-0.2122899048822684503874807267344
22.9907922.1908322.2952521.9385621.95755180.005403352828-0.1812395285968524503874807267344
24.0523621.8177320.7983920.4239420.02917180.0039940751410.2483330534169454503874773712896
23.7744622.8712921.8188421.5513121.78971180.0040849406690.4190072549490774503874773712896
24.6748223.1013921.2645119.618218.63295180.0058990773890.3090078322841874503874773712896
24.350123.5610222.5900121.9232122.62967180.0061713095610.3717505066177934503599895838720
21.020620.5456220.7909421.1029521.37324180.006030864501-0.3983719059101864503874773712896
22.9308722.3309721.392921.0659221.16495180.008123340686-0.03074863598246934503874773745664
18.9567816.6281715.7570315.4713915.35142180.007817126215-0.2877416262572824503599921070592
22.7807420.5970319.2914718.7553418.45499180.010148839638-0.4231379216026134503599895805968