How do I define in a simple single line a temporary constant table in BigQuery (or Postgres the syntax of which will likely work in BigQuery)?
with my_fruits as (
--- ??? define a table
--- consisting of a single column fruit_name
--- with values ('apple', 'pear', 'gooseberry', ... (12 more fruits))
)
select * from my_fruits left join
(select fruit_name, 1 is_present from my_dataset.your_fruits)
using (fruit_name)