Question: For Robert Klein (the one that is the citizen of France), what is the end time as a citizen of Romania (the one whose life expectancy is 70.5122 year)?
Choices:
1948-01-01
1948
1945-08-14
1863-09-17
1995-11-23
2011-07-09
1943-01-01
1951-04-29
1865-05-10
1941-01-01
Answer: 1948
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Robert Klein" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "France" . ?e_2 <pred:name> "Romania" . ?e_2 <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> "70.5122"^^xsd:double . ?e_1 <country_of_citizenship> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country_of_citizenship> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Robert Klein
function: And
dependencies: 1
2
function: Find
inputs: Romania
function: FilterNum
dependencies: 4
inputs: life expectancy
70.5122 year
=
function: QueryRelationQualifier
dependencies: 3
5
inputs: country of citizenship
end time