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
MarioGom
.
Reusable snippet with a virtual namespace table for English Wikipedia.
Toggle Highlighting
SQL
WITH namespace(namespace_id, namespace_name, namespace_talk, namespace_deprecated, namespace_virtual) AS ( VALUES( (0, "", FALSE, FALSE, FALSE), (1, "Talk", TRUE, FALSE, FALSE), (2, "User", FALSE, FALSE, FALSE), (3, "User talk", TRUE, FALSE, FALSE), (4, "Wikipedia", FALSE, FALSE, FALSE), (5, "Wikipedia talk", TRUE, FALSE, FALSE), (6, "File", FALSE, FALSE, FALSE), (7, "File talk", TRUE, FALSE, FALSE), (8, "MediaWiki", FALSE, FALSE, FALSE), (9, "MediaWiki talk", TRUE, FALSE, FALSE), (10, "Template", FALSE, FALSE, FALSE), (11, "Template talk", TRUE, FALSE, FALSE), (12, "Help", FALSE, FALSE, FALSE), (13, "Help talk", TRUE, FALSE, FALSE), (14, "Category", FALSE, FALSE, FALSE), (14, "Category talk", TRUE, FALSE, FALSE), (100, "Portal", FALSE, FALSE, FALSE), (101, "Portal talk", TRUE, FALSE, FALSE), (118, "Draft", FALSE, FALSE, FALSE), (119, "Draft talk", TRUE, FALSE, FALSE), (710, "TimedText", FALSE, FALSE, FALSE), (711, "TimedText talk", TRUE, FALSE, FALSE), (828, "Module", FALSE, FALSE, FALSE), (829, "Module talk", TRUE, FALSE, FALSE), (108, "Book", FALSE, TRUE, FALSE), (109, "Book talk", TRUE, TRUE, FALSE), (2300, "Gadget", FALSE, TRUE, FALSE), (2301, "Gadget talk", TRUE, TRUE, FALSE), (2302, "Gadget definition", FALSE, TRUE, FALSE), (2303, "Gadget definition talk", TRUE, TRUE, FALSE), (-1 , "Special", FALSE, FALSE, TRUE), (-2 , "Media", FALSE, FALSE, TRUE), ) ) SELECT * FROM namespace;
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...