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