human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Line, Began operation, Stations, Length (km), Terminals
###Question: What is the average operation beginning with a length of ampang and over 27 stations?
gpt
SELECT AVG Began operation FROM table WHERE Length (km) = ampang AND Stations > 27