Query editor
-- part of a query repo-- query name: States distribution-- query link: https://dune.com/queries/3128728-- Distribution of Fabrica properties by US state-- Uses uploaded CSV data from Fabrica's systems-- Filters out low-confidence tokens (score < 2142)SELECTstate AS "State",COUNT(*) AS "Properties",SUM(CAST(acres AS DOUBLE)) AS "Total Acres",SUM(CAST(estimated_value_usd AS DOUBLE)) AS "Total Estimated Value"FROM dune.fabrica.dataset_fabrica_tokensWHERE is_valid = trueAND state IS NOT NULLAND state != ''AND CAST(supply AS INTEGER) > 0GROUP BY stateORDER BY "Properties" DESC