return query element