human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Tenure, Ties, Lost, Win %
###Question: Tell me the total number of ties for name of totals and lost more than 30
gpt
SELECT COUNT Ties FROM table WHERE Name = totals AND Lost > 30