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