Adding autocompletion and functions in query constructor.