Query editor
WITH u AS (SELECT 'Robinhood' AS chain, * FROM query_8224328 WHERE scope='Chain-wide search spam' UNION ALL SELECT 'BNB' AS chain, * FROM query_8224329 WHERE scope='Chain-wide search spam') SELECT chain, count(*) AS sampled_days, 40*count(*) AS sampled_minutes, sum(detected_transactions) AS detected_search_spam_transactions, sum(sampled_chain_transactions) AS sampled_chain_transactions, 100e0*sum(detected_transactions)/NULLIF(sum(sampled_chain_transactions),0) AS transaction_share_pct, sum(gas_used) AS detected_search_spam_gas_used, sum(sampled_chain_gas_used) AS sampled_chain_gas_used, 100e0*sum(gas_used)/NULLIF(sum(sampled_chain_gas_used),0) AS gas_used_share_pct, sum(fees_usd) AS detected_search_spam_fees_usd, sum(sampled_chain_fees_usd) AS sampled_chain_fees_usd, 100e0*sum(fees_usd)/NULLIF(sum(sampled_chain_fees_usd),0) AS gross_fee_share_pct FROM u GROUP BY 1 ORDER BY 1 DESC