Add tests for expected parenting query generation
Add implementation for parenting query generation