fixed special case for uncles aunts query function