SELECT
page,
url,
payload
FROM `{table}`
WHERE
page like '%{site_domain}/%'
AND
url like '%[EXAMPLE.COM]%'
I’m not familiar with your use case or BigQuery but in Redshift I’d just do a COPY to a local table from S3 then do a CREATE TABLE AS SELECT with some logic to split those URLs for your purpose.
You might even be able to do it all in one step with Spectrum.