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: Qual é o nível mínimo de pH para cada espécie de peixe em nossas fazendas?
 ###Tabelas: 
CREATE TABLE fish_farms (id INT, name TEXT, location TEXT, water_type TEXT); INSERT INTO fish_farms (id, name, location, water_type) VALUES (1, 'Farm G', 'Oslo', 'Saltwater'); INSERT INTO fish_farms (id, name, location, water_type) VALUES (2, 'Farm H', 'Helsinki', 'Freshwater'); CREATE TABLE fish_species (id INT, name TEXT); INSERT INTO fish_species (id, name) VALUES (1, 'Cod'); INSERT INTO fish_species (id, name) VALUES (2, 'Herring'); CREATE TABLE fish_inventory (fish_farm_id INT, fish_species_id INT, quantity INT); INSERT INTO fish_inventory (fish_farm_id, fish_species_id, quantity) VALUES (1, 1, 500); INSERT INTO fish_inventory (fish_farm_id, fish_species_id, quantity) VALUES (1, 2, 300); INSERT INTO fish_inventory (fish_farm_id, fish_species_id, quantity) VALUES (2, 1, 400); INSERT INTO fish_inventory (fish_farm_id, fish_species_id, quantity) VALUES (2, 2, 600); CREATE TABLE water_quality (id INT, fish_farm_id INT, fish_species_id INT, temperature FLOAT, pH FLOAT, dissolved_oxygen FLOAT); INSERT INTO water_quality (id, fish_farm_id, fish_species_id, temperature, pH, dissolved_oxygen) VALUES (1, 1, 1, 18.5, 7.5, 6.5); INSERT INTO water_quality (id, fish_farm_id, fish_species_id, temperature, pH, dissolved_oxygen) VALUES (2, 1, 2, 17.0, 7.4, 7.0); INSERT INTO water_quality (id, fish_farm_id, fish_species_id, temperature, pH, dissolved_oxygen) VALUES (3, 2, 1, 19.0, 7.6, 6.6); INSERT INTO water_quality (id, fish_farm_id, fish_species_id, temperature, pH, dissolved_oxygen) VALUES (4, 2, 2, 16.5, 7.3, 7.1);
SELECT fs.name AS species_name, MIN(wq.pH) AS min_ph FROM fish_inventory fi JOIN fish_farms ff ON fi.fish_farm_id = ff.id JOIN fish_species fs ON fi.fish_species_id = fs.id JOIN water_quality wq ON ff.id = wq.fish_farm_id AND fs.id = wq.fish_species_id GROUP BY fs.name;