added join conditions to querybuilder