query dictionary