Last active
December 16, 2015 19:59
-
-
Save skyred/5488714 to your computer and use it in GitHub Desktop.
Revisions
-
skyred renamed this gist
Apr 30, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
skyred revised this gist
Apr 30, 2013 . 2 changed files with 35 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ // The number of users from China by the end of 2010 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1293836399) // The number of users from China by the end of 2011 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1325372399) // The number of users from China by the end of 2012 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1356994799) // The number of users speaking Simplified or Traditional Chinese by the end of 2010 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_language ON users.uid = profile_values_profile_language.uid AND profile_values_profile_language.fid = '3' WHERE (users.created <= 1293836399) AND (profile_values_profile_language.value in ('Chinese, Simplified', 'Chinese, Traditional')) // The number of users speaking Simplified or Traditional Chinese by the end of 2011 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_language ON users.uid = profile_values_profile_language.uid AND profile_values_profile_language.fid = '3' WHERE (users.created <= 1325372399) AND (profile_values_profile_language.value in ('Chinese, Simplified', 'Chinese, Traditional')) // The number of users speaking Simplified or Traditional Chinese by the end of 2012 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_language ON users.uid = profile_values_profile_language.uid AND profile_values_profile_language.fid = '3' WHERE (users.created <= 1356994799) AND (profile_values_profile_language.value in ('Chinese, Simplified', 'Chinese, Traditional')) -
skyred created this gist
Apr 30, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ // The number of users from China by the end of 2010 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1293836399) // The number of users from China by the end of 2011 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1325372399) // The number of users from China by the end of 2012 SELECT count(users.uid) AS uid FROM users users LEFT JOIN profile_values profile_values_profile_country ON users.uid = profile_values_profile_country.uid AND profile_values_profile_country.fid = '1' WHERE (profile_values_profile_country.value in ('China')) AND (users.created <= 1356994799)