This message appears when a query expression join produces an intermediate result table with more than five hundred billion (500,000,000,000) rows. The maximum number of rows that can appear in an intermediate joined table is five hundred billion.
If possible, rewrite the query expression to reduce the complexity of the join, or utilize views that deal with a subset of the data in the original join tables.