Question: Is 200-pounder William James or is Vince Vaughn the taller of the two?
Choices:
Paul Simon
Max Fleischer
Rahul Dev Burman
Vince Vaughn
Simon Cowell
William James
David Byrne
Sylvester Stallone
Richard Gere
William Henry Harrison
Program:
function: Find
inputs: William James
function: FilterNum
dependencies: 0
inputs: mass
200 pound
=
function: Find
inputs: Vince Vaughn
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "William James" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "200"^^xsd:double . } UNION { ?e <pred:name> "Vince Vaughn" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Vince Vaughn