Question: Tell me the one with more children, Guy Ritchie and Anne V. Coates
Choices:
Richard Gere
Paul Simon
James E. Reilly
William Henry Harrison
Sylvester Stallone
Rahul Dev Burman
Max Fleischer
Guy Ritchie
Simon Cowell
Anne V. Coates
Program:
function: Find
inputs: Guy Ritchie
function: Find
inputs: Anne V. Coates
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guy Ritchie" .  } UNION { ?e <pred:name> "Anne V. Coates" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Guy Ritchie