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