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