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.8001720.3588920.1058520.0131519.83207180.005231995106-0.3938012245655754503874773745664
24.4777822.7763721.3596920.5308820.38003180.014392770958-0.19609063699957549539871047451904
21.8948921.1179220.5286520.4228520.22543180.01435279563-0.331389222578624503874773745664
22.4714621.6982621.1169921.1031321.56808180.014126039842-0.262888956581646755674587430936
24.8802322.7625521.8916322.0818922.00126180.014202777228-0.2610592710206532310346883995795728
23.8092922.608121.877421.3072422.27318180.010263010362-0.1574438792837122312598683801092112
25.2410924.0406222.6410722.5970423.31762180.014360384314-0.2420833388919034503874773712896
22.6769121.4107620.8311720.47920.20913180.009882486319-0.1169125337420486755674587398160
25.5446523.1577622.1850121.3226421.08943180.009871487142-0.06601342391072184503874782101760
22.2084920.7981320.0357419.6429619.31464180.012331721062-0.04586581416717456755674587430928