query-ee44be1efbec28e9a7f1932e3d3c4028

rq turtle/ttl

سنوات مع 3 باباوات(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held الخصائص المستخدمة: (Q19546)pope العناصر المستخدمة: Years with 3 popes Years with 3 popes Roky se 3 papeži(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Použité vlastnosti: (Q19546)pope Použité položky: Years with 3 popes Jahre mit drei Päpsten Years with 3 popes Years with 3 popes Jaroj kun 3 papoj Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Propiedades utilizadas: (Q19546)pope Elementos utilizados: Years with 3 popes Années avec trois papes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Propriétés utilisées : (Q19546)pope Éléments utilisés : Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held מאפיינים משמשים: (Q19546)pope פריטים משמשים: Years with 3 popes Years with 3 popes Anni con 3 papi(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Proprietà utilizzate: (Q19546)pope Elementi utilizzati: Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held 使用するプロパティ: (Q19546)pope 使用する項目: Years with 3 popes Jore mat 3 Peepst Years with 3 popes Years with 3 popes Jaren met 3 pausen(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Gebruikte eigenschappen: (Q19546)pope Gebruikte items: Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Wykorzystujące właściwości: (Q19546)pope Wykorzystujące elementy: Years with 3 popes Years with 3 popes Отдельные годы, в течение которых были три папы римских Years with 3 popes År med tre påvar(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Använda egenskaper: (Q19546)pope Använda objekt: Years with 3 popes Years with 3 popes Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held Використані властивості: (Q19546)pope Використані елементи: Years with 3 popes Years with 3 popes(P1366)replaced by (P1365)replaces (P582)end time (P580)start time (P39)position held 使用属性: (Q19546)pope 使用项:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?year ?pope1Label ?pope2Label ?pope3Label
WHERE
{
  ?pope2 p:P39 [
           ps:P39 wd:Q19546;
           pq:P580 ?p2s;
           pq:P582 ?p2e;
           pq:P1365 ?pope1;
           pq:P1366 ?pope3
         ].
  ?pope1 p:P39 [
           ps:P39 wd:Q19546;
           pq:P582 ?p1e
         ].
  ?pope3 p:P39 [
           ps:P39 wd:Q19546;
           pq:P580 ?p3s
         ].
  BIND(YEAR(?p2s) AS ?year).
  FILTER(YEAR(?p2e) = ?year && YEAR(?p1e) = ?year && YEAR(?p3s) = ?year).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY ?year

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?p1e") v2("?p2e") v5("?p2s") v4("?p3s") v6("?pope1") v8("?pope2") v7("?pope3") v9("?year"):::projected a1((" ")) a2((" ")) a3((" ")) c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c2(["wd:Q19546"]):::iri f0[["year-from-dateTime(?p2e) = ?yearyear-from-dateTime(?p1e) = ?yearyear-from-dateTime(?p3s) = ?year"]] f0 --> v2 f0 --> v9 f0 --> v3 f0 --> v4 a1 --"p:statement/P39"--> c2 a1 --"p:qualifier/P580"--> v5 a1 --"p:qualifier/P582"--> v2 a1 --"p:qualifier/P1365"--> v6 a1 --"p:qualifier/P1366"--> v7 v8 --"p:P39"--> a1 a2 --"p:statement/P39"--> c2 a2 --"p:qualifier/P582"--> v3 v6 --"p:P39"--> a2 a3 --"p:statement/P39"--> c2 a3 --"p:qualifier/P580"--> v4 v7 --"p:P39"--> a3 bind1[/"year-from-dateTime(?p2s)"/] v5 --o bind1 bind1 --as--o v9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end