Question: Does Oliver Stone or Brad Pitt have more offspring?
Choices:
Brad Pitt
Oliver Stone
Max Fleischer
Richard Gere
Sylvester Stallone
James E. Reilly
David Byrne
Rahul Dev Burman
Paul Simon
Simon Cowell
Program:
function: Find
inputs: Oliver Stone
function: Find
inputs: Brad Pitt
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oliver Stone" .  } UNION { ?e <pred:name> "Brad Pitt" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brad Pitt