So I have this SparQL query that gets the information of the United States dollar
SELECT
?currency ?page_title ?currencyLabel ?currencyIso4217
(GROUP_CONCAT(distinct ?shortName; separator = ', ') as ?shortNames)
{
?currency wdt:P498 ?currencyIso4217 .
OPTIONAL {?currency wdt:P1813 ?shortName} .
?article schema:about ?currency ; schema:isPartOf <https://en.wikipedia.org/>; schema:name ?page_title
SERVICE wikibase:label { bd:serviceParam wikibase:language 'nl' }
{
BIND(wd:Q4917 AS ?currency).
OPTIONAL {
SERVICE wikibase:label
{
?shortName rdfs:label ?shortNameLabel .
bd:serviceParam wikibase:language 'nl'
}
}
}
}
group by ?currency ?currencyLabel ?currencyIso4217 ?page_title
Now when I look at the WikiData page of the USD, and then to the "short names" section I see this:
They all have a language property between brackets. Now my question: what I want in my query is to have only the "English" version of the short name in it and filter out all the other languages. How can I do that?