query-b6d069d52355320ad1de521ad973621c
added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item added before 2016-10 SELECT ?item ?dob WHERE { # place of birth = Scotland (Q22) { ?item wdt:P19 wd:Q22 } # OR place of birth within Scotland. UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
Listeria can only handle up to 5000
LIMIT 4000
start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item
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
SELECT ?item ?dob
WHERE
{
# place of birth = Scotland (Q22)
{ ?item wdt:P19 wd:Q22 }
# OR place of birth within Scotland.
UNION { ?item wdt:P19 ?pob . ?pob wdt:P131* wd:Q22 }
# humans only
?item wdt:P31 wd:Q5 .
# get DOB for ordering.
OPTIONAL { ?item wdt:P569 ?dob }
}
#Order by date of birth, avoid overriding this in the template with sort=
ORDER BY ?dob
#Listeria can only handle up to 5000
LIMIT 4000
#start at the first item
OFFSET 0 #change to OFFSET 4000 to start at the 4001th item
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