Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Quantos ganhos têm Vitórias maiores que 3?
 ###Tabelas: CREATE TABLE medals (medals_id AUTO_INCREMENT PRIMARY KEY, Rank INT, Nation VARCHAR, Gold INT, Silver INT, Bronze INT, Total INT) CREATE TABLE parliamentary_elections (parliamentary_elections_id AUTO_INCREMENT PRIMARY KEY, Election INT, Number of PNC votes VARCHAR, Share of votes VARCHAR, Seats VARCHAR, Outcome of election VARCHAR) CREATE TABLE leaders (leaders_id AUTO_INCREMENT PRIMARY KEY, Rank INT, Player VARCHAR, Country VARCHAR, Earnings ( $ ) INT, Events INT, Wins INT) CREATE TABLE most_games_for_each_club (most_games_for_each_club_id AUTO_INCREMENT PRIMARY KEY, Rank VARCHAR, Games VARCHAR, Player VARCHAR, Club VARCHAR, Career span VARCHAR) CREATE TABLE comparative_performance_in_the_latin_american_market (comparative_performance_in_the_latin_american_market_id AUTO_INCREMENT PRIMARY KEY, Selected Caribbean and n Latin America countries VARCHAR, Internl. tourist arrivals 2011 (x1000) INT, Internl. tourism receipts 2011 (million USD ) VARCHAR, Receipts per arrival 2010 (col 2)/(col 1) ( USD ) VARCHAR, Receipts per capita 2005 USD INT, Revenues as % of exports goods and services 2011 VARCHAR)  
SELECT SUM Earnings ( $ ) FROM leaders WHERE Wins > 3