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