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