Question: Which is expected to live longer,German Shepherd dog or goat?
Choices: Golden Retriever
Yorkshire Terrier
German Shepherd dog
bulldog
Labrador Retriever
India
goat
sheep
chicken
cattle
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "German Shepherd dog" .  } UNION { ?e <pred:name> "goat" .  } ?e <life_expectancy> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: German Shepherd dog
function: Find
inputs: goat
function: SelectBetween
dependencies: 0
1
inputs: life expectancy
greater
Answer: goat