I\'m having trouble creating a materialized view in Postgres using the query builder. I\'m selecting from multiple tables, joining the results, and then selecting from the f