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.7325922.674521.9558521.9791823.23781180.000988122985-0.4206935881528734503874782134272
23.9808822.2668521.5953921.4700122.06125180.002871296333-0.4834797076328414503874840821832
22.4986622.5539621.6725721.4880521.11217180.002406352869-0.4285439810791494503874773746944
22.6185421.9480221.5565121.4860621.49222180.141124769922-0.4671180632211614503874840855880
22.858521.7182421.4929821.1531121.07384180.140441862858-0.4501860047452776755674587398160
23.3716322.390720.7766819.9984519.47823180.142240869674-0.497309851561552312598683801092112
25.0489623.8623822.578122.3279421.58445180.141288090347-0.4301300487820044503599895805952
23.113723.1915822.5285822.63821.88699180.143176981014-0.4662900905780014503874773712896
24.4126122.9175122.0713321.5873922.24887180.058860074848-0.4212424714912044503874815688720
22.7647422.1752821.7218620.8948121.40547180.060297839787-0.4455996119042214503874916352256