Question: Does Polk County, with a capital of Des Moines, or American Samoa occupy a smaller area?
Choices:
Greene County
Orange County
Cass County
African Union
American Samoa
Washoe County
Lee County
Kent County
Delaware County
San Juan County
Program:
function: Find
inputs: Des Moines
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Polk County
function: And
dependencies: 1
2
function: Find
inputs: American Samoa
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Polk County" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Des Moines" .   } UNION { ?e <pred:name> "American Samoa" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: American Samoa