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.1532822.3042420.5567619.9396119.43643180.602353367218-0.490655039448334503874773746176
19.7264118.6190918.2655718.0003217.90905180.227813265368-0.4767435192258444503874773745664
23.7767823.7054822.0382521.4250321.23789180.116798991718-0.4246539685179744503874840821832
21.7219120.3818319.4410418.9582418.60952180.368175053879-0.4481587797517954503874773745688
23.4970922.9723421.9257221.8788321.30869180.105573389396-0.4416509744775944503874807267352
23.1517423.0916321.2620221.101820.88161180.620260828113-0.4650771484921784503874773712896
25.1661123.8368621.6753821.0784920.46343180.745586268815-0.4609038561765926755674730037264
25.1330620.9043719.0627918.4052417.9279180.238343690949-0.4356719793296464503874840854600
24.3500322.7496321.0579120.0938419.48202180.013990282366-0.493868550398614503874773746176
22.6772221.47520.6213720.4041620.38045180.358596734465-0.4462743745241342310346883995959824