Question: In what country was Muhammad when he died in Medina (the one whose population is 1180770)?
Choices: Curaçao
Chile
Roman Republic
Iceland
Saudi Arabia
Netherlands
Nazi Germany
Prussia
South Korea
Kingdom of Bavaria
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Muhammad" . ?e_2 <pred:name> "Medina" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1180770"^^xsd:double . ?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: Muhammad
function: Find
inputs: Medina
function: FilterNum
dependencies: 1
inputs: population
1180770
=
function: QueryRelationQualifier
dependencies: 0
2
inputs: place of death
country
Answer: Saudi Arabia