The first one return issues linked to issues that have the "test" label, while the second expression returns the issues with the label themselves.
The first expression uses a scriptrunner function, described here: https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_linkedissuesof
It looks like you're new here. Sign in or register to get started.