Table: azemmour_municipality
Columns: name
geographic_code
type
households
population_2004
foreign_population
moroccan_population

Question: What is the lowest 2004 population when there were 5158 households?
SQL: SELECT MIN("population_2004") FROM azemmour_municipality WHERE "households" = 5158

Question: What is the number for the Moroccan population when the name is Sebt Saiss and the 2004 population is more than 11212?
SQL: SELECT COUNT("moroccan_population") FROM azemmour_municipality WHERE "name" = 'sebt saiss' AND "population_2004" > 11212

Question: What is the largest foreign population when the 2004 population is 7641?
SQL: SELECT MAX("foreign_population") FROM azemmour_municipality WHERE "population_2004" = 7641