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
24.1486723.6011722.1189521.5156721.07533180.088193966955-0.4938138787502564503874773712896
18.746717.6421617.2540217.1183917.0697180.039554654698-0.4531102818930192310346609109532688
23.3375821.1556119.8063318.9387718.34619180.241558534623-0.4971349562898464503874840855112
24.0960524.4314622.1518322.0112122.69647180.149059821815-0.4639089986326924503874773712896
24.341422.8741621.5426920.4232119.78389180.040672653717-0.4563096630966994503874773712896
23.4812523.6655321.8395621.1487820.87069180.182918538046-0.4355122121017994503874773745664
25.658224.1113222.621921.0213419.98718180.257278387712-0.4853124678358314503874773712896
24.6473922.5044521.2257220.7376820.79559180.44399784177-0.4875630791661434503599929360400
24.7485824.0994122.3027521.1184520.17397180.446131512172-0.4840465580788654503874807267344
16.8496815.536115.0158814.8250314.74539180.40427398949-0.4829941099017624503599895838736