joshmoore added a comment.
Thanks again, Lucas. Simplifying the original a bit:
SELECT DISTINCT ?city (SAMPLE(?name) as ?name)
WHERE
{
?city wdt:P31/wdt:P279* wd:Q387917 . # wd:Q515 .
?city rdfs:label ?label .
FILTER(LANGMATCHES(LANG(?label), "en"))
BIND( strbefore( ?label, " " ) as ?name )
FILTER(CONTAINS(?name, "Rüdesheim"))
}
GROUP BY ?city
does seem to work (though the fuller example did run into timeouts)
TASK DETAIL
https://phabricator.wikimedia.org/T306783
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Andrawaag, joshmoore
Cc: Lucas_Werkmeister_WMDE, joshmoore, Andrawaag, Aklapper, Astuthiodit_1,
karapayneWMDE, Invadibot, MPhamWMF, maantietaja, CBogen, ItamarWMDE, Akuckartz,
Nandana, Namenlos314, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst,
LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, jkroll,
Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]