Generate a correct SQL query to extract the following data.
Retrieve the names, ages and cities of customers who are over 40 years old.
SELECT name, age, city FROM customers WHERE age > 40;
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a correct SQL query to extract the following data.

### Input:
Retrieve the names, ages and cities of customers who are over 40 years old.

### Output:
SELECT name, age, city FROM customers WHERE age > 40;