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