Question: Who has fewer offspring: opera's Giuseppe Verdi or Peter Ustinov?
Choices:
William Henry Harrison
Max Fleischer
Richard Gere
Giuseppe Verdi
Simon Cowell
Sylvester Stallone
James E. Reilly
David Byrne
Peter Ustinov
Rahul Dev Burman
Program:
function: Find
inputs: opera
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Giuseppe Verdi
function: And
dependencies: 1
2
function: Find
inputs: Peter Ustinov
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Giuseppe Verdi" . ?e <genre> ?e_1 . ?e_1 <pred:name> "opera" .   } UNION { ?e <pred:name> "Peter Ustinov" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Giuseppe Verdi