The scheduled task will be in the ‘scheduledTasks’ table.

Look for ‘stIsGroup’ = 1 and ‘stGroupHostID’ = to the Host or Group ID

Latest rows will have the largest ‘stID’