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
21.0628221.1901220.7885220.8424420.60406180.0003163957580.07880035820311344503874773712896
23.9448723.8918622.5890822.2788421.77238180.004560642148-0.006964158640726114503874907930624
25.1770324.4258323.1058822.8197123.22585180.000530576743-0.3265522304641034503874807267344
22.413122.2723121.9778321.3340222.09998180.000500188599-0.38372630851144503874907930624
15.6579314.5408814.0878118.3841513.86785180.0005691007360.1652810481787984503599895838736
25.1722122.7997322.0468921.5283521.02276180.0004313341220.04935376410924824503874782134272
24.5424723.1897522.4219822.2593222.17041180.005329605528-0.2380190330838624503874773712896
23.1571322.3234821.590521.9383221.24145180.0052503930490.07045662709346274503874773712896
22.616322.3728922.1970522.0580121.23007180.0074123478050.2876187930600834503599904194560
17.1340716.0225815.6481215.502615.46549180.0073420109410.1646788905683894503599929393168