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