Adds helper selection method to QueryBuilder

This is a draft; it has not been tested, not even manually.
It is meant for conceptual review