Worth noting that this isn't all ANSI-SQL... e.g. I'm pretty sure WITH is a Postgres thing?
- SQL:1999 https://en.wikipedia.org/wiki/SQL:1999#Common_table_expressi...
- SQL standardization https://en.wikipedia.org/wiki/SQL#Interoperability_and_stand...