latest query with types