Question: Who has more children, David Newman (the one that is the composer of Scooby-Doo) or Jennifer Hale (the one that is a cast member of Superman/Batman: Public Enemies)?
Choices:
Rahul Dev Burman
Richard Gere
Simon Cowell
Paul Simon
David Newman
Sylvester Stallone
Max Fleischer
David Byrne
William Henry Harrison
Jennifer Hale
Answer: David Newman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Newman" . ?e_1 <composer> ?e . ?e_1 <pred:name> "Scooby-Doo" .   } UNION { ?e <pred:name> "Jennifer Hale" . ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Superman/Batman: Public Enemies" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Scooby-Doo
function: Relate
dependencies: 0
inputs: composer
forward
function: Find
inputs: David Newman
function: And
dependencies: 1
2
function: Find
inputs: Superman/Batman: Public Enemies
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Jennifer Hale
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of children
greater