Question: Does Terry Gilliam or Jennifer Ehle have the less number of children?
Choices:
Richard Gere
Rahul Dev Burman
Paul Simon
Jennifer Ehle
Max Fleischer
Terry Gilliam
David Byrne
William Henry Harrison
Sylvester Stallone
Simon Cowell
Program:
function: Find
inputs: Terry Gilliam
function: Find
inputs: Jennifer Ehle
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Terry Gilliam" .  } UNION { ?e <pred:name> "Jennifer Ehle" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jennifer Ehle