Question: What country holds Newton that is the birthplace of Eli Roth and Jack Lemmon?
Choices: Singapore
United Kingdom of Great Britain and Ireland
Syria
Czech Republic
France
United States of America
Iceland
Kingdom of Prussia
Curaçao
Turkey
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> "Eli Roth" . ?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: Eli Roth
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