Question: Does organist Johann Sebastian Bach or David O. Russell have more kids?
Choices:
Johann Sebastian Bach
Simon Cowell
David O. Russell
Rahul Dev Burman
David Byrne
Paul Simon
Richard Gere
James E. Reilly
Sylvester Stallone
William Henry Harrison
Program:
function: Find
inputs: organist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Johann Sebastian Bach
function: And
dependencies: 1
2
function: Find
inputs: David O. Russell
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johann Sebastian Bach" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "organist" .   } UNION { ?e <pred:name> "David O. Russell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Johann Sebastian Bach