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
21.9294421.0292820.5147720.1341420.01579180.000696901391-0.02122548820035084503874773712896
22.905523.1605422.4751122.3064422.31093180.0036227141750.3576294909673254503874807300112
22.1064321.1027820.108419.8034419.98297180.0029978007130.3244640314961586755674587430928
23.5309822.6739422.2122322.1712521.87223180.004606389103-0.3619709436216454503874773712896
23.1508423.2960622.4557122.5056821.90296180.004834234509-0.4160108222930284503874773712896
24.2495224.2073621.9790120.8941320.25994180.0051846595910.3193661885811914503874773745664
24.3316422.2735120.7622320.2277819.88985180.00580603812-0.4621157447646764503874773712896
20.9002719.4655218.8030118.4550718.22099180.0063326936690.4042841708162734503874773745664
22.3569621.2447620.2120219.8408519.34343180.0056824130160.2157057488472644503874773745664
24.0956923.1329622.0232922.502522.83517180.005833993011-0.321410768473474503874807431192