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