Question: What country does New York City, the narrative location of The Quiet Man (the one whose publisher is Square Enix), belong to ?
Choices:
Kingdom of the Netherlands
Suriname
Germany
United States of America
Kingdom of Saxony
Caribbean Netherlands
Armenia
Israel
Saudi Arabia
West Germany
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Quiet Man" . ?e_1 <publisher> ?e_3 . ?e_3 <pred:name> "Square Enix" . ?e_2 <pred:name> "New York City" . ?e_1 <narrative_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <narrative_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: Square Enix
function: Relate
dependencies: 0
inputs: publisher
backward
function: Find
inputs: The Quiet Man
function: And
dependencies: 1
2
function: Find
inputs: New York City
function: QueryRelationQualifier
dependencies: 3
4
inputs: narrative location
country