Question: What is the connection between Henry V (the one that uses the language English) to England (the one that contains West Yorkshire)?
Choices:
employer
military rank
basic form of government
officially opened by
country of origin
creator
opposite of
color
history of topic
statistical leader
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Henry V" . ?e_1 <language_of_work_or_name> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "England" . ?e_4 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_4 <pred:name> "West Yorkshire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Henry V
function: And
dependencies: 1
2
function: Find
inputs: West Yorkshire
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: England
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7