Question: Which is longer, Lake District or Andes?
Choices:
Southern California
Lake District
Andes
Pacific Ocean
Africa
Piedmont
Transylvania
South America
Caribbean
Atlantic Canada
Program:
function: Find
inputs: Lake District
function: Find
inputs: Andes
function: SelectBetween
dependencies: 0
1
inputs: length
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lake District" .  } UNION { ?e <pred:name> "Andes" .  } ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Andes