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
24.1486723.6011722.1189521.5156721.07533180.088193966955-0.4938138787502564503874773712896
21.0961818.6414617.5259417.084916.83317180.12052507772-0.4471424575849034503599895838736
23.350320.1163818.8606318.2938717.98158180.058440189914-0.4248395025451364503599929393168
20.5609417.9117216.7708616.3493916.11848180.232750139903-0.4946337613883454503599895838720
19.7222318.6822618.3040318.1611118.10813180.055996599697-0.4817676348925094503599962947656
23.2762222.0082220.5175419.6252619.18009180.38637258779-0.4407661047249764503874807267344
24.307521.5054920.0500618.6904417.92278180.384093789861-0.4242969282665744503874798878720
24.6559724.2499522.4925522.1687223.11268180.385180195113-0.4426121605049154503874773712896
24.7744523.6423422.9358822.2053621.35323180.385719048907-0.4374791433343934503600030023680
23.6961323.0675522.2638821.9788920.97115180.440764082858-0.4846114408227484503874807267352