Run SQL execute immediate query to merge tables in Bigquery inside python function