SQL
AخA
USE itwiki_p;
SELECT DISTINCT page_title
FROM page, revision
WHERE page_id = rev_page
AND rev_parent_id = 0
AND page_namespace = 0
AND page_is_redirect = 0
AND page_title IN (
SELECT pl_title
FROM pagelinks
WHERE pl_from_namespace = 0
AND pl_namespace = 0
AND pl_title = page_title
AND pl_from NOT IN
(SELECT page_id
FROM page
WHERE page_is_redirect = 1)
AND pl_from NOT IN
(SELECT cl_from
FROM categorylinks, pagelinks
WHERE cl_to = pl_title
AND pl_namespace = 14
AND pl_from = 4195411) /* Wikipedia:ConnectivityProjectInternationalization/ArticlesNotFormingValidLinks */
GROUP BY pl_title HAVING COUNT(*)=1
)
/*
AND page_id NOT IN
(SELECT cl_from
FROM categorylinks, pagelinks
WHERE cl_to = pl_title
AND pl_namespace = 14
AND pl_from = 4195411)
AND page_id NOT IN
(SELECT ll_from
FROM langlinks)
AND page_id IN
(SELECT DISTINCT cl_from
FROM categorylinks
WHERE cl_to LIKE 'Calciatori%')
*/
AND rev_timestamp < 20050101000000
LIMIT 1;
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.