Question: Considering two notable people—Christina Aguilera or Mary Tyler Moore—who had the most children?
Choices:
Rahul Dev Burman
David Byrne
Max Fleischer
Paul Simon
James E. Reilly
Richard Gere
Christina Aguilera
William Henry Harrison
Simon Cowell
Sylvester Stallone
Program:
function: Find
inputs: Mary Tyler Moore
function: Find
inputs: Christina Aguilera
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mary Tyler Moore" .  } UNION { ?e <pred:name> "Christina Aguilera" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Christina Aguilera