query-ae6135691af52587f896ac4519590c0d
List of countries, territories and islands in English and Punjabi
List of countries, territories and islands in English and Punjabi
SELECT ?country ?label_en ?label_pa WHERE { {?country wdt:P31 wd:Q6256.} #country UNION {?country wdt:P31 wd:Q46395.} #British territory UNION {?country wdt:P31 wd:Q202216.} #French territory UNION {?country wdt:P31 wd:Q33837} #archipelago UNION {?country wdt:P31 wd:Q23442} #island UNION {?country wdt:P31 wd:Q15634554} #states with limited recognition ?country rdfs:label ?label_en filter (lang(?label_en) = "en"). ?country rdfs:label ?label_pa filter (lang(?label_pa) = "pa").
} ORDER BY ASC (?label_en)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#List of countries, territories and islands in English and Punjabi
#List of countries, territories and islands in English and Punjabi
SELECT ?country ?label_en ?label_pa
WHERE
{
{?country wdt:P31 wd:Q6256.} #country
UNION
{?country wdt:P31 wd:Q46395.} #British territory
UNION
{?country wdt:P31 wd:Q202216.} #French territory
UNION
{?country wdt:P31 wd:Q33837} #archipelago
UNION
{?country wdt:P31 wd:Q23442} #island
UNION
{?country wdt:P31 wd:Q15634554} #states with limited recognition
?country rdfs:label ?label_en filter (lang(?label_en) = "en").
?country rdfs:label ?label_pa filter (lang(?label_pa) = "pa").
}
ORDER BY ASC (?label_en)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country"):::projected
v1("?label_en"):::projected
v2("?label_pa"):::projected
c5(["wd:Q46395"]):::iri
c7(["wd:Q33837"]):::iri
c9(["wd:Q15634554"]):::iri
c8(["wd:Q23442"]):::iri
c4(["wd:Q6256"]):::iri
c6(["wd:Q202216"]):::iri
f0[["?label_pa = 'pa'"]]
f0 --> v2
f1[["?label_en = 'en'"]]
f1 --> v1
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;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c9
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c8
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c7
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c6
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c4
end
union0r <== or ==> union0l
end
v3 --"rdfs:label"--> v1
v3 --"rdfs:label"--> v2