added api to taskQuery to map results