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

### Instruction:
What average rank of the premier has NSW as the state, Liberalism as the party, and 22 March 1877 was the assumed office?

### Inputs:
table_name: table, columns: ['Rank:', 'State:', 'Premier:', 'Party:', 'Assumed office:', 'Left office:', 'TOTAL Time in office:']

### Response:
SELECT AVG Rank: FROM table WHERE State: = nsw AND Party: = liberalism AND Assumed office: = 22 march 1877