Queens of the Stone Age are an American rock band formed in 1996 in Palm Desert, California. The band's line-up includes founder Josh Homme (lead vocals, guitar, piano), alongside band members Troy Van Leeuwen (guitar, lap steel, keyboard, percussion, backing vocals), Michael Shuman (bass guitar, keyboard, backing vocals), Dean Fertita (keyboards, guitar, percussion, backing vocals), and Jon Theodore (drums, percussion). Formed after the dissolution of Homme's previous band, Kyuss, Queens of the Stone Age developed a style of riff-oriented, heavy rock music. Their sound has since evolved to incorporate a variety of different styles and influences, including working with ZZ Top member Billy Gibbons, Nirvana drummer and Foo Fighters frontman Dave Grohl, and Screaming Trees frontman Mark Lanegan who has been a steady contributor to the band.

After the breakup of his previous band, Kyuss, in 1995, Josh Homme briefly joined Screaming Trees as a touring guitarist, before deciding to form a new band, Gamma Ray. In 1996 they released the eponymous Gamma Ray EP, featuring "Born to Hula" and "If Only Everything" (which would later appear on their self-titled debut as 'If Only'). The EP featured Matt Cameron of Soundgarden and Pearl Jam, Van Conner from Screaming Trees, and percussionist Victor Indrizzo.  Gamma Ray changed their name in 1997 after the German power metal band Gamma Ray threatened to sue. The name "Queens of the Stone Age" came from a nickname given to Kyuss by their producer Chris Goss. Homme said of the name: "Kings would be too macho. The Kings of the Stone Age wear armor and have axes and wrestle. The Queens of the Stone Age hang out with the Kings of the Stone Age's girlfriends when they wrestle ... Rock should be heavy enough for the boys and sweet enough for the girls. That way everyone's happy and it's more of a party. Kings of the Stone Age is too lopsided."  The first release under the Queens of the Stone Age name was the song "18 A.D.," released on the compilation album Burn One Up! Music for Stoners which featured members of the Dutch stoner rock band Beaver. The band's first live appearance was on November 20, 1997, at OK Hotel in Seattle, Washington, with Cameron on drums, Mike Johnson of Dinosaur Jr. on bass and John McBain of Monster Magnet on guitar. In December that year, the band released a split EP, Kyuss/Queens of the Stone Age, which featured three tracks from the Gamma Ray sessions as well as three Kyuss tracks recorded in 1995 prior to their breakup.  Queens of the Stone Age released their self-titled debut in 1998 on Stone Gossard's and Regan Hagar's label Loosegroove Records, and on vinyl by Man's Ruin Records. Homme played guitar and bass on the album (the latter credited to Homme's alter-ego Carlo Von Sexron), Alfredo Hernandez on the drums, and several other contributions by Chris Goss and Hutch. Homme reportedly asked Screaming Trees vocalist Mark Lanegan to appear on the record, but he was unable due to other commitments.  Soon after the recording sessions were finished for the album, former Kyuss bassist Nick Oliveri joined the group, and touring commenced with a band consisting entirely of ex-Kyuss members. Guitarist Dave Catching joined shortly after. From this point forward, the band's line-up would change frequently; by the time their second album was being recorded, Hernandez had left the group to play in other bands.

Answer the following question by taking a quote from the article: How did the name go from Gamma Ray to Queens of the Stone Age?
Gamma Ray changed their name in 1997 after the German power metal band Gamma Ray threatened to sue.