Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_name_59 ( losses INTEGER, played VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR )

### Question ###
What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?

### Accurate SQL ###

SELECT MAX(losses) FROM table_name_59 WHERE position < 6 AND wins > 11 AND points = 36 AND played > 30