query-83377921edf63ea34312d5e7bcfaa236
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?value
WHERE
{
{
SELECT DISTINCT ?item
WHERE
{
?item p:P106 [].
} LIMIT 10
}
?item p:P106 ?statement1.
?statement1 ps:P106 ?value.
FILTER EXISTS {
?item p:P106 ?statement2 FILTER(?statement1 != ?statement2).
#?statement2 ps:P106 ?value.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?statement1")
v2("?statement2")
v4("?value"):::projected
a1((" "))
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0f0[["?statement1 != ?statement2"]]
e0f0 --> e0v1
e0f0 --> e0v2
e0v3 --"p:P106"--> e0v2
e0v3("?item"):::projected
e0v1("?statement1"):::projected
e0v2("?statement2"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> c1
f1[["?statement1 != ?statement2"]]
f1 --> v1
f1 --> v2
v3 --"p:P106"--> v2
v3 --"p:P106"--> a1
v3 --"p:P106"--> v1
v1 --"p:statement/P106"--> v4