Question: Who is taller, Jim Taylor (whose height is 72 inches) or Keith Moon?
Choices:
Richard Gere
Simon Cowell
Jim Taylor
Sylvester Stallone
Paul Simon
Keith Moon
David Byrne
Max Fleischer
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: Jim Taylor
function: FilterNum
dependencies: 0
inputs: height
72 inch
=
function: Find
inputs: Keith Moon
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jim Taylor" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "72"^^xsd:double . } UNION { ?e <pred:name> "Keith Moon" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jim Taylor