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
15.5668314.4365114.0534513.9166413.89215180.070715322722-0.4732683906462884503599962947656
23.8870122.9142321.4642820.382919.76734180.106055596863-0.4281204043148294503874773712896
24.3687323.0557922.0092721.530121.36353180.109587445772-0.426273284480654503874773712912
23.350320.1163818.8606318.2938717.98158180.058440189914-0.4248395025451364503599929393168
23.0411122.5740122.0954321.780421.7414180.10673649986-0.4388294653470912310346883987406864
19.7222318.6822618.3040318.1611118.10813180.055996599697-0.4817676348925094503599962947656
23.0215522.1189322.2432921.9244521.99257180.239435800562-0.4437728812861394503874807267344
24.2857522.1852120.8451919.8530219.18925180.237385958818-0.4680104299690564503599895805952
24.1486723.6011722.1189521.5156721.07533180.088193966955-0.4938138787502564503874773712896
24.1189123.7498722.4512622.464222.37029180.237641197609-0.425674931001864503874773712896