PREFIX qb:
PREFIX census:
PREFIX jsm-code:
PREFIX year:
SELECT ?year ?prefecture ( ?pop2 / ?pop1 * 100 AS ?indexOfPop ) WHERE { ?prefecture a jsm-code:Prefecture ; jsm-code:a-region jsm-code:rgn-四国地方 . ?obs1 qb:dataSet census:ds-population1_1 ; census:d-prefecture ?prefecture ; census:d-sex jsm-code:sex-総数 ; census:d-year year:1970 ; census:m-population ?pop1 . ?obs2 qb:dataSet census:ds-population1_1 ; census:d-prefecture ?prefecture ; census:d-sex jsm-code:sex-総数 ; census:d-year ?year ; census:m-population ?pop2 . } ORDER BY ASC(?year)
chart div