query-8aa1a42ae74c128de071cf81dbbed829

rq turtle/ttl

All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50 All popes with number of children SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children) WHERE { ?subj wdt:P22 ?father . ?father wdt:P31 wd:Q5 . ?father wdt:P39 wd:Q19546 . OPTIONAL { ?father wdt:P18 ?picture . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" } } GROUP BY ?fatherLabel ORDER BY DESC(?children) LIMIT 50

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# All popes with number of children
SELECT (SAMPLE(?father) as ?father) ?fatherLabel (SAMPLE(?picture) as ?picture) (COUNT(?father) as ?children)
WHERE
{
  ?subj wdt:P22 ?father .
    ?father wdt:P31 wd:Q5 .
    ?father wdt:P39 wd:Q19546 .
  OPTIONAL {
    ?father wdt:P18 ?picture .
    }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
}
GROUP BY ?fatherLabel
ORDER BY DESC(?children)
LIMIT 50

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?children") v5("?father"):::projected v5("?picture"):::projected v2("?subj") c8(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c5(["wd:Q19546"]):::iri v2 --"wdt:P22"--> v5 v5 --"wdt:P31"--> c3 v5 --"wdt:P39"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."wdt:P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind3[/"sample(?father)"/] v5 --o bind3 bind3 --as--o v5 bind4[/"sample(?picture)"/] v5 --o bind4 bind4 --as--o v5 bind5[/"count(?father)"/] v5 --o bind5 bind5 --as--o v5