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