Question: Who is taller, Michael Jordan (the one that owns Charlotte Hornets) or Chris Penn (the one that is educated at University of Tulsa)?
Choices:
Chris Penn
Sylvester Stallone
James E. Reilly
Rahul Dev Burman
David Byrne
Max Fleischer
Richard Gere
Simon Cowell
William Henry Harrison
Michael Jordan
Program:
function: Find
inputs: Charlotte Hornets
function: Relate
dependencies: 0
inputs: owned by
forward
function: Find
inputs: Michael Jordan
function: And
dependencies: 1
2
function: Find
inputs: University of Tulsa
function: Relate
dependencies: 4
inputs: educated at
backward
function: Find
inputs: Chris Penn
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Jordan" . ?e_1 <owned_by> ?e . ?e_1 <pred:name> "Charlotte Hornets" .   } UNION { ?e <pred:name> "Chris Penn" . ?e <educated_at> ?e_2 . ?e_2 <pred:name> "University of Tulsa" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Michael Jordan