Question: How many medals origin in a sovereign state whose country is Republic of the Congo (the country whose life expectancy is 64.625 years) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "medal" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Republic of the Congo" . ?e_2 <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> "64.625"^^xsd:double .   }
Program:
function: Find
inputs: Republic of the Congo
function: FilterNum
dependencies: 0
inputs: life expectancy
64.625 year
=
function: Relate
dependencies: 1
inputs: country
backward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: medal
function: Count
dependencies: 5