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