Question: Between Freddie Prinze, who began working in 1995, or Joan Plowright, who has more kids?
Choices:
Paul Simon
James E. Reilly
Richard Gere
Joan Plowright
William Henry Harrison
Simon Cowell
Max Fleischer
David Byrne
Freddie Prinze
Rahul Dev Burman
Program:
function: Find
inputs: Freddie Prinze
function: FilterYear
dependencies: 0
inputs: work period (start)
1995
=
function: Find
inputs: Joan Plowright
function: SelectBetween
dependencies: 1
2
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Freddie Prinze" . ?e <work_period_(start)> ?pv_1 . ?pv_1 <pred:year> 1995 . } UNION { ?e <pred:name> "Joan Plowright" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Joan Plowright