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