Question: Who has more children, James Gandolfini or Walter Scott (the one whose pseudonym is Malachi Malagrowther)?
Choices: Sylvester Stallone
William Henry Harrison
Walter Scott
Richard Gere
James Gandolfini
Simon Cowell
James E. Reilly
David Byrne
Max Fleischer
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Gandolfini" . } UNION { ?e <pred:name> "Walter Scott" . ?e <pseudonym> ?pv_1 . ?pv_1 <pred:value> "Malachi Malagrowther" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: James Gandolfini
function: Find
inputs: Walter Scott
function: FilterStr
dependencies: 1
inputs: pseudonym
Malachi Malagrowther
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
Answer: Walter Scott