Code examples: curl
PREFIX wdt: <https://kg-ipclimatec-reports.wikibase.cloud/prop/direct/>
PREFIX wd: <https://kg-ipclimatec-reports.wikibase.cloud/entity/>
PREFIX p: <https://kg-ipclimatec-reports.wikibase.cloud/prop/>
PREFIX pq: <https://kg-ipclimatec-reports.wikibase.cloud/prop/qualifier/>
SELECT ?response ?responseLabel (COUNT(DISTINCT ?statement) AS ?count) WHERE {
?paragraph p:P3 ?statement .
?statement pq:P21 ?response .
?response wdt:P1/wdt:P6* wd:Q288 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?response ?responseLabel
ORDER BY DESC(?count)
curl -s https://raw.githubusercontent.com/egonw/IPCC-Queries/master/sparql/responses.rq \
| sed 's+<lang/>+en+' > responses.rq
curl -H "Accept: text/tab-separated-values" \
-G https://kg-ipclimatec-reports.wikibase.cloud/query/sparql \
--data-urlencode query@responses.rq
This SPARQL query is available under CCZero.