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
Danilo.mac
.
Toggle Highlighting
SQL
USE ptwiki_p; SELECT proposta, REPLACE((@p_A:=CONCAT(UPPER(LEFT(p_A, 1)), SUBSTR(p_A, 2))), '_', ' ') página_A, (CASE WHEN @p_A IN (SELECT page_title FROM page WHERE page_namespace = 0 AND NOT page_is_redirect) THEN 'existe' WHEN @p_A IN (SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect) THEN 'redirecionamento' ELSE 'não existe' END) situação_A, REPLACE((@p_B:=CONCAT(UPPER(LEFT(p_B, 1)), SUBSTR(p_B, 2))), '_', ' ') página_B, (CASE WHEN @p_B LIKE '%;%' THEN '(erro)' WHEN @p_B IN (SELECT page_title FROM page WHERE page_namespace = 0 AND NOT page_is_redirect) THEN 'existe' WHEN @p_B IN (SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect) THEN 'redirecionamento' ELSE 'não existe' END) situação_B FROM (SELECT CONCAT('Wikipédia:', REPLACE(page_title, '_', ' ')) proposta, SUBSTR(page_title, 27, LOCATE(';', page_title) - 27) p_A, SUBSTR(page_title, LOCATE(';', page_title) + 2) p_B FROM page WHERE page_namespace = 4 AND page_title LIKE 'Fusão/Central\_de\_fusões/%' AND page_title LIKE '%;%' AND page_title NOT LIKE '%:%' AND page_id IN (SELECT cl_from FROM categorylinks WHERE cl_to LIKE '!Propostas\_de\_fusão\_em\_discussão%') ) p;
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...