Question: Who is shorter, Scott Wilson (the one whose height is 185 centimetre) or George Clooney?
Choices:
Sylvester Stallone
Richard Gere
Simon Cowell
Scott Wilson
Paul Simon
James E. Reilly
George Clooney
David Byrne
Rahul Dev Burman
Max Fleischer
Program:
function: Find
inputs: Scott Wilson
function: FilterNum
dependencies: 0
inputs: height
185 centimetre
=
function: Find
inputs: George Clooney
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott Wilson" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "185"^^xsd:double . } UNION { ?e <pred:name> "George Clooney" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: George Clooney