Fork of Occupational Safety and Health – historical quality by James Hare (NIOSH)
This query is marked as a draft This query has been published by James Hare (NIOSH).

SQL

AخA
 
SELECT 
    timestamp, 
    SUM(weighted_sum) AS weighed_sum,
    SUM(prediction = "Stub") AS stub_n,
    SUM(prediction = "Start") AS start_n,
    SUM(prediction = "C") AS c_n,
    SUM(prediction = "B") AS b_n,
    SUM(prediction = "GA") AS ga_n,
    SUM(prediction = "FA") AS fa_n
FROM templatelinks
INNER JOIN page AS talk ON 
    talk.page_id = tl_from AND
    talk.page_namespace = 1
INNER JOIN page AS article ON 
    article.page_namespace = 0 AND
    article.page_title = talk.page_title
INNER JOIN u2041__ores_p.monthly_wp10_enwiki AS wp10 ON
    wp10.page_id = article.page_id
GROUP BY wp10.timestamp;
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...