Question: How many pieces of electronic music origin in a sovereign state containing Hawaii (the one whose FIPS 5-2 alpha code (US states) is HI) ?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "electronic music" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Hawaii" . ?e_2 <FIPS_5-2_alpha_code_(US_states)> ?pv . ?pv <pred:value> "HI" .   }
Program:
function: Find
inputs: Hawaii
function: FilterStr
dependencies: 0
inputs: FIPS 5-2 alpha code (US states)
HI
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: electronic music
function: Count
dependencies: 5