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.2857522.1852120.8451919.8530219.18925180.237385958818-0.4680104299690564503599895805952
23.2095120.9085419.8383919.3737819.1412180.01035913563-0.4635456472947384503874773876752
25.276823.6877622.2439721.4776821.45382180.080459612251-0.4959209135036164503874975039560
25.9427822.7011721.6801721.2928420.87947180.006911398842-0.4751150371978064503874773712896
24.2174823.6618422.6588522.6734621.2784180.15429052273-0.4437218434642734503874782101504
22.5869321.6680221.5813421.3412621.31733180.398231829828-0.4653323961098994503874773712896
24.2651323.5183221.9407321.2022220.78839180.24411914537-0.4580077960505614521466959888384
23.932623.7203322.7273922.3601221.4319180.141895380733-0.45234252959058249539871047417856
25.1828123.0434821.9581621.8906821.19649180.399001023839-0.4966293545173474503874773712896
25.0078223.0108322.3058822.2250422.05648180.399492101488-0.4843940119457324503874773712896