Question: How many singles have won the award for which Mark Knopfler was a nominee?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" . ?e <award_received> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "award" . ?e_2 <nominated_for> ?e_1 . ?e_2 <pred:name> "Mark Knopfler" .   }
Program:
function: Find
inputs: Mark Knopfler
function: Relate
dependencies: 0
inputs: nominated for
forward
function: FilterConcept
dependencies: 1
inputs: award
function: Relate
dependencies: 2
inputs: award received
backward
function: FilterConcept
dependencies: 3
inputs: single
function: Count
dependencies: 4