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.4757821.9376120.6697620.267820.09987180.10433836627-0.4250191565406664503874773712896
24.4126122.9175122.0713321.5873922.24887180.058860074848-0.4212424714912044503874815688720
22.4176721.9474421.0622720.884920.61153180.105889416119-0.4947112434235894503874773712896
22.7647422.1752821.7218620.8948121.40547180.060297839787-0.4455996119042214503874916352256
22.1772722.2914821.214221.1157120.14806180.105054621992-0.4399373286603126755674620985368
23.4970922.9723421.9257221.8788321.30869180.105573389396-0.4416509744775944503874807267352
23.5680822.6803921.3322420.7323320.62465180.061518460485-0.4913666294125224503874773712896
20.2106219.3623419.0679418.8514718.99019180.194406119079-0.481460346770654503874773745664
20.7399319.4943718.5427818.0400417.7079180.2403695259-0.4805404241518776755674587430928
23.8011722.2248321.3210521.2147821.07495180.196584469266-0.4348181681517292312598683801124888