Question: Who has fewer children, Telly Savalas or Patrick Doyle (the one whose work period (start) is 1978)?
Choices: Max Fleischer
Telly Savalas
William Henry Harrison
Richard Gere
Rahul Dev Burman
David Byrne
Simon Cowell
Sylvester Stallone
Paul Simon
Patrick Doyle
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Telly Savalas" . } UNION { ?e <pred:name> "Patrick Doyle" . ?e <work_period_(start)> ?pv_1 . ?pv_1 <pred:year> 1978 . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Telly Savalas
function: Find
inputs: Patrick Doyle
function: FilterYear
dependencies: 1
inputs: work period (start)
1978
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
Answer: Patrick Doyle