Quantum inferring acausal structures and the Monty Hall problem