Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted?

### Inputs:
table_name: table, columns: ['Year', 'Indians admitted', 'Pakistanis admitted', 'Sri Lankans admitted', 'Bangladeshis admitted', 'Nepalis admitted']

### Response:
SELECT SUM Sri Lankans admitted FROM table WHERE Year = 2004 AND Nepalis admitted > 594