Question: Who has more children, Joe Pantoliano or Sanjay Dutt?
Choices:
Rahul Dev Burman
Richard Gere
Joe Pantoliano
Simon Cowell
Paul Simon
David Byrne
James E. Reilly
Sylvester Stallone
William Henry Harrison
Sanjay Dutt
Program:
function: Find
inputs: Joe Pantoliano
function: Find
inputs: Sanjay Dutt
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joe Pantoliano" .  } UNION { ?e <pred:name> "Sanjay Dutt" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Joe Pantoliano