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