Inferences in Pictures and Graphs