This query is marked as a draft This query has been published by Teslaton.

SQL

AخA
 
select 
    coalesce(up.up_value, '-') as gender,
    count(*) as count
  from
    user u 
    left outer join user_properties up on up.up_user = u.user_id and up.up_property = 'gender'
  group by
    up.up_value
  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.
All SQL code is licensed under CC0 License.

Checking query status...