query-756405bdb225166815b7672eb6513eb9

rq turtle/ttl

to the new MPs. Right now only two items have this claim: (Q29974940)57th Parliament of the United Kingdom (P463)member of You can start by adding This is what I could provide:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 ?item ?itemLabel ?itemDescription ?electoralDistrict ?website ?twitter ?image {
  ?item wdt:P463 wd:Q29974940 .
  MINUS {
    ?item wdt:P463 [ ^(wdt:P155+) wd:Q29974940 ] .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P856 ?website .
  }
  OPTIONAL {
    ?item wdt:P2002 ?twitter .
  }
  OPTIONAL {
    ?item p:P39 [ ps:P39 wd:Q16707842; pq:P768 ?electoralDistrict ] .
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?electoralDistrict"):::projected v2("?image"):::projected v1("?item"):::projected v4("?twitter"):::projected v3("?website"):::projected a1((" ")) a2((" ")) c8(["wd:Q16707842"]):::iri c14(["en"]):::literal c2(["wd:Q29974940"]):::iri c12(["bd:serviceParam"]):::iri v1 --"p:direct/P463"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; c2 --"p:direct/P155"--> a1 v1 --"p:direct/P463"--> a1 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P18".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P856".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P2002".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; a2 -."p:statement/P39".-> c8 a2 --"p:qualifier/P768"--> v5 v1 --"p:P39"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end