-- 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 = 'terra1qdg94xw7vru5x57zf0gsjak7qzq46kptfm6y0s8ypsx3aqn9h7ts4p406e'
ORDER BY 2 DESC
)