-- forked from b2d9bdac-d372-41d2-ad99-e9e198b44221
SELECT MEDIAN(amount_claimed) as median_amount_claimed
FROM (
SELECT RECEIVER AS CLAIMER, amount / 1000000 as amount_claimed
FROM terra.core.ez_transfers
WHERE sender = 'terra1un27xdwxcdt44xgeez7r5ysmc53tmfzyr7km0ydecqj7h5cuxcus5qk5uz'
ORDER BY 2 DESC
)