Question: How many public companies are headquartered in the city that is the twinned administrative body of Hanover (the one whose population is 518386) (the start time of this statement is 1947-01-01)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public company" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Hanover" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "518386"^^xsd:double . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <twinned_administrative_body> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:date> "1947-01-01"^^xsd:date .   }
Program:
function: Find
inputs: Hanover
function: FilterNum
dependencies: 0
inputs: population
518386
=
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: QFilterDate
dependencies: 2
inputs: start time
1947-01-01
=
function: FilterConcept
dependencies: 3
inputs: city
function: Relate
dependencies: 4
inputs: headquarters location
backward
function: FilterConcept
dependencies: 5
inputs: public company
function: Count
dependencies: 6