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