Dialogue Manager for a NLIDB for Solving the Semantic Ellipsis Problem in Query Formulation