Question: Who has less children, Neve Campbell or Adam Smith (whose birth name is actually David Adam Smith)?
Choices: James E. Reilly
Max Fleischer
Simon Cowell
Richard Gere
David Byrne
Sylvester Stallone
Rahul Dev Burman
Paul Simon
Adam Smith
Neve Campbell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Neve Campbell" . } UNION { ?e <pred:name> "Adam Smith" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "David Adam Smith" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Neve Campbell
function: Find
inputs: Adam Smith
function: FilterStr
dependencies: 1
inputs: birth name
David Adam Smith
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
Answer: Neve Campbell