SQL
x
use ptwiki_p;
select gender, count(*) from revision r, (select user_id, if(up_value IS NULL ,"none",up_value) as gender from user left outer join (select * from user_properties where up_property = "gender") g on user_id = up_user) g where r.rev_user = g.user_id;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.