Question: Who is shorter, Christina Aguilera or Patrick Stewart?
Choices:
Richard Gere
Simon Cowell
James E. Reilly
Rahul Dev Burman
Patrick Stewart
Christina Aguilera
William Henry Harrison
Paul Simon
Sylvester Stallone
Max Fleischer
Program:
function: Find
inputs: Christina Aguilera
function: Find
inputs: Patrick Stewart
function: SelectBetween
dependencies: 0
1
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Christina Aguilera" .  } UNION { ?e <pred:name> "Patrick Stewart" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Christina Aguilera