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.5068623.5237222.3021121.6496321.35847180.100317888912-0.4554745254258874503874916352256
18.8201417.9651617.7408217.501217.45652180.162833286509-0.4948066486091946755674587430928
23.0441322.1906921.4586221.0479321.45812180.198266085602-0.4727825861591322312598683801092120
21.4940520.4047919.916219.6511519.49368180.163199879216-0.4927261215684814503874773745680
23.9269822.4333621.6899520.6678420.07106180.197045235444-0.4334132636353414503874773876752
23.2880422.5549721.640421.6980520.94903180.160579859648-0.4677750464996054503874773746944
25.4143923.3845121.7323220.7168120.22093180.047711345569-0.490918678999996755674595819792
24.8383721.4856719.9961119.3848619.06896180.283389210014-0.4688486221335144503874773745664
22.7881420.5296119.4525819.0352218.59489180.329817713069-0.4897833162225636755399743078416
22.423722.4678622.2743722.6573920.71136180.03456777519-0.4901312932841534503874773712896