user: Question: What is the largest foreign population when the 2004 population is 7641?
Columns: ['Name', 'Geographic code', 'Type', 'Households', 'Population (2004)', 'Foreign population', 'Moroccan population']
Types: ['text', 'text', 'text', 'real', 'real', 'real', 'real']
Sample row: ['Azemmour', '181.01.01.', 'Municipality', 8080.0, 36722.0, 26.0, 36696.0]
SQL:

assistant: SELECT MAX("Foreign population") FROM "Table" WHERE "Population (2004)" = 7641.0;