Query editor
WITH t_ AS (SELECT t.* FROM dune.kxnshwdwn.result_showdown_tournaments t LEFT JOIN dune.kxnshwdwn.dataset_showdown_games g ON g.id = t.platform_id WHERE '{{game}}' = 'All' OR ('{{game}}' = 'CS2' AND g.game = 'CS2') OR ('{{game}}' = 'Chess' AND g.game = 'LICHESS'))SELECT created_at, tournament_type AS type, max_participants AS capacity, team_size, joins,round(100.0 * fill_ratio, 0) AS fill_pct, status, entry_fee AS entry_fee_usdc, sponsored_pool AS sponsored_pool_usdc,'https://solscan.io/account/' || tournament AS tournamentFROM t_ORDER BY created_at DESC