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
Ebt555555
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6305', concat('"',REPLACE(el_to,'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=',''),'"') AS OTRS, CONCAT("File:",page_title), ( SELECT COUNT(*) FROM templatelinks WHERE page_id=tl_from and tl_namespace = 10 AND tl_title="PermissionOTRS" ) AS num_transclusions # count number of PermissionOTRS templates FROM page JOIN externallinks ON page_id=el_from AND el_to LIKE 'https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=%' WHERE page_namespace = 6 AND NOT page_id IN ( # no edits this year by JarekTBot SELECT rev_page FROM revision WHERE rev_actor=695 AND rev_timestamp>20200000000000 ) HAVING num_transclusions = 1 ORDER BY OTRS limit 25000
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...