query-43abcc64ce51ce05f21f077fdca4ce43
(P2002)X username
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT ?item ?value ?snak {
wd:P2002 wikibase:claim ?claim; wikibase:statementProperty ?statementProperty; wikibase:qualifier ?qualifier; wikibase:reference ?reference .
{
?item ?claim [ ?statementProperty ?value ] .
BIND('mainsnak' AS ?snak) .
} UNION {
?item ?anyprop [ ?qualifier ?value ] .
BIND('qualifier' AS ?snak) .
} UNION {
?item ?anyprop [ prov:wasDerivedFrom [ ?reference ?value ] ] .
BIND('reference' AS ?snak) .
}
} ORDER BY ASC(?snak) ASC(?value)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?anyprop")
v3("?claim")
v7("?item"):::projected
v5("?qualifier")
v6("?reference")
v9("?snak"):::projected
v4("?statementProperty")
v2("?value"):::projected
a1((" "))
a2((" "))
a4((" "))
a3((" "))
c1(["wd:P2002"]):::iri
c1 --"wikibase:claim"--> v3
c1 --"wikibase:statementProperty"--> v4
c1 --"wikibase:qualifier"--> v5
c1 --"wikibase:reference"--> v6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
a3 -->v6--> v2
a4 --"prov:wasDerivedFrom"--> a3
v7 -->v8--> a4
bind0[/"'reference'"/]
bind0 --as--o v9
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
a2 -->v5--> v2
v7 -->v8--> a2
bind1[/"'qualifier'"/]
bind1 --as--o v9
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 -->v4--> v2
v7 -->v3--> a1
bind2[/"'mainsnak'"/]
bind2 --as--o v9
end
union0r <== or ==> union0l
end