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
Jmorgan (WMF)
.
Information about the first edit to the page "The Hobbit: The Battle of the Five Armies" on the English Wikipedia. The revision table contains info about the first revision, but not the title of the page. The page table contains the title, but not info about the first rev. Joining the tables using the common keys (rev_page AND page_id) allows you to get all this info in one query.
Toggle Highlighting
SQL
SELECT rev_page, page_id, page_title, MIN(rev_id) AS first_revision, rev_user_text AS page_creator, rev_timestamp AS first_rev_date FROM revision, page WHERE page_namespace = 0 AND rev_page = page_id AND page_title = "The_Hobbit:_The_Battle_of_the_Five_Armies";
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...