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
20.4288919.8057719.8454819.3156319.64087180.080875521699-0.4882167787882624503874773745664
23.0682621.7632220.6804620.5133320.11008180.078514893052-0.4472888846831394503874773745664
22.8384220.9149819.4950319.0626218.68004180.040592845135-0.4205790841838286755399709523992
22.4075122.5133721.1858120.4172219.94742180.103436276509-0.4615899855793256755674587562000
23.1226922.2183421.3845120.9493420.93616180.108317904604-0.4359414625314734503874773712896
23.2457822.98621.6455321.4485820.87312180.0787749417-0.4365113908484164503874782101504
24.8002822.9483621.8915120.8112219.89801180.108430784083-0.4573137150503194503874782134272
23.2294122.5063522.387222.1956621.409180.040626937598-0.4800668996050224503874773712896
23.1425521.2239519.6280619.064318.54799180.213821717775-0.4850316094175574503874773745664
24.8935823.0280521.4337121.2506920.78501180.213920382465-0.4928067313910924503874773745664