Question: Who is taller, Ben Johnson (the one whose mass is 329 pound) or Adele?
Choices:
Sylvester Stallone
Simon Cowell
Adele
James E. Reilly
Paul Simon
Ben Johnson
Rahul Dev Burman
David Byrne
Richard Gere
Max Fleischer
Program:
function: Find
inputs: Ben Johnson
function: FilterNum
dependencies: 0
inputs: mass
329 pound
=
function: Find
inputs: Adele
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Johnson" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "329"^^xsd:double . } UNION { ?e <pred:name> "Adele" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ben Johnson