query-865cfb7e370c7e52f60d5364f32208cd

rq turtle/ttl

TODO

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 ?NameCat (SUBSTR(?NameCat,2,1) AS ?Letter)
WHERE
{
  ?Cat wdt:P31 wd:Q146.
  ?Cat rdfs:label ?NameCat.
  FILTER(LANG(?NameCat) = "en").
  FILTER(SUBSTR(STR(?NameCat),2,1) = "a")
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Cat") v3("?Letter") v1("?NameCat"):::projected c6(["wd:Q146"]):::iri f0[["substring(str(?NameCat),'2^^xsd:integer','1^^xsd:integer') = 'a'"]] f0 --> v1 f1[["?NameCat = 'en'"]] f1 --> v1 v2 --"wdt:P31"--> c6 v2 --"rdfs:label"--> v1 bind2[/"substring(?NameCat,'2^^xsd:integer','1^^xsd:integer')"/] v1 --o bind2 bind2 --as--o v3