SELECT count(ID) as CNT FROM DAT_HAISYA WHERE ENABLE='ENABLE:公開中' AND PREF='山形県' AND ( ( (TMP05 = '山形駅' and PREF='山形県') or (TMP05 = '北山形駅' and PREF='山形県') or (TMP05 = '東金井駅' and PREF='山形県') or (TMP05 = '羽前山辺駅' and PREF='山形県') or (TMP05 = '羽前金沢駅' and PREF='山形県') or (TMP05 = '羽前長崎駅' and PREF='山形県') or (TMP05 = '南寒河江駅' and PREF='山形県') or (TMP05 = '寒河江駅' and PREF='山形県') or (TMP05 = '西寒河江駅' and PREF='山形県') or (TMP05 = '羽前高松駅' and PREF='山形県') or (TMP05 = '柴橋駅' and PREF='山形県') or (TMP05 = '左沢駅' and PREF='山形県') ) ) ;