Question: The Little Mermaid has a Dewey Decimal Classification of 398.21, a 1990-11-29 publication date, and a central subject reflecting what genre of literature?
Choices:
literary criticism
adventure novel
horror literature
The Amazing Spider-Man
fairy tale
memoir
The Scarlet Letter
Watchmen
Superman
To Kill a Mockingbird
Answer: fairy tale
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "The Little Mermaid" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1990-11-29"^^xsd:date .  ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "398.21" .  }
Program:
function: Find
inputs: The Little Mermaid
function: FilterDate
dependencies: 0
inputs: publication date
1990-11-29
=
function: Relate
dependencies: 1
inputs: main subject
forward
function: FilterConcept
dependencies: 2
inputs: literary genre
function: FindAll
function: FilterStr
dependencies: 4
inputs: Dewey Decimal Classification
398.21
function: FilterConcept
dependencies: 5
inputs: literary genre
function: And
dependencies: 3
6
function: What
dependencies: 7