Question: What is the connection between Emma (whose composer is Rachel Portman) and Rachel Portman?
Choices:
capital of
next lower rank
derivative work
composer
official language
official religion
month of the year
office held by head of government
head of government
substitute/deputy/replacement of office/officeholder
Program:
function: Find
inputs: Rachel Portman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Emma
function: And
dependencies: 1
2
function: Find
inputs: Rachel Portman
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Emma" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Rachel Portman" . ?e_2 <pred:name> "Rachel Portman" . ?e_1 ?p ?e_2 .  }
Answer: composer