add query for swift HEAD race

Change-Id: I70d77f226684a3e4d522c64d21fe09c8d516231a
Related-Bug: #1304119