Question: How many television series episodes have Jason Segel as a cast member or whose production code is K0123?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jason Segel" .  } UNION { ?e <production_code> ?pv . ?pv <pred:value> "K0123" .  } }
Program:
function: Find
inputs: Jason Segel
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: television series episode
function: FindAll
function: FilterStr
dependencies: 3
inputs: production code
K0123
function: FilterConcept
dependencies: 4
inputs: television series episode
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3