Question: What is the connection between Shakespeare in Love to John Madden (the one that is the citizen of United Kingdom)?
Choices:
has parts of the class
instrumentation
location of final assembly
part of
child
sidekick of
discoverer or inventor
director
sex or gender
voice type
Answer: director
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shakespeare in Love" . ?e_2 <pred:name> "John Madden" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Shakespeare in Love
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: John Madden
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4