Inferring the purpose of a prior query and responding accordingly · Study