Question: What country does London, the place of Herbert Lom's death and the birthplace of Craig Rocastle), belong ?
Choices:
Kenya Colony
Brazil
Finland
Orange Free State
Pakistan
People's Republic of China
Union of South Africa
Roman Republic
United Kingdom
Portugal
Answer: United Kingdom
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Herbert Lom" . ?e_2 <pred:name> "London" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Craig Rocastle" . ?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: Herbert Lom
function: Find
inputs: Craig Rocastle
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of death
country