SELECT  
 SUM( IF( ( `parent` IS NULL ), 1, 0 ) ) AS `all`,
 
 SUM( IF( ( YEAR( `start` ) = :year ) AND ( `parent` IS NULL ), 1, 0 ) ) AS `year`,
 SUM( IF( ( YEAR( `start` ) = :year ) AND ( MONTH( `start` ) = :month ) AND ( `parent` IS NULL ), 1, 0 ) ) AS `month`, 
 SUM( IF( ( YEAR( `start` ) = :year ) AND ( WEEK( `start`, 3 ) = :week ) AND ( `parent` IS NULL ), 1, 0 ) ) AS `week`, 
 SUM( IF( ( YEAR( `start` ) = :year ) AND ( MONTH( `start` ) = :month ) AND ( DAY( `start` ) = :day ) AND ( `parent` IS NULL ), 1, 0 ) ) AS `day` 
 
FROM 
 `task`
 
WHERE
 NOT( ( `name` IS NULL ) OR ( `name` = '' ) )  
 
 
 /**
 
 SELECT SUM( IF( ( YEAR( `start` ) = '2024' ) AND ( WEEK( `start`, 3 ) = '01' ) , 1, 0 ) ) AS `week` FROM `task`; 
 
 */