SELECT subcat_id, total FROM categories_total WHERE city_id = '40' AND cat_id = '1' AND subcat_id IS NOT NULL