Question: Of states where Swedes are geographically distributed, which has the highest median income level?
Choices: Lithuania
Greece
Denmark
Kazakhstan
Finland
Sweden
Cuba
Bulgaria
Fiji
Kosovo
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <geographic_distribution> ?e . ?e_1 <pred:name> "Swedes" .  ?e <median_income> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Swedes
function: Relate
dependencies: 0
inputs: geographic distribution
forward
function: FilterConcept
dependencies: 1
inputs: state
function: SelectAmong
dependencies: 2
inputs: median income
largest
Answer: Sweden