Question: Who has fewer kids: Jon Favreau, whose career launched in 1992, or Harry S. Truman?
Choices:
Max Fleischer
Sylvester Stallone
William Henry Harrison
Paul Simon
Rahul Dev Burman
Harry S. Truman
Jon Favreau
James E. Reilly
Richard Gere
David Byrne
Program:
function: Find
inputs: Jon Favreau
function: FilterYear
dependencies: 0
inputs: work period (start)
1992
=
function: Find
inputs: Harry S. Truman
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jon Favreau" . ?e <work_period_(start)> ?pv_1 . ?pv_1 <pred:year> 1992 . } UNION { ?e <pred:name> "Harry S. Truman" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Harry S. Truman