query-515fda5c72f923902f5cc1f941a087ef
UnionHello. I want to find the items with wdt:P131 wd:Q59150 and wdt:P31 wd:Q29414133 PLUS the items with wdt:P131 wd:Q59150 and wdt:P31 wd:Q16739079 . This is not working.
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?any
WHERE
{
?item wdt:P131 wd:Q59150 .
?item wdt:P31 wd:Q29414133 .
UNION
?item wdt:P131 wd:Q59150 .
?item wdt:P31 wd:Q16739079 .
}