Your SQL command was:
SELECT TOP 10 u,g,r,i,z,ra,dec, flags_r 
FROM Galaxy 
WHERE
 ra BETWEEN 180 and 181 AND dec BETWEEN -0.5 and 0.5
 AND ((flags_r & 0x10000000) != 0)
 AND ((flags_r & 0x8100000c00a0) = 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.8848619.8860518.892518.3908118.058180.036602721426-0.4534564242824056755674587430936
20.4804619.2840118.5868418.2114717.97986180.036060223294-0.4993121701811384503874773745664
23.0429322.7839722.0305521.9546421.78778180.036683752462-0.4603246578556854503874782134528
23.874223.8053722.4236620.7870321.21994180.036283612053-0.47711394095600113510799360262473
23.420523.1448122.1588821.587220.84644180.038055520141-0.4444620275799054503874773712896
25.4143923.3845121.7323220.7168120.22093180.047711345569-0.490918678999996755674595819792
24.2315222.46921.1410720.619220.397180.203308172954-0.4777339027433464503874840821832
24.9820924.4157922.400321.8873522.43991180.048399513213-0.4893176843218512310346883987406864
22.3178622.1833921.6241420.7563320.07101180.205763334366-0.4387719614383064503874773712896
19.2910317.5143516.5795916.1004515.74404180.020473988913-0.4309827665953216755674587566096