Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cities with population > 1M to dev place page experiment group #4781

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dwnoble
Copy link
Contributor

@dwnoble dwnoble commented Dec 9, 2024

Generated group using ~10% of all world cities with population > 1M at random using bigquery:

SELECT * FROM (
  SELECT 
    DISTINCT(svo.observation_about) as placeDcid, place.name, COUNT(*) as count
  FROM `datcom-store.dc_kg_latest.StatVarObservation`  svo
  JOIN `datcom-store.dc_kg_latest.Place` place
    ON svo.observation_about = place.id
  WHERE
    CAST(svo.value AS FLOAT64) > 1000000 AND 
    svo.variable_measured = "Count_Person" AND
    place.type = "City" AND
    place.name IS NOT null
  GROUP BY
    svo.observation_about, place.id, place.name
  ORDER BY RAND() DESC
  LIMIT 70
) ORDER BY placeDcid ASC

@dwnoble dwnoble requested review from juliawu and gmechali December 9, 2024 23:43
@dwnoble dwnoble marked this pull request as draft December 11, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants