-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york.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 STRING OPTIONS(description="Other Vertical Treatment Present"),
  vert_pgrd STRING OPTIONS(description="Perimeter guard present"),
  vert_tgrd STRING OPTIONS(description="Tall guard present"),
  vert_wall STRING OPTIONS(description="Walled tree well present"),
  horz_blck STRING OPTIONS(description="Block pavers present"),
  horz_grate STRING OPTIONS(description="Tree grates present"),
  horz_plant STRING OPTIONS(description="Plantings present"),
  horz_other STRING OPTIONS(description="Other horizontal treatment present"),
  sidw_crack STRING OPTIONS(description="Cracked sidewalk present"),
  sidw_raise STRING OPTIONS(description="Raised sidewalk present"),
  wire_htap STRING OPTIONS(description="Indicates the presence of house tap wires"),
  wire_prime STRING OPTIONS(description="Indicates the presence of primary wires"),
  wire_2nd STRING OPTIONS(description="Indicates the presence of secondary wires"),
  wire_other STRING OPTIONS(description="Indicates the presence of other wires"),
  inf_canopy STRING OPTIONS(description="Canopy debris present"),
  inf_guard STRING OPTIONS(description="Choking guard or grate present"),
  inf_wires STRING OPTIONS(description="Choking wires present"),
  inf_paving STRING OPTIONS(description="Close paving present"),
  inf_outlet STRING OPTIONS(description="Electrical outlet present"),
  inf_shoes STRING OPTIONS(description="Sneakers present"),
  inf_lights STRING OPTIONS(description="Tree lights present"),
  inf_other STRING OPTIONS(description="Other infrastructure conflicts present"),
  trunk_dmg STRING OPTIONS(description="Describes specific damage or wounds found on the trunk"),
  zipcode INT64 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="")
);

INSERT INTO `bigquery-public-data.new_york.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) VALUES (1090640, 0, 12, 'Assigned', 'Lawn', 'Level', 'Good', 'QUERCUS PALUSTRIS', 'OAK, PIN', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'Yes', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'None', 0, '', 0, 5, '5', 0, 0, 0, '', '', NULL, 0, 0, 498267, '(0, 0)'), (1090639, 0, 13, 'Assigned', 'Lawn', 'Level', 'Good', 'QUERCUS PALUSTRIS', 'OAK, PIN', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'None', 0, '', 0, 5, '5', 0, 0, 0, '', '', NULL, 0, 0, 498266, '(0, 0)'), (1091294, 0, 8, 'Front', 'Lawn', 'Level', 'Good', 'UNKNOWN', 'UNKNOWN', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'None', 0, '', 0, 5, '5', 0, 0, 0, '', '', NULL, 0, 0, 498921, '(0, 0)'), (1099282, 0, 13, 'Front', 'Lawn', 'Level', 'Good', 'PLATANUS ACERIFOLIA', 'LONDON PLANETREE', 'No', 'Yes', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'None', 0, '', 0, 5, '5', 0, 0, 0, '', '', NULL, 0, 0, 506909, '(0, 0)'), (1094575, 0, 1, 'Side', 'Lawn', 'Level', 'Excellent', 'UNKNOWN', 'UNKNOWN', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'No', 'None', 0, '', 0, 5, '5', 0, 0, 0, '', '', NULL, 0, 0, 502202, '(0, 0)');