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
20.2340520.2656719.8646419.7217219.6919180.0165965765790.252595087470034503874773745664
25.2932822.3465320.8017719.4369818.71003180.0038326159450.1811519773470864503874907930640
25.9952821.9179820.4197919.2158118.50764180.0042718561110.170499969594154503874773712896
18.9567816.6281715.7570315.4713915.35142180.007817126215-0.2877416262572824503599921070592
21.2637220.0289519.5129919.3305519.23019180.017065066819-0.4277547601602582310346609109532688
20.4696418.1259417.1705316.7761116.62637180.034467186193-0.1981452048536974503599895838736
24.9105523.7408421.9415620.999120.37204180.019007359422-0.03247389587983014503874773712896
26.1134122.5800120.9757119.9425319.35641180.036650219216-0.3785522893629084503874773712896
22.1245621.3950820.8624620.756320.87408180.0195313148080.17251190227644503875377692744
23.6464823.2645222.2592421.9570222.99588180.0256333884020.06021517331839864503874807267344