Return columns of the query in VisitedQuery