query: #Identifying redirects and their targets in a list of QIDs
  # Identify redirects using item property owl:sameAs
  
  SELECT (REPLACE(STR(?item),".*Q","Q") AS ?qid) (REPLACE(STR(?tgt),".*Q","Q") AS ?tgtQid) ?tgtLabel 
  WHERE {
     VALUES (?item) {
        (wd:Q6636058)   (wd:Q8989284)  (wd:Q243634)   (wd:Q13383295)
        (wd:Q659516)    (wd:Q1020776)  (wd:Q10124662) (wd:Q9066399)
        (wd:Q12309669)  (wd:Q16033883) (wd:Q733744)   (wd:Q226569)
        (wd:Q14210256)  (wd:Q408041)   (wd:Q750594)   (wd:Q11075312)
       }
    ?item owl:sameAs ?tgt .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
  }
  ORDER BY ?qid