query-facdc8c6137053e28d254b20960b7a51
Marian (Polish)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE {
{
SELECT ?item
WHERE {
?item wdt:P21 wd:Q6581072 .
?item wdt:P735 wd:Q20155725 . # Marian (female)
{
# articles in plwiki only
?item wikibase:sitelinks ?linkcount .
FILTER(?linkcount = 1)
?link schema:about ?item ; schema:inLanguage "pl" .
}
UNION
{
# combined with a second Polish male given name
?item wdt:P735 ?given .
?given wdt:P31 wd:Q12308941 .
?given wdt:P407 wd:Q809 .
}
UNION
{
# combined with a Polish family name
?item wdt:P734 ?family .
?family wdt:P407 wd:Q809 .
}
UNION
{
# combined with a Polish birth place
?item wdt:P19 ?birthPlace .
?birthPlace wdt:P17 wd:Q36 .
}
UNION
{
# combined with Polish citizenship
?item wdt:P27 wd:Q36 .
}
}
LIMIT 50
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?birthPlace")
v5("?family")
v4("?given")
v1("?item"):::projected
v3("?link")
v2("?linkcount")
c2(["wd:Q6581072"]):::iri
c13(["wd:Q809"]):::iri
c17(["wd:Q36"]):::iri
c11(["wd:Q12308941"]):::iri
c20(["bd:serviceParam"]):::iri
c4(["wd:Q20155725"]):::iri
c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["pl"]):::literal
v1 --"wdt:P21"--> c2
v1 --"wdt:P735"--> c4
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;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c17
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> v6
v6 --"wdt:P17"--> c17
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P734"--> v5
v5 --"wdt:P407"--> c13
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P735"--> v4
v4 --"wdt:P31"--> c11
v4 --"wdt:P407"--> c13
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f0[["?linkcount = '1^^xsd:integer'"]]
f0 --> v2
v1 --"wikibase:sitelinks"--> v2
v3 --"schema:about"--> v1
v3 --"schema:inLanguage"--> c9
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c20 --"wikibase:language"--> c22
end