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