query-014b29648f0206fbd14c36d7d1daa56d

rq turtle/ttl

Malayalam Authors (died before 1960) SELECT DISTINCT ?author ?len ?lml ?dod WHERE { ?author wdt:P106/wdt:P279* wd:Q482980. ?author wdt:P1412 wd:Q36236. ?author wdt:P570 ?dod . FILTER (?dod <= "1960-01-01T00:00:00Z"^^xsd:dateTime) OPTIONAL { ?author rdfs:label ?len. FILTER(LANG(?len)="en") } OPTIONAL { ?author rdfs:label ?lml. FILTER(LANG(?lml)="ml") } } ORDER BY DESC (?dod)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
# Malayalam Authors (died before 1960)
SELECT DISTINCT ?author ?len ?lml ?dod WHERE {
  ?author wdt:P106/wdt:P279* wd:Q482980.
  ?author wdt:P1412 wd:Q36236.
  ?author wdt:P570 ?dod .
  FILTER (?dod <= "1960-01-01T00:00:00Z"^^xsd:dateTime)
  OPTIONAL { ?author rdfs:label ?len. FILTER(LANG(?len)="en") }
  OPTIONAL { ?author rdfs:label ?lml. FILTER(LANG(?lml)="ml") }
}
ORDER BY DESC (?dod)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author"):::projected v1("?dod"):::projected v3("?len"):::projected v2("?lml"):::projected a1((" ")) c8(["wd:Q36236"]):::iri c6(["wd:Q482980"]):::iri f0[["?dod <= '1960-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v4 --"wdt:P106"--> a1 a1 --"wdt:P279"--> c6 v4 --"wdt:P1412"--> c8 v4 --"wdt:P570"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end