-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.noaa_tsunami.historical_source_event`
(
  id INT64 OPTIONS(description="The unique numeric identifier of the record."),
  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.  Please see the Caveat and Uncertainties in the Significant Earthquake and Tsunami Databases in the Significant Earthquake Database Introduction for more information on the completeness and accuracy of this database."),
  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."),
  event_validity INT64 OPTIONS(description="Valid values: -1 to 4 Validity of the actual tsunami occurrence is indicated by a numerical rating of the reports of that event:  4 = definite tsunami 3 = probable tsunami 2 = questionable tsunami 1 = very doubtful tsunami 0 = event that only caused a seiche or disturbance in an inland river -1 = erroneous entry"),
  cause_code INT64 OPTIONS(description="Valid values: 0 to 11 The source of the tsunami:  0 = Unknown 1 = Earthquake 2 = Questionable Earthquake 3 = Earthquake and Landslide 4 = Volcano and Earthquake 5 = Volcano, Earthquake, and Landslide 6 = Volcano 7 = Volcano and Landslide 8 = Landslide 9 = Meteorological 10 = Explosion 11 = Astronomical Tide"),
  focal_depth INT64 OPTIONS(description="Valid values: 0 to 700 km The depth of the earthquake is given in kilometers."),
  primary_magnitude FLOAT64 OPTIONS(description="Valid values: 0.0 to 9.9 The value in this column contains the primary earthquake magnitude. Magnitude measures the energy released at the source of the earthquake. Magnitude is determined from measurements on seismographs. For pre-instrumental events, the magnitudes are derived from intensities. There are several different scales for measuring earthquake magnitudes. The primary magnitude is chosen from the available magnitude scales in this order:  Mw Magnitude  Ms Magnitude  Mb Magnitude  Ml Magnitude  Mfa Magnitude  Unknown Magnitude"),
  country STRING OPTIONS(description="The Country where the tsunami source occurred (For example enter: Japan or Russia)"),
  state STRING OPTIONS(description="The two-letter State or Province abbreviation where the Earthquake occurred."),
  location_name STRING OPTIONS(description="The Country, State, Province or Island where the tsunami source occurred (For example enter: Japan or Honshu) This is only an approximate geographic location. Events prior to 1900 were not instrumentally located, therefore, the location given is based on the latitude and longitude of the city where the maximum effects occurred. If there are different spellings of a city name the additional names are in parentheses."),
  latitude FLOAT64 OPTIONS(description="Valid values: -90 to +90 Latitude: 0 to 90 (Northern Hemisphere) -90 to 0 (Southern Hemisphere)  Events prior to 1900 were not instrumentally located, therefore, the location given is based on the latitude and longitude of the city where the maximum effects occurred.  The event coordinates of over 800 tsunami sources in this database are not known and the latitude and longitude are listed as null. Therefore, to retrieve all the events from a particular country or state, leave the event coordinates search parameter blank and enter the country or select the region name."),
  longitude FLOAT64 OPTIONS(description="Valid values: -180 to +180 Longitude: 0 to 180 (Eastern Hemisphere) -180 to 0 (Western Hemisphere)  Events prior to 1900 were not instrumentally located, therefore, the location given is based on the latitude and longitude of the city where the maximum effects occurred.  The event coordinates of over 800 tsunami sources in this database are not known and the latitude and longitude are listed as null. Therefore, to retrieve all the events from a particular country or state, leave the event coordinates search parameter blank and enter the country or select the region name."),
  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 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"),
  maximum_water_height FLOAT64 OPTIONS(description="The maximum water height above sea level in meters for this event. If the type of measurement of the runup was a:  Tide Gauge - half of the maximum height (minus the normal tide)of a tsunami wave recorded at the coast by a tide gauge. Runup Height - the maximum elevation the wave reaches at the maximum inundation."),
  abe FLOAT64 OPTIONS(description="Valid values: -5 to 10 Abe defined two different tsunami magnitude amplitudes. His first tsunami magnitude (1979) is:  Mt = logH + B  where H is the maximum single crest or trough amplitude of the tsunami waves (in meters) and B a constant. The second definition (1981) is:  Mt = logH + alogR + D  where R is the distance in km from the earthquake epicenter to the tide station along the shortest oceanic path, and a and D are constants."),
  iida FLOAT64 OPTIONS(description="Valid values: -5 to 10 Tsunami magnitude (M) is defined by Iida and others (1967) as  M = log2h, where \"h\" is the maximum runup height of the wave."),
  soloviev FLOAT64 OPTIONS(description="Valid values: -5 to 10 Tsunami intensity is defined by Soloviev and Go (1974) as  I = log2(21/2 * h), where \"h\" is the maximum runup height of the wave."),
  warning_status INT64 OPTIONS(description="Valid values: -1 to 4 Warning Status of the Tsunami:  -1=Status unknown 0=no warning issued 1=PTW - Pacific-wide Tsunami Warning issued by PTWC 2=RTW - Regional Tsunami Warning issued by PTWC for areas having no TWS 3=LTW - Local Tsunami Warning issued by regional or national TWC 4=TIB - Tsunami Information or Attention Bulletin issued by any agency"),
  deaths INT64 OPTIONS(description="If an actual number of deaths due to the tsunami is known, enter a number in this search field. If only a description is available such as \"few\", \"some\", or \"many\", the database can be searched using the search field:Death Description"),
  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)"),
  missing INT64 OPTIONS(description="Whenever possible, numbers of Missing from the tsunami are listed."),
  missing_description INT64 OPTIONS(description="Valid values: 0 to 4 When a description was found in the historical literature instead of an actual number of missing, this value was coded and listed in the Missing De column. If the actual number of missing was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 missing) 2 = Some(~51 to 100 missing) 3 = Many (~101 to 1000 missing) 4 = Very Many (~1001 or more missing)"),
  injuries INT64 OPTIONS(description="Whenever possible, numbers of injuries from the tsunami are listed."),
  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 multiplied by 1,000,000 to obtain the actual dollar amount.  If an actual number of dollars in damage due to the tsunami is known, enter a number in this search field. If only a description is available such as \"limited\", \"moderate\", or \"severe\", the database can be searched using the search field:Damage Description  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, 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="Valid values: 0 to 4 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_destroyed INT64 OPTIONS(description="Whenever possible, number of houses destroyed by the tsunami are listed."),
  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)"),
  houses_damaged INT64 OPTIONS(description="Whenever possible, number of houses damaged by the tsunami are listed."),
  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)"),
  total_deaths INT64 OPTIONS(description="Whenever possible, numbers of deaths from the tsunami and source event are listed."),
  total_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)"),
  total_missing INT64 OPTIONS(description="Whenever possible, numbers of missing from the tsunami and source event are listed."),
  total_missing_description INT64 OPTIONS(description="Valid values: 0 to 4 When a description was found in the historical literature instead of an actual number of missing, this value was coded and listed in the Missing De column. If the actual number of missing was listed, a descriptor was also added for search purposes.  0 = None 1 = Few (~1 to 50 missing) 2 = Some(~51 to 100 missing) 3 = Many (~101 to 1000 missing) 4 = Very Many (~1001 or more missing)"),
  total_injuries INT64 OPTIONS(description="Whenever possible, numbers of injuries from the tsunami and source event are listed."),
  total_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)"),
  total_damage_in_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, 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."),
  total_damage_description INT64 OPTIONS(description="Valid values: 0 to 4 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 $25 million) 4 = EXTREME (~$25 million or more)"),
  total_houses_destroyed INT64 OPTIONS(description="Whenever possible, number of houses destroyed by the tsunami and the source event are listed."),
  total_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)"),
  total_houses_damaged INT64 OPTIONS(description="Whenever possible, number of houses damaged by the tsunami and the source event are listed."),
  total_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)")
);

INSERT INTO `bigquery-public-data.noaa_tsunami.historical_source_event` (id, year, month, day, timestamp, event_validity, cause_code, focal_depth, primary_magnitude, country, state, location_name, latitude, longitude, region_code, maximum_water_height, abe, iida, soloviev, warning_status, deaths, deaths_description, missing, missing_description, injuries, injuries_description, damage_millions_dollars, damage_description, houses_destroyed, houses_destroyed_description, houses_damaged, houses_damaged_description, total_deaths, total_deaths_description, total_missing, total_missing_description, total_injuries, total_injuries_description, total_damage_in_millions_dollars, total_damage_description, total_houses_destroyed, total_houses_destroyed_description, total_houses_damaged, total_houses_damaged_description) VALUES (3190, 1774, 9, 24, '1774-09-24 00:00:00', 1, 0, NULL, nan, NULL, NULL, 'MEDITERRANEAN SEA', nan, nan, 50, nan, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (3650, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, nan, nan, NULL, nan, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (97, 1099, 11, 11, '1099-11-11 00:00:00', 1, 0, NULL, nan, 'UK', NULL, 'WEST CORNWALL, ENGLAND', 50.116, -5.483, 73, nan, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (187, 1580, 4, 6, '1580-04-06 00:00:00', 0, 1, 33, 6.2, 'UK', NULL, 'DOVER STRAITS, ENGLAND', 51.019, 1.309, 73, nan, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (224, 1609, 1, 19, '1609-01-19 00:00:00', 1, 0, NULL, nan, 'UK', NULL, 'ENGLAND', 51.5, 0.466, 73, nan, nan, nan, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL);