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
22.7325922.674521.9558521.9791823.23781180.000988122985-0.4206935881528734503874782134272
23.9808822.2668521.5953921.4700122.06125180.002871296333-0.4834797076328414503874840821832
23.379522.2815621.3853520.6398820.30246180.130255787077-0.4374218185668314503874773745664
25.1178323.662921.9187721.2494920.53527180.117220147207-0.438704948610634503874782101760
25.023922.7200822.2857722.0457621.15124180.167115310514-0.4982159832948144503874907963392
20.4978818.7240617.6229417.1677716.78789180.217639713177-0.4581387094120396755674587562000
22.0725520.005718.3087317.6817117.45986180.217527814914-0.4850065204931194503874773745664
23.5068623.5237222.3021121.6496321.35847180.100317888912-0.4554745254258874503874916352256
22.1240921.1993320.6542720.4223120.27889180.064355730949-0.4601790872346874503874773745664
23.1828421.4242920.2236719.7776819.58151180.063892800183-0.4702392138670164503874782265344