why not count the number of records with a start time within a set period
like
SELECT person, COUNT(starttime) AS notasks, DATE_FORMAT(starttime, "%d/%M/%Y H") as timeperiod FROM table GROUP BY timeperiod
that will give you each hour then just change it to an if with an even or odd check
something like
SELECT person, COUNT(starttime) AS notasks, CONCAT(DATE_FORMAT(starttime, "%d/%M/%Y"), DATE_FORMAT(starttime, "H") - (DATE_FORMAT(starttime, "H") MOD 2) as timeperiod FROM table GROUP BY timeperiod