Question: Of ice hockey's Tom Johnson and Kareem Abdul-Jabbar, who is shorter?
Choices:
William Henry Harrison
Max Fleischer
Tom Johnson
Kareem Abdul-Jabbar
Simon Cowell
Sylvester Stallone
James E. Reilly
David Byrne
Paul Simon
Rahul Dev Burman
Program:
function: Find
inputs: ice hockey
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 1
2
function: Find
inputs: Kareem Abdul-Jabbar
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tom Johnson" . ?e <sport> ?e_1 . ?e_1 <pred:name> "ice hockey" .   } UNION { ?e <pred:name> "Kareem Abdul-Jabbar" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tom Johnson