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
Mess
.
Toggle Highlighting
SQL
SELECT lt_id, lt_title FROM linktarget WHERE lt_namespace = 0 AND lt_id IN (5801678); SELECT page_id, page_title FROM page WHERE page_id IN (3128967); SELECT pl_target_id, pl_from FROM pagelinks WHERE pl_target_id IN (SELECT lt_id FROM linktarget WHERE lt_title IN (SELECT page_title FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND page_len BETWEEN 1275 AND 1300 ) ) AND pl_from_namespace = 0 AND pl_from NOT IN (SELECT page_id FROM page WHERE page_is_redirect = 1) GROUP BY pl_target_id HAVING COUNT(*)=1 LIMIT 1; /*SELECT pl_target_id, pl_from FROM pagelinks WHERE pl_from_namespace = 0 AND pl_from NOT IN (SELECT page_id FROM page WHERE page_is_redirect = 1) AND pl_from NOT IN (SELECT DISTINCT cl_from FROM categorylinks, linktarget WHERE cl_to = lt_title AND lt_namespace = 14 AND lt_id IN (SELECT pl_target_id FROM pagelinks WHERE pl_from = 4195411 ) ) AND pl_target_id IN (SELECT lt_id FROM linktarget WHERE lt_namespace = 0 AND lt_title NOT IN (SELECT page_title FROM page WHERE page_namespace = 0 AND page_is_redirect = 1 ) ) LIMIT 100;*/ /*SELECT pl_target_id, pl_from FROM pagelinks WHERE pl_from_namespace = 0 AND pl_target_id IN (SELECT lt_id FROM linktarget WHERE lt_namespace = 0 AND lt_title IN ( SELECT page_title FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND page_len BETWEEN 1275 AND 1300 ) ) LIMIT 100;*/ /*SELECT pl_target_id FROM pagelinks WHERE pl_from_namespace = 0 AND pl_target_id IN (SELECT page_id FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND page_len BETWEEN 1275 AND 1300 ) LIMIT 100;*/ /*SELECT lt_title, lt_id FROM linktarget WHERE lt_namespace = 0 LIMIT 100;*/ /*SELECT CONCAT("# [[", page_title, "]], (", DATE_FORMAT(rev_timestamp, '%e %b %Y, %H:%i'), ")") FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND page_len BETWEEN 1275 AND 1300 AND page_title IN ( SELECT DISTINCT lt_title FROM linktarget WHERE lt_namespace = 0 AND lt_id IN ( SELECT pl_target_id FROM pagelinks WHERE pl_from_namespace = 0 AND pl_from NOT IN (SELECT page_id FROM page WHERE page_is_redirect = 1) AND pl_from NOT IN (SELECT DISTINCT cl_from FROM categorylinks, linktarget WHERE cl_to = lt_title AND lt_namespace = 14 AND lt_id IN (SELECT pl_target_id FROM pagelinks WHERE pl_from = 4195411 ) AND pl_target_id IN (SELECT pl_target_id FROM pagelinks GROUP BY pl_target_id HAVING COUNT(*)<=1 ) ) ) );*/ /*SELECT CONCAT("# [[", page_title, "]], (", DATE_FORMAT(rev_timestamp, '%e %b %Y, %H:%i'), ")") FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id AND rev_parent_id = 0 AND page_len BETWEEN 1275 AND 1300 AND page_id NOT IN (SELECT DISTINCT cl_from FROM categorylinks, linktarget WHERE cl_to = lt_title AND lt_namespace = 14 AND lt_id IN (SELECT pl_target_id FROM pagelinks WHERE pl_from = 4195411 ) ) LIMIT 10; */ /*SELECT pl_backlinks_namespace_target_id FROM pagelinks WHERE pl_from_namespace = 0 AND pl_backlinks_namespace.pl_namespace = 0 AND pl_backlinks_namespace.pl_title = page_title AND pl_from NOT IN (SELECT page_id FROM page WHERE page_is_redirect = 1) AND pl_from NOT IN (SELECT DISTINCT cl_from FROM categorylinks, linktarget WHERE cl_to = lt_title AND lt_namespace = 14 AND lt_id IN (SELECT pl_target_id FROM pagelinks WHERE pl_from = 4195411 ) )*/
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...