query logs and lattice