Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Finnish WLM new users who continued editing 2017.
by
Zache
This query is marked as a draft
This query has been published
by
Zache
.
raw data
Toggle Highlighting
SQL
use commonswiki_p; select rev_user_text, user_registration, max(rev_timestamp) as max_ts, min(rev_timestamp) as min_ts, count(distinct(project)) as c, group_concat(distinct(project)) as projects FROM ( select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'commons' as project FROM page, categorylinks, image, user, revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'fiwiki' as project FROM page, categorylinks, image, user, fiwiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'nowiki' as project FROM page, categorylinks, image, user, nowiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'enwiki' as project FROM page, categorylinks, image, user, enwiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'svwiki' as project FROM page, categorylinks, image, user, svwiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'ruwiki' as project FROM page, categorylinks, image, user, ruwiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'ruwiki' as project FROM page, categorylinks, image, user, ruwiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 UNION select page_title, page_namespace, user_registration, rev_timestamp, rev_user_text, 'sewiki' as project FROM page, categorylinks, image, user, sewiki_p.revision_userindex WHERE rev_user_text=user_name and rev_user >0 and user_id=img_user and img_name=page_title and page_id=cl_from and cl_to = "Images_from_Wiki_Loves_Monuments_2018_in_Finland" and page_namespace=6 and user_registration > 20180900151240 ) as t group by rev_user_text order by min_ts DESC;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...