Question: How many fictional humans appear in the television series as Sam Lane where Michael Ironside is a cast member?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional human" . ?e_1 <characters> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "television series" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Michael Ironside" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv . ?qpv <pred:value> "Sam Lane" .   }
Program:
function: Find
inputs: Michael Ironside
function: Relate
dependencies: 0
inputs: cast member
backward
function: QFilterStr
dependencies: 1
inputs: character role
Sam Lane
function: FilterConcept
dependencies: 2
inputs: television series
function: Relate
dependencies: 3
inputs: characters
forward
function: FilterConcept
dependencies: 4
inputs: fictional human
function: Count
dependencies: 5