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