Question: Is Ulysses S. Grant or Rita Hayworth taller?
Choices:
David Byrne
Paul Simon
Simon Cowell
Rita Hayworth
Rahul Dev Burman
Ulysses S. Grant
Sylvester Stallone
Max Fleischer
William Henry Harrison
James E. Reilly
Program:
function: Find
inputs: Ulysses S. Grant
function: Find
inputs: Rita Hayworth
function: SelectBetween
dependencies: 0
1
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ulysses S. Grant" .  } UNION { ?e <pred:name> "Rita Hayworth" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ulysses S. Grant