Question: Who weighs more, Michael Madsen (the one whose mass is 82 kilogram) or Lamar Odom?
Choices:
William Henry Harrison
Simon Cowell
David Byrne
Rahul Dev Burman
James E. Reilly
Sylvester Stallone
Michael Madsen
Max Fleischer
Paul Simon
Lamar Odom
Program:
function: Find
inputs: Michael Madsen
function: FilterNum
dependencies: 0
inputs: mass
82 kilogram
=
function: Find
inputs: Lamar Odom
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Madsen" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "kilogram" . ?pv_1 <pred:value> "82"^^xsd:double . } UNION { ?e <pred:name> "Lamar Odom" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lamar Odom