Complex sentence: It was released on May 18,2017 and was written by Gomez, Justin Tranter, Julia Michaels and Ian Kirkpatrick.
Split into simpler sentences: It was released on May 18,2017. The song was written by Gomez, Justin Tranter, Julia Michaels and Ian Kirkpatrick.