Question: Who has fewer kids, Elizabeth Banks who is a cast member of Zack and Miri Make a Porno or R. Lee Ermey?
Choices:
R. Lee Ermey
Richard Gere
Simon Cowell
William Henry Harrison
Max Fleischer
Paul Simon
Sylvester Stallone
Rahul Dev Burman
Elizabeth Banks
James E. Reilly
Program:
function: Find
inputs: Zack and Miri Make a Porno
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Elizabeth Banks
function: And
dependencies: 1
2
function: Find
inputs: R. Lee Ermey
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth Banks" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Zack and Miri Make a Porno" .   } UNION { ?e <pred:name> "R. Lee Ermey" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Elizabeth Banks