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.1002922.9569822.7483722.3824421.71549180.034417574908-0.4320917459758294503599895805952
18.1946217.055116.6610116.5103816.47159180.176432942226-0.4969475487817134503599895838720
22.737322.4124720.4686420.1655420.10835180.26992631206-0.4586614840581884503874773876760
24.0963423.9360322.6683322.8370122.05128180.2689941533-0.4882236775251514503874916319232
24.4672623.4664121.9766920.9140720.19415180.269377788504-0.4624346291668884503874916319232
24.6288823.4116722.6436822.9706123.49208180.271183021929-0.4318209553228014503600038412288
17.0744916.0304415.6830915.552215.5107180.316456740528-0.4519872225405234503599895838736
17.7905316.4003115.8914115.7241415.63591180.31647108347-0.42923759683284503599962947656
21.0313321.2320.9610820.8520420.7241180.284422092655-0.4393996222737474503874773712896
24.0156423.3563221.6466820.2746719.50312180.283012457178-0.4648915643246664503874773712896