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