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