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