-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_trees.tree_census_2005`
(
  objectid INT64 NOT NULL OPTIONS(description=""),
  cen_year INT64 OPTIONS(description="This is the year the tree was inventoried in. Data collection for the 2005 census spanned multiple seasons. Data is in YYYY format."),
  tree_dbh INT64 OPTIONS(description="The diameter of the tree in whole inches, measured at breast height. (4.5 feet from the ground.)"),
  tree_loc STRING OPTIONS(description="Establishes the location of the tree in relation to the address provided"),
  pit_type STRING OPTIONS(description=""),
  soil_lvl STRING OPTIONS(description=""),
  status STRING OPTIONS(description="Excellent: full, well balanced crown and limb structure; leaves normal size color; no dead or broken branches; trunk solid; bark intact. Good: crown uneven or misshapen; some mechanical damage to bark or trunk; some signs of insects or disease; leaves somewhat below normal size and quantity; some dead or broken branches (less than half of the tree). Poor: large dead limbs with over one- half of the tree already dead or removed; large cavities; drastic deformities; leaves significantly below normal size and quantity; severe insect or disease damage. Dead: dead tree; leaves absent; twigs brittle. Shaft: all branches removed; trunk left standing; sprouts may or may not be evident. Stump: stump shorter than breast height; leaves entirely absent or present only on stump sprouts Empty pit: Pit contains exposed soil and no tree"),
  spc_latin STRING OPTIONS(description="The scientific name of the species."),
  spc_common STRING OPTIONS(description="The common name of the species."),
  vert_other BOOL OPTIONS(description="Other Vertical Treatment Present"),
  vert_pgrd BOOL OPTIONS(description="Perimeter guard present"),
  vert_tgrd BOOL OPTIONS(description="Tall guard present"),
  vert_wall BOOL OPTIONS(description="Walled tree well present"),
  horz_blck BOOL OPTIONS(description="Block pavers present"),
  horz_grate BOOL OPTIONS(description="Tree grates present"),
  horz_plant BOOL OPTIONS(description="Plantings present"),
  horz_other BOOL OPTIONS(description="Other horizontal treatment present"),
  sidw_crack BOOL OPTIONS(description="Cracked sidewalk present"),
  sidw_raise BOOL OPTIONS(description="Raised sidewalk present"),
  wire_htap BOOL OPTIONS(description="Indicates the presence of house tap wires"),
  wire_prime BOOL OPTIONS(description="Indicates the presence of primary wires"),
  wire_2nd BOOL OPTIONS(description="Indicates the presence of secondary wires"),
  wire_other BOOL OPTIONS(description="Indicates the presence of other wires"),
  inf_canopy BOOL OPTIONS(description="Canopy debris present"),
  inf_guard BOOL OPTIONS(description="Choking guard or grate present"),
  inf_wires BOOL OPTIONS(description="Choking wires present"),
  inf_paving BOOL OPTIONS(description="Close paving present"),
  inf_outlet BOOL OPTIONS(description="Electrical outlet present"),
  inf_shoes BOOL OPTIONS(description="Sneakers present"),
  inf_lights BOOL OPTIONS(description="Tree lights present"),
  inf_other BOOL OPTIONS(description="Other infrastructure conflicts present"),
  trunk_dmg STRING OPTIONS(description="Describes specific damage or wounds found on the trunk"),
  zipcode STRING OPTIONS(description="2005 zipcode that the tree falls in."),
  zip_city STRING OPTIONS(description="City, as derived from the zipcode"),
  cb_num INT64 OPTIONS(description="Community Board that the tree falls in."),
  borocode INT64 OPTIONS(description="Borough tree is in, using a one-digit borough code: 1 – Manhattan, 2 – Bronx, 3 – Brooklyn, 4 – Queens, 5 – Staten Island"),
  boroname STRING OPTIONS(description="Borough tree is in, full text"),
  cncldist INT64 OPTIONS(description="New York City Council District tree point is in."),
  st_assem INT64 OPTIONS(description="State Assembly District tree point is in."),
  st_senate INT64 OPTIONS(description="State Senate District tree point is in."),
  nta STRING OPTIONS(description="nta code for the neighborhood tabulation area the tree point is in, from the 2010 census"),
  nta_name STRING OPTIONS(description="Nta name for the neighborhood tabulation area the tree point is in"),
  boro_ct INT64 OPTIONS(description="This is the boro_ct identifier for the census tract that the tree point falls into."),
  x_sp INT64 OPTIONS(description="X field"),
  y_sp INT64 OPTIONS(description="y field"),
  objectid_1 INT64 OPTIONS(description=""),
  location_1 STRING OPTIONS(description=""),
  state STRING OPTIONS(description=""),
  latitude FLOAT64 OPTIONS(description=""),
  longitude FLOAT64 OPTIONS(description=""),
  census_tract INT64 OPTIONS(description=""),
  bin INT64 OPTIONS(description=""),
  bbl INT64 OPTIONS(description=""),
  address STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.new_york_trees.tree_census_2005` (objectid, cen_year, tree_dbh, tree_loc, pit_type, soil_lvl, status, spc_latin, spc_common, vert_other, vert_pgrd, vert_tgrd, vert_wall, horz_blck, horz_grate, horz_plant, horz_other, sidw_crack, sidw_raise, wire_htap, wire_prime, wire_2nd, wire_other, inf_canopy, inf_guard, inf_wires, inf_paving, inf_outlet, inf_shoes, inf_lights, inf_other, trunk_dmg, zipcode, zip_city, cb_num, borocode, boroname, cncldist, st_assem, st_senate, nta, nta_name, boro_ct, x_sp, y_sp, objectid_1, location_1, state, latitude, longitude, census_tract, bin, bbl, address) VALUES (1091298, 0, 7, 'Front', 'Lawn', 'Level', 'Good', 'UNKNOWN', 'UNKNOWN', False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, 'None', '0', NULL, 0, 5, '5', 0, 0, 0, NULL, NULL, NULL, 0, 0, 498925, '(0.0, 0.0)', 'New York', 0.0, 0.0, NULL, NULL, NULL, 'cememtary SHARROTT AVENUE'), (1091299, 0, 7, 'Front', 'Lawn', 'Level', 'Good', 'UNKNOWN', 'UNKNOWN', False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, 'None', '0', NULL, 0, 5, '5', 0, 0, 0, NULL, NULL, NULL, 0, 0, 498926, '(0.0, 0.0)', 'New York', 0.0, 0.0, NULL, NULL, NULL, 'cememtary SHARROTT AVENUE'), (1091300, 0, 6, 'Front', 'Lawn', 'Level', 'Good', 'UNKNOWN', 'UNKNOWN', False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, 'None', '0', NULL, 0, 5, '5', 0, 0, 0, NULL, NULL, NULL, 0, 0, 498927, '(0.0, 0.0)', 'New York', 0.0, 0.0, NULL, NULL, NULL, 'cememtary SHARROTT AVENUE'), (1091301, 0, 5, 'Front', 'Lawn', 'Level', 'Good', 'UNKNOWN', 'UNKNOWN', False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, 'None', '0', NULL, 0, 5, '5', 0, 0, 0, NULL, NULL, NULL, 0, 0, 498928, '(0.0, 0.0)', 'New York', 0.0, 0.0, NULL, NULL, NULL, 'cememtary SHARROTT AVENUE'), (1092323, 0, 20, 'Side', 'Continuous Pit', 'Level', 'Good', 'GLEDITSIA TRIACANTHOS', 'HONEYLOCUST', False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, 'None', '0', NULL, 0, 5, '5', 0, 0, 0, NULL, NULL, NULL, 0, 0, 499950, '(0.0, 0.0)', 'New York', 0.0, 0.0, NULL, NULL, NULL, 'not listed DITSON STREET');