Question: Who has fewer kids: Hilary Duff or the Mark Williams who is cast on Albert Nobbs?
Choices:
William Henry Harrison
Simon Cowell
Hilary Duff
James E. Reilly
Sylvester Stallone
Mark Williams
Richard Gere
Rahul Dev Burman
Paul Simon
David Byrne
Program:
function: Find
inputs: Albert Nobbs
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Mark Williams
function: And
dependencies: 1
2
function: Find
inputs: Hilary Duff
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Williams" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Albert Nobbs" .   } UNION { ?e <pred:name> "Hilary Duff" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mark Williams