I\'m using Presto 329 and am trying to rewrite the following cross join to be more efficient by replacing the CROSS join for what is effectively an inner query for each row: