Question: For David Boreanaz as a cast member (the character role of this statement is Seeley Booth), what is the number of episodes for the television series?
Choices: 202
109
246
3471
39
733
203
7
24
656
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Boreanaz" .  [ <pred:fact_h> ?e ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_1 ] <character_role> ?qpv . ?qpv <pred:value> "Seeley Booth" . ?e <number_of_episodes> ?pv .  }
Program:
function: Find
inputs: David Boreanaz
function: Relate
dependencies: 0
inputs: cast member
backward
function: QFilterStr
dependencies: 1
inputs: character role
Seeley Booth
function: FilterConcept
dependencies: 2
inputs: television series
function: QueryAttr
dependencies: 3
inputs: number of episodes
Answer: 246