query-cd4f47bb45b76477c4fe9f7804a5204e

rq turtle/ttl

Robertsilen

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?person ?personLabel ?personDescription ?band ?bild ?langcode ?wp
WHERE
{
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
  ?person wdt:P31 wd:Q5;
    wdt:P1343 wd:Q110721719;
    p:P1343 ?statement2.
  ?statement2 pq:P478 ?band.
  OPTIONAL { ?person wdt:P18 ?bild. }  
  OPTIONAL {
    ?wp schema:about ?person;
      schema:isPartOf / wikibase:wikiGroup "wikipedia";
      schema:inLanguage ?langcode.
  }
  OPTIONAL { ?person wdt:P27 ?medborgare. }
}
ORDER BY ?band ?personLabel 
LIMIT 300

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?band"):::projected v5("?bild"):::projected v7("?langcode"):::projected v8("?medborgare") v3("?person"):::projected v2("?personLabel"):::projected v4("?statement2") v6("?wp"):::projected a1((" ")) c4(["sv"]):::literal c2(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri c15(["wikipedia"]):::literal c8(["wd:Q110721719"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v3 --"p:direct/P31"--> c6 v3 --"p:direct/P1343"--> c8 v3 --"p:P1343"--> v4 v4 --"p:qualifier/P478"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P18".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v3 v6 --"schema:isPartOf"--> a1 a1 --"wikibase:wikiGroup"--> c15 v6 --"schema:inLanguage"--> v7 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P27".-> v8 end