Question: Who has more kids, John Heard or English-speaking John Powell?
Choices:
John Powell
Sylvester Stallone
John Heard
David Byrne
James E. Reilly
Richard Gere
Simon Cowell
Max Fleischer
William Henry Harrison
Paul Simon
Answer: John Heard
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Heard" .  } UNION { ?e <pred:name> "John Powell" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "English" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: John Heard
function: Find
inputs: English
function: Relate
dependencies: 1
inputs: languages spoken, written or signed
backward
function: Find
inputs: John Powell
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater