-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.usda_nass_agriculture.census_2007`
(
  source_desc STRING OPTIONS(description="Source of data (CENSUS or SURVEY). Census program includes the Census of Ag as well as follow up projects. Survey program includes national, state, and county surveys."),
  sector_desc STRING OPTIONS(description="Five high level, broad categories useful to narrow down choices (CROPS, ANIMALS & PRODUCTS, ECONOMICS, DEMOGRAPHICS, and ENVIRONMENTAL)."),
  group_desc STRING OPTIONS(description="Subsets within sector (e.g., under sector = CROPS, the groups are FIELD CROPS, FRUIT & TREE NUTS, HORTICULTURE, and VEGETABLES)."),
  commodity_desc STRING OPTIONS(description="The primary subject of interest (e.g., CORN, CATTLE, LABOR, TRACTORS, OPERATORS)."),
  class_desc STRING OPTIONS(description="Generally a physical attribute (e.g., variety, size, color, gender) of the commodity."),
  prodn_practice_desc STRING OPTIONS(description="A method of production or action taken on the commodity (e.g., IRRIGATED, ORGANIC, ON FEED)."),
  util_practice_desc STRING OPTIONS(description="Utilizations (e.g., GRAIN, FROZEN, SLAUGHTER) or marketing channels (e.g., FRESH MARKET, PROCESSING, RETAIL)."),
  statisticcat_desc STRING OPTIONS(description="The aspect of a commodity being measured (e.g., AREA HARVESTED, PRICE RECEIVED, INVENTORY, SALES)."),
  unit_desc STRING OPTIONS(description="The unit associated with the statistic category (e.g., ACRES, $ / LB, HEAD, $, OPERATIONS)."),
  short_desc STRING OPTIONS(description="A concatenation of six columns: commodity_desc, class_desc, prodn_practice_desc, util_practice_desc, statisticcat_desc, and unit_desc."),
  domain_desc STRING OPTIONS(description="Generally another characteristic of operations that produce a particular commodity (e.g., ECONOMIC CLASS, AREA OPERATED, NAICS CLASSIFICATION, SALES). For chemical usage data, the domain describes the type of chemical applied to the commodity. The domain = TOTAL will have no further breakouts; i.e., the data value pertains completely to the short_desc."),
  domaincat_desc STRING OPTIONS(description="Categories or partitions within a domain (e.g., under domain = SALES, domain categories include $1,000 TO $9,999, $10,000 TO $19,999, etc)."),
  agg_level_desc STRING OPTIONS(description="Aggregation level or geographic granularity of the data (e.g., STATE, AG DISTRICT, COUNTY, REGION, ZIP CODE)."),
  state_ansi INT64 OPTIONS(description="American National Standards Institute (ANSI) standard 2-digit state codes."),
  state_fips_code INT64 OPTIONS(description="NASS 2-digit state codes; include 99 and 98 for US TOTAL and OTHER STATES, respectively; otherwise match ANSI codes."),
  state_alpha STRING OPTIONS(description="State abbreviation, 2-character alpha code."),
  state_name STRING OPTIONS(description="State full name."),
  asd_code INT64 OPTIONS(description="NASS defined county groups, unique within a state, 2-digit ag statistics district code."),
  asd_desc STRING OPTIONS(description="Ag statistics district name."),
  county_ansi INT64 OPTIONS(description="ANSI standard 3-digit county codes."),
  county_code INT64 OPTIONS(description="NASS 3-digit county codes; includes 998 for OTHER (COMBINED) COUNTIES and Alaska county codes; otherwise match ANSI codes."),
  county_name STRING OPTIONS(description="County name."),
  region_desc STRING OPTIONS(description="NASS defined geographic entities not readily defined by other standard geographic levels. A region can be a less than a state (SUB-STATE) or a group of states (MULTI-STATE), and may be specific to a commodity."),
  zip_5 INT64 OPTIONS(description="US Postal Service 5-digit zip code."),
  watershed_code INT64 OPTIONS(description="US Geological Survey (USGS) 8-digit Hydrologic Unit Code (HUC) for watersheds."),
  watershed_desc STRING OPTIONS(description="Name assigned to the HUC."),
  congr_district_code INT64 OPTIONS(description="US Congressional District 2-digit code."),
  country_code INT64 OPTIONS(description="US Census Bureau, Foreign Trade Division 4-digit country code, as of April, 2007."),
  country_name STRING OPTIONS(description="Country name."),
  location_desc STRING OPTIONS(description="Full description for the location dimension."),
  year INT64 OPTIONS(description="The numeric year of the data."),
  freq_desc STRING OPTIONS(description="Length of time covered (ANNUAL, SEASON, MONTHLY, WEEKLY, POINT IN TIME). MONTHLY often covers more than one month. POINT IN TIME is as of a particular day."),
  begin_code INT64 OPTIONS(description="If applicable, a 2-digit code corresponding to the beginning of the reference period (e.g., for freq_desc = MONTHLY, begin_code ranges from 01 (January) to 12 (December))."),
  end_code INT64 OPTIONS(description="If applicable, a 2-digit code corresponding to the end of the reference period (e.g., the reference period of JAN THRU MAR will have begin_code = 01 and end_code = 03)."),
  reference_period_desc STRING OPTIONS(description="The specific time frame, within a freq_desc."),
  week_ending DATE OPTIONS(description="Week ending date, used when freq_desc = WEEKLY."),
  load_time TIMESTAMP OPTIONS(description="Date and time indicating when record was inserted into Quick Stats database."),
  value FLOAT64 OPTIONS(description="Published data value."),
  value_suppression_code STRING OPTIONS(description="Any suppression codes used to avoid displaying data that should not be disclosed or from putting out data lower than the precision level defined by NASS. Code definitions can be found in the NASS publications."),
  cv_percent FLOAT64 OPTIONS(description="Coefficient of variation. Available for the 2012 Census of Agriculture only. County-level CVs are generalized."),
  cv_suppression_code STRING OPTIONS(description="Any suppression codes used to avoid displaying data that should not be disclosed or from putting out data lower than the precision level defined by NASS. Code definitions can be found in the NASS publications.")
);

INSERT INTO `bigquery-public-data.usda_nass_agriculture.census_2007` (source_desc, sector_desc, group_desc, commodity_desc, class_desc, prodn_practice_desc, util_practice_desc, statisticcat_desc, unit_desc, short_desc, domain_desc, domaincat_desc, agg_level_desc, state_ansi, state_fips_code, state_alpha, state_name, asd_code, asd_desc, county_ansi, county_code, county_name, region_desc, zip_5, watershed_code, watershed_desc, congr_district_code, country_code, country_name, location_desc, year, freq_desc, begin_code, end_code, reference_period_desc, week_ending, load_time, value, value_suppression_code, cv_percent, cv_suppression_code) VALUES ('CENSUS', 'ECONOMICS', 'FARMS & LAND & ASSETS', 'AG LAND', 'ALL CLASSES', 'ALL PRODUCTION PRACTICES', 'ALL UTILIZATION PRACTICES', 'AREA', 'ACRES', 'AG LAND - ACRES', 'AREA OPERATED AND IRRIGATION STATUS', 'AREA OPERATED: (180 TO 219 ACRES) AND IRRIGATION STATUS: (ANY ON OPERATION)', 'STATE', 39, 39, 'OH', 'OHIO', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 9000, 'UNITED STATES', 'OHIO', 2007, 'ANNUAL', 0, 0, 'YEAR', 'NaT', '2012-01-01 00:00:00+00:00', 8457.0, NULL, nan, NULL), ('CENSUS', 'ECONOMICS', 'FARMS & LAND & ASSETS', 'AG LAND', 'ALL CLASSES', 'ALL PRODUCTION PRACTICES', 'ALL UTILIZATION PRACTICES', 'AREA', 'ACRES', 'AG LAND - ACRES', 'AREA OPERATED AND IRRIGATION STATUS', 'AREA OPERATED: (100 TO 139 ACRES) AND IRRIGATION STATUS: (ANY ON OPERATION)', 'STATE', 16, 16, 'ID', 'IDAHO', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 9000, 'UNITED STATES', 'IDAHO', 2007, 'ANNUAL', 0, 0, 'YEAR', 'NaT', '2012-01-01 00:00:00+00:00', 85214.0, NULL, nan, NULL), ('CENSUS', 'ECONOMICS', 'FARMS & LAND & ASSETS', 'AG LAND', 'ALL CLASSES', 'ALL PRODUCTION PRACTICES', 'ALL UTILIZATION PRACTICES', 'AREA', 'ACRES', 'AG LAND - ACRES', 'AREA OPERATED AND IRRIGATION STATUS', 'AREA OPERATED: (70.0 TO 99.9 ACRES) AND IRRIGATION STATUS: (ANY ON OPERATION)', 'STATE', 23, 23, 'ME', 'MAINE', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 9000, 'UNITED STATES', 'MAINE', 2007, 'ANNUAL', 0, 0, 'YEAR', 'NaT', '2012-01-01 00:00:00+00:00', 5358.0, NULL, nan, NULL), ('CENSUS', 'ECONOMICS', 'FARMS & LAND & ASSETS', 'AG LAND', 'ALL CLASSES', 'ALL PRODUCTION PRACTICES', 'ALL UTILIZATION PRACTICES', 'AREA', 'ACRES', 'AG LAND - ACRES', 'IRRIGATION STATUS', 'IRRIGATION STATUS: (ANY ON OPERATION)', 'STATE', 2, 2, 'AK', 'ALASKA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 9000, 'UNITED STATES', 'ALASKA', 2007, 'ANNUAL', 0, 0, 'YEAR', 'NaT', '2012-01-01 00:00:00+00:00', 71074.0, NULL, nan, NULL), ('CENSUS', 'ECONOMICS', 'FARMS & LAND & ASSETS', 'AG LAND', 'ALL CLASSES', 'ALL PRODUCTION PRACTICES', 'ALL UTILIZATION PRACTICES', 'AREA', 'ACRES', 'AG LAND - ACRES', 'AREA OPERATED AND IRRIGATION STATUS', 'AREA OPERATED: (10.0 TO 49.9 ACRES) AND IRRIGATION STATUS: (ANY ON OPERATION)', 'STATE', 2, 2, 'AK', 'ALASKA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 9000, 'UNITED STATES', 'ALASKA', 2007, 'ANNUAL', 0, 0, 'YEAR', 'NaT', '2012-01-01 00:00:00+00:00', 926.0, NULL, nan, NULL);