Question: Which one, Ben Sahar or Joe Jackson (the one that was born in Memphis), has greater height?
Choices:
Richard Gere
Ben Sahar
Sylvester Stallone
Max Fleischer
Joe Jackson
James E. Reilly
Simon Cowell
Paul Simon
Rahul Dev Burman
David Byrne
Answer: Joe Jackson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Sahar" .  } UNION { ?e <pred:name> "Joe Jackson" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Memphis" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ben Sahar
function: Find
inputs: Memphis
function: Relate
dependencies: 1
inputs: place of birth
backward
function: Find
inputs: Joe Jackson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater