simplified query with TTL test