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
24.4126122.9175122.0713321.5873922.24887180.058860074848-0.4212424714912044503874815688720
23.420523.1448122.1588821.587220.84644180.038055520141-0.4444620275799054503874773712896
18.4788516.4398515.4827715.0398514.69474180.023392486421-0.4953226180070016755674587566096
19.7672417.7426516.7808816.3566916.01927180.056454505054-0.4218279078113146755674587430928
19.0536717.9058817.3642917.0129516.84873180.058159971056-0.4241934955639384503874773745680
21.3190120.226319.4236819.0345818.69327180.311916119495-0.4372509846662656755674587430928
23.7432222.0856321.5736221.0570320.62375180.312013743119-0.4391668226506822310346883995828240
23.3868522.657322.0777221.9517721.73198180.215640387214-0.4464984065364564503874773712896
23.587722.2465321.4564220.9637621.05019180.220338781482-0.4575050345854582310346883987571216
22.2722320.1166118.8937418.4004517.97602180.344933027588-0.4685133714740234503874773745664