Added table aliases in root queries.