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