Помогите, пожалуйста. Я создал следующий запрос, но проблема gen, и я не понимаю, как ее исправить введите описание изображения здесь
SELECT
tb1.*
FROM
(SELECT
tb1.date,
clientId,
REGEXP_EXTRACT (hits.pagePath,"^([^\?]+)\?") as page_url,
hits.type as type,
hits.eventInfo.eventCategory AS eventCategory,
hits.eventInfo.eventAction AS eventAction,
hits.eventInfo.eventLabel AS person_email,
FROM
`table` AS tb1, UNNEST (hits) AS hits) as tb1
where tb1.type = "pageview" or (tb1.eventCategory = "Enroll_Free_lecture" and
exists (select tb2.date, tb2.type from(select date, hitss.type as type From `table`
as tb2, UNNEST(hits) as hitss) tb2 where tb2.date <= tb1.date and tb2.type = "pageview" ))