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