query = `#defaultEndpoint:Lingualibre
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT
(COUNT(DISTINCT ?record) AS ?records)
(COUNT(DISTINCT ?speaker) AS ?speakers)
(COUNT(DISTINCT ?language) AS ?languages)
WHERE {
?record prop:P2 entity:Q2 .
#?records prop:P3 entity:Q133 # focus on one language
?record prop:P6 ?date .
?record prop:P5 ?speaker .
?record prop:P4 ?language .
# Filters:
FILTER(?date >= "2018-05-01T00:00:00Z"^^xsd:dateTime )
FILTER(?date < "2023-12-01T00:00:00Z"^^xsd:dateTime + "P1M"^^xsd:duration)
}`