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
Og370
.
Toggle Highlighting
SQL
#Goal: Look for the #1) whether articles are marked as controversial, #2) how many external references they have and #3) number of edits. USE enwiki_p; #Look for pages where cl_to is Law and cl_namespace = 0 SELECT page_title FROM page JOIN categorylinks ON page_id = cl_from WHERE cl_to = "Law" AND page_namespace = 0 group by page_id ORDER BY RAND() LIMIT 1000; #Count external references as a proxy for how cited or reliable the article is. #SELECT count(cl_to) page_title FROM external link table #JOIN page WHERE page_id = cl_from #GROUP BY page_id #Look for whether template links is marked as "disputed" or "controversial" #SELECT count(tl_from) page_title FROM external link table #JOIN page WHERE TL title = "disputed" or "controversial" #GROUP BY page_id
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...