Question: What country is Newton, the birthplace of Jack Lemmon and John Krasinski?
Choices: Indonesia
United Kingdom of Great Britain and Ireland
Armenia
Costa Rica
Mexico
United States of America
Poland
Curaçao
Belgium
Pakistan
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jack Lemmon" . ?e_2 <pred:name> "Newton" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "John Krasinski" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: Jack Lemmon
function: Find
inputs: John Krasinski
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Newton
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
country
Answer: United States of America