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