Question: Which movie ws published before 1998 and titled Babylon 5: The Gathering?
Choices:
Monty Python and the Holy Grail
Babylon 5: The Gathering
Evil Angels
Roman Holiday
A Clockwork Orange
The Three Musketeers
Stargate
Pinocchio
Shackleton
The Goodbye Girl
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1998
<
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
Babylon 5: The Gathering
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1998 ) . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Babylon 5: The Gathering" .  }
Answer: Babylon 5: The Gathering