Question: The producer of Pocahontas (which was produced by Alan Menken) is Stephen Schwartz, which part does it apply to?
Choices:
lowest point
Parkland Region
male
hairdresser
Alaska
song
LaPorte County
Lawrence County
Northern Region
Dutch Caribbean
Program:
function: Find
inputs: Alan Menken
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Pocahontas
function: And
dependencies: 1
2
function: Find
inputs: Stephen Schwartz
function: QueryRelationQualifier
dependencies: 3
4
inputs: producer
applies to part
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Pocahontas" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Alan Menken" . ?e_2 <pred:name> "Stephen Schwartz" . ?e_1 <producer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <producer> ; <pred:fact_t> ?e_2 ] <applies_to_part> ?qpv .  }
Answer: song