Question: Does Abhishek Bachchan or Frank Pierson have more kids than the other?
Choices:
James E. Reilly
Richard Gere
David Byrne
Abhishek Bachchan
Paul Simon
Frank Pierson
Sylvester Stallone
Max Fleischer
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: Abhishek Bachchan
function: Find
inputs: Frank Pierson
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Abhishek Bachchan" .  } UNION { ?e <pred:name> "Frank Pierson" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Frank Pierson