Query editor
-- =====================================================================-- Robinhood Chain — Discovery v2B-R2-QA1-v3.2-- Optimizer-Safe Full-Population Classifier Parity — COMPLETE REPLACEMENT-- =====================================================================---- CUSTODY-- * Replaces QA1-v3.1 SHA-256-- b2f20e4e257df094cef26d158329b1c38c2ad620b206902de308c98fd1537944.-- * v3.1 did not execute because Dune rejected its correlated summary-- unpivot at line 980. Execution ID: 01KZYS0MY6473P461YXNJM9XM5.-- * The compile failure produced no parity result and changes no evidence.-- * Frozen R2 remains unchanged under SHA-256-- 2187cd53c61a3b180b3e7a4086431d8d279a5c06a9f4d9fd4be62181a3b7853.-- * data_version = qa1v3.2-r2parity-20260814-001.---- OPTIMIZER CORRECTION-- * No inline 5,290-wallet VALUES block.-- * No correlated subquery, LATERAL join, summary unpivot or final UNION.-- * Emits one WALLET row per current mirrored candidate. Population totals,-- frozen-5,290 survival and pass/fail metrics are recomputed exactly from-- the exported CSV against the already-frozen R2 CSV.-- * Exact action-invariant breach tx hashes are retained per wallet in-- action_invariant_breach_tx_hashes; no separate BREACH branch is needed.---- STRICT RECEIPT SURFACE-- * Raw robinhood.logs downstream of the accepted R2 mirror.-- * ERC20 guard: Transfer topic0; topic1/topic2 present; topic3 NULL.-- * Positive value filtering; SELF removed before token/direction counts.-- * Installed bases only: WETH and USDG. Every other ERC20 is target.-- * Native OUT exact only for trader -> SwapRouter02 top-level value.-- * Possible native IN remains explicitly unresolved for calldata replay.---- POST-EXPORT PASS CONDITIONS-- Sum action_invariant_breach_count = 0.-- Count origin_chain_holds = FALSE = 0.-- Count exact_partition_holds = FALSE = 0.-- Count strict_gate_gain = TRUE = 0.-- Sum bucket_explicit_residual = 0.-- Sum current_mirrored_actions = Sum strict_actions + Sum non_strict_actions.-- =====================================================================WITHparams AS (SELECTDATE '2026-08-12' AS cutoff_date,DATE '2026-07-13' AS recent_start_date,DATE '2026-08-05' AS fresh_start_date,3 AS loose_min_mirrored_buys_30d,2 AS loose_min_mirrored_buy_days_30d,2 AS loose_min_mirrored_targets_30d,1 AS loose_min_mirrored_buys_7d),contracts AS (SELECT0x0000000000000000000000000000000000000000 AS zero_address,0x0bd7d308f8e1639fab988df18a8011f41eacad73 AS weth,0x5fc5360d0400a0fd4f2af552add042d716f1d168 AS usdg,0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34 AS usde,