-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.noaa_tsunami.historical_runups`
(
  id INT64 OPTIONS(description="The unique numeric identifier of the record."),
  tsevent_id INT64 OPTIONS(description="The unique numeric identifier of the tsunami source event record that links the runup with the event."),
  year INT64 OPTIONS(description="Valid values: -2000 to Present Format +/-yyyy (-is B.C, +is A.D.)  The Date and Time are given in Universal Coordinated Time (also known as Greenwich Mean Time). The local date may be one day different."),
  month INT64 OPTIONS(description="Valid values: 1-12 The Date and Time are given in Universal Coordinated Time (also known as Greenwich Mean Time). The local date may be one day different."),
  day INT64 OPTIONS(description="Valid values: 1-31 (where months apply) The Date and Time are given in Universal Coordinated Time (also known as Greenwich Mean Time). The local date may be one day different."),
  timestamp DATETIME OPTIONS(description="Timestamp in UTC."),
  doubtful STRING OPTIONS(description="A \"?\" in the Doubtful column indicates a doubtful runup entry.  An \"M\" indicates the waves likely had a meteorologic source, and thus were not true tsunami waves."),
  country STRING OPTIONS(description="The country where the tsunami effects were observed."),
  state STRING OPTIONS(description="The State, Province or Prefecture where the tsunami effects were observed."),
  location_name STRING OPTIONS(description="The location (city, state or island) where the tsunami effects were observed."),
  latitude FLOAT64 OPTIONS(description="Valid values: -90 to +90 Latitude: 0 to 90 (Northern Hemisphere) -90 to 0 (Southern Hemisphere)  The latitude and longitude of the location (city, state or island) where the tsunami effects occurred."),
  longitude FLOAT64 OPTIONS(description="Valid values: -180 to +180 Longitude: 0 to 180 (Eastern Hemisphere) -180 to 0 (Western Hemisphere)  The latitude and longitude of the location (city, state or island) where the tsunami effects occurred."),
  region_code INT64 OPTIONS(description="Regional boundaries are based on frequency of occurrence of tsunamigenic events, geophysical relations, risk in distant areas and political justification. 77 =\tWest Coast of Africa 78 =\tCentral Africa 73 =\tNortheast Atlantic Ocean 72 =\tNorthwest Atlantic Ocean 70 =\tSoutheast Atlantic Ocean 71 =\tSouthwest Atlantic Ocean 75 =\tE. Coast USA and Canada, St Pierre and Miquelon 76 =\tGulf of Mexico 74 =\tCaribbean Sea and Bermuda 40 =\tBlack Sea and Caspian Sea 50 =\tMediterranean Sea 30 =\tRed Sea and Persian Gulf 60 =\tIndian Ocean (including west coast of Australia) 87 =\tAlaska (including Aleutian Islands) 84 =\tChina, North and South Korea, Philippines, Taiwan 81 =\tE Coast Australia, New Zealand, South Pacific Is. 80 =\tHawaii, Johnston Atoll, Midway I 83 =\tE. Indonesia (Pacific Ocean) and Malaysia 82 =\tNew Caledonia, New Guinea, Solomon Is., Vanuatu 86 =\tKamchatka and Kuril Islands 85 =\tJapan 88 =\tWest Coast of North and Central America 89 =\tWest Coast of South America"),
  distance_from_source INT64 OPTIONS(description="The distance from the tsunami event source to the runup location."),
  arr_day INT64 OPTIONS(description=""),
  arr_hour INT64 OPTIONS(description=""),
  arr_min INT64 OPTIONS(description=""),
  travel_time_hours INT64 OPTIONS(description=""),
  travel_time_minutes INT64 OPTIONS(description=""),
  water_ht FLOAT64 OPTIONS(description="The maximum water height above sea level in meters. See image and text below for more information. If the type of measurement is:  Type 1: Water height - Eyewitness observation - the maximum elevation the wave. Type 2: Tide Gauge - half of the maximum height (minus the normal tide)of a tsunami wave recorded at the coast by a tide gauge. Type 3: Deep Ocean Gauge - half of the maximum height (minus the normal tide) of a tsunami wave recorded in the open ocean by a seafloor bottom pressure recording system. Type 4: Water height (Post-tsunami survey measurement)  Type 5: Runup Height (Post-tsunami survey measurement)  Type 8: Runup Height in Harbor (Post-tsunami survey measurement)  Type 10: Flow Depth (Post-tsunami survey measurement) depth of the water. Type 9: Splash mark (Post-tsunami survey measurement) Type 6: Atmospheric Wave  Type 7: Seiche"),
  horizontal_inundation FLOAT64 OPTIONS(description="The maximum horizontal distance of inland flooding (in meters)"),
  type_measurement_id INT64 OPTIONS(description="Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  See text below for more information. 1 = Eyewitness measurement 5 = Runup Height, Post-tsunami survey measurement 4 = Water height, Post-tsunami survey measurement 8 = Water height in harbor, Post-tsunami survey measurement 10 = Flow Depth, Post-tsunami survey measurement 9 = Splash mark, Post-tsunami survey measurement 2 = Tide-gauge measurement 3 = Deep ocean gauge 6 = Atmospheric Wave 7 = Seiche"),
  period FLOAT64 OPTIONS(description="The period is in minutes and, when available, is the period of the first cycle."),
  first_motion STRING OPTIONS(description="The first motion of the wave whether rise or fall.  R = Rise F = Fall"),
  deaths INT64 OPTIONS(description="Deaths from the tsunami at the specific runup location."),
  deaths_description INT64 OPTIONS(description="Valid values: 0 to 4 When a description was found in the historical literature instead of an actual number of deaths, this value was coded and listed in the Deaths De column. If the actual number of deaths was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 deaths) 2 = Some (~51 to 100 deaths) 3 = Many (~101 to 1000 deaths) 4 = Very Many (~1001 or more deaths)"),
  injuries INT64 OPTIONS(description="Whenever possible, numbers of injuries from the tsunami at the specific runup location are listed; may also include injuries from the earthquake that triggered the tsunami."),
  injuries_description INT64 OPTIONS(description="Valid values: 0 to 4 When a description was found in the historical literature instead of an actual number of injuries, this value was coded and listed in the Injuries De column. If the actual number of injuries was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 injuries) 2 = Some(~51 to 100 injuries) 3 = Many (~101 to 1000 injuries) 4 = Very Many (~1001 or more injuries)"),
  damage_millions_dollars FLOAT64 OPTIONS(description="The value in the Damage column should be multipled by 1,000,000 to obtain the actual dollar amount.  When a dollar amount for damage was found in the literature, it was listed in the Damage column in millions of U.S. dollars. The dollar value listed is the value at the time of the event. To convert the damage to current dollar values today, please use the Consumer Price Index Calculator. Monetary conversion tables for the time of the event were used to convert foreign currency to U.S. dollars."),
  damage_description INT64 OPTIONS(description="For those events not offering a monetary evaluation of damage, the following five-level scale was used to classify damage (1990 dollars) and was listed in the Damage De column. If the actual dollar amount of damage was listed, a descriptor was also added for search purposes.  0 = NONE 1 = LIMITED (roughly corresponding to less than $1 million) 2 = MODERATE (~$1 to $5 million) 3 = SEVERE (~>$5 to $24 million) 4 = EXTREME (~$25 million or more)"),
  houses_damaged INT64 OPTIONS(description="Valid values: 0 to Whenever possible, number of houses damaged by the tsunami at the specific runup location are listed; may also include houses damaged by the earthquake that triggered the tsunami."),
  houses_damaged_description INT64 OPTIONS(description="Valid values: 0 to 4 For those events not offering an exact number of houses damaged, the following four-level scale was used to classify the damage and was listed in the Houses Damaged De column. If the actual number of houses damaged was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 houses) 2 = Some (~51 to 100 houses) 3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)"),
  houses_destroyed INT64 OPTIONS(description="Whenever possible, number of houses destroyed by the tsunami at the specific runup location are listed; may also include houses destroyed by the earthquake that triggered the tsunami."),
  houses_destroyed_description INT64 OPTIONS(description="Valid values: 0 to 4 For those events not offering an exact number of houses destroyed, the following four-level scale was used to classify the destruction and was listed in the Houses Destroyed De column. If the actual number of houses destroyed was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 houses) 2 = Some (~51 to 100 houses) 3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)")
);

INSERT INTO `bigquery-public-data.noaa_tsunami.historical_runups` (id, tsevent_id, year, month, day, timestamp, doubtful, country, state, location_name, latitude, longitude, region_code, distance_from_source, arr_day, arr_hour, arr_min, travel_time_hours, travel_time_minutes, water_ht, horizontal_inundation, type_measurement_id, period, first_motion, deaths, deaths_description, injuries, injuries_description, damage_millions_dollars, damage_description, houses_damaged, houses_damaged_description, houses_destroyed, houses_destroyed_description) VALUES (942, 966, 1867, 11, 18, '1867-11-18 18:45:00', NULL, 'USA TERRITORY', 'VI', 'ST. CROIX:  FREDERIKSTED', 17.711667, -64.881944, 74, 49, 18, 18, 57, 0, 12, 7.6, 76.0, 1, nan, 'F', 5, 1, 4, 1, nan, 1, NULL, NULL, 20, 1), (9647, 2792, 1917, 12, 6, '1917-12-06 13:04:00', NULL, 'CANADA', 'NS', 'TUFTS COVE, NOVA SCOTIA', 44.68, -63.6, 75, 5, 6, 13, 6, 0, 2, nan, nan, 1, nan, NULL, 9, 1, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (9946, 2792, 1917, 12, 6, '1917-12-06 13:04:00', NULL, 'CANADA', 'NS', 'TURTLE GROVE, NOVA SCOTIA', 44.68, -63.6, 75, 5, 6, 13, 6, 0, 2, nan, nan, 1, nan, NULL, 7, 1, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (1004, 983, 1868, 8, 13, '1868-08-13 21:30:00', NULL, 'NEW ZEALAND', NULL, 'TUPUNGA, CHATHAM IS.', -43.8, -176.0, 81, 9732, 14, 12, 30, 15, NULL, nan, nan, 1, nan, NULL, 1, 1, NULL, NULL, nan, 2, NULL, 3, NULL, 3), (1787, 1457, 1918, 9, 7, '1918-09-07 17:16:00', NULL, 'RUSSIA', 'KURIL ISLANDS', 'OPASNAIA BAY, URUP I,  KURILSKIYE', 45.91486, 150.135, 86, 116, 7, 17, 46, 0, 30, 12.0, nan, 1, nan, NULL, 23, 1, 7, 1, nan, 2, NULL, NULL, NULL, 2);