change input argu for queryDemand