Task: NL2SQL (source dataset: bird)

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:
thrombosis_prediction

Tables:

Table: Examination
|     ID | Examination Date   |   aCL IgG |   aCL IgM |   ANA | ANA Pattern   |   aCL IgA | Diagnosis         | KCT   | RVVT   | LAC   | Symptoms   |   Thrombosis |
|-------:|:-------------------|----------:|----------:|------:|:--------------|----------:|:------------------|:------|:-------|:------|:-----------|-------------:|
|  14872 | 1997-05-27         |       1.3 |       1.6 |   256 | P             |         0 | MCTD, AMI         |       |        | -     | AMI        |            1 |
|  48473 | 1992-12-21         |       4.3 |       4.6 |   256 | P,S           |         3 | SLE               | -     | -      | -     |            |            0 |
| 102490 | 1995-04-20         |       2.3 |       2.5 |     0 |               |         4 | PSS               |       |        |       |            |            0 |
| 108788 | 1997-05-06         |       0   |       0   |    16 | S             |         0 |                   |       |        | -     |            |            0 |
| 122405 | 1998-04-02         |       0   |       4   |     4 | P             |         0 | SLE, SjS, vertigo |       |        |       |            |            0 |
| 133382 | 1996-10-17         |       1   |       2.4 |  1024 | S             |         0 | SLE               | -     | -      | -     |            |            0 |
| 163109 | 1997-07-01         |       6.1 |       9.5 |  4096 | S             |         9 |                   | -     | +      | +     | CNS lupus  |            2 |
| 174116 | 1995-11-13         |       3.7 |       3   |   256 | P             |        12 | SLE, AIHA         | +     | +      | +     |            |            0 |
| 189721 | 1997-03-10         |       0   |       0   |    16 | P,S           |         0 | Raynaud           |       |        |       |            |            0 |
| 191207 | 1997-03-17         |       1.7 |       0   |    16 | P             |        23 | Cryoglobulin, RA  |       |        |       | Apo        |            1 |


Table: Patient
|    ID | SEX   | Birthday   | Description   | First Date   | Admission   | Diagnosis            |
|------:|:------|:-----------|:--------------|:-------------|:------------|:---------------------|
|  2110 | F     | 1934-02-13 | 1994-02-14    | 1993-02-10   | +           | RA susp.             |
| 11408 | F     | 1937-05-02 | 1996-12-01    | 1973-01-01   | +           | PSS                  |
| 12052 | F     | 1956-04-14 | 1991-08-13    |              | +           | SLE                  |
| 14872 | F     | 1953-09-21 | 1997-08-13    |              | +           | MCTD                 |
| 27654 | F     | 1936-03-25 |               | 1992-02-03   | +           | RA, SLE susp         |
| 30609 | F     | 1944-07-13 | 1991-08-13    |              | -           | SLE, MCTD            |
| 43003 | M     | 1937-11-24 | 1994-03-08    | 1994-03-08   | -           | Raynaud's phenomenon |
| 48473 | F     | 1948-10-07 | 1997-08-13    |              | +           | SLE                  |
| 52199 | F     | 1954-03-16 |               |              | -           | PM/DM                |
| 57266 | M     | 1923-07-25 | 1997-02-03    | 1993-02-05   | +           | RA                   |


Table: Laboratory
|    ID | Date       | GOT   | GPT   | LDH    | ALP   | TP   | ALB   | UA   | UN   | CRE   | T-BIL   | T-CHO   | TG    | CPK   | GLU   |   WBC |   RBC |   HGB |   HCT |   PLT | PT   | APTT   | FG   | PIC   | TAT   | TAT2   | U-PRO   | IGG   | IGA   | IGM   | CRP   | RA   | RF   | C3   | C4   | RNP   | SM   | SC170   | SSA   | SSB   | CENTROMEA   | DNA   | DNA-II   |
|------:|:-----------|:------|:------|:-------|:------|:-----|:------|:-----|:-----|:------|:--------|:--------|:------|:------|:------|------:|------:|------:|------:|------:|:-----|:-------|:-----|:------|:------|:-------|:--------|:------|:------|:------|:------|:-----|:-----|:-----|:-----|:------|:-----|:--------|:------|:------|:------------|:------|:---------|
| 27654 | 1991-09-11 | 34.0  | 36.0  | 567.0  | 166.0 | 4.5  | 3.3   | 3.8  | 29.0 | 0.8   | 0.3     | 165.0   |       | 9.0   |       |   5   |   2.6 |   6.4 |  20.3 |   227 |      |        |      |       |       |        |         | 339.0 | 145.0 | 46.0  | 0.6   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-17 | 29.0  | 31.0  | 579.0  | 154.0 | 5.1  | 3.4   | 4.2  | 36.0 | 0.8   |         |         |       |       |       |  10.4 |   2.9 |   6.7 |  21.6 |   242 |      |        |      |       |       |        |         | 771.0 | 188.0 | 132.0 | 0.6   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-19 | 26.0  | 22.0  | 684.0  | 138.0 | 5.5  | 3.6   | 4.9  | 34.0 | 0.9   |         |         |       |       | 88.0  |  10.5 |   3.4 |   7.9 |  24.7 |   233 |      |        |      |       |       |        |         |       |       |       | 2.7   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-20 | 23.0  | 18.0  | 552.0  | 131.0 | 4.2  | 2.9   | 4.8  | 22.0 | 0.7   | 0.2     | 134.0   |       | 10.0  |       |  10.3 |   2.6 |   6.1 |  19.3 |   201 |      |        |      |       |       |        |         | 430.0 | 118.0 | 56.0  | 1.2   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-21 |       |       |        |       |      |       |      |      |       |         |         |       |       |       |  14.3 |   3.2 |   7.2 |  23.4 |   215 |      |        |      |       |       |        |         |       |       |       |       |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-24 | 24.0  | 4.0   | 701.0  | 108.0 | 4.7  | 3.2   | 5.2  | 8.0  | 0.8   | 0.4     | 140.0   |       | 11.0  |       |  12.4 |   3.2 |   7.6 |  24   |   213 |      |        |      |       |       |        | -       | 562.0 | 152.0 | 124.0 | 3.9   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-25 | 23.0  | 1.0   | 756.0  | 111.0 | 5.3  | 3.7   | 4.9  | 7.0  | 0.7   | 0.4     |         |       |       |       |  11.6 |   3.3 |   7.5 |  23.8 |   191 |      |        |      |       |       |        |         |       |       |       | 2.8   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-26 |       |       | 1239.0 |       | 4.9  | 3.7   | 4.2  | 7.0  | 0.6   | 0.4     | 123.0   |       |       | 134.0 |   8.6 |   3   |   6.8 |  21.8 |   204 |      |        |      |       |       |        |         |       |       |       | 2.3   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-27 | 30.0  | 1.0   | 752.0  | 104.0 | 4.9  | 3.4   | 3.7  | 8.0  | 0.7   | 0.4     | 107.0   |       | 11.0  | 161.0 |   8.4 |   3.2 |   7.1 |  23.7 |   177 |      |        |      |       |       |        |         |       |       |       | 1.4   |      |      |      |      |       |      |         |       |       |             |       |          |
| 27654 | 1991-09-30 | 29.0  | 4.0   | 760.0  | 133.0 | 5.7  | 3.5   | 1.4  | 9.0  | 0.6   | 0.4     | 141.0   | 185.0 |       |       |  10.1 |   3.6 |   8.4 |  27.2 |   213 |      |        |      |       |       |        |         |       |       |       | 0.5   |      |      |      |      |       |      |         |       |       |             |       |          |


Question: Provide ID, sex and age of patient who has blood glucose (GLU) not within normal range but with total cholesterol(T-CHO) within normal range.

db_id: thrombosis_prediction
tables: name: Examination
data: Examination.csv
name: Patient
data: Patient.csv
name: Laboratory
data: Laboratory.csv
label: SELECT DISTINCT T1.ID, T1.SEX , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GLU >= 180 AND T2.`T-CHO` < 250
sqlite_path: $MMTU_HOME/data_sqlite/bird/dev_20240627/dev_databases/thrombosis_prediction/thrombosis_prediction.sqlite