Question: The city where X-Men: First Class is set in the year 1944 is HQ of how many independent record labels?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent record label" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "X-Men: First Class" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <narrative_location> ; <pred:fact_t> ?e_1 ] <point_in_time> ?qpv . ?qpv <pred:year> 1944 .   }
Program:
function: Find
inputs: X-Men: First Class
function: Relate
dependencies: 0
inputs: narrative location
forward
function: QFilterYear
dependencies: 1
inputs: point in time
1944
=
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: independent record label
function: Count
dependencies: 5