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 ndecoreexcel_math_grade8 ( year number, state text, all_students text, average_scale_score number )
TABLE: CREATE TABLE finrev_fed_17 ( state_code number, idcensus number, school_district text, nces_id text, yr_data number, t_fed_rev number, c14 number, c25 number )
TABLE: CREATE TABLE finrev_fed_key_17 ( state_code number, state text, #_records text )

### Question ###
Which federally-funded state performs worst on the NAEP math exam for eighth graders?

### Accurate SQL ###

SELECT state FROM ndecoreexcel_math_grade8 ORDER BY average_scale_score LIMIT 1