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