Question: What does Peter Pan (which originally aired on NBC) have to do with London (the headquarters location of Chelsea F.C.)?
Choices:
noble title
head coach
different from
official religion
used by
follows
highest judicial authority
voice type
narrative location
currency
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Pan" . ?e_1 <original_network> ?e_3 . ?e_3 <pred:name> "NBC" . ?e_2 <pred:name> "London" . ?e_4 <headquarters_location> ?e_2 . ?e_4 <pred:name> "Chelsea F.C." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: NBC
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Peter Pan
function: And
dependencies: 1
2
function: Find
inputs: Chelsea F.C.
function: Relate
dependencies: 4
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7