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.4912922.303421.0778219.7931319.24955180.0632068025040.4061661391200094503874773848080
24.6473922.5044521.2257220.7376820.79559180.44399784177-0.4875630791661434503599929360400
19.3633916.8830715.3806916.2857112.77891180.117808994912-0.1034092182648074503599895838736
24.2681823.2284922.3522221.711421.50827180.269820858082-0.03568014476281564573968673538065
23.188622.2517821.5095521.1565721.14178180.293134873125-0.1686046927014724503599929360400
24.1302724.2141622.6527122.279422.59657180.0755503247640.04897386020083574503599929360400
22.5683920.3619118.9767917.8575817.2474180.910563424637-0.07580252565598464503599895839232
20.3336220.1749919.9027119.7926419.66898180.963266485230.2696047383956274503874840854600
18.4267316.5242915.7230615.442115.31544180.4386700914510.2405592712351094503599895969808
23.6961323.0675522.2638821.9788920.97115180.440764082858-0.4846114408227484503874807267352