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