Question: Who is shorter, Stephen Graham (the one that is a member of Brooklyn Nets) or Theodore Roosevelt?
Choices:
William Henry Harrison
Sylvester Stallone
Stephen Graham
David Byrne
Theodore Roosevelt
Simon Cowell
Rahul Dev Burman
Max Fleischer
Paul Simon
James E. Reilly
Program:
function: Find
inputs: Brooklyn Nets
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Stephen Graham
function: And
dependencies: 1
2
function: Find
inputs: Theodore Roosevelt
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen Graham" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Brooklyn Nets" .   } UNION { ?e <pred:name> "Theodore Roosevelt" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Theodore Roosevelt