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.1770324.4258323.1058822.8197123.22585180.000530576743-0.3265522304641034503874807267344
25.3968224.7475922.8648223.6942622.98322180.012966035386-0.4143767026283974503874773712896
21.2637220.0289519.5129919.3305519.23019180.017065066819-0.4277547601602582310346609109532688
23.2889223.41421.8481820.7504420.37176180.018470489987-0.2258976453286954503874807267344
21.0750318.5737217.4134316.9374416.67409180.0171232974510.206984765709474503599895838736
22.7770920.6844219.6673619.3071619.18984180.029615255822-0.05158321020525584503874773745680
20.6099719.4023318.9608818.894818.73238180.0231110249230.06663873520106874503599895838720
22.4456621.9570421.6918521.5693722.59436180.0231444845770.06235821966043264503874773712896
18.2312916.3170915.6337715.3992715.30132180.038951381615-0.2700609492415284503599921004544
24.1002922.9569822.7483722.3824421.71549180.034417574908-0.4320917459758294503599895805952