add select distinct and count only controls to querybuilder.