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