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
20.449119.6139519.3079419.2162119.15434180.005763081967-0.4671563723899584503599895838720
20.47319.2105618.6879718.479318.32066180.006740875243-0.4554706967340244503599895838720
25.9427822.7011721.6801721.2928420.87947180.006911398842-0.4751150371978064503874773712896
21.4751918.7066317.4793917.0174216.7491180.143240050966-0.4204110814673574503599895838720
23.932623.7203322.7273922.3601221.4319180.141895380733-0.45234252959058249539871047417856
15.5668314.4365114.0534513.9166413.89215180.070715322722-0.4732683906462884503599962947656
24.5639922.7541721.0440219.4734118.54427180.077418734882-0.4590282251279094503874773745664
22.1821419.9010618.5533317.7895817.33962180.311386113455-0.4748771227327624503599895838720
22.8695622.7195722.5951322.9719822.53589180.069475214975-0.4981082141203184503874907930624
23.0662723.3213922.2675621.9510821.66725180.075789465189-0.4211922832534674503874907930624