Question: Which has fewer pages, Planet of the Apes (the one whose title is La Planète des singes) or The Help (the one whose ISBN-13 is 978-4-08-760642-3)?
Choices:
Live and Let Die
Contact
The Painted Veil
Planet of the Apes
Starship Troopers
The Help
listed building in the United Kingdom
A Single Man
Interview with the Vampire
The Hours
Answer: Planet of the Apes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Planet of the Apes" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "La Planète des singes" . } UNION { ?e <pred:name> "The Help" . ?e <ISBN-13> ?pv_2 . ?pv_2 <pred:value> "978-4-08-760642-3" . } ?e <number_of_pages> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Planet of the Apes
function: FilterStr
dependencies: 0
inputs: title
La Planète des singes
function: Find
inputs: The Help
function: FilterStr
dependencies: 2
inputs: ISBN-13
978-4-08-760642-3
function: SelectBetween
dependencies: 1
3
inputs: number of pages
less