Templating variables as different colored series in graph panel

Yes thats possible. If you return a column named metric the value of that column will be used as series name. If you add article_id::text AS metric to your query you should get the desired result.