Question: Who is heavier: James Brown, at 78 inches tall, or John Hughes, at 200 lbs?
Choices:
William Henry Harrison
Simon Cowell
Richard Gere
James E. Reilly
John Hughes
James Brown
Paul Simon
Max Fleischer
Sylvester Stallone
David Byrne
Program:
function: Find
inputs: James Brown
function: FilterNum
dependencies: 0
inputs: height
78 inch
=
function: Find
inputs: John Hughes
function: FilterNum
dependencies: 2
inputs: mass
200 pound
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Brown" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "78"^^xsd:double . } UNION { ?e <pred:name> "John Hughes" . ?e <mass> ?pv_2 . ?pv_2 <pred:unit> "pound" . ?pv_2 <pred:value> "200"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: James Brown