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
19.5004317.6347816.6779516.2364915.87566180.0000021124720.4148928103147186755674587430928
23.1423822.9168221.9019121.4288820.89845180.0021834068170.3401629758711534503874773712896
21.4258220.3628319.4798319.0425818.70147180.0021866801-0.0652209184157864503874773745664
22.4003821.8390620.7720520.0196619.72326180.002187817705-0.2392135072667514503874773712896
23.5309822.6739422.2122322.1712521.87223180.004606389103-0.3619709436216454503874773712896
24.0030524.094522.5349422.6909821.65945180.002217446773-0.04157554666467854503874907930624
23.745422.606421.1220420.2054219.86932180.0023623456640.3319543784045684503874773712896
24.4037622.9785422.1435322.4503421.65503180.0046634827910.2618535264595994503874782101760
22.675523.1116722.1678321.5354720.75793180.004682047142-0.390222136387144503874782102016
26.1128823.0254122.236221.9050322.2442180.0069587441770.2842446204742274503874773712896