Question: Who has more children, Al Gore or Simon Baker (the one that is educated at University of New South Wales)?
Choices:
William Henry Harrison
Simon Cowell
Max Fleischer
Richard Gere
Al Gore
Simon Baker
Sylvester Stallone
Rahul Dev Burman
David Byrne
Paul Simon
Program:
function: Find
inputs: Al Gore
function: Find
inputs: University of New South Wales
function: Relate
dependencies: 1
inputs: educated at
backward
function: Find
inputs: Simon Baker
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Al Gore" .  } UNION { ?e <pred:name> "Simon Baker" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "University of New South Wales" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Al Gore