Question: What is composer Sammy Cahn's role in Peter Pan (whose inception time is 2000)?
Choices:
lead vocalist
private school
state school
X-Men: The Last Stand
instrumentalist
overseas department of France
songwriter
Three pillars of the European Union
keyboardist
storyteller
Program:
function: Find
inputs: Peter Pan
function: FilterYear
dependencies: 0
inputs: inception
2000
=
function: Find
inputs: Sammy Cahn
function: QueryRelationQualifier
dependencies: 1
2
inputs: composer
object has role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Peter Pan" . ?e_1 <inception> ?pv . ?pv <pred:year> 2000 . ?e_2 <pred:name> "Sammy Cahn" . ?e_1 <composer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <composer> ; <pred:fact_t> ?e_2 ] <object_has_role> ?qpv .  }
Answer: songwriter