Question: Who has more children, Katie Holmes or Giuseppe Verdi (the one whose date of death is 1901-01-27)?
Choices:
James E. Reilly
Paul Simon
Richard Gere
Giuseppe Verdi
Katie Holmes
Max Fleischer
Simon Cowell
Sylvester Stallone
Rahul Dev Burman
William Henry Harrison
Program:
function: Find
inputs: Katie Holmes
function: Find
inputs: Giuseppe Verdi
function: FilterDate
dependencies: 1
inputs: date of death
1901-01-27
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Katie Holmes" . } UNION { ?e <pred:name> "Giuseppe Verdi" . ?e <date_of_death> ?pv_1 . ?pv_1 <pred:date> "1901-01-27"^^xsd:date . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Giuseppe Verdi