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