Question: Who weighs more, Ben Johnson (the one whose date of birth is 1994-06-07) or Michael Clayton (the one whose height is 74 inch)?
Choices: Max Fleischer
Simon Cowell
Paul Simon
Sylvester Stallone
Ben Johnson
Michael Clayton
Rahul Dev Burman
David Byrne
Richard Gere
James E. Reilly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Johnson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1994-06-07"^^xsd:date . } UNION { ?e <pred:name> "Michael Clayton" . ?e <height> ?pv_2 . ?pv_2 <pred:unit> "inch" . ?pv_2 <pred:value> "74"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ben Johnson
function: FilterDate
dependencies: 0
inputs: date of birth
1994-06-07
=
function: Find
inputs: Michael Clayton
function: FilterNum
dependencies: 2
inputs: height
74 inch
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater
Answer: Michael Clayton