Question: What is the subject of a statement that Morocco (the one whose life expectancy is 74.717 year) has a diplomatic relation with Canada ?
Choices: China–Mauritius relations
Moldova–Ukraine border
Bangladesh–Brazil relations
Greece–Montenegro relations
Republic of the Congo–South Africa relations
Denmark–Sri Lanka relations
Canada–Morocco relations
Lebanon–European Union relations
India–Mexico relations
Israel–Venezuela relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Morocco" . ?e_1 <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> "74.717"^^xsd:double . ?e_2 <pred:name> "Canada" . ?e_1 <diplomatic_relation> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Morocco
function: FilterNum
dependencies: 0
inputs: life expectancy
74.717 year
=
function: Find
inputs: Canada
function: QueryRelationQualifier
dependencies: 1
2
inputs: diplomatic relation
statement is subject of
Answer: Canada–Morocco relations