What is {named after} of {Wednesday} that is {language of work or name} is {Welsh} ?
How do you say Wednesday in Welsh?
What is Wednesday in Welsh?
SELECT ?k WHERE { ?j property:language_of_work_or_name resource:Welsh . resource:Wednesday property:named_after ?j . ?j property:named_after ?k }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P407> <http://wikidata.dbpedia.org/resource/Q9309>
} 

SELECT ?obj WHERE { wd:Q128 p:P138 ?s . ?s ps:P138 ?obj . ?s pq:P407 wd:Q9309 }