allow frequency queries with node variable names