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.965622.6875321.6125321.1810420.89568180.22491018665-0.438733105515354503874773712896
23.9559725.1248322.6957922.7994422.99202180.073379402897-0.476137503162484503874807300120
20.4978818.7240617.6229417.1677716.78789180.217639713177-0.4581387094120396755674587562000
22.6961321.632421.2536120.82920.68274180.482155817193-0.4253606994328144503874773712896
22.0725520.005718.3087317.6817117.45986180.217527814914-0.4850065204931194503874773745664
23.7076323.0708522.0301222.1234921.19146180.48239323961-0.46902392798002449539871055806720
24.4126122.9175122.0713321.5873922.24887180.058860074848-0.4212424714912044503874815688720
21.7775220.0112918.8578518.2655417.87853180.240924618948-0.4723923805953014503874773745664
24.6705923.1800321.5068720.4286820.10779180.484593489828-0.4585017142005824503874782134272
19.2910317.5143516.5795916.1004515.74404180.020473988913-0.4309827665953216755674587566096