Querybuilder / partial but working implementation