Currently, test cases that are linked to any external issues can be filtered in the repository with the "External Issues" filter. However, when it comes to queries, this attribute is not available.
In addition to using the attribute to frame queries for fetching test cases linked to a specific requirement, adding this would also allow users to create QQL widgets that display test cases linked to a requirement on their dashboards.