Question: How many television-series episodes have the title Hearts and Minds or have a script Craig Thomas wrote (the one whose date of birth is 1971-06-26)?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <title> ?pv . ?pv <pred:value> "Hearts and Minds" .  } UNION { ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Craig Thomas" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1971-06-26"^^xsd:date .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Hearts and Minds
function: FilterConcept
dependencies: 1
inputs: television series episode
function: Find
inputs: Craig Thomas
function: FilterDate
dependencies: 3
inputs: date of birth
1971-06-26
=
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: FilterConcept
dependencies: 5
inputs: television series episode
function: Or
dependencies: 2
6
function: Count
dependencies: 7