Question: Who has more children, Natalie Morales (the one that has the occupation of journalist) or Uma Thurman?
Choices:
David Byrne
Rahul Dev Burman
James E. Reilly
William Henry Harrison
Richard Gere
Sylvester Stallone
Uma Thurman
Paul Simon
Simon Cowell
Natalie Morales
Program:
function: Find
inputs: journalist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Natalie Morales
function: And
dependencies: 1
2
function: Find
inputs: Uma Thurman
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Natalie Morales" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "journalist" .   } UNION { ?e <pred:name> "Uma Thurman" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Uma Thurman