This query is marked as a draft This query has been published by Naudefj.

SQL

AخA
 
SELECT concat('[[', t.page_title, ']]'), concat('[[w:', t.page_title, ']]')
  FROM afwiktionary_p.page t
  JOIN afwiktionary_p.templatelinks l
    ON t.page_id = l.tl_from AND l.tl_namespace = 10 AND l.tl_title = '--af--'
  JOIN afwiki_p.page p 
    ON p.page_title = concat(ucase(substr(t.page_title, 1,1)), substr(t.page_title, 2))
  JOIN afwiki_p.templatelinks
    ON p.page_id = tl_from AND tl_namespace = 10 AND tl_title IN ('Wikt', 'Wikt-inlyn')
 WHERE p.page_namespace = 0
   AND t.page_namespace = 0
   AND p.page_is_redirect = 0
   AND t.page_is_redirect = 0
;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...