queries are executed based on user choice.