QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    What is the total number of flights that have Oklahoma as their origin? Oklahoma as origin refers to Origin = 'OKC';

    【Evidence】
    Oklahoma as origin refers to Origin = 'OKC';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) AS num FROM Airlines WHERE Origin = 'OKC'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    How many airports have a code starting with the letter C? code starting with the letter C refers to Code like 'C%';

    【Evidence】
    code starting with the letter C refers to Code like 'C%';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM Airports WHERE Code LIKE 'C%'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    Provide the destinations of flight number 1596. destination refers to DEST; flight number refers to OP_CARRIER_FL_NUM; OP_CARRIER_FL_NUM = 1596;

    【Evidence】
    destination refers to DEST; flight number refers to OP_CARRIER_FL_NUM; OP_CARRIER_FL_NUM = 1596;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DEST FROM Airlines WHERE OP_CARRIER_FL_NUM = 1596
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    List the description of the airports that have code that ends with number 3? code that ends with number 3 refers to Code like '%3';

    【Evidence】
    code that ends with number 3 refers to Code like '%3';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT Description FROM Airports WHERE Code LIKE '%3'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    Give the code of the airport described as Driftwood Bay, AK: Driftwood Bay Airport. Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';

    【Evidence】
    Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT Code FROM Airports WHERE Description = 'Driftwood Bay, AK: Driftwood Bay Airport'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    How many cancelled flights are there? cancelled flights refers to CANCELLED = 1;

    【Evidence】
    cancelled flights refers to CANCELLED = 1;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM Airlines WHERE CANCELLED = 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    List the tail number of flights that flew on August 17, 2018. tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';

    【Evidence】
    tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT TAIL_NUM FROM Airlines WHERE FL_DATE = '2018/8/17' GROUP BY TAIL_NUM
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    Provide the origin of the flight that has the shortest actual elapsed time. shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);

    【Evidence】
    shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT ORIGIN FROM Airlines ORDER BY ACTUAL_ELAPSED_TIME ASC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 airline
【Schema】
# Table: Air Carriers
[
(Code:INTEGER, Primary Key, Examples: [19031, 19032, 19033]),
(Description:TEXT, Examples: [Mackey International Inc.: MAC])
]
# Table: Airports
[
(Code:TEXT, Primary Key, Examples: [01A, 03A, 04A]),
(Description:TEXT, Examples: [Afognak Lake, AK: Afognak Lake Airport])
]
# Table: Airlines
[
(FL_DATE:TEXT, Examples: [2018/8/1, 2018/8/2, 2018/8/3]),
(OP_CARRIER_AIRLINE_ID:INTEGER, Examples: [19805, 20427, 21167]),
(TAIL_NUM:TEXT, Examples: [N956AN, N973AN, N9006]),
(OP_CARRIER_FL_NUM:INTEGER, Examples: [1587, 1588, 1590]),
(ORIGIN_AIRPORT_ID:INTEGER, Examples: [12478, 14107, 11042]),
(ORIGIN_AIRPORT_SEQ_ID:INTEGER, Examples: [1247805, 1410702, 1104205]),
(ORIGIN_CITY_MARKET_ID:INTEGER, Examples: [31703, 30466, 30647]),
(ORIGIN:TEXT, Examples: [JFK, PHX, CLE]),
(DEST_AIRPORT_ID:INTEGER, Examples: [14107, 11618, 11298]),
(DEST_AIRPORT_SEQ_ID:INTEGER, Examples: [1410702, 1161802, 1129806]),
(DEST_CITY_MARKET_ID:INTEGER, Examples: [30466, 31703, 30194]),
(DEST:TEXT, Examples: [PHX, EWR, DFW]),
(CRS_DEP_TIME:INTEGER, Examples: [1640, 1512, 744]),
(DEP_TIME:INTEGER, Examples: [1649, 1541, 741]),
(DEP_DELAY:INTEGER, Examples: [9, 29, -3]),
(DEP_DELAY_NEW:INTEGER, Examples: [9, 29, 0]),
(ARR_TIME:INTEGER, Examples: [2006, 2350, 938]),
(ARR_DELAY:INTEGER, Examples: [44, 53, -2]),
(ARR_DELAY_NEW:INTEGER, Examples: [44, 53, 0]),
(CANCELLED:INTEGER, Examples: [0, 1]),
(CANCELLATION_CODE:TEXT, Examples: [A, B, C]),
(CRS_ELAPSED_TIME:INTEGER, Examples: [342, 285, 176]),
(ACTUAL_ELAPSED_TIME:INTEGER, Examples: [377, 309, 177]),
(CARRIER_DELAY:INTEGER, Examples: [9, 0, 43]),
(WEATHER_DELAY:INTEGER, Examples: [0, 2, 48]),
(NAS_DELAY:INTEGER, Examples: [35, 53, 0]),
(SECURITY_DELAY:INTEGER, Examples: [0, 42, 4]),
(LATE_AIRCRAFT_DELAY:INTEGER, Examples: [0, 6, 73])
]
【Foreign keys】
Airlines.ORIGIN=Airports.Code
Airlines.DEST=Airports.Code
Airlines.OP_CARRIER_AIRLINE_ID=Air Carriers.Code

    【Question】
    Provide the date and tail number of flight with air carrier "Ross Aviation Inc.: GWE". date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';

    【Evidence】
    date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.FL_DATE, T1.TAIL_NUM FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T2.Description = 'Ross Aviation Inc.: GWE'