Question: Which has fewer pages, The Spy Who Loved Me published in 1962 or Planet of the Apes that has 243 pages?
Choices: Planet of the Apes
Interview with the Vampire
A Single Man
The Painted Veil
listed building in the United Kingdom
Contact
The Hours
The Maltese Falcon
The Spy Who Loved Me
Live and Let Die
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Spy Who Loved Me" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 1962 . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <number_of_pages> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "243"^^xsd:double . } ?e <number_of_pages> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Spy Who Loved Me
function: FilterYear
dependencies: 0
inputs: publication date
1962
=
function: Find
inputs: Planet of the Apes
function: FilterNum
dependencies: 2
inputs: number of pages
243
=
function: SelectBetween
dependencies: 1
3
inputs: number of pages
less
Answer: The Spy Who Loved Me