Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM budget WHERE Invested > 8.5
Feedback: Find number of rows endowment for which school id appears more than once . Replace invested with amount .
Output (English): SELECT count(*) FROM (SELECT * FROM endowment WHERE amount  >  8.5 GROUP BY school_id HAVING count(*)  >  1)