Question: Who is shorter, Dakota Fanning or Alan Bennett (birth name is Alan John Bennett)?
Choices:
Rahul Dev Burman
Simon Cowell
William Henry Harrison
Paul Simon
Dakota Fanning
Alan Bennett
Richard Gere
James E. Reilly
Max Fleischer
David Byrne
Program:
function: Find
inputs: Dakota Fanning
function: Find
inputs: Alan Bennett
function: FilterStr
dependencies: 1
inputs: birth name
Alan John Bennett
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dakota Fanning" . } UNION { ?e <pred:name> "Alan Bennett" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Alan John Bennett" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dakota Fanning