Question: Who is shorter, Zooey Deschanel or Jim Taylor who is 72 inches tall?
Choices:
William Henry Harrison
Rahul Dev Burman
Jim Taylor
Paul Simon
Sylvester Stallone
Richard Gere
Max Fleischer
David Byrne
James E. Reilly
Zooey Deschanel
Program:
function: Find
inputs: Zooey Deschanel
function: Find
inputs: Jim Taylor
function: FilterNum
dependencies: 1
inputs: height
72 inch
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Zooey Deschanel" . } UNION { ?e <pred:name> "Jim Taylor" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "72"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Zooey Deschanel