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
25.5408624.456722.5723221.3527420.63408180.127065763304-0.484161508481374503874773712912
22.8362122.3003120.6105819.9159819.50745180.127127385642-0.4280598965441344503874773745664
24.4980222.1846420.2651219.6328319.19995180.376869456062-0.4956926981718964503874773745680
20.8583320.0553619.0985918.7588118.6323180.238070125531-0.4848801938434344503874773745664
24.1664122.7996821.2918520.579220.32926180.636086671295-0.4600596063694852310346883987440152
21.7219120.3818319.4410418.9582418.60952180.368175053879-0.4481587797517954503874773745688
22.4874821.8925921.181220.4052920.16796180.092336095861-0.005269458245622356755674595819544
23.610722.8971221.0045820.1100219.62344180.203127087373-0.1614395080687876755674587430928
23.5097623.9536322.1445222.1297322.76271180.761889106404-0.4241774331666822310346883995795472
23.5351420.8493419.1720718.5479418.13019180.641574135278-0.4583817627529866755674587562000