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