query-9bd5920c499e7cee90f9310c6326e8bc
added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000 added before 2016-10 #sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru SELECT ?item WHERE { # gender = female ?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
Listeria can only handle up to 5000
LIMIT 1000
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/>
#added before 2016-10
#sample from cywiki:Wicipedia:Merched_a_anwyd_yng_Nghymru
SELECT ?item
WHERE
{
# gender = female
?item wdt:P21 wd:Q6581072 .
# place of birth = Wales (Q25)
{ ?item wdt:P19 wd:Q25 }
# OR place of birth within Wales. This relies on places using P131 with Q25 ("Wales") as value (or with a value that has Q25 in P131)
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q25 }
# look for articles (sitelinks) in Welsh ("cy")
OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cy" }
# but select items with no such article
FILTER (!BOUND(?sitelink))
# humans only
?item wdt:P31 wd:Q5 .
}
#Listeria can only handle up to 5000
LIMIT 1000
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/zh