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