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