Question: tell me the one that has less children, Charlie Sheen or William Baldwin (whose work starts in 1989)
Choices: Richard Gere
David Byrne
Sylvester Stallone
William Baldwin
Paul Simon
Simon Cowell
James E. Reilly
Rahul Dev Burman
Max Fleischer
William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie Sheen" . } UNION { ?e <pred:name> "William Baldwin" . ?e <work_period_(start)> ?pv_1 . ?pv_1 <pred:year> 1989 . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Charlie Sheen
function: Find
inputs: William Baldwin
function: FilterYear
dependencies: 1
inputs: work period (start)
1989
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
Answer: William Baldwin