This page in a nutshell: Queries can be run against the Wikipedia database in a variety of ways. |
Much of the data that makes up the Wikipedia encyclopedia is stored in a SQL database. It can sometimes be useful to run queries against this database to extract information that is otherwise hard to find. For example:
Many simple queries can be run directly using the tools built into the MediaWiki package used by Wikipedia. Some of the most popular and useful queries are run regularly and can be found at Wikipedia:Database reports. If neither of these suits your query, you can request that someone run a query for you, or download your own copy of the database to work on.
Some queries can be satisfied through the MediaWiki interface:
Useful queries that are regularly run can be found at:
And many other places.
All Wikipedians have the ability to run queries on a copy of the live database on the Wikimedia Cloud VPS called Quarry.