Quantifying Uncertainty in Reasoning and Question Answering