Question: Which entertainment has a publication date outside of 2004 and a Nintendo GameID of GAVY78?
Choices:
Harry Potter and the Half-Blood Prince
Batman
Pirates of the Caribbean: At World's End
music video game
Avatar: The Last Airbender
Guitar Hero 5
Alice in Wonderland
Battleship
Robots
Puss in Boots
Answer: Avatar: The Last Airbender
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "entertainment" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2004 ) . ?e <Nintendo_GameID> ?pv_1 . ?pv_1 <pred:value> "GAVY78" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2004
!=
function: FilterConcept
dependencies: 1
inputs: entertainment
function: FindAll
function: FilterStr
dependencies: 3
inputs: Nintendo GameID
GAVY78
function: FilterConcept
dependencies: 4
inputs: entertainment
function: And
dependencies: 2
5
function: What
dependencies: 6