Learning When and What to Ask: a Hierarchical Reinforcement Learning Framework