Question: Who has fewer children, Garry Marshall or Bryan Adams (the one whose work period (start) is 1978)?
Choices:
Rahul Dev Burman
Garry Marshall
Simon Cowell
Richard Gere
Sylvester Stallone
Paul Simon
William Henry Harrison
James E. Reilly
Max Fleischer
Bryan Adams
Program:
function: Find
inputs: Garry Marshall
function: Find
inputs: Bryan Adams
function: FilterYear
dependencies: 1
inputs: work period (start)
1978
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Garry Marshall" . } UNION { ?e <pred:name> "Bryan Adams" . ?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
Answer: Bryan Adams