-- DBMS: bigquery
CREATE TABLE `firebase-public-project.analytics_153293282.events_20180915`
(
  event_date STRING,
  event_timestamp INT64,
  event_name STRING,
  event_params ARRAY<STRUCT<key STRING, value STRUCT<string_value STRING, int_value INT64, float_value FLOAT64, double_value FLOAT64>>>,
  event_previous_timestamp INT64,
  event_value_in_usd FLOAT64,
  event_bundle_sequence_id INT64,
  event_server_timestamp_offset INT64,
  user_id STRING,
  user_pseudo_id STRING,
  user_properties ARRAY<STRUCT<key STRING, value STRUCT<string_value STRING, int_value INT64, float_value FLOAT64, double_value FLOAT64, set_timestamp_micros INT64>>>,
  user_first_touch_timestamp INT64,
  user_ltv STRUCT<revenue FLOAT64, currency STRING>,
  device STRUCT<category STRING, mobile_brand_name STRING, mobile_model_name STRING, mobile_marketing_name STRING, mobile_os_hardware_model STRING, operating_system STRING, operating_system_version STRING, vendor_id STRING, advertising_id STRING, language STRING, is_limited_ad_tracking STRING, time_zone_offset_seconds INT64, browser STRING, browser_version STRING>,
  geo STRUCT<continent STRING, country STRING, region STRING, city STRING, sub_continent STRING, metro STRING>,
  app_info STRUCT<id STRING, version STRING, install_store STRING, firebase_app_id STRING, install_source STRING>,
  traffic_source STRUCT<name STRING, medium STRING, source STRING>,
  stream_id STRING,
  platform STRING,
  event_dimensions STRUCT<hostname STRING>
);

INSERT INTO `firebase-public-project.analytics_153293282.events_20180915` (event_date, event_timestamp, event_name, event_params, event_previous_timestamp, event_value_in_usd, event_bundle_sequence_id, event_server_timestamp_offset, user_id, user_pseudo_id, user_properties, user_first_touch_timestamp, user_ltv, device, geo, app_info, traffic_source, stream_id, platform, event_dimensions) VALUES ('20180915', 1537076339359000, 'first_open', '[{''key'': ''system_app'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''system_app_update'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''update_with_analytics'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''previous_first_open_count'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_conversion'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''auto'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1, 538114, NULL, '546FA52DF4E990E49843A096C09AF917', '[{''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1537076312359000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1537076339359000}}]', 1537076312359000, NULL, {'category': 'mobile', 'mobile_brand_name': 'not available in demo dataset', 'mobile_model_name': 'not available in demo dataset', 'mobile_marketing_name': 'not available in demo dataset', 'mobile_os_hardware_model': 'not available in demo dataset', 'operating_system': 'ANDROID', 'operating_system_version': 'not available in demo dataset', 'vendor_id': None, 'advertising_id': None, 'language': 'en-in', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': 19800, 'browser': None, 'browser_version': None}, {'continent': 'Asia', 'country': 'India', 'region': None, 'city': None, 'sub_continent': None, 'metro': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': '(direct)', 'medium': '(none)', 'source': '(direct)'}, '1051193346', 'ANDROID', NULL), ('20180915', 1537051267227000, 'first_open', '[{''key'': ''update_with_analytics'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''previous_first_open_count'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_conversion'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''auto'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1, 3188103, NULL, '83D42C0BEC5C0325916E5797073CEE9A', '[{''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1537051178227000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1537051267227000}}]', 1537051178227000, NULL, {'category': 'mobile', 'mobile_brand_name': 'not available in demo dataset', 'mobile_model_name': 'not available in demo dataset', 'mobile_marketing_name': 'not available in demo dataset', 'mobile_os_hardware_model': 'not available in demo dataset', 'operating_system': 'IOS', 'operating_system_version': 'not available in demo dataset', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -25200, 'browser': None, 'browser_version': None}, {'continent': 'Americas', 'country': 'United States', 'region': None, 'city': None, 'sub_continent': None, 'metro': None}, {'id': 'com.google.flood2', 'version': '2.6.31', 'install_store': None, 'firebase_app_id': '1:300830567303:ios:09b1ab1d3ca29bda', 'install_source': 'iTunes'}, {'name': '(direct)', 'medium': '(none)', 'source': '(direct)'}, '1051193347', 'IOS', NULL), ('20180915', 1537005246537000, 'first_open', '[{''key'': ''system_app'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''system_app_update'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''update_with_analytics'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''previous_first_open_count'', ''value'': {''string_value'': None, ''int_value'': 0, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_conversion'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''auto'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1, -109032, NULL, '30BDB608211EE7B2E8488B00E246B7FC', '[{''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1537005244537000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1537005246537000}}]', 1537005244537000, NULL, {'category': 'mobile', 'mobile_brand_name': 'not available in demo dataset', 'mobile_model_name': 'not available in demo dataset', 'mobile_marketing_name': 'not available in demo dataset', 'mobile_os_hardware_model': 'not available in demo dataset', 'operating_system': 'ANDROID', 'operating_system_version': 'not available in demo dataset', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': 19800, 'browser': None, 'browser_version': None}, {'continent': 'Asia', 'country': 'India', 'region': None, 'city': None, 'sub_continent': None, 'metro': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': '(direct)', 'medium': '(none)', 'source': '(direct)'}, '1051193346', 'ANDROID', NULL), ('20180915', 1537040757487005, 'app_update', '[{''key'': ''firebase_screen_id'', ''value'': {''string_value'': None, ''int_value'': 5640021151996172547, ''float_value'': None, ''double_value'': None}}
 {''key'': ''previous_app_version'', ''value'': {''string_value'': ''2.2.5'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_class'', ''value'': {''string_value'': ''main_menu'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''auto'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1, 312426, NULL, '20F3CD6918AF3773CBA104980250555D', '[{''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1537040740430000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1537040756430000}}]', 1537040740430000, NULL, {'category': 'mobile', 'mobile_brand_name': 'not available in demo dataset', 'mobile_model_name': 'not available in demo dataset', 'mobile_marketing_name': 'not available in demo dataset', 'mobile_os_hardware_model': 'not available in demo dataset', 'operating_system': 'IOS', 'operating_system_version': 'not available in demo dataset', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400, 'browser': None, 'browser_version': None}, {'continent': 'Americas', 'country': 'United States', 'region': 'District of Columbia', 'city': 'Washington', 'sub_continent': None, 'metro': None}, {'id': 'com.google.flood2', 'version': '2.6.31', 'install_store': None, 'firebase_app_id': '1:300830567303:ios:09b1ab1d3ca29bda', 'install_source': 'iTunes'}, {'name': '(direct)', 'medium': '(none)', 'source': '(direct)'}, '1051193347', 'IOS', NULL), ('20180915', 1537040738488006, 'os_update', '[{''key'': ''previous_os_version'', ''value'': {''string_value'': ''9.3.2'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_id'', ''value'': {''string_value'': None, ''int_value'': 5640021151996172547, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_class'', ''value'': {''string_value'': ''main_menu'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''auto'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1, 312426, NULL, '20F3CD6918AF3773CBA104980250555D', '[{''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1537040740430000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1537040737430000}}]', 1537040740430000, NULL, {'category': 'mobile', 'mobile_brand_name': 'not available in demo dataset', 'mobile_model_name': 'not available in demo dataset', 'mobile_marketing_name': 'not available in demo dataset', 'mobile_os_hardware_model': 'not available in demo dataset', 'operating_system': 'IOS', 'operating_system_version': 'not available in demo dataset', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400, 'browser': None, 'browser_version': None}, {'continent': 'Americas', 'country': 'United States', 'region': 'District of Columbia', 'city': 'Washington', 'sub_continent': None, 'metro': None}, {'id': 'com.google.flood2', 'version': '2.6.31', 'install_store': None, 'firebase_app_id': '1:300830567303:ios:09b1ab1d3ca29bda', 'install_source': 'iTunes'}, {'name': '(direct)', 'medium': '(none)', 'source': '(direct)'}, '1051193347', 'IOS', NULL);