query-3a122335ddb64446855c777c23f4a061

rq turtle/ttl

Jura1hint:Prior hint:gearing "forward"LIMIT

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT 
    ?person ?personLabel ?personDescription 
    ?occupations
    ?politics  ?business
WHERE
{
  {
    SELECT
      ?person (GROUP_CONCAT(DISTINCT ?p106label;SEPARATOR=", ") AS ?occupations)
    WHERE
    {
      ?person wdt:P172 wd:Q726673.
      OPTIONAL { ?person wdt:P106 ?p106 . ?p106 rdfs:label ?p106label . FILTER(lang(?p106label)='sv') }
      ?person wdt:P31 wd:Q5.
    }
    GROUP BY ?person
  }
  OPTIONAL { ?person wdt:P106/wdt:P279* wd:Q82955 .  BIND("y" as ?politics) }
  OPTIONAL { ?person wdt:P106/wdt:P279* wd:Q43845 .  BIND("y" as ?business) }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],sv,fi,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?business"):::projected v4("?occupations"):::projected v3("?p106") v1("?p106label") v2("?person"):::projected v5("?politics"):::projected a1((" ")) a2((" ")) c3(["wd:Q726673"]):::iri c9(["wd:Q82955"]):::iri c10(["wd:Q43845"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,sv,fi,en"]):::literal c7(["wd:Q5"]):::iri v2 --"wdt:P172"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> v3 v3 --"rdfs:label"--> v1 end v2 --"wdt:P31"--> c7 bind1[/"?p106label"/] v1 --o bind1 bind1 --as--o v4 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> a1 a1 --"wdt:P279"--> c9 bind2[/"'y'"/] bind2 --as--o v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> a2 a2 --"wdt:P279"--> c10 bind3[/"'y'"/] bind3 --as--o v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end