Question: Between James Cromwell or Republican Party member Fred Thompson, who is shorter?
Choices:
Fred Thompson
Max Fleischer
David Byrne
Paul Simon
Simon Cowell
James Cromwell
James E. Reilly
Richard Gere
William Henry Harrison
Sylvester Stallone
Program:
function: Find
inputs: James Cromwell
function: Find
inputs: Republican Party
function: Relate
dependencies: 1
inputs: member of political party
backward
function: Find
inputs: Fred Thompson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Cromwell" .  } UNION { ?e <pred:name> "Fred Thompson" . ?e <member_of_political_party> ?e_1 . ?e_1 <pred:name> "Republican Party" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fred Thompson