4.1 is correct but is in wrong format

https://learninghub.kx.com/forums/topic/4-1-is-correct-but-in-wrong-format

4.1 is correct for the first test case but wrong for the second one. Here's my code:

You should not need to filter out 

 time.minute > 09:30

as when creating the buckets the first one will start 09:30 automatically given the dataset begins. You are filtering out some records between 09:30 and 09:31.
Could also do 

 time.minute >= 09:30

to include these.