Question: Of the republics partially contained by the Mediterranean Sea, which has the highest median income?
Choices: France
Zimbabwe
Germany
Mozambique
Bolivia
Sierra Leone
Namibia
Italy
Malawi
Tunisia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <partially_contains> ?e . ?e_1 <pred:name> "Mediterranean Sea" .  ?e <median_income> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 0
inputs: partially contains
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: SelectAmong
dependencies: 2
inputs: median income
largest
Answer: France