Query editor
WITH categorized AS (SELECTblock_date,tx_hash,amount,amount_usd,CASEWHEN "from" = 0x0000000000000000000000000000000000000000AND "to" <> 0x0000000000000000000000000000000000000000 THEN 'mint'WHEN "to" = 0x0000000000000000000000000000000000000000AND "from" <> 0x0000000000000000000000000000000000000000 THEN 'burn'WHEN "from" <> 0x0000000000000000000000000000000000000000AND "to" <> 0x0000000000000000000000000000000000000000 THEN 'ordinary'ELSE 'other'END AS transfer_categoryFROM tokens.transfersWHERE blockchain = 'robinhood'AND block_month >= DATE '2026-05-01'AND block_month < DATE '2026-09-01'AND contract_address = 0x020bfc650a365f8bb26819deaabf3e21291018b4AND block_time >= TIMESTAMP '2026-05-13 00:00:00 UTC'AND block_time < TIMESTAMP '2026-08-11 00:00:00 UTC')SELECTblock_date AS day,COUNT(*) AS transfer_rows,COUNT(DISTINCT tx_hash) AS distinct_tx_hashes,CAST(COUNT(*) AS DOUBLE)/ NULLIF(COUNT(DISTINCT tx_hash), 0) AS transfer_rows_per_tx,SUM(amount) AS transfer_amount_token,SUM(amount_usd) AS priced_transfer_amount_usd,COUNT_IF(amount_usd IS NOT NULL) AS usd_priced_rows,COUNT_IF(amount_usd IS NULL) AS usd_unpriced_rows,CAST(COUNT_IF(amount_usd IS NOT NULL) AS DOUBLE)/ NULLIF(COUNT(*), 0) AS usd_row_coverage_rate,SUM(amount) FILTER (WHERE amount_usd IS NOT NULL)/ NULLIF(SUM(amount), 0) AS priced_token_amount_share,COUNT_IF(transfer_category = 'mint') AS mint_rows,COUNT_IF(transfer_category = 'burn') AS burn_rows,COUNT_IF(transfer_category = 'ordinary') AS ordinary_rows,COUNT_IF(transfer_category = 'other') AS other_rows,SUM(amount) FILTER (WHERE transfer_category = 'mint') AS mint_amount_token,SUM(amount) FILTER (WHERE transfer_category = 'burn') AS burn_amount_token,SUM(amount) FILTER (WHERE transfer_category = 'ordinary') AS ordinary_amount_token,SUM(amount_usd) FILTER (WHERE transfer_category = 'ordinary'AND amount_usd IS NOT NULL) AS ordinary_priced_amount_usdFROM categorizedGROUP BY block_dateORDER BY day