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.3412421.9711320.8349220.2931419.79471180.202803811244-0.07314746978350644503874773712896
24.3840623.4497522.2983322.1050621.51406180.200345459781-0.1279204995772924503874773712896
24.8606723.4008422.121921.1903220.95547180.20207217401-0.06841232389759174503874773712896
21.9767420.1684119.0569618.5768418.29747180.241884064123-0.1582891637023556755674587430928
22.7338721.8580221.0635420.5779520.34072180.153637760662-0.08777897992001882312598683801092112
24.8364222.9739321.9639221.8543121.17883180.140019708456-0.1447227414466914503874773712896
22.5715321.8288920.6071420.2891719.82678180.240435707238-0.04362388446363644503874773712896
23.144121.8185720.9750621.1771621.41094180.241380014428-0.1211688323120534503874773712896
24.3086621.8998920.8048620.5061320.21569180.156227898092-0.1482762673789192312598683801124880
22.4983220.8630120.3231819.7841419.68579180.242276072277-0.0212220047156514503874773712896