Question: Who is shorter, Heather O'Reilly or Oscar (the one whose mass is 82 kilogram)?
Choices: William Henry Harrison
Paul Simon
Oscar
Max Fleischer
Sylvester Stallone
James E. Reilly
Richard Gere
Heather O'Reilly
David Byrne
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heather O'Reilly" . } UNION { ?e <pred:name> "Oscar" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "kilogram" . ?pv_1 <pred:value> "82"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Heather O'Reilly
function: Find
inputs: Oscar
function: FilterNum
dependencies: 1
inputs: mass
82 kilogram
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
Answer: Heather O'Reilly