Task: NL2SQL (source dataset: Spider)

Natural language to SQL, also known as NL2SQL, is the problem of generating a SQL query that can be executed on a input table, for a given natural language question.

You will be given an input table called "table" in the markdown format, as well as a question. Your task is to generate an SQL query that can be executed on the input table to answer the question.

Please ensure that the generated SQL only return relevant columns being specifically asked in the question (e.g., in SQL please don't return more than one columns in SELECT if only one column is needed to answer the given question, and similarly please refrain from using SELECT * unless the entire row is needed to answer the question).
 
When generating SQL code, please use the SQLite syntax to ensure that your SQL is executable on SQLite3. Use only columns that are present in the table, always use quotes around your column and table names (some column names have punctuation or special characters), and refer to the columns using the column-names exactly as they appear in the table, do not add or remove punctuation (underscore, slash, etc.)

No explanation, return the code only with the following markdown codeblock format : ```sql<SQL CODE>```. For example, ```sql
SELECT * FROM "table"
``` is a valid format.

Database:
bbc_channels

Tables:

Table: channel
|   Channel_ID | Name         | Analogue_terrestrial_channel   | Digital_terrestrial_channel   | Internet      |
|-------------:|:-------------|:-------------------------------|:------------------------------|:--------------|
|            1 | BBC One      | 1                              | HD                            | bbc.co.uk     |
|            2 | ITV          | 3                              | HD                            | ITV - itv.com |
|            3 | BBC Two      | 2                              | 2                             | bbc.co.uk     |
|            4 | Channel 4    | 4                              | 8                             | channel4.com  |
|            5 | Channel 5    | 5                              | 44                            | unavailable   |
|            6 | ITV3         | unavailable                    | 10                            | itv.com       |
|            7 | ITV2         | unavailable                    | 6                             | itv.com       |
|            8 | E4           | unavailable                    | 28                            | e4.com        |
|            9 | Sky Sports 1 | unavailable                    | unavailable                   | skysports.com |
|           10 | Sky1         | unavailable                    | unavailable                   | sky.com       |


Table: director
|   Director_ID | Name               |   Age |
|--------------:|:-------------------|------:|
|             1 | DeSean Jackson     |    60 |
|             2 | Hank Baskett       |    90 |
|             3 | Greg Lewis         |    52 |
|             4 | Brent Celek        |    44 |
|             5 | Correll Buckhalter |    59 |
|             6 | Reggie Brown       |    40 |
|             7 | Brian Westbrook    |    47 |
|             8 | Jason Avant        |    31 |
|             9 | Kevin Curtis       |    32 |
|            10 | L.J. Smith         |    43 |


Table: program
|   Program_ID |   Start_Year | Title                             |   Director_ID |   Channel_ID |
|-------------:|-------------:|:----------------------------------|--------------:|-------------:|
|            1 |         2002 | The Angry Brigade                 |             1 |           14 |
|            2 |         2006 | Dracula                           |             2 |           10 |
|            3 |         2006 | Another Country                   |             3 |            3 |
|            4 |         2007 | Caesar III: An Empire Without End |             5 |           14 |
|            5 |         2008 | Othello                           |             3 |            7 |
|            6 |         2008 | The Leopard                       |             6 |            7 |
|            7 |         2008 | Cyrano de Bergerac                |            10 |           14 |
|            8 |         2009 | Carnival                          |             9 |           10 |


Table: director_admin
|   Director_ID |   Channel_ID | Is_first_director   |
|--------------:|-------------:|:--------------------|
|             1 |           14 | T                   |
|             5 |           14 | F                   |
|             3 |           14 | F                   |
|             4 |            7 | T                   |
|             6 |            7 | F                   |


Question: give me the name of channels that have both a director younger than 40 and a director older than 60.

db_id: bbc_channels
tables: name: channel
data: channel.csv
name: director
data: director.csv
name: program
data: program.csv
name: director_admin
data: director_admin.csv
label: SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id  =  t2.channel_id JOIN director AS t3 ON t2.director_id  =  t3.director_id WHERE t3.age  <  40 INTERSECT SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id  =  t2.channel_id JOIN director AS t3 ON t2.director_id  =  t3.director_id WHERE t3.age  >  60
sqlite_path: $MMTU_HOME/data_sqlite/spider/spider_data/test_database/bbc_channels/bbc_channels.sqlite