Question: Does Mary McDonnell or Alan Dale have more kids?
Choices:
William Henry Harrison
Sylvester Stallone
Simon Cowell
Mary McDonnell
James E. Reilly
Max Fleischer
Alan Dale
David Byrne
Richard Gere
Paul Simon
Program:
function: Find
inputs: Mary McDonnell
function: Find
inputs: Alan Dale
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mary McDonnell" .  } UNION { ?e <pred:name> "Alan Dale" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alan Dale