<commit_before>CONNECT itwiki_p itwiki.labsdb;
SELECT CONCAT('#[[', ns_name, ':', page_title, ']]')
  FROM page JOIN p50380g50614__lists.ns_it ON page_namespace = ns_id
  WHERE page_is_redirect = 1 AND page_namespace IN (1, 11, 15, 101, 103)
    AND NOT EXISTS( SELECT * 
      FROM pagelinks JOIN page AS p2 ON pl_from = p2.page_id 
      WHERE pl_title = p1.page_title AND pl_namespace= p1.page_namespace 
        AND p2.page_namespace != 4 AND p2.page_title != 'Elenchi_generati_offline/Redirect_a_discussioni')
  ORDER BY ns_id, page_title;<commit_msg>Fix query<commit_after>CONNECT itwiki_p itwiki.labsdb;
SELECT CONCAT('#[[', ns_name, ':', page_title, ']]')
  FROM page AS p1 JOIN p50380g50614__lists.ns_it ON page_namespace = ns_id
  WHERE page_is_redirect = 1 AND page_namespace IN (1, 11, 15, 101, 103)
    AND NOT EXISTS( SELECT * 
      FROM pagelinks JOIN page AS p2 ON pl_from = p2.page_id 
      WHERE pl_title = p1.page_title AND pl_namespace= p1.page_namespace 
        AND p2.page_namespace != 4 AND p2.page_title != 'Elenchi_generati_offline/Redirect_a_discussioni')
  ORDER BY ns_id, page_title;
{'fraction_non_alphanumeric': 0.0933572710951526, 'fraction_numerical': 0.05296229802513465, 'mean_word_length': 4.309523809523809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2008547', 'n_tokens_mistral': 455, 'n_tokens_neox': 395, 'n_words': 110}