Give me {country} that {archives at} {National Library of Wales} and which contains the word {wales} in their name
What nation whose chronicles are found within the National Library of Ridges contains the word "grains" in its title
What country whose archives are located in the National Library of Wales contains the word "wales" in its name
SELECT DISTINCT ?w WHERE { ?w property:archives_at resource:National_Library_of_Wales . ?w rdf:type ontology:country . FILTER ( CONTAINS ( LCASE ( ?w ) , 'wales' ) ) }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q6256>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P485> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q666063>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'wales')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q6256 . ?sbj wdt:P485 wd:Q666063 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'wales')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Wales Wales