🚜 ag¶
USDA agricultural economics: crop production and livestock inventory (NASS QuickStats), farm income and wealth (ERS), and crop insurance experience (RMA Summary of Business). County- and state-level, joinable to geo.counties / geo.states via state_fips_code + county_code, to disasters (drought/storm) for yield-impact analysis, and to econ.fred_indicators for commodity-price context.
7 datasets · 119 columns
nass_crop_production · table¶
USDA NASS QuickStats field-crop statistics (production, area planted, area harvested, yield) by county and state. Tall layout — filter statisticcat_desc for a specific measure and unit_desc for its unit. Joins to geo.counties via state_fips_code+county_code and to disasters drought/storm tables by county+year.
| Column | Type | Null | Description |
|---|---|---|---|
year |
integer | no | Data year (partition column) |
source_ |
string | yes | Program source: CENSUS (5-yearly, county-dense) or SURVEY (annual) |
sector_ |
string | yes | NASS sector (CROPS or ANIMALS & PRODUCTS) |
group_ |
string | yes | Commodity group (e.g. FIELD CROPS, LIVESTOCK, POULTRY) |
commodity_ |
string | yes | Commodity (CORN, SOYBEANS, CATTLE, HOGS, ...) |
class_ |
string | yes | Commodity class (e.g. ALL CLASSES, GRAIN) |
prodn_ |
string | yes | Production practice (e.g. ALL PRODUCTION PRACTICES, IRRIGATED) |
util_ |
string | yes | Utilization practice (e.g. GRAIN, SILAGE) |
statisticcat_ |
string | yes | Statistic category (PRODUCTION, AREA HARVESTED, AREA PLANTED, YIELD, INVENTORY) |
domain_ |
string | yes | Domain (TOTAL or a breakdown dimension) |
domaincat_ |
string | yes | Domain category value |
short_ |
string | yes | Full data-item description (the NASS "short_desc") |
unit_ |
string | yes | Unit of the value (BU, LB, TONS, HEAD, ACRES, ...) |
agg_ |
string | yes | Geographic aggregation level (COUNTY or STATE) |
state_ |
string | yes | USPS state abbreviation |
state_ |
string | yes | 2-digit state FIPS code (FK to geo.states.state_fips) |
state_ |
string | yes | State ANSI code |
state_ |
string | yes | State name |
asd_ |
string | yes | Agricultural statistics district code |
asd_ |
string | yes | Agricultural statistics district name |
county_ |
string | yes | County ANSI code |
county_ |
string | yes | 3-digit county FIPS code within state |
county_ |
string | yes | 5-digit county FIPS (state+county, derived) — FK to geo.counties.county_fips |
county_ |
string | yes | County name (empty for state-level rows) |
value |
double | yes | Numeric statistic value (null when NASS suppressed it; see value_flag) |
value_ |
string | yes | NASS suppression marker when value is null: (D) disclosure, (Z) rounds to zero, (X), (NA) |
cv_ |
double | yes | Coefficient of variation (%) of the estimate, when published |
freq_ |
string | yes | Frequency (ANNUAL, ...) |
reference_ |
string | yes | Reference period (YEAR, MARKETING YEAR, ...) |
load_ |
string | yes | NASS record load timestamp |
nass_livestock_inventory · table¶
USDA NASS QuickStats livestock and poultry inventory (head counts) by county and state — cattle, hogs, sheep, chickens, turkeys, etc. Tall layout; use commodity_desc + class_desc for a specific animal class and unit_desc for the unit (HEAD). Joins to geo.counties and to census rural demographics.
| Column | Type | Null | Description |
|---|---|---|---|
year |
integer | no | Data year (partition column) |
source_ |
string | yes | Program source: CENSUS (5-yearly, county-dense) or SURVEY (annual) |
sector_ |
string | yes | NASS sector (CROPS or ANIMALS & PRODUCTS) |
group_ |
string | yes | Commodity group (e.g. FIELD CROPS, LIVESTOCK, POULTRY) |
commodity_ |
string | yes | Commodity (CORN, SOYBEANS, CATTLE, HOGS, ...) |
class_ |
string | yes | Commodity class (e.g. ALL CLASSES, GRAIN) |
prodn_ |
string | yes | Production practice (e.g. ALL PRODUCTION PRACTICES, IRRIGATED) |
util_ |
string | yes | Utilization practice (e.g. GRAIN, SILAGE) |
statisticcat_ |
string | yes | Statistic category (PRODUCTION, AREA HARVESTED, AREA PLANTED, YIELD, INVENTORY) |
domain_ |
string | yes | Domain (TOTAL or a breakdown dimension) |
domaincat_ |
string | yes | Domain category value |
short_ |
string | yes | Full data-item description (the NASS "short_desc") |
unit_ |
string | yes | Unit of the value (BU, LB, TONS, HEAD, ACRES, ...) |
agg_ |
string | yes | Geographic aggregation level (COUNTY or STATE) |
state_ |
string | yes | USPS state abbreviation |
state_ |
string | yes | 2-digit state FIPS code (FK to geo.states.state_fips) |
state_ |
string | yes | State ANSI code |
state_ |
string | yes | State name |
asd_ |
string | yes | Agricultural statistics district code |
asd_ |
string | yes | Agricultural statistics district name |
county_ |
string | yes | County ANSI code |
county_ |
string | yes | 3-digit county FIPS code within state |
county_ |
string | yes | 5-digit county FIPS (state+county, derived) — FK to geo.counties.county_fips |
county_ |
string | yes | County name (empty for state-level rows) |
value |
double | yes | Numeric statistic value (null when NASS suppressed it; see value_flag) |
value_ |
string | yes | NASS suppression marker when value is null: (D) disclosure, (Z) rounds to zero, (X), (NA) |
cv_ |
double | yes | Coefficient of variation (%) of the estimate, when published |
freq_ |
string | yes | Frequency (ANNUAL, ...) |
reference_ |
string | yes | Reference period (YEAR, MARKETING YEAR, ...) |
load_ |
string | yes | NASS record load timestamp |
rma_crop_insurance · table¶
USDA RMA Summary of Business — crop insurance experience by state, county, crop, insurance plan, coverage category, delivery type, and coverage level. Policies, acres, liability, premium, subsidy, indemnity, and loss ratio. Joins to geo.counties via county_fips and to disasters storm/drought tables by county+year for loss attribution.
| Column | Type | Null | Description |
|---|---|---|---|
year |
int | no | Commodity (crop insurance) year — partition column |
state_ |
string | yes | 2-digit state FIPS (FK to geo.states.state_fips) |
state_ |
string | yes | USPS state abbreviation |
county_ |
string | yes | 3-digit county code within state |
county_ |
string | yes | 5-digit county FIPS (state+county, derived) — FK to geo.counties.county_fips |
county_ |
string | yes | County name |
commodity_ |
string | yes | RMA commodity code |
commodity_ |
string | yes | Insured crop name |
insurance_ |
string | yes | Insurance plan code |
insurance_ |
string | yes | Insurance plan abbreviation (YP, APH, RP, ...) |
coverage_ |
string | yes | Coverage category (A=Buyup, C=CAT, E=Existing, L=Limited) |
delivery_ |
string | yes | Delivery type (RCAT/RBUP/FCAT/FBUP) |
coverage_ |
double | yes | Coverage level as a decimal fraction (e.g. 0.65) |
policies_ |
long | yes | Number of policies sold |
policies_ |
long | yes | Policies earning premium |
policies_ |
long | yes | Policies indemnified |
units_ |
long | yes | Insured units earning premium |
units_ |
long | yes | Insured units indemnified |
quantity_ |
string | yes | Unit of net_reported_quantity (Acres, Tons, Pounds, ...) |
net_ |
double | yes | Net reported quantity (in quantity_type units; the net reporting level) |
endorsed_ |
double | yes | Endorsed/companion acres |
liability_ |
double | yes | Total liability (USD) |
total_ |
double | yes | Total premium (USD) |
subsidy_ |
double | yes | Federal premium subsidy (USD) |
state_ |
double | yes | State/private subsidy (USD) |
additional_ |
double | yes | Additional subsidy (USD) |
efa_ |
double | yes | EFA premium discount (USD) |
indemnity_ |
double | yes | Indemnity paid (USD; signed) |
loss_ |
double | yes | Loss ratio (indemnity / total premium) |
ers_farm_income · table¶
USDA ERS Farm Income and Wealth Statistics by state and US total: cash receipts, government payments, production expenses, net farm income, and balance-sheet items. Tall — one row per year x state x variable. Values are generally thousands of USD (see unit_desc; some rows are Percent/Ratio/per farm). Joins to geo.states via the state USPS abbreviation.
| Column | Type | Null | Description |
|---|---|---|---|
year |
int | no | Data year (partition column); most recent 1-2 years are ERS forecasts |
state |
string | yes | USPS state abbreviation, or 'US' for the national total (FK to geo.states.state_abbr) |
artificial_ |
string | yes | ERS stable series code embedding state + variable |
variable_ |
string | yes | Full variable label (category + subcategory) |
category |
string | yes | Variable category (VariableDescriptionPart1) |
subcategory |
string | yes | Variable subcategory (VariableDescriptionPart2) |
amount |
double | yes | Value in the units named by unit_desc (usually thousands of USD; can be negative) |
unit_ |
string | yes | Units: $1,000 (dominant), Percent, Ratio, $1,000 per farm, 1,000 acres |
publication_ |
string | yes | ERS release stamp (e.g. "Data as of February 5, 2026.") |
source |
string | yes | ERS attribution string |
gdp_ |
double | yes | GDP chain-type deflator for the row's year (for nominal->real conversion) |
fsa_commodity_payments · table¶
USDA FSA program and conservation payments aggregated by county, program, and program year (ARC-CO, PLC, CRP, LFP, ERP, DMC, etc.). payments is the summed disbursement (USD); farms is a distinct-payee count (proxy — FSA files carry no farm/operation id). No commodity dimension exists (program is the finest grain). year is the disbursement (vintage) year; program_year is the crop/program year and differs. Joins to geo.counties via county_fips.
| Column | Type | Null | Description |
|---|---|---|---|
year |
int | no | Disbursement (vintage) year — partition column |
program_ |
string | yes | Crop/program year the payment applies to (differs from disbursement year) |
state_ |
string | yes | 2-digit state FIPS (FSA state code; FK to geo.states.state_fips) |
county_ |
string | yes | 5-digit county FIPS (state+county FSA code) — FK to geo.counties.county_fips |
program_ |
string | yes | FSA accounting program code |
program_ |
string | yes | FSA accounting program description (ARC-County, PLC, CRP, LFP, ...) |
payments |
double | yes | Summed disbursement amount (USD) for the county/program/program-year |
farms |
int | yes | Distinct payee count (proxy for number of farms/operations) |
faostat_production · table¶
UN FAO FAOSTAT production, land use, and food-balance statistics per area (country) x item x element x year. Tall — the international analog of the USDA NASS/ERS tables. country_code is the UN M49 / ISO 3166-1 numeric code (FK to ref.countries.iso_numeric); FAO regional/economic-group areas are flagged is_aggregate. Fan out one normalized bulk file per FAOSTAT domain; year is emitted per row and the partition is replaced wholesale on re-run.
| Column | Type | Null | Description |
|---|---|---|---|
country_ |
string | yes | UN M49 / ISO 3166-1 numeric, unpadded (FK to ref.countries.iso_numeric) |
area_ |
string | yes | FAO area name |
item_ |
string | yes | FAO item code (commodity / land class / balance line) |
item_ |
string | yes | Item name (Wheat, Cattle, Arable land, ...) |
element_ |
string | yes | FAO element code (statistic type) |
element_ |
string | yes | Element (Production, Area harvested, Yield, Import quantity, ...) |
year |
integer | no | Data year (partition column; from FAO Year) |
value |
double | yes | Numeric value (null when FAO suppressed / not available) |
unit |
string | yes | Unit (tonnes, ha, hg/ha, 1000 head, ...) |
flag |
string | yes | FAOSTAT observation flag (E=estimate, I=imputed, M=missing, ...) |
is_ |
boolean | yes | True for FAO regional/economic-group areas (Area Code >= 5000) |
faostat_production_enriched · view¶
FAOSTAT rows enriched with country identity from ref.countries (ISO alpha-3, name, M49 region). Country areas only (FAO regional/economic-group aggregates filtered out). The international complement to the U.S. NASS/ERS tables — country-level production, land use, and food balances.
View — columns are resolved by the query engine at runtime.