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