human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Call sign, Frequency MHz, City of license, ERP W, Class, FCC info
###Question: What is the average frequency mhz of the loomis, south dakota city license?
gpt
SELECT AVG Frequency MHz FROM table WHERE City of license = loomis, south dakota