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