Question: Who is shorter: Napoleon at 168-centimetres or Michael McDonald at 232-pounds?
Choices:
James E. Reilly
Simon Cowell
Michael McDonald
Paul Simon
David Byrne
Napoleon
Sylvester Stallone
Max Fleischer
Rahul Dev Burman
Richard Gere
Program:
function: Find
inputs: Napoleon
function: FilterNum
dependencies: 0
inputs: height
168 centimetre
=
function: Find
inputs: Michael McDonald
function: FilterNum
dependencies: 2
inputs: mass
232 pound
=
function: SelectBetween
dependencies: 1
3
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Napoleon" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "168"^^xsd:double . } UNION { ?e <pred:name> "Michael McDonald" . ?e <mass> ?pv_2 . ?pv_2 <pred:unit> "pound" . ?pv_2 <pred:value> "232"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Napoleon