query-4c666dad9fc57b8642b6d486caec5f2c
Labels and descriptions of humans that have an article and description both in the Basque and Spanish Wikipedia SELECT DISTINCT ?item ?esLabel ?euLabel ?itemdesc ?itemdesc2 WHERE { ?item wdt:P31 wd:Q5. ?weu schema:about ?item; schema:inLanguage "eu". ?wes schema:about ?item; schema:inLanguage "es". ?item rdfs:label ?esLabel. FILTER((LANG(?esLabel)) = "es") ?item schema:description ?itemdesc. FILTER((LANG(?itemdesc)) = "es") ?item rdfs:label ?euLabel. FILTER((LANG(?euLabel)) = "eu") ?item schema:description ?itemdesc2. FILTER((LANG(?itemdesc2)) = "eu") }
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#>
# Labels and descriptions of humans that have an article and description both in the Basque and Spanish Wikipedia
SELECT DISTINCT ?item ?esLabel ?euLabel ?itemdesc ?itemdesc2 WHERE {
?item wdt:P31 wd:Q5.
?weu schema:about ?item;
schema:inLanguage "eu".
?wes schema:about ?item;
schema:inLanguage "es".
?item rdfs:label ?esLabel.
FILTER((LANG(?esLabel)) = "es")
?item schema:description ?itemdesc.
FILTER((LANG(?itemdesc)) = "es")
?item rdfs:label ?euLabel.
FILTER((LANG(?euLabel)) = "eu")
?item schema:description ?itemdesc2.
FILTER((LANG(?itemdesc2)) = "eu")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?esLabel"):::projected
v2("?euLabel"):::projected
v5("?item"):::projected
v3("?itemdesc"):::projected
v1("?itemdesc2"):::projected
v7("?wes")
v6("?weu")
c1(["eu"]):::literal
c4(["wd:Q5"]):::iri
c2(["es"]):::literal
f0[["?itemdesc2 = 'eu'"]]
f0 --> v1
f1[["?euLabel = 'eu'"]]
f1 --> v2
f2[["?itemdesc = 'es'"]]
f2 --> v3
f3[["?esLabel = 'es'"]]
f3 --> v4
v5 --"wdt:P31"--> c4
v6 --"schema:about"--> v5
v6 --"schema:inLanguage"--> c1
v7 --"schema:about"--> v5
v7 --"schema:inLanguage"--> c2
v5 --"rdfs:label"--> v4
v5 --"schema:description"--> v3
v5 --"rdfs:label"--> v2
v5 --"schema:description"--> v1