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
23.4860822.5554921.8225921.3920620.60839180.09666106699-0.4547325674982374503874773712896
23.0046121.1448919.69919.1523718.81575180.113859055506-0.4584409032267214503874773712896
22.4398120.9333419.9029819.5025719.30116180.124732868148-0.4650196223122524503874773745664
22.7514622.4728521.74721.5902121.11955180.088818774157-0.4864635035158514503874782134272
23.1226122.6061221.9569321.0969522.62077180.097472758634-0.4818352541852284503874782134272
23.7767823.7054822.0382521.4250321.23789180.116798991718-0.4246539685179744503874840821832
22.7645821.8545621.28321.1121722.05387180.089471567218-0.4975030357568534503874773712896
24.1572422.2117321.4882321.3583721.17303180.1254860368-0.4841735852949622312598683801092112
23.408723.2325322.075322.1331121.70898180.094548524691-0.4331889668478944503874773712896
25.6548623.8704622.0222521.3701320.3044180.115434854193-0.4812442047106744503874907964672