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.9344521.6563420.971120.7357320.16378180.018883133233-0.4254192350761986755674587430928
22.8275522.3951521.3730721.2104821.27827180.018176653215-0.4330926207471684503874807435288
22.1716622.2814421.2501920.7643120.15193180.019830070091-0.4564454340666154503874773712896
21.847922.0878121.5298220.9546720.38766180.016976648595-0.4951387661883134503874916352256
24.0293723.6381721.6857621.2928820.83925180.078203194722-0.4567794128364944503874773745664
23.959922.4059922.1723722.4651721.81838180.017787473817-0.4781611487932514503874773712896
21.9200820.8321319.3222518.7051718.32417180.143816730918-0.448509001574856755674587430928
24.8330822.3170421.9724121.7242422.28225180.145215940258-0.4497748028022872310346883995828496
24.8721123.7251721.8534421.2407620.75076180.144767210529-0.4255593861930874503874773712896
23.8011722.2248321.3210521.2147821.07495180.196584469266-0.4348181681517292312598683801124888