Question: Which has a larger population, Bethesda or Towson?
Choices:
Bradley University
Stanford
Jack Nicholson
Bethesda
Silver Spring
Alexander
Independence
Towson
Prometheus
McLean
Program:
function: Find
inputs: Bethesda
function: Find
inputs: Towson
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bethesda" .  } UNION { ?e <pred:name> "Towson" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bethesda