Q: Context: Glen A. Larson, the creator and executive producer of Battlestar Galactica, claimed he had conceived of the Battlestar Galactica premise, which he called Adam's Ark, during the late 1960s. As James E. Ford detailed in "Battlestar Galactica and Mormon Theology," a paper read at the Joint Conference of the American Culture and Popular Culture Associations on 17 April 1980 (and published as "Theology in Prime Time Science Fiction: Battlestar Galactica and Mormon Doctrine," Journal of Popular Culture # 17 ( 1983): 83 -- 87 ), the series incorporated many themes from Mormon theology, such as marriage for "time and eternity", a "council of twelve," and a planet called Kobol, as Larson was a member of The Church of Jesus Christ of Latter-day Saints. However, he was unable to find financial backing for his TV series for a number of years. Battlestar Galactica was finally produced in the wake of the success of the 1977 film Star Wars. The original Cylons of Battlestar Galactica, robotic antagonists bent on destroying all humankind, owe much to Fred Saberhagen's berserker stories, including Saberhagen's fictional race The Builders whose "sliding single red eye" became the signature design element for the Cylons.

Question: which came first battlestar galactica or star wars? Let's give stream of consciousness first:
The relevant sentence in the passage is: Battlestar Galactica was finally produced in the wake of the success of the 1977 film Star Wars. Therefore, the final answer is Battlestar Galactica.