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
24.3439822.9323722.236322.416421.85511180.092515713428-0.4863306423424394503874773712896
23.0974121.513420.7198220.3899919.90683180.120747931237-0.4883151535806524503874840855880
23.2457822.98621.6455321.4485820.87312180.0787749417-0.4365113908484164503874782101504
23.7065822.894522.1903721.9666721.20445180.093331462165-0.4356977316747924503874907930624
21.1472419.1155818.0557917.5906617.22837180.069638857885-0.4776575759842426755674587566096
24.307523.0589522.1830621.8347521.23693180.093350622759-0.4310741625774644503874773712896
22.4398120.9333419.9029819.5025719.30116180.124732868148-0.4650196223122524503874773745664
21.3810822.5251620.7631220.4030219.12829180.08166137666-0.4513708025601524503874983461193