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