-- DBMS: bigquery
CREATE TABLE `firebase-public-project.analytics_153293282.events_20180717`
(
  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>,
  geo STRUCT<continent STRING, country STRING, region STRING, city 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
);

INSERT INTO `firebase-public-project.analytics_153293282.events_20180717` (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) VALUES ('20180717', 1531849192246292, 'use_extra_steps', '[{''key'': ''item_name'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''app+gtm'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''value'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': 1.0}}
 {''key'': ''firebase_screen_id'', ''value'': {''string_value'': None, ''int_value'': 3500792077020996636, ''float_value'': None, ''double_value'': None}}
 {''key'': ''virtual_currency_name'', ''value'': {''string_value'': ''steps'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_class'', ''value'': {''string_value'': ''game_board'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', 1531782531261292, nan, 30, 850442, NULL, '503AB1BC9E19C89B0425ED404E60F062', '[{''key'': ''ad_frequency'', ''value'': {''string_value'': ''4'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775009885000}}
 {''key'': ''initial_extra_steps'', ''value'': {''string_value'': ''5'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775009885000}}
 {''key'': ''plays_quickplay'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848604646000}}
 {''key'': ''num_levels_available'', ''value'': {''string_value'': ''30'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848564982000}}
 {''key'': ''firebase_exp_4'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531847005094000}}
 {''key'': ''plays_progressive'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775016670000}}
 {''key'': ''firebase_exp_1'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775010002000}}
 {''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1531774984117000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775008117000}}]', 1531774984117000, 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-ca', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400}, {'continent': 'Americas', 'country': 'Canada', 'region': None, 'city': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': None, 'medium': 'organic', 'source': 'google-play'}, '1051193346', 'ANDROID'), ('20180717', 1531849238246293, 'spend_virtual_currency', '[{''key'': ''item_name'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''app+gtm'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''value'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_id'', ''value'': {''string_value'': None, ''int_value'': 3500792077020996636, ''float_value'': None, ''double_value'': None}}
 {''key'': ''virtual_currency_name'', ''value'': {''string_value'': ''steps'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_class'', ''value'': {''string_value'': ''game_board'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', 1531782531261293, nan, 30, 850442, NULL, '503AB1BC9E19C89B0425ED404E60F062', '[{''key'': ''ad_frequency'', ''value'': {''string_value'': ''4'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775055885000}}
 {''key'': ''initial_extra_steps'', ''value'': {''string_value'': ''5'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775055885000}}
 {''key'': ''plays_quickplay'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848650646000}}
 {''key'': ''num_levels_available'', ''value'': {''string_value'': ''30'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848610982000}}
 {''key'': ''firebase_exp_4'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531847051094000}}
 {''key'': ''plays_progressive'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775062670000}}
 {''key'': ''firebase_exp_1'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775056002000}}
 {''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1531774984117000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775054117000}}]', 1531774984117000, 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-ca', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400}, {'continent': 'Americas', 'country': 'Canada', 'region': None, 'city': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': None, 'medium': 'organic', 'source': 'google-play'}, '1051193346', 'ANDROID'), ('20180717', 1531870363607028, 'level_fail', '[{''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''app+gtm'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''level'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': 27.0}}
 {''key'': ''level_name'', ''value'': {''string_value'': ''level_27'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', 1531848334196028, nan, 33, 3303427, NULL, '503AB1BC9E19C89B0425ED404E60F062', '[{''key'': ''ad_frequency'', ''value'': {''string_value'': ''4'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775045885000}}
 {''key'': ''initial_extra_steps'', ''value'': {''string_value'': ''5'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775045885000}}
 {''key'': ''plays_quickplay'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848640646000}}
 {''key'': ''num_levels_available'', ''value'': {''string_value'': ''30'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531870309380000}}
 {''key'': ''firebase_exp_4'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531847041094000}}
 {''key'': ''plays_progressive'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775052670000}}
 {''key'': ''firebase_exp_1'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775046002000}}
 {''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1531774984117000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775044117000}}]', 1531774984117000, 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-ca', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400}, {'continent': 'Americas', 'country': 'Canada', 'region': None, 'city': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': None, 'medium': 'organic', 'source': 'google-play'}, '1051193346', 'ANDROID'), ('20180717', 1531870358607029, 'level_end', '[{''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''app+gtm'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''level'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': 27.0}}
 {''key'': ''level_name'', ''value'': {''string_value'': ''level_27'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', 1531848334196029, nan, 33, 3303427, NULL, '503AB1BC9E19C89B0425ED404E60F062', '[{''key'': ''ad_frequency'', ''value'': {''string_value'': ''4'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775040885000}}
 {''key'': ''initial_extra_steps'', ''value'': {''string_value'': ''5'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775040885000}}
 {''key'': ''plays_quickplay'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848635646000}}
 {''key'': ''num_levels_available'', ''value'': {''string_value'': ''30'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531870304380000}}
 {''key'': ''firebase_exp_4'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531847036094000}}
 {''key'': ''plays_progressive'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775047670000}}
 {''key'': ''firebase_exp_1'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775041002000}}
 {''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1531774984117000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775039117000}}]', 1531774984117000, 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-ca', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400}, {'continent': 'Americas', 'country': 'Canada', 'region': None, 'city': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': None, 'medium': 'organic', 'source': 'google-play'}, '1051193346', 'ANDROID'), ('20180717', 1531870723685750, 'no_more_extra_steps', '[{''key'': ''value'', ''value'': {''string_value'': None, ''int_value'': 27, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_class'', ''value'': {''string_value'': ''game_board'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_event_origin'', ''value'': {''string_value'': ''app+gtm'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''firebase_screen_id'', ''value'': {''string_value'': None, ''int_value'': -1325575267566462365, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 37, 1668415, NULL, '503AB1BC9E19C89B0425ED404E60F062', '[{''key'': ''ad_frequency'', ''value'': {''string_value'': ''4'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775030885000}}
 {''key'': ''initial_extra_steps'', ''value'': {''string_value'': ''5'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775030885000}}
 {''key'': ''plays_quickplay'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531848625646000}}
 {''key'': ''num_levels_available'', ''value'': {''string_value'': ''30'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531870294380000}}
 {''key'': ''firebase_exp_4'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531847026094000}}
 {''key'': ''plays_progressive'', ''value'': {''string_value'': ''true'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775037670000}}
 {''key'': ''firebase_exp_1'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775031002000}}
 {''key'': ''first_open_time'', ''value'': {''string_value'': None, ''int_value'': 1531774984117000, ''float_value'': None, ''double_value'': None, ''set_timestamp_micros'': 1531775029117000}}]', 1531774984117000, 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-ca', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': -14400}, {'continent': 'Americas', 'country': 'Canada', 'region': None, 'city': None}, {'id': 'com.labpixies.flood', 'version': '2.62', 'install_store': None, 'firebase_app_id': '1:300830567303:android:9b9ba2ce17104d0c', 'install_source': 'com.android.vending'}, {'name': None, 'medium': 'organic', 'source': 'google-play'}, '1051193346', 'ANDROID');