Question: How many soundtrack albums have the title A Star Is Born: Soundtrack or are based on Twin Peaks: Fire Walk with Me (the one whose production company is New Line Cinema)?
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> "soundtrack album" .  { ?e <title> ?pv . ?pv <pred:value> "A Star Is Born: Soundtrack" .  } UNION { ?e <based_on> ?e_1 . ?e_1 <pred:name> "Twin Peaks: Fire Walk with Me" . ?e_1 <production_company> ?e_2 . ?e_2 <pred:name> "New Line Cinema" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
A Star Is Born: Soundtrack
function: FilterConcept
dependencies: 1
inputs: soundtrack album
function: Find
inputs: New Line Cinema
function: Relate
dependencies: 3
inputs: production company
backward
function: Find
inputs: Twin Peaks: Fire Walk with Me
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: based on
backward
function: FilterConcept
dependencies: 7
inputs: soundtrack album
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2