Question: Which has a greater population, Los Gatos or Livonia?
Choices:
Livonia
Lansing
Oakland
Los Gatos
Greenville
Compton
Franklin
Waukegan
Boulder
Columbus
Program:
function: Find
inputs: Los Gatos
function: Find
inputs: Livonia
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Los Gatos" .  } UNION { ?e <pred:name> "Livonia" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Livonia