Question: What award class was received by The Great Gatsby (the one whose genre is novel) and was received by On the Road (the one whose narrative location is New York City)?
Choices:
Le Monde's 100 Books of the Century
BAFTA Award for Best Special Visual Effects
Japan Academy Prize for Animation of the Year
Legion of Merit
BAFTA Award for Best Editing
Goya Award for Best Supporting Actress
Order of the Three Stars
BAFTA Award for Best Actor in a Leading Role
BAFTA Award for Best Actress in a Supporting Role
BAFTA Award for Best Makeup and Hair
Answer: Le Monde's 100 Books of the Century
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "class of award" . ?e_1 <award_received> ?e . ?e_1 <pred:name> "The Great Gatsby" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "novel" .  ?e_3 <award_received> ?e . ?e_3 <pred:name> "On the Road" . ?e_3 <narrative_location> ?e_4 . ?e_4 <pred:name> "New York City" .  }
Program:
function: Find
inputs: novel
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: class of award
function: Find
inputs: New York City
function: Relate
dependencies: 6
inputs: narrative location
backward
function: Find
inputs: On the Road
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: award received
forward
function: FilterConcept
dependencies: 10
inputs: class of award
function: And
dependencies: 5
11
function: What
dependencies: 12