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