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