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