Question: Is the Fred Thompson employed in Washington, D.C. or Kristen Stewart shorter than the other?
Choices:
Kristen Stewart
Max Fleischer
William Henry Harrison
Richard Gere
Paul Simon
Fred Thompson
David Byrne
James E. Reilly
Simon Cowell
Sylvester Stallone
Program:
function: Find
inputs: Washington, D.C.
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: Fred Thompson
function: And
dependencies: 1
2
function: Find
inputs: Kristen Stewart
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fred Thompson" . ?e <work_location> ?e_1 . ?e_1 <pred:name> "Washington, D.C." .   } UNION { ?e <pred:name> "Kristen Stewart" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kristen Stewart