Question: Which person has less children, Giovanni Ribisi or Lucy Lawless?
Choices:
James E. Reilly
Lucy Lawless
Paul Simon
Simon Cowell
Max Fleischer
David Byrne
William Henry Harrison
Sylvester Stallone
Giovanni Ribisi
Rahul Dev Burman
Program:
function: Find
inputs: Giovanni Ribisi
function: Find
inputs: Lucy Lawless
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Giovanni Ribisi" .  } UNION { ?e <pred:name> "Lucy Lawless" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Giovanni Ribisi