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
23.0441322.1906921.4586221.0479321.45812180.198266085602-0.4727825861591322312598683801092120
22.1265120.2502119.0651518.5823818.31132180.257732464593-0.4798240407554556755674587430928
25.1330620.9043719.0627918.4052417.9279180.238343690949-0.4356719793296464503874840854600
20.6998819.2462718.2222317.7411817.40757180.388965232495-0.4406740725755726755674587430928
19.7264118.6190918.2655718.0003217.90905180.227813265368-0.4767435192258444503874773745664
24.5601624.4541722.053621.6511921.01133180.521746867025-0.4330998156241162310346883995959312
23.8011722.2248321.3210521.2147821.07495180.196584469266-0.4348181681517292312598683801124888
21.7219120.3818319.4410418.9582418.60952180.368175053879-0.4481587797517954503874773745688
21.7775220.0112918.8578518.2655417.87853180.240924618948-0.4723923805953014503874773745664
22.6823320.2452618.7653518.1908717.78476180.19302789651-0.4553883787903664503874773745664