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

### Instruction:
What year has the ride flight deck and a rating of less than 5?

### Inputs:
table_name: table, columns: ['Ride', 'Year Opened', 'Ride Manufacturer and Type', 'Minimum Height', 'Rating']

### Response:
SELECT COUNT Year Opened FROM table WHERE Ride = flight deck AND Rating < 5