Question: How many dramas are in the genre of The Practice or 1974 production The Longest Yard?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "drama" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "The Practice" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "The Longest Yard" . ?e_1 <publication_date> ?pv . ?pv <pred:year> 1974 .  } }
Program:
function: Find
inputs: The Practice
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: drama
function: Find
inputs: The Longest Yard
function: FilterYear
dependencies: 3
inputs: publication date
1974
=
function: Relate
dependencies: 4
inputs: genre
forward
function: FilterConcept
dependencies: 5
inputs: drama
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 2