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.9144322.0692321.0014320.7131920.22011180.085866943033-0.4550671887313054503874773712896
23.1039824.6894221.9196721.4375520.67335180.084983025672-0.4781426083534534503874840821832
25.4262122.5532721.0370920.2097519.82066180.086279582635-0.4592656188087994503874782134528
23.0287220.780219.4483118.9467718.60083180.232153129827-0.423846245901254503874773880832
23.9601723.2447921.3511120.7430220.33364180.231601715898-0.4811345209439044503874773712896
23.0295723.0107421.9547922.1255322.75968180.232480543167-0.4429413717495484503874773712896
22.7452321.9410620.8118820.4048220.44819180.348522095032-0.4355347762192512312598683801092112
23.1698122.08921.1685720.667220.19831180.347896073173-0.4634413463895734503874773712896
22.2426421.5858321.0982121.0759820.89292180.34826500787-0.4692295674575754503874773745664
22.3029321.9338521.0409520.8771720.76273180.35027700823-0.4318856536429234503874773712896