Question: Evolution, with Jonathan Frakes as a cast member, is which episode number in the 7-season series Star Trek: The Next Generation ?
Choices:
2
49
109
7
14
43
39
8
23
36
Program:
function: Find
inputs: Jonathan Frakes
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Evolution
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: The Next Generation
function: FilterNum
dependencies: 4
inputs: number of seasons
7
=
function: QueryRelationQualifier
dependencies: 3
5
inputs: part of the series
series ordinal
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Evolution" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jonathan Frakes" . ?e_2 <pred:name> "Star Trek: The Next Generation" . ?e_2 <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7"^^xsd:double . ?e_1 <part_of_the_series> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Answer: 49