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】
    List the air carrier's description with arrival time lower than the 40% of the average arrival time of flights that flew to Phoenix. arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';

    【Evidence】
    arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';

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

SQL: SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.DEST = 'PHX' AND T2.ARR_TIME < ( SELECT AVG(ARR_TIME) * 0.4 FROM Airlines ) GROUP BY T1.Description
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】
    Among the flights of the air carrier described as American Airlines, what is the percentage of the flights with earlier departure? American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;

    【Evidence】
    American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;

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

SQL: SELECT CAST(SUM(CASE WHEN T2.DEP_DELAY < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%American Airlines%'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection_2
【Schema】
# Table: violation
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(point_id:INTEGER, Primary Key, Examples: [30, 32, 33]),
(fine:INTEGER, Examples: [100, 0, 500]),
(inspector_comment:TEXT)
]
# Table: employee
[
(employee_id:INTEGER, Primary Key, Examples: [103705, 104633, 106581]),
(first_name:TEXT, Examples: [Anastasia, Joshua, Zach]),
(last_name:TEXT, Examples: [Hansen, Rosa, Barber]),
(address:TEXT, Examples: [6023 S Elizabeth St, 5000 N Wolcott Ave, 7522 N Oleander Ave]),
(city:TEXT, Examples: [Chicago, Park Forest, Hoffman Estates]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60636, 60640, 60631]),
(phone:TEXT, Examples: [(773) 424-8729, (773) 293-6409, (219) 473-0757]),
(title:TEXT, Examples: [Sanitarian, Supervisor, Division Manager]),
(salary:INTEGER, Examples: [79300, 82000, 79900]),
(supervisor:INTEGER, Examples: [177316, 186742, 179582])
]
# Table: inspection
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(inspection_date:DATE, Examples: [2010-01-05]),
(inspection_type:TEXT, Examples: [Complaint]),
(results:TEXT, Examples: [Pass, Pass w/ Conditions, Fail]),
(employee_id:INTEGER, Examples: [141319, 143902, 143487]),
(license_no:INTEGER, Examples: [1222441, 1336561, 1334073]),
(followup_to:INTEGER, Examples: [67871, 248210, 233215])
]
# Table: establishment
[
(license_no:INTEGER, Primary Key, Examples: [1, 2, 9]),
(dba_name:TEXT, Examples: [HARVEST CRUSADES MINISTRIES]),
(aka_name:TEXT, Examples: [COSI]),
(facility_type:TEXT, Examples: [Special Event, Restaurant, TAVERN]),
(risk_level:INTEGER, Examples: [2, 1, 3]),
(address:TEXT, Examples: [118 N CENTRAL AVE , 230 W MONROE ST , 116 S MICHIGAN AVE ]),
(city:TEXT, Examples: [CHICAGO, Chicago, chicago]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60644, 60606, 60603]),
(latitude:REAL, Examples: [41.8828450747188, 41.8807571586472, 41.8803958382596]),
(longitude:REAL, Examples: [-87.7650954520439, -87.6347092983425, -87.6245017215946]),
(ward:INTEGER, Examples: [29, 42, 18])
]
# Table: inspection_point
[
(point_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Description:TEXT),
(category:TEXT, Examples: [Food Protection]),
(code:TEXT, Examples: [7-38-005 (B) (B-2), 7-38-005 (A), 7-38-010 (A) (B)]),
(fine:INTEGER, Examples: [500, 250, 100]),
(point_level:TEXT, Examples: [Critical, Serious , Minor   ])
]
【Foreign keys】
violation.inspection_id=inspection.inspection_id
violation.point_id=inspection_point.point_id
employee.supervisor=employee.employee_id
inspection.employee_id=employee.employee_id
inspection.license_no=establishment.license_no
inspection.followup_to=inspection.inspection_id

    【Question】
    How many employees are under Gregory Cardenas?

    【Evidence】
    

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

SQL: SELECT COUNT(T1.employee_id) FROM employee AS T1 WHERE T1.supervisor = ( SELECT employee_id FROM employee WHERE first_name = 'Gregory' AND last_name = 'Cardenas' )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection_2
【Schema】
# Table: violation
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(point_id:INTEGER, Primary Key, Examples: [30, 32, 33]),
(fine:INTEGER, Examples: [100, 0, 500]),
(inspector_comment:TEXT)
]
# Table: employee
[
(employee_id:INTEGER, Primary Key, Examples: [103705, 104633, 106581]),
(first_name:TEXT, Examples: [Anastasia, Joshua, Zach]),
(last_name:TEXT, Examples: [Hansen, Rosa, Barber]),
(address:TEXT, Examples: [6023 S Elizabeth St, 5000 N Wolcott Ave, 7522 N Oleander Ave]),
(city:TEXT, Examples: [Chicago, Park Forest, Hoffman Estates]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60636, 60640, 60631]),
(phone:TEXT, Examples: [(773) 424-8729, (773) 293-6409, (219) 473-0757]),
(title:TEXT, Examples: [Sanitarian, Supervisor, Division Manager]),
(salary:INTEGER, Examples: [79300, 82000, 79900]),
(supervisor:INTEGER, Examples: [177316, 186742, 179582])
]
# Table: inspection
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(inspection_date:DATE, Examples: [2010-01-05]),
(inspection_type:TEXT, Examples: [Complaint]),
(results:TEXT, Examples: [Pass, Pass w/ Conditions, Fail]),
(employee_id:INTEGER, Examples: [141319, 143902, 143487]),
(license_no:INTEGER, Examples: [1222441, 1336561, 1334073]),
(followup_to:INTEGER, Examples: [67871, 248210, 233215])
]
# Table: establishment
[
(license_no:INTEGER, Primary Key, Examples: [1, 2, 9]),
(dba_name:TEXT, Examples: [HARVEST CRUSADES MINISTRIES]),
(aka_name:TEXT, Examples: [COSI]),
(facility_type:TEXT, Examples: [Special Event, Restaurant, TAVERN]),
(risk_level:INTEGER, Examples: [2, 1, 3]),
(address:TEXT, Examples: [118 N CENTRAL AVE , 230 W MONROE ST , 116 S MICHIGAN AVE ]),
(city:TEXT, Examples: [CHICAGO, Chicago, chicago]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60644, 60606, 60603]),
(latitude:REAL, Examples: [41.8828450747188, 41.8807571586472, 41.8803958382596]),
(longitude:REAL, Examples: [-87.7650954520439, -87.6347092983425, -87.6245017215946]),
(ward:INTEGER, Examples: [29, 42, 18])
]
# Table: inspection_point
[
(point_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Description:TEXT),
(category:TEXT, Examples: [Food Protection]),
(code:TEXT, Examples: [7-38-005 (B) (B-2), 7-38-005 (A), 7-38-010 (A) (B)]),
(fine:INTEGER, Examples: [500, 250, 100]),
(point_level:TEXT, Examples: [Critical, Serious , Minor   ])
]
【Foreign keys】
violation.inspection_id=inspection.inspection_id
violation.point_id=inspection_point.point_id
employee.supervisor=employee.employee_id
inspection.employee_id=employee.employee_id
inspection.license_no=establishment.license_no
inspection.followup_to=inspection.inspection_id

    【Question】
    What is the title of the employee involved in inspection ID 60332?

    【Evidence】
    

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

SQL: SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 60332
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection_2
【Schema】
# Table: violation
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(point_id:INTEGER, Primary Key, Examples: [30, 32, 33]),
(fine:INTEGER, Examples: [100, 0, 500]),
(inspector_comment:TEXT)
]
# Table: employee
[
(employee_id:INTEGER, Primary Key, Examples: [103705, 104633, 106581]),
(first_name:TEXT, Examples: [Anastasia, Joshua, Zach]),
(last_name:TEXT, Examples: [Hansen, Rosa, Barber]),
(address:TEXT, Examples: [6023 S Elizabeth St, 5000 N Wolcott Ave, 7522 N Oleander Ave]),
(city:TEXT, Examples: [Chicago, Park Forest, Hoffman Estates]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60636, 60640, 60631]),
(phone:TEXT, Examples: [(773) 424-8729, (773) 293-6409, (219) 473-0757]),
(title:TEXT, Examples: [Sanitarian, Supervisor, Division Manager]),
(salary:INTEGER, Examples: [79300, 82000, 79900]),
(supervisor:INTEGER, Examples: [177316, 186742, 179582])
]
# Table: inspection
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(inspection_date:DATE, Examples: [2010-01-05]),
(inspection_type:TEXT, Examples: [Complaint]),
(results:TEXT, Examples: [Pass, Pass w/ Conditions, Fail]),
(employee_id:INTEGER, Examples: [141319, 143902, 143487]),
(license_no:INTEGER, Examples: [1222441, 1336561, 1334073]),
(followup_to:INTEGER, Examples: [67871, 248210, 233215])
]
# Table: establishment
[
(license_no:INTEGER, Primary Key, Examples: [1, 2, 9]),
(dba_name:TEXT, Examples: [HARVEST CRUSADES MINISTRIES]),
(aka_name:TEXT, Examples: [COSI]),
(facility_type:TEXT, Examples: [Special Event, Restaurant, TAVERN]),
(risk_level:INTEGER, Examples: [2, 1, 3]),
(address:TEXT, Examples: [118 N CENTRAL AVE , 230 W MONROE ST , 116 S MICHIGAN AVE ]),
(city:TEXT, Examples: [CHICAGO, Chicago, chicago]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60644, 60606, 60603]),
(latitude:REAL, Examples: [41.8828450747188, 41.8807571586472, 41.8803958382596]),
(longitude:REAL, Examples: [-87.7650954520439, -87.6347092983425, -87.6245017215946]),
(ward:INTEGER, Examples: [29, 42, 18])
]
# Table: inspection_point
[
(point_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Description:TEXT),
(category:TEXT, Examples: [Food Protection]),
(code:TEXT, Examples: [7-38-005 (B) (B-2), 7-38-005 (A), 7-38-010 (A) (B)]),
(fine:INTEGER, Examples: [500, 250, 100]),
(point_level:TEXT, Examples: [Critical, Serious , Minor   ])
]
【Foreign keys】
violation.inspection_id=inspection.inspection_id
violation.point_id=inspection_point.point_id
employee.supervisor=employee.employee_id
inspection.employee_id=employee.employee_id
inspection.license_no=establishment.license_no
inspection.followup_to=inspection.inspection_id

    【Question】
    Provide the first name of employee who did inspection ID 48225?

    【Evidence】
    

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

SQL: SELECT T1.first_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 48225
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection_2
【Schema】
# Table: violation
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(point_id:INTEGER, Primary Key, Examples: [30, 32, 33]),
(fine:INTEGER, Examples: [100, 0, 500]),
(inspector_comment:TEXT)
]
# Table: employee
[
(employee_id:INTEGER, Primary Key, Examples: [103705, 104633, 106581]),
(first_name:TEXT, Examples: [Anastasia, Joshua, Zach]),
(last_name:TEXT, Examples: [Hansen, Rosa, Barber]),
(address:TEXT, Examples: [6023 S Elizabeth St, 5000 N Wolcott Ave, 7522 N Oleander Ave]),
(city:TEXT, Examples: [Chicago, Park Forest, Hoffman Estates]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60636, 60640, 60631]),
(phone:TEXT, Examples: [(773) 424-8729, (773) 293-6409, (219) 473-0757]),
(title:TEXT, Examples: [Sanitarian, Supervisor, Division Manager]),
(salary:INTEGER, Examples: [79300, 82000, 79900]),
(supervisor:INTEGER, Examples: [177316, 186742, 179582])
]
# Table: inspection
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(inspection_date:DATE, Examples: [2010-01-05]),
(inspection_type:TEXT, Examples: [Complaint]),
(results:TEXT, Examples: [Pass, Pass w/ Conditions, Fail]),
(employee_id:INTEGER, Examples: [141319, 143902, 143487]),
(license_no:INTEGER, Examples: [1222441, 1336561, 1334073]),
(followup_to:INTEGER, Examples: [67871, 248210, 233215])
]
# Table: establishment
[
(license_no:INTEGER, Primary Key, Examples: [1, 2, 9]),
(dba_name:TEXT, Examples: [HARVEST CRUSADES MINISTRIES]),
(aka_name:TEXT, Examples: [COSI]),
(facility_type:TEXT, Examples: [Special Event, Restaurant, TAVERN]),
(risk_level:INTEGER, Examples: [2, 1, 3]),
(address:TEXT, Examples: [118 N CENTRAL AVE , 230 W MONROE ST , 116 S MICHIGAN AVE ]),
(city:TEXT, Examples: [CHICAGO, Chicago, chicago]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60644, 60606, 60603]),
(latitude:REAL, Examples: [41.8828450747188, 41.8807571586472, 41.8803958382596]),
(longitude:REAL, Examples: [-87.7650954520439, -87.6347092983425, -87.6245017215946]),
(ward:INTEGER, Examples: [29, 42, 18])
]
# Table: inspection_point
[
(point_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Description:TEXT),
(category:TEXT, Examples: [Food Protection]),
(code:TEXT, Examples: [7-38-005 (B) (B-2), 7-38-005 (A), 7-38-010 (A) (B)]),
(fine:INTEGER, Examples: [500, 250, 100]),
(point_level:TEXT, Examples: [Critical, Serious , Minor   ])
]
【Foreign keys】
violation.inspection_id=inspection.inspection_id
violation.point_id=inspection_point.point_id
employee.supervisor=employee.employee_id
inspection.employee_id=employee.employee_id
inspection.license_no=establishment.license_no
inspection.followup_to=inspection.inspection_id

    【Question】
    Tell the address of employee who did inspection ID 52238?

    【Evidence】
    

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

SQL: SELECT T1.address FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 food_inspection_2
【Schema】
# Table: violation
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(point_id:INTEGER, Primary Key, Examples: [30, 32, 33]),
(fine:INTEGER, Examples: [100, 0, 500]),
(inspector_comment:TEXT)
]
# Table: employee
[
(employee_id:INTEGER, Primary Key, Examples: [103705, 104633, 106581]),
(first_name:TEXT, Examples: [Anastasia, Joshua, Zach]),
(last_name:TEXT, Examples: [Hansen, Rosa, Barber]),
(address:TEXT, Examples: [6023 S Elizabeth St, 5000 N Wolcott Ave, 7522 N Oleander Ave]),
(city:TEXT, Examples: [Chicago, Park Forest, Hoffman Estates]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60636, 60640, 60631]),
(phone:TEXT, Examples: [(773) 424-8729, (773) 293-6409, (219) 473-0757]),
(title:TEXT, Examples: [Sanitarian, Supervisor, Division Manager]),
(salary:INTEGER, Examples: [79300, 82000, 79900]),
(supervisor:INTEGER, Examples: [177316, 186742, 179582])
]
# Table: inspection
[
(inspection_id:INTEGER, Primary Key, Examples: [44247, 44248, 44249]),
(inspection_date:DATE, Examples: [2010-01-05]),
(inspection_type:TEXT, Examples: [Complaint]),
(results:TEXT, Examples: [Pass, Pass w/ Conditions, Fail]),
(employee_id:INTEGER, Examples: [141319, 143902, 143487]),
(license_no:INTEGER, Examples: [1222441, 1336561, 1334073]),
(followup_to:INTEGER, Examples: [67871, 248210, 233215])
]
# Table: establishment
[
(license_no:INTEGER, Primary Key, Examples: [1, 2, 9]),
(dba_name:TEXT, Examples: [HARVEST CRUSADES MINISTRIES]),
(aka_name:TEXT, Examples: [COSI]),
(facility_type:TEXT, Examples: [Special Event, Restaurant, TAVERN]),
(risk_level:INTEGER, Examples: [2, 1, 3]),
(address:TEXT, Examples: [118 N CENTRAL AVE , 230 W MONROE ST , 116 S MICHIGAN AVE ]),
(city:TEXT, Examples: [CHICAGO, Chicago, chicago]),
(state:TEXT, Examples: [IL]),
(zip:INTEGER, Examples: [60644, 60606, 60603]),
(latitude:REAL, Examples: [41.8828450747188, 41.8807571586472, 41.8803958382596]),
(longitude:REAL, Examples: [-87.7650954520439, -87.6347092983425, -87.6245017215946]),
(ward:INTEGER, Examples: [29, 42, 18])
]
# Table: inspection_point
[
(point_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(Description:TEXT),
(category:TEXT, Examples: [Food Protection]),
(code:TEXT, Examples: [7-38-005 (B) (B-2), 7-38-005 (A), 7-38-010 (A) (B)]),
(fine:INTEGER, Examples: [500, 250, 100]),
(point_level:TEXT, Examples: [Critical, Serious , Minor   ])
]
【Foreign keys】
violation.inspection_id=inspection.inspection_id
violation.point_id=inspection_point.point_id
employee.supervisor=employee.employee_id
inspection.employee_id=employee.employee_id
inspection.license_no=establishment.license_no
inspection.followup_to=inspection.inspection_id

    【Question】
    Write down the last name of employee who did inspection ID 52238?

    【Evidence】
    

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

SQL: SELECT T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238