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
16.3028915.1509714.7477214.605314.56375180.168122256859-0.491580693641764503599895838720
23.932623.7203322.7273922.3601221.4319180.141895380733-0.45234252959058249539871047417856
24.0156423.3563221.6466820.2746719.50312180.283012457178-0.4648915643246664503874773712896
22.8780922.0548621.8133221.5813222.07921180.548845701824-0.4450461152534834503874908094464
24.203322.8358721.3425320.720320.19279180.053909946139-0.489290473249354503874773712912
23.1416723.6044222.6762522.2907422.86164180.54766782715-0.4427715371431844503874782118144
23.9027121.7804520.1971919.403418.8724180.053620822951-0.4291858267009842310346883987439632
18.468917.1512616.6103616.3999116.28701180.146633856416-0.4446447999846814503599895969792
18.2295617.2801917.0171516.9038916.83391180.261718606161-0.4349264128384964503599921004544
18.9071216.7600915.8266115.456215.24281180.261843026334-0.465362771372474503599921004544