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.8384220.9149819.4950319.0626218.68004180.040592845135-0.4205790841838286755399709523992
23.2294122.5063522.387222.1956621.409180.040626937598-0.4800668996050224503874773712896
23.823123.1198822.02421.9423222.25448180.040566748609-0.4636924764042564503874907930624
22.7514622.4728521.74721.5902121.11955180.088818774157-0.4864635035158514503874782134272
22.7645821.8545621.28321.1121722.05387180.089471567218-0.4975030357568534503874773712896
22.423722.4678622.2743722.6573920.71136180.03456777519-0.4901312932841534503874773712896
23.0046121.1448919.69919.1523718.81575180.113859055506-0.4584409032267214503874773712896
23.0729822.8034921.7979220.9680821.02308180.09027607501-0.47606458898117651791671003742736
22.7452321.9410620.8118820.4048220.44819180.348522095032-0.4355347762192512312598683801092112
23.7767823.7054822.0382521.4250321.23789180.116798991718-0.4246539685179744503874840821832