Question: Which sovereign state, that is a basin country of Lake Erie, has the smallest nominal GDP per capita?
Choices:
Benin
Cambodia
United States of America
Canada
Switzerland
South Sudan
Kiribati
Samoa
Russian Soviet Federative Socialist Republic
Weimar Republic
Program:
function: Find
inputs: Lake Erie
function: Relate
dependencies: 0
inputs: basin country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: SelectAmong
dependencies: 2
inputs: nominal GDP per capita
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <basin_country> ?e . ?e_1 <pred:name> "Lake Erie" .  ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Canada