Question: Which one has more children, Ryan Gosling or Rosie O'Donnell?
Choices:
William Henry Harrison
Paul Simon
Ryan Gosling
Simon Cowell
James E. Reilly
Rahul Dev Burman
Rosie O'Donnell
Max Fleischer
Sylvester Stallone
Richard Gere
Program:
function: Find
inputs: Ryan Gosling
function: Find
inputs: Rosie O'Donnell
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ryan Gosling" .  } UNION { ?e <pred:name> "Rosie O'Donnell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rosie O'Donnell