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.6531422.3243321.1413120.24919.68854180.051387136017-0.4443252262164564503874782101504
16.4102515.0009514.497414.3204814.26699180.02652681465-0.4717086057050054503599895969808
23.9374624.1096722.3850522.3098521.87469180.026959788898-0.4900418611535324503874807267344
23.0411122.5740122.0954321.780421.7414180.10673649986-0.4388294653470912310346883987406864
23.3375821.1556119.8063318.9387718.34619180.241558534623-0.4971349562898464503874840855112
24.9093524.1428722.2394621.1119820.45372180.338623967987-0.4902559899327314503874773712896
17.8128316.8515316.5074816.3764816.32963180.330545839202-0.4903100550702764503599895838736
23.0040321.607521.0057320.7703520.53581180.242829901898-0.4650984843046954503874773712896
24.4643821.9946120.5665319.1072918.2984180.393165310002-0.460502572982384503874807267352
24.6269722.9024521.4987319.9658619.25368180.481551000903-0.4316939889100564503874773712896