Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Viswaprabha
.
Toggle Highlighting
SQL
SET @SNum := 0 ; USE mlwiki_p; SELECT 'ml' AS Lang, @SNum:= @SNum + 1 As SNum , t.PID AS PageID, t.Title AS Article,t.RID AS Revision, t.RTime AS RevTime, t.Editor AS Editor, t.RBytes as New_Size, q1.eu_entity_id as Wikidata_ID FROM ( SELECT r.rev_timestamp as RTime, r.rev_id as RID, r.rev_user_text AS Editor, r.rev_len as RBytes, p.page_id as PID, p.page_title AS Title, p.page_namespace FROM revision r LEFT JOIN page p ON p.page_id = r.rev_page WHERE r.rev_page IN ( SELECT page_id FROM page p2 WHERE p2.page_namespace = 0 AND p2.page_title IN ( SELECT page_title FROM page WHERE page_id IN p.page_namespace = 0 GROUP BY page_namespace, page_title, r.rev_id ) AS t LEFT JOIN (SELECT * FROM wbc_entity_usage q WHERE q.eu_aspect = 'S' AND q.eu_entity_id LIKE 'Q%') AS q1 ON q1.eu_page_id = PID ORDER BY Revtime ASC ;
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...