Question: Who has more kids, Eric Roth or Bryan Adams that is famous for piano?
Choices:
Sylvester Stallone
Richard Gere
Eric Roth
Paul Simon
Simon Cowell
David Byrne
William Henry Harrison
Rahul Dev Burman
Bryan Adams
Max Fleischer
Program:
function: Find
inputs: Eric Roth
function: Find
inputs: piano
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Bryan Adams
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eric Roth" .  } UNION { ?e <pred:name> "Bryan Adams" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "piano" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Eric Roth