query-6cf0bea0ff51ab57046ce87746a740a1
Jobs British MPs have had, other than politician or MP
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT (COUNT(DISTINCT ?mp) as ?mps) ?job ?jobLabel
WHERE {
?mp wdt:P31 wd:Q5; wdt:P39/wdt:P279? wd:Q16707842;
wdt:P106 ?job.
FILTER (?job not in (wd:Q82955, wd:Q486839) )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} GROUP BY ?job ?jobLabel
ORDER BY DESC(?mps)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?job"):::projected
v3("?mp"):::projected
v4("?mps")
a1((" "))
c10(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c6(["wd:Q16707842"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?job != 'wd:Q82955'?job != 'wd:Q486839'"]]
f0 --> v2
v3 --"wdt:P31"--> c4
v3 --"wdt:P39"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
v3 --"wdt:P106"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"count(?mp)"/]
v3 --o bind2
bind2 --as--o v4