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.5680822.6803921.3322420.7323320.62465180.061518460485-0.4913666294125224503874773712896
23.9269822.4333621.6899520.6678420.07106180.197045235444-0.4334132636353414503874773876752
23.654524.5353222.7000822.2164522.16731180.302921191925-0.4370650321327714503874916319232
23.1915421.7466720.9342520.2194419.88273180.029643313229-0.1513856188178924503874773745664
23.4246321.23220.1448419.7430119.47091180.074710747525-0.05869478229641366755674587398160
22.1309720.9645619.9361119.4725419.10212180.050847505389-0.1973329834532964503874773745664
20.5036918.2308317.0175916.5362316.16943180.18769604337-0.164092850547862310346883987439632
23.2457822.98621.6455321.4485820.87312180.0787749417-0.4365113908484164503874782101504
23.7934823.661121.2103720.8776120.52512180.616212920326-0.4640226066811544503874782269696
23.4183422.6358922.0346421.4728620.94794180.065354189317-0.1709504079975794503874773712896