Query editor
/* ===================================================STAGE 3a (part 2): GDP-ADJUSTED PERSISTENCESave as dune.boc.result_persistence_gdp.The $10 holding threshold is scaled by GDP per capita, so a holding weekmeans the same relative amount in every country:threshold = $10 x (GDP per capita of the country / GDP per capita of Canada)with a floor of $1 (below that, balances are dust; $1 is also the active-week threshold for velocity). Canada is the base because the $10 rule wasset for Canadian wallets, so Canadian results are unchanged.GDP per capita: IMF World Economic Outlook, current US$, 2024 (aspublished by Destatis, 19 Nov 2025). Taiwan and Hong Kong are not in thattable: IMF WEO October 2024 figures for 2024. One source for everycountry. Luno region: average of Nigeria, South Africa and Malaysia(Luno's main markets). This query reads only materialized tables, sore-running it is cheap.One row per (wallet, country) that passes the four screens inresult_wallet_screens.- holding_weeks_gdp: weeks with a balance >= the country threshold on some day- ever_held_gdp: at least one such week (stablecoin user)- passes_persistence_gdp: holding_weeks_gdp >= min(26, half of observed_weeks)=================================================== */WITH gdp (country, gdp_pc) AS (VALUES('Canada', 54531),('United States', 86145),('Australia', 65529),('Netherlands', 67690),('Japan', 32443),('Turkey', 15882),('Austria', 57208),('Mexico', 14034),('South Korea', 36239),('Taiwan', 33234),('Africa and SE Asia (region)', 6689),('Thailand', 7493),('Indonesia', 4958),('India', 2695),('Singapore', 90674),('Iran', 4810),('Poland', 24973),('Argentina', 13523),('Brazil', 10252),('Hong Kong', 53165),('Philippines', 4079),('Ukraine', 5719),('South Africa', 6365),('Switzerland', 104681),('Spain', 35151),('Norway', 86587),('Israel', 54294),('Chile', 16439)),thresholds AS (SELECT g.country,g.gdp_pc,