Sequel also has an API for specifying recursive common table expressions, using the with_recursive method.