Question: What is the connection between Fresno (the one whose title is Fresno) to California (the one that is the headquarter location of Walt Disney Pictures)?
Choices:
source of material
field of work
capital of
military branch
located on terrain feature
narrative location
rector
official symbol
seed team
official color
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Fresno" . ?e_1 <title> ?pv . ?pv <pred:value> "Fresno" . ?e_2 <pred:name> "California" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Walt Disney Pictures" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Fresno
function: FilterStr
dependencies: 0
inputs: title
Fresno
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 2
inputs: headquarters location
forward
function: Find
inputs: California
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5