Question: Who is heavier: Marc Anthony, at 78 kilograms, or Kevin Garnett?
Choices:
Rahul Dev Burman
James E. Reilly
William Henry Harrison
David Byrne
Paul Simon
Sylvester Stallone
Kevin Garnett
Richard Gere
Simon Cowell
Marc Anthony
Program:
function: Find
inputs: Marc Anthony
function: FilterNum
dependencies: 0
inputs: mass
78 kilogram
=
function: Find
inputs: Kevin Garnett
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marc Anthony" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "kilogram" . ?pv_1 <pred:value> "78"^^xsd:double . } UNION { ?e <pred:name> "Kevin Garnett" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kevin Garnett