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

SQL

AخA
 
USE fawiki_p;
SELECT pl_title,
    page_title,
    count(pl_title)
FROM pagelinks
INNER JOIN page ON pl_from = page_id
INNER JOIN categorylinks ON page_id = cl_from
WHERE pl_title NOT IN (
        SELECT page_title
        FROM page
        WHERE page_namespace = 0
        )
    AND pl_namespace = 0
    AND cl_to LIKE "%فیلمهای_ایرانی_%"
    and page_title not like "فهرست_%"
    and pl_title not like "فهرست_%"
    AND page_namespace = 0
GROUP BY pl_title
ORDER BY COUNT(pl_title) DESC;
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...