Question: Who is shorter, Ted Danson or William Powell whose mass is 207 pounds?
Choices:
William Henry Harrison
James E. Reilly
Max Fleischer
Rahul Dev Burman
David Byrne
Paul Simon
Richard Gere
Simon Cowell
William Powell
Ted Danson
Program:
function: Find
inputs: Ted Danson
function: Find
inputs: William Powell
function: FilterNum
dependencies: 1
inputs: mass
207 pound
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ted Danson" . } UNION { ?e <pred:name> "William Powell" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "207"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: William Powell