Question: How many Pennsylvania cities are different from Phoenix (whose local dialing code is 520) and are Relapse Records' headquarters location?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Phoenix
function: FilterStr
dependencies: 0
inputs: local dialing code
520
function: Relate
dependencies: 1
inputs: different from
forward
function: FilterConcept
dependencies: 2
inputs: city of Pennsylvania
function: Find
inputs: Relapse Records
function: Relate
dependencies: 4
inputs: headquarters location
forward
function: FilterConcept
dependencies: 5
inputs: city of Pennsylvania
function: And
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e_1 <different_from> ?e . ?e_1 <pred:name> "Phoenix" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "520" .  ?e_2 <headquarters_location> ?e . ?e_2 <pred:name> "Relapse Records" .  }
Answer: 1