query-1a509cce87c5cc2703668cb181d5969a
added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000 added before 2016-10 #Definition for Occitania (Q104285) is the one defined by P527 on item Q104285 SELECT ?item ?yob ?yod WHERE { # items with property place of birth ?item wdt:P19 ?pob . #place of birth must be using P131 with one of the "?parts" (or -- note the "" -- a value that uses one of the parts in P131, etc.) ?pob wdt:P131 ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#added before 2016-10
#Definition for Occitania (Q104285) is the one defined by P527 on item Q104285
SELECT ?item ?yob ?yod
WHERE
{
# items with property place of birth
?item wdt:P19 ?pob .
#place of birth must be using P131 with one of the "?parts" (or -- note the "*" -- a value that uses one of the parts in P131, etc.)
?pob wdt:P131* ?parts .
# ?parts are those listed on item Q104285 with property P527
wd:Q104285 wdt:P527 ?parts .
# humans only
?item wdt:P31 wd:Q5 .
#for display in the list, extract yob/yod. Could also be done by using P569 and P570 in "columns=" of Listeria's template
OPTIONAL { ?item wdt:P569 ?dob . BIND(YEAR(?dob) as ?yob) }
OPTIONAL { ?item wdt:P570 ?dod . BIND(YEAR(?dod) as ?yod) }
}
#LIMIT to 2000 as Listeria can only handle up to 5000
LIMIT 2000
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