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】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    List all cases from the year 2012 in which the subject was deceased case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'

    【Evidence】
    case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'

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

SQL: SELECT case_number FROM incidents WHERE STRFTIME('%Y', date) > '2011' AND subject_statuses = 'Deceased'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    Of all male officers, what percentage are black officers? male refers to gender = 'M'; black refers to race = 'B'; percentage = divide(count(officers where race = 'B'), count(officers)) where gender = 'M' * 100%

    【Evidence】
    male refers to gender = 'M'; black refers to race = 'B'; percentage = divide(count(officers where race = 'B'), count(officers)) where gender = 'M' * 100%

    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(race = 'B') AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    How many incidents in which the subject's weapon was a vehicle were investigated by a female officer? subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'

    【Evidence】
    subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'

    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.case_number) FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_weapon = 'Vehicle' AND T2.gender = 'F'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    In how many cases where the subject was a female was the subject's status listed as Deceased?  female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'

    【Evidence】
     female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'

    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.case_number) FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F' AND T1.subject_statuses = 'Deceased'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    Of the black officers, how many of them investigated cases between the years 2010 and 2015? black refers to race = 'B'; between the years 2010 and 2015 refers to date between '2010-01-01' and '2015-12-31'; case refers to case_number

    【Evidence】
    black refers to race = 'B'; between the years 2010 and 2015 refers to date between '2010-01-01' and '2015-12-31'; case refers to case_number

    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.case_number) FROM officers AS T1 INNER JOIN incidents AS T2 ON T2.case_number = T1.case_number WHERE T1.race = 'B' AND T2.date BETWEEN '2010-01-01' AND '2015-12-31'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    How many instances were found in June 2015? in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number

    【Evidence】
    in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number

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

SQL: SELECT COUNT(case_number) FROM incidents WHERE date BETWEEN '2015-06-01' AND '2015-06-30'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    How many people were injured between 2006 and 2014 as a result of a handgun? injured refers to subject_statuses = 'injured'; between 2006 and 2014 refers to date between '2006-01-01' and '2013-12-31'; handgun refers to subject_weapon = 'handgun'; where the incidents took place refers to location

    【Evidence】
    injured refers to subject_statuses = 'injured'; between 2006 and 2014 refers to date between '2006-01-01' and '2013-12-31'; handgun refers to subject_weapon = 'handgun'; where the incidents took place refers to location

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

SQL: SELECT COUNT(location) FROM incidents WHERE subject_weapon = 'Handgun' AND subject_statuses = 'Injured' AND date BETWEEN '2006-01-01' AND '2013-12-31'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    What is the most common type of weapon that causes death? the most common type of weapon refers to max(count(subject_weapon)); causes death refers to subject_statuses = 'Deceased'

    【Evidence】
    the most common type of weapon refers to max(count(subject_weapon)); causes death refers to subject_statuses = 'Deceased'

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

SQL: SELECT subject_weapon FROM incidents WHERE subject_statuses = 'Deceased' GROUP BY subject_weapon ORDER BY COUNT(case_number) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    What is the proportion of white males and females in the police force? white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%

    【Evidence】
    white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%

    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(gender = 'M') AS REAL) / SUM(gender = 'F') FROM officers WHERE race = 'W'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    How many more black female victims than white female victims were discovered? black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'

    【Evidence】
    black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'

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

SQL: SELECT SUM(race = 'B') - SUM(race = 'W') FROM subjects WHERE gender = 'F'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shooting
【Schema】
# Table: officers
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, W, B]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Patino, Fillingim, Padilla]),
(first_name:TEXT, Examples: [Michael, Brian, Gilbert]),
(full_name:TEXT, Examples: [Patino, Michael, Fillingim, Brian, Padilla, Gilbert])
]
# Table: incidents
[
(case_number:TEXT, Primary Key, Examples: [031347-2015, 072458-2016, 089985-2016]),
(date:DATE),
(location:TEXT, Examples: [7400 Bonnie View Road]),
(subject_statuses:TEXT, Examples: [Deceased, Shoot and Miss, Injured]),
(subject_weapon:TEXT, Examples: [Vehicle, Shotgun, Handgun]),
(subjects:TEXT, Examples: [Luster, Desmond Dwayne B/M]),
(subject_count:INTEGER, Examples: [1, 2, 0]),
(officers:TEXT, Examples: [Tollerton, Aaron W/M, Cardenas, Steven L/M, Ruben, Fredirick W/M])
]
# Table: subjects
[
(case_number:TEXT, Examples: [44523A, 121982X, 605484T]),
(race:TEXT, Examples: [L, B, W]),
(gender:TEXT, Examples: [M, F]),
(last_name:TEXT, Examples: [Curry, Chavez, Salinas]),
(first_name:TEXT, Examples: [James, Gabriel, Nick]),
(full_name:TEXT, Examples: [Curry, James, Chavez, Gabriel, Salinas, Nick])
]
【Foreign keys】
officers.case_number=incidents.case_number
subjects.case_number=incidents.case_number

    【Question】
    What percentage of deaths were caused by rifles? rifle refers to subject_weapon = 'rifles'; death refers to subject_statuses = 'Deceased'; percentage = divide(count(incidents where subject_weapon = 'rifles'), count(incidents)) where subject_statuses = 'Deceased' * 100%

    【Evidence】
    rifle refers to subject_weapon = 'rifles'; death refers to subject_statuses = 'Deceased'; percentage = divide(count(incidents where subject_weapon = 'rifles'), count(incidents)) where subject_statuses = 'Deceased' * 100%

    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(subject_statuses = 'Deceased') AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE subject_weapon = 'Rifle'