Question: What is the relationship between Asia, the famous rock music band, and the United Kingdom?
Choices:
participant of
has contributing factor
author
country of origin
office held by head of state
followed by
officially opened by
next higher rank
item operated
captain
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Asia" . ?e_3 <famous_people> ?e_1 . ?e_3 <pred:name> "rock music" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4