Question: Who is shorter, Dave Foley (the one whose mass is 255 pound) or Ron Howard (the one whose date of birth is 1951-03-03)?
Choices: Simon Cowell
Richard Gere
Max Fleischer
Ron Howard
Sylvester Stallone
David Byrne
Rahul Dev Burman
Dave Foley
James E. Reilly
Paul Simon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dave Foley" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "255"^^xsd:double . } UNION { ?e <pred:name> "Ron Howard" . ?e <date_of_birth> ?pv_2 . ?pv_2 <pred:date> "1951-03-03"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dave Foley
function: FilterNum
dependencies: 0
inputs: mass
255 pound
=
function: Find
inputs: Ron Howard
function: FilterDate
dependencies: 2
inputs: date of birth
1951-03-03
=
function: SelectBetween
dependencies: 1
3
inputs: height
less
Answer: Ron Howard