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