query-c3bcc1c82c5f7124960824f13e658b28

rq turtle/ttl

Propertiesoccupation (P106)country of citizenship (P27)sex or gender (P21)cast member (P161)performer (P175)publication date (P577)

Use at

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#>
SELECT ?item ?itemLabel 
?work ?workLabel ?date
?gender ?genderLabel WHERE {
  ?item wdt:P106 wd:Q33999, wd:Q177220;
    wdt:P27 wd:Q142;
    wdt:P21 ?gender;
    rdfs:label ?itemLabel.
  FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]")
  ?gender rdfs:label ?genderLabel.
  FILTER((LANG(?genderLabel)) = "[AUTO_LANGUAGE]")
  ?work (wdt:P161|wdt:P175) ?item; 
        wdt:P577 ?date; 
   rdfs:label ?workLabel 
  filter (lang(?workLabel) = "[AUTO_LANGUAGE]") .
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?date"):::projected v5("?gender"):::projected v2("?genderLabel"):::projected v4("?item"):::projected v3("?itemLabel"):::projected v6("?work"):::projected v1("?workLabel"):::projected c4(["wd:Q177220"]):::iri c3(["wd:Q33999"]):::iri c6(["wd:Q142"]):::iri f0[["?workLabel = '#91;AUTO_LANGUAGE#93;'"]] f0 --> v1 f1[["?genderLabel = '#91;AUTO_LANGUAGE#93;'"]] f1 --> v2 f2[["?itemLabel = '#91;AUTO_LANGUAGE#93;'"]] f2 --> v3 v4 --"wdt:P106"--> c3 v4 --"wdt:P106"--> c4 v4 --"wdt:P27"--> c6 v4 --"wdt:P21"--> v5 v4 --"rdfs:label"--> v3 v5 --"rdfs:label"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v6 --"wdt:P175"--> v4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v6 --"wdt:P161"--> v4 end union0r <== or ==> union0l end v6 --"wdt:P577"--> v7 v6 --"rdfs:label"--> v1