Question: Who weighs more, Joe Jackson (the one whose height is 75 inch) or Robert Smith (the one whose height is 74 inch)?
Choices:
Richard Gere
Rahul Dev Burman
Sylvester Stallone
James E. Reilly
Joe Jackson
Simon Cowell
David Byrne
Robert Smith
William Henry Harrison
Paul Simon
Answer: Joe Jackson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joe Jackson" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "75"^^xsd:double . } UNION { ?e <pred:name> "Robert Smith" . ?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: Joe Jackson
function: FilterNum
dependencies: 0
inputs: height
75 inch
=
function: Find
inputs: Robert Smith
function: FilterNum
dependencies: 2
inputs: height
74 inch
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater