Query editor
WITH base_stats AS (SELECT * FROM query_6246989 -- C5),nft AS (SELECT * FROM query_6245870 -- C1),dex AS (SELECT * FROM query_6245895 -- C2),erc20 AS (SELECT * FROM query_6246438 -- C3),native AS (SELECT * FROM query_6246948 -- C4)SELECTb.wallet AS wallet_address,b.first_tx_date,b.last_tx_date,b.tx_count,b.active_days,(b.tx_count / NULLIF(b.active_days,0)) AS avg_tx_per_day,b.total_gas_spent,COALESCE(nft.total_nft_buys,0) AS total_nft_buys,COALESCE(nft.total_nft_sells,0) AS total_nft_sells,COALESCE(nft.total_nft_volume_usd,0) AS total_nft_volume_usd,COALESCE(nft.unique_nfts_owned,0) AS unique_nfts_owned,COALESCE(dex.dex_trades,0) AS dex_trades,COALESCE(dex.avg_trade_size_usd,0) AS avg_trade_size_usd,COALESCE(dex.total_traded_usd,0) AS total_traded_usd,COALESCE(erc20.erc20_receive_usd,0) AS erc20_receive_usd,COALESCE(erc20.erc20_send_usd,0) AS erc20_send_usd,COALESCE(native.native_balance_delta,0) AS native_balance_deltaFROM base_stats bLEFT JOIN nft ON nft.wallet = b.walletLEFT JOIN dex ON dex.wallet = b.walletLEFT JOIN erc20 ON erc20.wallet = b.walletLEFT JOIN native ON native.wallet = b.walletORDER BY wallet_address;