Question: What is the IAB code of the science fiction sharing the same genre as Battlestar Galactica (the one whose date of first performance is 2004-10-18)?
Choices:
545
1366
652
1361
109
122
1038
512
1070
1288
Program:
function: Find
inputs: Battlestar Galactica
function: FilterDate
dependencies: 0
inputs: date of first performance
2004-10-18
=
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: science fiction
function: QueryAttr
dependencies: 3
inputs: IAB code
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science fiction" . ?e_1 <genre> ?e . ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <date_of_first_performance> ?pv_1 . ?pv_1 <pred:date> "2004-10-18"^^xsd:date . ?e <IAB_code> ?pv .  }
Answer: 652