Question: Of the Andes or Northern line, which is shorter?
Choices:
Southern California
Lake District
Andes
Africa
South America
Northern line
Atlantic Canada
Piedmont
Transylvania
Antarctica
Program:
function: Find
inputs: Northern line
function: Find
inputs: Andes
function: SelectBetween
dependencies: 0
1
inputs: length
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northern line" .  } UNION { ?e <pred:name> "Andes" .  } ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Northern line