I have a table in BigQuery contains device ids, event_type, start_time and end_time of the event. I need to calculate total d
device
event_type
start_time
end_time