Question: Who is taller, Jack Thompson (the one whose date of birth is 1946-03-26) or David Healy (the one whose mass is 68 kilogram)?
Choices: James E. Reilly
Richard Gere
Simon Cowell
Rahul Dev Burman
Jack Thompson
Sylvester Stallone
William Henry Harrison
Max Fleischer
David Byrne
Paul Simon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jack Thompson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1946-03-26"^^xsd:date . } UNION { ?e <pred:name> "David Healy" . ?e <mass> ?pv_2 . ?pv_2 <pred:unit> "kilogram" . ?pv_2 <pred:value> "68"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jack Thompson
function: FilterDate
dependencies: 0
inputs: date of birth
1946-03-26
=
function: Find
inputs: David Healy
function: FilterNum
dependencies: 2
inputs: mass
68 kilogram
=
function: SelectBetween
dependencies: 1
3
inputs: height
greater
Answer: Jack Thompson