Question: Who is shorter, Tony Bennett (the one that has the occupation of basketball coach) or Jake Gyllenhaal?
Choices:
Richard Gere
Paul Simon
Max Fleischer
Sylvester Stallone
William Henry Harrison
David Byrne
Simon Cowell
James E. Reilly
Jake Gyllenhaal
Rahul Dev Burman
Program:
function: Find
inputs: basketball coach
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tony Bennett
function: And
dependencies: 1
2
function: Find
inputs: Jake Gyllenhaal
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tony Bennett" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "basketball coach" .   } UNION { ?e <pred:name> "Jake Gyllenhaal" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jake Gyllenhaal