Question: How is Diana Ross (the one that is a part of USA for Africa) connected to Detroit (population 2222)?
Choices:
place served by transport hub
record label
collection
distributor
organisation directed from the office or person
lifestyle
place of birth
part of the series
worshipped by
office contested
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Diana Ross" . ?e_3 <has_part> ?e_1 . ?e_3 <pred:name> "USA for Africa" . ?e_2 <pred:name> "Detroit" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2222"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: USA for Africa
function: Relate
dependencies: 0
inputs: has part
forward
function: Find
inputs: Diana Ross
function: And
dependencies: 1
2
function: Find
inputs: Detroit
function: FilterNum
dependencies: 4
inputs: population
2222
=
function: QueryRelation
dependencies: 3
5