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
RP88
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT concat("Template:",license.page_title) -- list of license templates FROM page license INNER JOIN templatelinks ON tl_from = license.page_id WHERE tl_title = 'License_template_tag' and license.page_title not like "%/%" and -- no subtemplates license.page_namespace = 10 and license.page_id NOT IN (SELECT cl_from FROM categorylinks WHERE cl_to = "Primary_license_tags_\(flat_list\)" or cl_to = "Custom_license_tags" or cl_to = "Custom_CC_license_tags" or cl_to = "Custom_GFDL_license_tags" or cl_to = "Custom_license_tags_with_OTRS_accreditation" or cl_to = "Custom_license_tags_with_OTRS_permission" or cl_to = "Custom_PD_license_tags" or cl_to = "Custom_PD_license_tags_related_to_Denmark" or cl_to = "Custom_PD_license_tags_related_to_Germany" or cl_to = "Custom_PD_license_tags_related_to_Sweden" or cl_to = "Custom_PD_license_tags_related_to_the_United_States" or cl_to = "User_custom_license_tags" or cl_to = "Custom_license_tags_by_Lascorz" )
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...