Query editor
SELECTCOUNT(*) AS total_games,COUNT(DISTINCT player) AS unique_players,SUM(bet_amount) AS total_bet_amount,SUM(payout_amount) AS total_payout_amount,-- Core game profit (excluding bonuses & fees)SUM(bet_amount - payout_amount) AS game_profit,-- RTP & House EdgeSUM(payout_amount) / NULLIF(SUM(bet_amount), 0) AS rtp,1 - (SUM(payout_amount) / NULLIF(SUM(bet_amount), 0)) AS house_edge,-- FeesSUM(entropy_fee) AS total_entropy_fees,SUM(house_fee) AS total_house_fees,SUM(entropy_fee + house_fee) AS total_protocol_fees,-- Bonuses (separate currency)SUM(grimmy_bonus) AS total_grimmy_bonusFROM query_6473529;