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