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