Question: Who has less children, Elizabeth Banks the film director or Gene Hackman?
Choices:
Rahul Dev Burman
William Henry Harrison
Elizabeth Banks
Max Fleischer
Gene Hackman
Richard Gere
David Byrne
James E. Reilly
Sylvester Stallone
Simon Cowell
Program:
function: Find
inputs: film director
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Elizabeth Banks
function: And
dependencies: 1
2
function: Find
inputs: Gene Hackman
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth Banks" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "film director" .   } UNION { ?e <pred:name> "Gene Hackman" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Elizabeth Banks