A Ruby gem to generate SQL dealing with parent-child-grandchild records.