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