Ordered ancestor kind query
Merged with main