query-d21e7fcf8e140013d18f9dfc4f8b5af4

rq turtle/ttl

TODO

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 ?member ?memberLabel ?dateBirth ?placeBirthLabel ?sexLabel ?electoral_districtLabel ?start ?end ?parliamentary_groupLabel ?parliamentary_termLabel Where {
  ?member p:P39 ?stat . 
  ?stat ps:P39 wd:Q18171345.
  OPTIONAL {?stat pq:P580 ?start . }
  OPTIONAL {?stat pq:P582 ?end . }
  OPTIONAL {?stat pq:P768 ?electoral_district . }
  OPTIONAL {?stat pq:P4100 ?parliamentary_group . }
  OPTIONAL {?stat pq:P2937 ?parliamentary_term . }
  OPTIONAL {?member wdt:P569 ?dateBirth. }
  OPTIONAL {?member wdt:P19 ?placeBirth. }
  OPTIONAL {?member wdt:P21 ?sex. }
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?dateBirth"):::projected v5("?electoral_district") v4("?end"):::projected v1("?member"):::projected v6("?parliamentary_group") v7("?parliamentary_term") v9("?placeBirth") v10("?sex") v3("?start"):::projected v2("?stat") c3(["wd:Q18171345"]):::iri c13(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;,es"]):::literal v1 --"p:P39"--> v2 v2 --"p:statement/P39"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P580".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P582".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P768".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P4100".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P2937".-> v7 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P569".-> v8 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P19".-> v9 end subgraph optional7["(optional)"] style optional7 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P21".-> v10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end