rewritten QueryBuilder and many minor improvements

ctrl + space can be used for autocomplete when we need different parts
to be written