Skip to content

Instantly share code, notes, and snippets.

@Ironholds
Created January 28, 2013 01:03
Show Gist options
  • Save Ironholds/4651850 to your computer and use it in GitHub Desktop.
Save Ironholds/4651850 to your computer and use it in GitHub Desktop.
mysql -u research -h db67.pmtpa.wmnet -p enwiki -e "SELECT
user.user_id,
MAX(revision.rev_timestamp),
user.user_touched,
user.user_registration,
user.user_editcount,
user_properties.up_value,
user_rights.ur_rights FROM
(((user_properties LEFT JOIN user ON user.user_id = user_properties.up_user) LEFT JOIN user_rights ON user.user_id = user_rights.ur_user) INNER JOIN revision ON user.user_id = revision.rev_user) WHERE user_properties.up_property = 'gender' AND user_properties.up_value IS NOT NULL" > gendergap.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment