presto-main/src/main/java/io/prestosql/execution/SqlQueryManager.java/SqlQueryManager/getQueryState
class SqlQueryManager:    @Override
    public QueryState getQueryState(QueryId queryId)
    {
        return queryTracker.getQuery(queryId).getState();
    }