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