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
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
23.9448723.8918622.5890822.2788421.77238180.004560642148-0.006964158640726114503874907930624
24.2225422.4061821.6553721.294720.34921180.002648784049-0.4782900211612964503874773712896
25.2567923.2184722.9720222.9244722.31726180.000752096289-0.1336738411989912310346884121624600
20.9836818.7850417.8037117.4599517.22907180.0006776725350.2546375526802164503599895838720
22.6883623.4370422.9897722.7549322.78791180.000874412385-0.2122899048822684503874807267344