Question: Who has fewer children, Jane Alexander (the one whose birth name is Jane Quigley) or Wes Craven?
Choices:
Simon Cowell
William Henry Harrison
Wes Craven
Richard Gere
Max Fleischer
Rahul Dev Burman
Paul Simon
Jane Alexander
James E. Reilly
Sylvester Stallone
Program:
function: Find
inputs: Jane Alexander
function: FilterStr
dependencies: 0
inputs: birth name
Jane Quigley
function: Find
inputs: Wes Craven
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jane Alexander" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Jane Quigley" . } UNION { ?e <pred:name> "Wes Craven" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jane Alexander