Question: What is the connection between Nelson (the one whose color is black-and-white) to United Kingdom?
Choices:
history of topic
geography of topic
contributor(s) to the creative work
collection
medical treatment
country of origin
drafted by
operating area
language used
general manager
Program:
function: Find
inputs: black-and-white
function: Relate
dependencies: 0
inputs: color
backward
function: Find
inputs: Nelson
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Nelson" . ?e_1 <color> ?e_3 . ?e_3 <pred:name> "black-and-white" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Answer: country of origin