-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.noaa_gsod.gsod1935`
(
  stn STRING OPTIONS(description="Station number (WMO/DATSAV3 number) for the location"),
  wban STRING OPTIONS(description="WBAN number where applicable--this is the historical \"Weather Bureau Air Force Navy\" number - with WBAN being the acronym"),
  year STRING OPTIONS(description="The year"),
  mo STRING OPTIONS(description="The month"),
  da STRING OPTIONS(description="The day"),
  temp FLOAT64 OPTIONS(description="Mean temperature for the day in degrees Fahrenheit to tenths. Missing = 9999.9"),
  count_temp INT64 OPTIONS(description="Number of observations used in calculating mean temperature"),
  dewp FLOAT64 OPTIONS(description="Mean dew point for the day in degreesm Fahrenheit to tenths.  Missing = 9999.9"),
  count_dewp INT64 OPTIONS(description="Number of observations used in calculating mean dew point"),
  slp FLOAT64 OPTIONS(description="Mean sea level pressure for the day in millibars to tenths. Missing = 9999.9"),
  count_slp INT64 OPTIONS(description="Number of observations used in calculating mean sea level pressure"),
  stp FLOAT64 OPTIONS(description="Mean station pressure for the day in millibars to tenths. Missing = 9999.9"),
  count_stp INT64 OPTIONS(description="Number of observations used in calculating mean station pressure"),
  visib FLOAT64 OPTIONS(description="Mean visibility for the day in miles to tenths.  Missing = 999.9"),
  count_visib INT64 OPTIONS(description="Number of observations used in calculating mean visibility"),
  wdsp STRING OPTIONS(description="Mean wind speed for the day in knots to tenths. Missing = 999.9"),
  count_wdsp STRING OPTIONS(description="Number of observations used in calculating mean wind speed"),
  mxpsd STRING OPTIONS(description="Maximum sustained wind speed reported for the day in knots to tenths. Missing = 999.9"),
  gust FLOAT64 OPTIONS(description="Maximum wind gust reported for the day in knots to tenths. Missing = 999.9"),
  max FLOAT64 OPTIONS(description="Maximum temperature reported during the day in Fahrenheit to tenths--time of max temp report varies by country and region, so this will sometimes not be the max for the calendar day. Missing = 9999.9"),
  flag_max STRING OPTIONS(description="Blank indicates max temp was taken from the explicit max temp report and not from the 'hourly' data.\n* indicates max temp was  derived from the hourly data (i.e., highest hourly or synoptic-reported temperature)"),
  min FLOAT64 OPTIONS(description="Minimum temperature reported during the day in Fahrenheit to tenths--time of min temp report varies by country and region, so this will sometimes not be the min for the calendar day. Missing = 9999.9"),
  flag_min STRING OPTIONS(description="Blank indicates min temp was taken from the explicit min temp report and not from the 'hourly' data.\n* indicates min temp was derived from the hourly data (i.e., lowest hourly or synoptic-reported temperature)"),
  prcp FLOAT64 OPTIONS(description="Total precipitation (rain and/or melted snow) reported during the day in inches and hundredths; will usually not end with the midnight observation--i.e., may include latter part of previous day. \n.00 indicates no measurable precipitation (includes a trace).\nMissing = 99.99\nNote: Many stations do not report '0' on days with no precipitation--therefore, '99.99' will often appear on these days. Also, for example, a station may only report a 6-hour amount for the period during which rain fell. See Flag field for source of data"),
  flag_prcp STRING OPTIONS(description="A = 1 report of 6-hour precipitation amount\nB = Summation of 2 reports of 6-hour precipitation amount\nC = Summation of 3 reports of 6-hour precipitation amount\nD = Summation of 4 reports of 6-hour precipitation amount\nE = 1 report of 12-hour precipitation amount\nF = Summation of 2 reports of 12-hour precipitation amount\nG = 1 report of 24-hour precipitation amount\nH = Station reported '0' as the amount for the day (eg, from 6-hour reports), but also reported at least one occurrence of precipitation in hourly observations--this could indicate a trace occurred, but should be considered as incomplete data for the day.\nI = Station did not report any precip data for the day and did not report any occurrences of precipitation in its hourly observations--it's still possible that precip occurred but was not reported"),
  sndp FLOAT64 OPTIONS(description="Snow depth in inches to tenths--last report for the day if reported more thanonce. Missing = 999.9\nNote: Most stations do not report '0' ondays with no snow on the ground--therefore, '999.9' will often appear on these days"),
  fog STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day"),
  rain_drizzle STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day"),
  snow_ice_pellets STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day"),
  hail STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day"),
  thunder STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day"),
  tornado_funnel_cloud STRING OPTIONS(description="Indicators (1 = yes, 0 = no/not reported) for the occurrence during the day")
)
OPTIONS(
  description="Global summary of day data for 18 surface meteorological elements are derived from the synoptic/hourly observations"
);

INSERT INTO `bigquery-public-data.noaa_gsod.gsod1935` (stn, wban, year, mo, da, temp, count_temp, dewp, count_dewp, slp, count_slp, stp, count_stp, visib, count_visib, wdsp, count_wdsp, mxpsd, gust, max, flag_max, min, flag_min, prcp, flag_prcp, sndp, fog, rain_drizzle, snow_ice_pellets, hail, thunder, tornado_funnel_cloud) VALUES ('722265', '13821', '1935', '10', '17', 72.0, 11, 55.4, 11, 9999.9, 0, 9999.9, 0, 13.3, 11, '9.4', '11', '14.0', 999.9, 79.0, '*', 61.0, '*', 0.0, 'I', 999.9, '0', '0', '0', '0', '0', '0'), ('722265', '13821', '1935', '12', '25', 38.7, 11, 27.9, 11, 9999.9, 0, 9999.9, 0, 4.2, 11, '2.4', '11', '4.1', 999.9, 48.9, '*', 25.0, '*', 0.0, 'I', 999.9, '0', '0', '0', '0', '0', '0'), ('722265', '13821', '1935', '12', '27', 28.5, 11, 18.0, 11, 9999.9, 0, 9999.9, 0, 4.9, 11, '1.4', '11', '4.1', 999.9, 36.0, '*', 18.0, '*', 0.0, 'I', 999.9, '0', '0', '0', '0', '0', '0'), ('722265', '13821', '1935', '12', '29', 38.4, 11, 36.9, 11, 9999.9, 0, 9999.9, 0, 5.0, 11, '9.4', '11', '15.9', 999.9, 43.0, '*', 34.0, '*', 0.0, 'I', 999.9, '0', '0', '0', '0', '0', '0'), ('722265', '13821', '1935', '12', '31', 36.2, 11, 28.2, 11, 9999.9, 0, 9999.9, 0, 2.9, 11, '4.2', '11', '8.0', 999.9, 39.9, '*', 32.0, '*', 0.0, 'I', 999.9, '0', '0', '0', '0', '0', '0');