Question: Who has fewer children, Frank Marshall (the one that is the producer of Raiders of the Lost Ark) or William Howard Taft?
Choices:
Rahul Dev Burman
James E. Reilly
Frank Marshall
Max Fleischer
William Howard Taft
Sylvester Stallone
William Henry Harrison
David Byrne
Simon Cowell
Paul Simon
Program:
function: Find
inputs: Raiders of the Lost Ark
function: Relate
dependencies: 0
inputs: producer
forward
function: Find
inputs: Frank Marshall
function: And
dependencies: 1
2
function: Find
inputs: William Howard Taft
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frank Marshall" . ?e_1 <producer> ?e . ?e_1 <pred:name> "Raiders of the Lost Ark" .   } UNION { ?e <pred:name> "William Howard Taft" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Frank Marshall