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.0802723.6864422.8688323.3552822.11635180.0027597988660.05582761604144584503874807267352
24.0749324.276123.0411723.0225123.50623180.0031321266220.180293250852884503874807267344
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.772523.6566721.8890820.8976420.26148180.0036814690940.03980353148533534503874773745664
24.5424723.1897522.4219822.2593222.17041180.005329605528-0.2380190330838624503874773712896
23.1571322.3234821.590521.9383221.24145180.0052503930490.07045662709346274503874773712896
22.9907922.1908322.2952521.9385621.95755180.005403352828-0.1812395285968524503874807267344