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.2932822.3465320.8017719.4369818.71003180.0038326159450.1811519773470864503874907930640
25.9952821.9179820.4197919.2158118.50764180.0042718561110.170499969594154503874773712896
17.1340716.0225815.6481215.502615.46549180.0073420109410.1646788905683894503599929393168
18.9567816.6281715.7570315.4713915.35142180.007817126215-0.2877416262572824503599921070592
23.5472323.6533122.5305522.0856220.86908180.009733921724-0.3155844731518044503874807267344
24.6445622.6048621.5396920.9849920.79422180.009985127191-0.04100620890521244503874907963408
20.2340520.2656719.8646419.7217219.6919180.0165965765790.252595087470034503874773745664
21.0750318.5737217.4134316.9374416.67409180.0171232974510.206984765709474503599895838736
24.9105523.7408421.9415620.999120.37204180.019007359422-0.03247389587983014503874773712896
22.1245621.3950820.8624620.756320.87408180.0195313148080.17251190227644503875377692744