User:Alicia Fagerving (WMSE)/Sandbox










PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?when (GROUP_CONCAT(DISTINCT ?speakerLabel; SEPARATOR = ", ") AS ?speakers)
WHERE
{
?item wbt:P17 wb:Q22660.
OPTIONAL {?item wbt:P23 ?when}
OPTIONAL {?item wbt:P33 ?speaker}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en,sv,es".
    ?item rdfs:label ?itemLabel.
    ?speaker rdfs:label ?speakerLabel.
  }
}
GROUP BY ?item ?itemLabel ?when
ORDER BY ?when

Try it!