Question: Who is shorter, Paris Hilton or Mark Johnson?
Choices:
James E. Reilly
Rahul Dev Burman
Richard Gere
Sylvester Stallone
Simon Cowell
Paul Simon
Mark Johnson
William Henry Harrison
Max Fleischer
Paris Hilton
Program:
function: Find
inputs: Paris Hilton
function: Find
inputs: first baseman
function: Relate
dependencies: 1
inputs: position played on team / speciality
backward
function: Find
inputs: Mark Johnson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris Hilton" .  } UNION { ?e <pred:name> "Mark Johnson" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "first baseman" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paris Hilton