Question: Which has more people, Champaign or Annapolis (the one that is the twinned administrative body of Tallinn)?
Choices:
Franklin
Compton
Oakland
New Haven
Boulder
Lansing
Champaign
Columbus
Greenville
Annapolis
Program:
function: Find
inputs: Champaign
function: Find
inputs: Tallinn
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Annapolis
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Champaign" .  } UNION { ?e <pred:name> "Annapolis" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Tallinn" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Champaign