CREATE TABLE table_name_12 (minister VARCHAR(255), end_date VARCHAR(255))
Name the minister for end date of 31 july 2004
    
SQL: SELECT minister FROM table_name_12 WHERE end_date = "31 july 2004"