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.276823.6877622.2439721.4776821.45382180.080459612251-0.4959209135036164503874975039560
23.0573922.5721422.1377721.8855921.49733180.115013253032-0.4329086169086474503874907930624
18.2295617.2801917.0171516.9038916.83391180.261718606161-0.4349264128384964503599921004544
18.9071216.7600915.8266115.456215.24281180.261843026334-0.465362771372474503599921004544
23.8870122.9142321.4642820.382919.76734180.106055596863-0.4281204043148294503874773712896
22.1460621.0069220.5495620.3253220.3212180.262456512066-0.4316147613176554503874773712896
23.7688323.2785522.2014821.3126420.57186180.260698655269-0.4280190674317364503874773712896
24.4726524.4447422.9510121.4535720.9601180.129512942791-0.4975070940454112310346883987406864
24.8725623.5279722.2912920.6415919.69934180.262011542262-0.4595321698036544503874773712896
23.0411122.5740122.0954321.780421.7414180.10673649986-0.4388294653470912310346883987406864