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

SQL

x
 
SELECT page_namespace, page_title, GROUP_CONCAT(DISTINCT cl_to SEPARATOR "|") AS cat, GROUP_CONCAT(DISTINCT tl_title SEPARATOR "|") AS templates
FROM page
JOIN categorylinks ON cl_from=page_id
LEFT JOIN templatelinks ON tl_from=page_id AND tl_namespace=10 AND (
    tl_title LIKE "%Infobox%"
    OR tl_title LIKE "%infobox%"
)
WHERE cl_to IN (
"Women_economists",
"American_economists"
)
GROUP BY 1,2;
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.

Query status: complete

Executed on Sun, 21 Feb 2016 00:57:16 UTC.