Question: In what literary genre is the work that was written by Nathaniel Hawthorne?
Choices:
The Scarlet Letter
The League of Extraordinary Gentlemen
Watchmen
Frankenstein
The Talented Mr. Ripley
medical novel
To Kill a Mockingbird
V for Vendetta
Kick-Ass
adventure novel
Program:
function: Find
inputs: Nathaniel Hawthorne
function: Relate
dependencies: 0
inputs: after a work by
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Relate
dependencies: 2
inputs: based on
forward
function: FilterConcept
dependencies: 3
inputs: literary genre
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e_1 <based_on> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "visual artwork" . ?e_1 <after_a_work_by> ?e_2 . ?e_2 <pred:name> "Nathaniel Hawthorne" .   }
Answer: The Scarlet Letter