Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Android app SuggestedEdits examples: captions only, last 30 days
by
Zache
This query is marked as a draft
This query has been published
by
Zache
.
captions edited after suggested edits
Toggle Highlighting
SQL
use commonswiki_p; select -- user_name, -- user_editcount, -- DATEDIFF(STR_TO_DATE(rc1.rc_timestamp, "%Y%m%d%H%i%s"), STR_TO_DATE(user_registration, "%Y%m%d%H%i%s")) as user_age, -- user age in days floor(rc1.rc_timestamp/1000000) as rc_day, substring(rc1.rc_title, 1, 40) as title_cut, rc1.user_text, rc1.rc_comment as rc1_c, rc2.user_text, rc2.rc_comment as rc2_c from change_tag as ct1, change_tag_def as ctd1, recentchanges_compat as rc1 LEFT JOIN recentchanges_compat as rc2 ON rc1.rc_cur_id=rc2.rc_cur_id AND rc1.rc_id<rc2.rc_id AND rc1.rc_user!=rc2.rc_user AND rc1.rc_source=rc2.rc_source, user where rc1.rc_id=ct1.ct_rc_id and ct1.ct_tag_id=ctd1.ctd_id and ctd1.ctd_name like "apps-suggested-edits" and rc1.rc_user=user_id and rc1.rc_comment like "%label%" AND REGEXP_SUBSTR(rc1.rc_comment, "^.*?[*].*?[*]/") = REGEXP_SUBSTR(rc2.rc_comment, "^.*?[*].*?[*]/") -- group by rc1.rc_id order by rc1.rc_cur_id, rc1.rc_id, rc2.rc_id
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...