actually emit query stats