query-a7816847a1adf7dec58579fcdc9f199a
added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration) added before 2016-10
SELECT ?person ?personLabel ?duration WHERE { ?person wdt:P31 wd:Q5; ?p [ pq:P580 ?start; pq:P582 ?end ]. BIND(ROUND((?end - ?start)/365.2425) AS ?duration). FILTER(?duration > 100). FILTER(?p != p:P119) . # "place of burial" can be an exception SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?duration)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#added before 2016-10
SELECT ?person ?personLabel ?duration
WHERE
{
?person wdt:P31 wd:Q5;
?p [ pq:P580 ?start; pq:P582 ?end ].
BIND(ROUND((?end - ?start)/365.2425) AS ?duration).
FILTER(?duration > 100).
FILTER(?p != p:P119) . # "place of burial" can be an exception
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?duration)
Query found at
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/en
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/es
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/zh
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/cs
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/pl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/maintenance/uk