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
24.8453325.0643422.8872824.369322.5362180.004392523778-0.3371231986161024503874807267344
25.2932822.3465320.8017719.4369818.71003180.0038326159450.1811519773470864503874907930640
25.9952821.9179820.4197919.2158118.50764180.0042718561110.170499969594154503874773712896
22.9907922.1908322.2952521.9385621.95755180.005403352828-0.1812395285968524503874807267344
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
21.8644621.0641520.6634520.6021120.38161180.014601274917-0.475378929018744503874773745664
24.0073523.1783322.6711822.7778323.61943180.014806918205-0.07084494096854034503600038412288