What would a functional SQL look like?
try-alf.org