query-09961a8b245349df8cc51742be3fc916
Propertiespartner in business or sport (P1327)ISU figure skater ID (P2694)identifier shared with (P4070)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?item2 ?item2Label (CONCAT("A", ?dummy) AS ?id)
WHERE
{
?item p:P2694 ?statement .
?statement ps:P2694 ?dummy .
?statement pq:P4070 ?item2 .
FILTER NOT EXISTS { ?item wdt:P1327 ?item2 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?dummy"):::projected
v5("?id")
v1("?item"):::projected
v2("?item2"):::projected
v3("?statement")
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P1327"--> e0v2
e0v1("?item"):::projected
e0v2("?item2"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:direct/P1327"--> v2
v1 --"p:P2694"--> v3
v3 --"p:statement/P2694"--> v4
v3 --"p:qualifier/P4070"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"concat('A',?dummy)"/]
v4 --o bind1
bind1 --as--o v5