Everything there is an implementation of a full (i.e., turing complete) programming language. SQL is not Turing Complete (at least not without non-standard recursion extensions, if memory serves).
> non-standard recursion extensions
WITH RECURSIVE queries are part of the SQL 99 standard.