Skip to content

Commit

Permalink
Cross year totals per municipality
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 25, 2015
1 parent 56ea088 commit 25f5ad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cross-year-totals.rq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Totals per municipality, cross year
# Totals per municipality, cross years, ordered by municipality

PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX cedar: <http://bit.ly/cedar#>
Expand All @@ -17,8 +17,8 @@ WHERE { ?obs a qb:Observation .
?slice sdmx-dimension:refPeriod ?year .
FILTER (NOT EXISTS {?obs cedar:houseType ?house }) .
FILTER (NOT EXISTS {?obs cedar:isTotal ?total }) .
FILTER (?year IN (1879, 1889)) .
FILTER (regex(?obs, "VT_1879_01_H1-S0|VT_1889_03_H1-S0", "i")) .
} GROUP BY ?municipality ?year
FILTER (?year IN (1879, 1899)) .
FILTER (regex(?obs, "VT_1879_01_H1-S0|VT_1899_07_H1-S0", "i")) .
} GROUP BY ?municipality ?year ORDER BY ?municipality


0 comments on commit 25f5ad7

Please sign in to comment.