Question: Which one, Johnny Depp or Chris Waddle, has less height?
Choices:
James E. Reilly
Rahul Dev Burman
Sylvester Stallone
Johnny Depp
Simon Cowell
David Byrne
Chris Waddle
William Henry Harrison
Richard Gere
Max Fleischer
Program:
function: Find
inputs: Johnny Depp
function: Find
inputs: Chris Waddle
function: SelectBetween
dependencies: 0
1
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johnny Depp" .  } UNION { ?e <pred:name> "Chris Waddle" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Johnny Depp