'Execute a query, updating the query object with the results.
:param query_id: ID of query to execute
Responds with query task details.'

def post(self, query_id):

    query = get_object_or_404(models.Query.get_by_id_and_org, query_id, self.current_org)
    require_access(query.groups, self.current_user, not_view_only)
    parameter_values = collect_parameters_from_request(request.args)
    return run_query(query.data_source, parameter_values, query.query_text, query.id)
