Question: Which one is taller, Chuck Norris (working as a screenwriter) or Jackie Chan?
Choices:
Jackie Chan
David Byrne
Rahul Dev Burman
Paul Simon
Max Fleischer
Sylvester Stallone
Simon Cowell
Chuck Norris
James E. Reilly
Richard Gere
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Chuck Norris
function: And
dependencies: 1
2
function: Find
inputs: Jackie Chan
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chuck Norris" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "screenwriter" .   } UNION { ?e <pred:name> "Jackie Chan" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jackie Chan