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