Question: Which one, Hugh Dancy or Maya Rudolph, has the greater number of children?
Choices:
David Byrne
Sylvester Stallone
Paul Simon
James E. Reilly
William Henry Harrison
Maya Rudolph
Rahul Dev Burman
Hugh Dancy
Richard Gere
Max Fleischer
Program:
function: Find
inputs: Hugh Dancy
function: Find
inputs: Maya Rudolph
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hugh Dancy" .  } UNION { ?e <pred:name> "Maya Rudolph" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Maya Rudolph