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.0697222.1229921.2097520.8234521.14592180.478075644041-0.06247804775053974503874773712896
23.2606722.1205121.0842220.588520.06059180.478114095846-0.1568317240806294503874773712896
23.8817523.2519822.1390522.8191121.1831180.476403991558-0.1924501571060164503874807267344
23.1842622.9163321.8940621.4941520.69188180.477020210017-0.1910410698736926755674587398160
23.7710622.6835321.3850320.4167320.14458180.476575309079-0.02245107541423594503874773712896
22.9790624.0539622.1306522.388921.00446180.06020783363-0.1018767430555894503874773712896
22.0493521.2381320.5049120.0878819.87625180.060713226036-0.03661728211614624503874840854600
22.0304721.9213121.4099721.0744421.17631180.392054645043-0.1681728527277822310346883987537936
24.4780121.7211320.6644520.1763819.93834180.393500228076-0.1668199828864596755674587566096
22.2953320.1645119.0185718.5638718.19484180.39077617296-0.130908708040064503874773745664