Bugfix for distinct keyword in query()
default aliases for tasks, too