Added an additional abstraction layer for example queries and implemented a
generator for simple regex queries.