Merge "Implement ancestor axis in SQL"