Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
ASammour
.
يُفضل استثناء البوابتين التاليتين: 1. بوابة إرهاب 2. بوابة مثلية جنسية لوجود اختلاف في الثقافات بين الموسوعة العربية والفرنسية
Toggle Highlighting
SQL
use arwiki_p; SELECT p.page_title, group_concat(el.ll_title SEPARATOR '***') AS ll_title FROM page p INNER JOIN langlinks l1 ON l1.ll_from = p.page_id INNER JOIN frwiki_p.page frpage ON (frpage.page_title) = (replace(l1.ll_title, " ", "_")) INNER JOIN frwiki_p.templatelinks frtemp ON frtemp.tl_from = frpage.page_id INNER JOIN frwiki_p.page p2 ON (p2.page_title) = (replace(frtemp.tl_title, "Portail_", "")) INNER JOIN frwiki_p.langlinks el ON p2.page_id = el.ll_from INNER JOIN page p3 ON p3.page_title = replace(replace(el.ll_title, "بوابة:", ""), " ", "_") INNER JOIN redirect on rd_title = p3.page_title INNER JOIN page p4 on p4.page_id = rd_from WHERE p.page_is_redirect = 0 AND p.page_namespace =0 AND frpage.page_namespace = 0 AND frpage.page_is_redirect = 0 AND p2.page_is_redirect = 0 AND p2.page_namespace = 100 AND p3.page_namespace = 100 AND p3.page_is_redirect = 0 AND frtemp.tl_from_namespace = 0 AND frtemp.tl_namespace = 10 AND el.ll_lang LIKE "ar" AND frtemp.tl_title LIKE "Portail%" AND p.page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to = concat("بوابة_", p3.page_title, "/مقالات_متعلقة")) AND p.page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to = concat("بوابة_", p4.page_title, "/مقالات_متعلقة")) AND l1.ll_lang LIKE "fr" AND p.page_title NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to LIKE "%صفحات_توضيح%" AND cl_from = p.page_title) AND p.page_title NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to LIKE "%الصفحات_التي_لا_تقبل_ربط_البوابات_المعادل%" AND cl_from = p.page_title) AND el.ll_title not like "%مثلية%" and el.ll_title not like "%إرهاب%" AND rd_interwiki = "" AND rd_namespace = 100 AND p4.page_namespace = 100 and p4.page_is_redirect = 1 GROUP BY p.page_title;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...