Question: Which state that is located on the continent of Africa (whose inhabitants are the աֆրիկացի people) has the largest area?
Choices:
Finland
Rhodesia
Kosovo
Kazakhstan
Ukrainian Soviet Socialist Republic
Saint Vincent and the Grenadines
Lithuania
Jamaica
Gabon
Tajikistan
Answer: Rhodesia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Africa" . ?e_1 <demonym> ?pv_1 . ?pv_1 <pred:value> "աֆրիկացի" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Africa
function: FilterStr
dependencies: 0
inputs: demonym
աֆրիկացի
function: Relate
dependencies: 1
inputs: continent
backward
function: FilterConcept
dependencies: 2
inputs: state
function: SelectAmong
dependencies: 3
inputs: area
largest