query-d1549a8294c710dc65d57637461693c1
Items with P1 with value Q1 or Q2
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE
{
VALUES ?vals {wd:Q1 wd:Q2}
?item wdt:P1 ?vals.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?vals")
bind0[/VALUES ?vals/]
bind0-->v1
bind00(["wd:Q1"])
bind00 --> bind0
bind01(["wd:Q2"])
bind01 --> bind0
v2 --"wdt:P1"--> v1