query-157f9d1bf2cbfd05e5c8f55e9b483de6
title:Distinct persons born in Pisa with LNB ID and with Latvian label and description SELECT DISTINCT ?item ?label ?description ?lnb wHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P19 wd:Q13375 . ?item wdt:P1368 ?lnb . ?item rdfs:label ?label . FILTER(LANG(?label) = "lv") . ?item schema:description ?description . FILTER(LANG(?description) = "lv") . }
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title:Distinct persons born in Pisa with LNB ID and with Latvian label and description
SELECT DISTINCT ?item ?label ?description ?lnb
wHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P19 wd:Q13375 .
?item wdt:P1368 ?lnb .
?item rdfs:label ?label . FILTER(LANG(?label) = "lv") .
?item schema:description ?description . FILTER(LANG(?description) = "lv") .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?description"):::projected
v3("?item"):::projected
v2("?label"):::projected
v4("?lnb"):::projected
c5(["wd:Q13375"]):::iri
c3(["wd:Q5"]):::iri
f0[["?description = 'lv'"]]
f0 --> v1
f1[["?label = 'lv'"]]
f1 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P19"--> c5
v3 --"wdt:P1368"--> v4
v3 --"rdfs:label"--> v2
v3 --"schema:description"--> v1