Wikipedia:Request a query

This is a page for requesting one-off database queries for certain criteria. Users who are interested and able to perform SQL queries on the projects can provide results from the Quarry website.

You may also be interested in the following:

The database replicas do not have access to page content, so requests which require checking wikitext cannot be answered with database queries. In particular, there is no way to query for template parameters or anything related to references. However, someone may be able to assist by querying in another way (for example, checking for external links rather than references) or suggest an alternative tool.

Four queries

Cryptic, (or someone else) I am requesting the following queries. Hope this isn't too much work. If possible copy some of these to subpages of Wikipedia:Database reports:

(Would those last two take too long?) RanDom 404 (talk) 15:00, 15 September 2026 (UTC)

A query here addresses the first one. I've taken "articles" to mean "mainspace pages which are not currently redirects". As for the second one, my effort purports to show that there aren't any, but that may well be a bug. (Do you have any examples?) I've not attempted the third or fourth queries. Someone may like to combine the single-user query above with this query once the definitions are clear. Certes (talk) 16:00, 15 September 2026 (UTC)
That's going to be missing just about all article titles with spaces in them. actor_name is usually like user_name in that it doesn't replace spaces with underscores the way page_title does. Most (all?) exceptions are from imported edits, which is why Enter_the_Dragon is the only one in your results that shows up. —Cryptic 16:09, 15 September 2026 (UTC)
D'oh, I should have spotted that they were all single words! Thank you. There is also the issue of what is an "article": many pages have switched between article, redirect and dab over the years and it might be pragmatic just to declare that anything with rev_len > 100 was created as an article. And I expect many of them have had a page move which means the current title doesn't match that at creation. A bit of a minefield calling for many heuristics. Certes (talk) 16:26, 15 September 2026 (UTC)
User renames is also a stumbling block, and harder to detect. —Cryptic 16:50, 15 September 2026 (UTC)
Are there any updates on this, Cryptic? RanDom 404 (talk) 17:06, 3 October 2026 (UTC)
quarry:query/109922 is a fork of Certes' query with a column for edits to other pages, and also fixes the checked-for category to Category:All articles lacking sources (there are still only 18). quarry:query/109923 has mainspace pages with zero transclusions whose creator edited no other page. I don't think that criterion is a good indicator for what you're looking for; someone who creates a page as their first edit A) is already viewed with suspicion by their new page patroller, and B) can't have done that in mainspace to begin with, not for many years, so either someone moved it into mainspace for them or they're going to have another live edit at the redirect they left in Draft: or User: or wherever it was they moved it from. Besides, people who deliberately create hard-to-detect hoaxes usually build up a buffer of "good" edits to avoid those two issues: both lessening suspicion for A and getting able to create directly in mainspace without help for B. —Cryptic 02:50, 4 October 2026 (UTC)
This may be true with more elaborate hoaxes like Alan MacMasters, but in the majority of cases seen on the WP:HOAXLIST you'll find that the majority of Wikipedia's longest lasting hoaxes were created by users with few to no other edits. RanDom 404 (talk) 15:16, 4 October 2026 (UTC)

April 1 queries

I'm requesting two additional queries:

First one should be easier. RanDom 404 (talk) 19:42, 3 October 2026 (UTC)

To what purpose? What of use will, say, the first one tell you that Category:Articles lacking sources from April 2026 doesn't? I mean, I'm happy to datamine for things that will help Wikipedia, but if this is just to satisfy curiosity, I (or anyone else) am only likely to go along if it satisfies my/their curiosity too. —Cryptic 21:59, 3 October 2026 (UTC)
Those categories are for articles tagged in April, not articles created in April. The reason I'm requesting the queries is because I'm trying to detect hoax articles. RanDom 404 (talk) 23:38, 3 October 2026 (UTC)
None for 2026/04/01, so I reran it for April 1 in any year. quarry:query/109921. Only user with no edits except to that page is Graham Taylor for Thebarton Senior College in 2006. —Cryptic 01:42, 4 October 2026 (UTC)

Intersection of Special:ActiveUsers and another set of users

What I would like is some way, maybe a Quarry query, of getting the intersection of Special:ActiveUsers and the list of editors at Wikipedia:WikiProject_Notability/Member_List#Inactive_or_former_members, so that I can send an encouraging message to re-sign up to the project, to all historical members of Wikipedia:WikiProject_Notability who are still active editors. Cheers, SunloungerFrog (talk) 21:58, 5 October 2026 (UTC)

A nice round quarry:query/110000.
Tracking down what precisely Special:ActiveUsers does was an adventure. "With any edits (or even any edits or logs) in the last n days" would have been much more straightforward.
Six of the usernames listed there aren't registered: Adam Black GB, ArchieMartin, DarkGlow, Explodicle, GeorgeLouis, Shruti14. Given the page's age, it's also quite likely some of those users have gotten renames and the listed username is just there to prevent impersonation; I didn't check for that.
Also, it's impossible to distinguish which section a link is in, so you're getting the six from the first section too. —Cryptic 02:10, 6 October 2026 (UTC)
That's brilliant, thanks! Cheers, SunloungerFrog (talk) 05:14, 6 October 2026 (UTC)

User lists

Hi Cryptic. If I give you a list of members of a WikiProject, can you make a separate list of the ones that have not edited Wikipedia for 24 months, and if so, what format do you need the list to be in? Kudpung กุดผึ้ง (talk) 03:27, 15 October 2026 (UTC)

(edit conflict) Not Cryptic, but that depends on how many members there are. Probably just a comma separated list, names in quotes. For example "BilledMammal", "Kudpung", "Cryptic". If there are several hundred, then a page with links to all their user pages would be better. BilledMammal (talk) 04:25, 15 October 2026 (UTC)
If there's more than a dozen or so, the easiest way to do it is to link them all from the same page, with no other userpage links. User talk links, or a mix of user and user talk, are ok too, like at Wikipedia:WikiProject Notability/Member List from the section above. —Cryptic 04:33, 15 October 2026 (UTC)
The list is at Wikipedia:WikiProject_Schools/Participants Kudpung กุดผึ้ง (talk) 04:38, 15 October 2026 (UTC)
quarry:query/110353. —Cryptic 05:03, 15 October 2026 (UTC)
Thanks! Kudpung กุดผึ้ง (talk) 11:18, 16 October 2026 (UTC)