Question: Where was the television series episode (with a series ordinal of 97) that is a part of Star Trek: The Next Generation (which ended on 1994-05-23) published on 1991-05-13?
Choices:
Hollywood Bowl
Canada
Charlotte Motor Speedway
South Africa
United States of America
Argentina
Lithuania
Japan
58th Berlin International Film Festival
United Arab Emirates
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" . ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "Star Trek: The Next Generation" . ?e_1 <end_time> ?pv_1 . ?pv_1 <pred:date> "1994-05-23"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_1 ] <series_ordinal> ?qpv_1 . ?qpv_1 <pred:value> "97" . ?e <publication_date> ?pv . ?pv <pred:date> "1991-05-13"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <publication_date> ; <pred:fact_t> ?pv ] <place_of_publication> ?qpv .  }
Program:
function: Find
inputs: Star Trek: The Next Generation
function: FilterDate
dependencies: 0
inputs: end time
1994-05-23
=
function: Relate
dependencies: 1
inputs: part of the series
backward
function: QFilterStr
dependencies: 2
inputs: series ordinal
97
function: FilterConcept
dependencies: 3
inputs: television series episode
function: QueryAttrQualifier
dependencies: 4
inputs: publication date
1991-05-13
place of publication