Question: James Bond (the one whose name in native language is James Bond) died in Philadelphia (the one that is the birthplace of Richard Gere) - what country is Philadelphia in ?
Choices:
worldwide
Denmark
New Zealand
Chile
Netherlands
United Kingdom of Great Britain and Ireland
Sint Maarten
Cambodia
United States of America
Armenia
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "James Bond" . ?e_1 <name_in_native_language> ?pv . ?pv <pred:value> "James Bond" . ?e_2 <pred:name> "Philadelphia" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Richard Gere" . ?e_1 <place_of_death> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_death> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: James Bond
function: FilterStr
dependencies: 0
inputs: name in native language
James Bond
function: Find
inputs: Richard Gere
function: Relate
dependencies: 2
inputs: place of birth
forward
function: Find
inputs: Philadelphia
function: And
dependencies: 3
4
function: QueryRelationQualifier
dependencies: 1
5
inputs: place of death
country