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
Kirilloparma
.
Number of properties created only by property creators in the last six months
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT actor_name AS 'User', COUNT(*) AS 'Properties created' FROM revision_userindex JOIN page ON rev_page = page_id JOIN actor ON rev_actor = actor_id LEFT JOIN user_groups ON ug_user = actor_user WHERE page_namespace = 120 AND rev_parent_id = 0 AND ug_group in ( 'propertycreator' ) #AND rev_timestamp > (DATE_FORMAT((NOW() - INTERVAL 7 DAY),'%Y%m%d%H%i%S')) #AND rev_timestamp > (DATE_FORMAT((NOW() - INTERVAL 30 DAY),'%Y%m%d%H%i%S')) #AND rev_timestamp > (DATE_FORMAT((NOW() - INTERVAL 365 DAY),'%Y%m%d%H%i%S')) AND rev_timestamp > 20230613000000 GROUP BY rev_actor ORDER BY count(*) DESC
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...