ancestor query demo