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.7746420.3774219.5826519.1436118.84531180.102820859872-0.1705649846015136755674587430936
23.9379623.7535722.4076523.041622.88551180.465467313753-0.04813367918346726755674620952592
23.534224.0137922.82522.1397822.54487180.464085396401-0.2088433096652454503874782101760
23.1125623.1991122.0340321.4749921.48676180.464697152185-0.1566987367047494503874773712896
25.4129922.3059421.2520920.7577820.67389180.13420829916-0.02121324462429544503874782101760
25.2072323.8751522.6044722.446221.98081180.136449316563-0.15994754169861113510799284781568
24.4387223.9885722.6222621.9449421.22801180.639556223842-0.06245315834744234503874773746944
25.7742922.5703420.7356419.9766319.44275180.256307124687-0.1499666472578936755674587398160
21.6886920.4393219.9366719.8022919.76327180.214305366624-0.1626395687808526755674587430936
23.3377222.1336121.5436621.3970622.00877180.213414887072-0.1614554685691212310346883987406864