Simple queries

An implementation allow straight-forward map queries. Other queries could be added similarly.