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_54 ( value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR )

### Question ###
What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?

### Accurate SQL ###

SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159