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