Using common table expressions to solve the “eight queens” problem in SQL | Andreas Dewes