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

### Instruction:
What was the sum of Value ($M), when the Revenue ($M) was less than 307, the Team was Valencia, and the Rank was smaller than 19?

### Inputs:
table_name: table, columns: ['Rank', 'Team', 'Country', 'Value ($M)', 'Debt as %of value', '% change on year', 'Revenue ($M)', 'Operating income($m)']

### Response:
SELECT SUM Value ($M) FROM table WHERE Revenue ($M) < 307 AND Team = valencia AND Rank < 19