query-3bb59baa66d343dbdadd1c18b76fe8ee

rq turtle/ttl

why can't find any city in USA using label ? https://www.wikidata.org/wiki/Q30Why no result for this ? But if I used "United States of America" , instead of USA, it shows up. USA is part of also known as label, so it should show up

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * 
WHERE { 

     { 
  SELECT * WHERE { VALUES ?labelB1 { rdfs:label skos:altLabel } ?country ?label1 'USA'@en. } }              
    ?val wdt:P17 ?country . 
    VALUES ?label1 { rdfs:label skos:altLabel } 
    ?val wdt:P31/wdt:P279* [ ?label1 'city'@en ]. 
OPTIONAL { ?val rdfs:label ?valLabel FILTER(lang(?valLabel) = "en") } 

} LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?country"):::projected v6("?label1"):::projected v2("?labelB1"):::projected v5("?val"):::projected v1("?valLabel"):::projected a2((" ")) a1((" ")) c2([sUSA^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal c4([scity^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal bind0[/VALUES ?labelB1/] bind0-->v2 bind00(["rdfs:label"]) bind00 --> bind0 bind01(["skos:altLabel"]) bind01 --> bind0 v3 -->v6--> c2 v5 --"wdt:P17"--> v3 bind1[/VALUES ?label1/] bind1-->v6 bind10(["rdfs:label"]) bind10 --> bind1 bind11(["skos:altLabel"]) bind11 --> bind1 a1 -->v6--> c4 v5 --"wdt:P31"--> a2 a2 --"wdt:P279"--> a1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v1 end