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
23.9448723.8918622.5890822.2788421.77238180.004560642148-0.006964158640726114503874907930624
24.2225422.4061821.6553721.294720.34921180.002648784049-0.4782900211612964503874773712896
25.1770324.4258323.1058822.8197123.22585180.000530576743-0.3265522304641034503874807267344
22.616322.3728922.1970522.0580121.23007180.0074123478050.2876187930600834503599904194560
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
24.0523621.8177320.7983920.4239420.02917180.0039940751410.2483330534169454503874773712896
23.7744622.8712921.8188421.5513121.78971180.0040849406690.4190072549490774503874773712896
24.6748223.1013921.2645119.618218.63295180.0058990773890.3090078322841874503874773712896