Question: What is the connection between Salvador (the one that is shot in Mexico) to Michael Murphy (the one that is a cast member of MASH)?
Choices:
cast member
airline alliance
programming paradigm
territory overlaps
designed to carry
partially contains
nominated for
follows
place of publication
has cause
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Salvador" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Mexico" . ?e_2 <pred:name> "Michael Murphy" . ?e_4 <cast_member> ?e_2 . ?e_4 <pred:name> "MASH" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Mexico
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Salvador
function: And
dependencies: 1
2
function: Find
inputs: MASH
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Michael Murphy
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7