Question: Which one, Matthew Perry or Russell Crowe, has greater height?
Choices:
Rahul Dev Burman
James E. Reilly
Richard Gere
William Henry Harrison
Russell Crowe
Matthew Perry
Sylvester Stallone
Simon Cowell
Max Fleischer
Paul Simon
Program:
function: Find
inputs: Matthew Perry
function: Find
inputs: Russell Crowe
function: SelectBetween
dependencies: 0
1
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Matthew Perry" .  } UNION { ?e <pred:name> "Russell Crowe" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Matthew Perry