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
22.3215922.1302521.5098921.3214421.31979180.068332735497-0.4590828227686224503874773712896
21.7069521.2128120.5387619.5202820.90742180.067350685805-0.47188228271844649539871047451904
20.6567519.4995618.9329418.5948118.47643180.189823455807-0.4685837420376446755674587562000
24.1901524.2296321.5538723.3338121.96249180.187991002683-0.4693810012584632310346883987539216
24.1142322.014220.9195220.5520720.0245180.331470267929-0.4350961303507322312598683809513488
23.3204421.8848321.3670721.2248320.86646180.331997534577-0.4496839252019884503874773712896
23.9372923.5238122.2528822.1046521.84068180.331411427004-0.4992269498775664503874907963392
23.6717223.2851622.3022620.8715320.30228180.331904870316-0.4294510632546884503874782101760
24.7600623.4855822.3210921.1428120.89962180.332647441892-0.48381646875436149539871122948168
23.2716622.0609421.2241320.7956220.48894180.473883855307-0.4355023670990354503874773712896