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
25.1770324.4258323.1058822.8197123.22585180.000530576743-0.3265522304641034503874807267344
24.8453325.0643422.8872824.369322.5362180.004392523778-0.3371231986161024503874807267344
22.9907922.1908322.2952521.9385621.95755180.005403352828-0.1812395285968524503874807267344
24.350123.5610222.5900121.9232122.62967180.0061713095610.3717505066177934503599895838720
21.020620.5456220.7909421.1029521.37324180.006030864501-0.3983719059101864503874773712896
23.3443823.2208722.4367822.0572722.09502180.0101375347080.07811906981215134503874773712896
22.9308722.3309721.392921.0659221.16495180.008123340686-0.03074863598246934503874773745664
18.9567816.6281715.7570315.4713915.35142180.007817126215-0.2877416262572824503599921070592
20.2340520.2656719.8646419.7217219.6919180.0165965765790.252595087470034503874773745664
23.0769722.5150121.680321.347721.24877180.0104662312180.2565739558248594503874773712896