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
17.3413215.5334414.8461614.6036214.48534180.246857593961-0.4675877277508234503599912615936
20.2245119.2082618.7852218.6310918.5598180.528878888732-0.4319247441137964503599895969792
22.3917321.5559720.9470920.7108920.63148180.81732779960.1228824039012234503874782134272
23.1477922.1605621.7143821.5121921.35785180.8166307464720.0328197367818184503874773848080
22.5474522.9151422.2948822.0446123.37427180.7203016500220.1824204281272524503874907930624
23.6753922.2704421.8209421.796321.49887180.7197534139560.06829695467939744503874773712896
25.6366724.1222622.4275222.043121.312180.7184866484790.0250878995409934503599895941136
22.6512222.7372722.0111121.6135921.1252180.7182139633610.02044950026017054503874773712896
21.6637820.5552320.0453819.8769920.02059180.7192535432140.1365661831020174503874773745680
23.4490522.3278421.9218521.6353721.28833180.6426638506030.1119020157962310346883987406864