Question: Which one is taller, Dave Foley (the one whose mass is 255 pounds) or Chris Penn (72 inches tall)?
Choices:
Sylvester Stallone
Simon Cowell
Dave Foley
James E. Reilly
David Byrne
Chris Penn
Max Fleischer
William Henry Harrison
Paul Simon
Rahul Dev Burman
Answer: Dave Foley
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> "Chris Penn" . ?e <height> ?pv_2 . ?pv_2 <pred:unit> "inch" . ?pv_2 <pred:value> "72"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dave Foley
function: FilterNum
dependencies: 0
inputs: mass
255 pound
=
function: Find
inputs: Chris Penn
function: FilterNum
dependencies: 2
inputs: height
72 inch
=
function: SelectBetween
dependencies: 1
3
inputs: height
greater