Think for-loops are easy? Despise non-trivial SQL? Try LATERAL JOIN · HackerTrans