Question: Which literary award was nominated to Graham Greene (who has the occupation of journalist) and was nominated to Seamus Heaney in 1994?
Choices:
Philip K. Dick Award
Neustadt International Prize for Literature
Locus Award for Best Science Fiction Novel
Prometheus Award
International IMPAC Dublin Literary Award
Nebula Award for Best Novelette
Newbery Medal
National Book Award for Poetry
Nebula Award for Best Novella
Michael L. Printz Award
Program:
function: Find
inputs: journalist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Graham Greene
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: nominated for
forward
function: FilterConcept
dependencies: 4
inputs: literary award
function: Find
inputs: Seamus Heaney
function: Relate
dependencies: 6
inputs: nominated for
forward
function: QFilterYear
dependencies: 7
inputs: point in time
1994
=
function: FilterConcept
dependencies: 8
inputs: literary award
function: And
dependencies: 5
9
function: What
dependencies: 10
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary award" . ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Graham Greene" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "journalist" .  ?e_3 <nominated_for> ?e . ?e_3 <pred:name> "Seamus Heaney" . [ <pred:fact_h> ?e_3 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e ] <point_in_time> ?qpv . ?qpv <pred:year> 1994 .  }
Answer: Neustadt International Prize for Literature