what is the {language of work or name} for {Thursday} has {named after} as {Thor} ?
Which language does the word Thor originate from?
Thursday originates from Thor, which originates from what language?
SELECT ?i WHERE { ?j property:named_after resource:Thor . resource:Thursday property:named_after ?j . ?j property:language_of_work_or_name ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q129> .
?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> <http://wikidata.dbpedia.org/resource/Q42952> .
?statement <http://www.wikidata.org/entity/P407> ?value. 
} 

SELECT ?value WHERE { wd:Q129 p:P138 ?s . ?s ps:P138 wd:Q42952 . ?s pq:P407 ?value}