Question: What language is associated with Spider-Man (which has an occupation of scientist and Chris Pine as a performer)?
Choices:
Punjab
English
Wolof
Japanese
Persian
Greek
Bulgarian
Modern Greek
Indonesian
Punjabi
Program:
function: Find
inputs: scientist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Chris Pine
function: QueryRelationQualifier
dependencies: 3
4
inputs: performer
language of work or name
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "scientist" . ?e_2 <pred:name> "Chris Pine" . ?e_1 <performer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <performer> ; <pred:fact_t> ?e_2 ] <language_of_work_or_name> ?qpv .  }
Answer: English