Question: What is the connection between Miami Vice (the one that has John Ortiz as a cast member) to Paraguay?
Choices:
owner of
depicted by
basin country
military rank
creator
official symbol
place of publication
filming location
statistical leader
capital
Answer: filming location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Miami Vice" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "John Ortiz" . ?e_2 <pred:name> "Paraguay" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Ortiz
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Miami Vice
function: And
dependencies: 1
2
function: Find
inputs: Paraguay
function: QueryRelation
dependencies: 3
4