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