Question: How many visual artworks are associated with someone who, as the costume designer, received the Academy Award for Best Costume Design (the award-winning work of this statement is Cinderella) ?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <costume_designer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Costume Design" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv . ?qpv <pred:value> "Cinderella" .   }
Program:
function: Find
inputs: Academy Award for Best Costume Design
function: Relate
dependencies: 0
inputs: nominated for
backward
function: QFilterStr
dependencies: 1
inputs: for work
Cinderella
function: FilterConcept
dependencies: 2
inputs: human
function: Relate
dependencies: 3
inputs: costume designer
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: Count
dependencies: 5