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】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    What is the average salary of the employees who work as a Trainee? average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title

    【Evidence】
    average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title

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

SQL: SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) AS avg FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    By what percentage is the average salary of Trainees higher than the minimum salary of this postion? AVG(salary); Trainee is a position title; minimum salary refers to minsalary; calculation = DIVIDE(SUBTRACT(AVG(salary), minsalary), minsalary) * 100

    【Evidence】
    AVG(salary); Trainee is a position title; minimum salary refers to minsalary; calculation = DIVIDE(SUBTRACT(AVG(salary), minsalary), minsalary) * 100

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

SQL: SELECT 100 * (AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS per FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    Give the number of female employees. number of female employees means COUNT(gender = 'F')

    【Evidence】
    number of female employees means COUNT(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(*) FROM employee WHERE gender = 'F'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    State the name of the city where Jose Rodriguez works. Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity

    【Evidence】
    Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity

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

SQL: SELECT T2.locationcity FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T1.firstname = 'Jose' AND T1.lastname = 'Rodriguez'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    In which state does Emily Wood work? Emily Wood is the full name of an employee; full name = firstname, lastname;

    【Evidence】
    Emily Wood is the full name of an employee; full name = firstname, lastname;

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

SQL: SELECT T2.state FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T1.firstname = 'Emily' AND T1.lastname = 'Wood'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    What is the education required for David Whitehead to reach his current position? David Whitehead is the full name of an employee; full name = firstname, lastname

    【Evidence】
    David Whitehead is the full name of an employee; full name = firstname, lastname

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

SQL: SELECT T2.educationrequired FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'David' AND T1.lastname = 'Whitehead' AND T1.gender = 'M'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    How many employees are there in the "Miami" office? Miami office refers to locationcity = 'Miami'

    【Evidence】
    Miami office refers to locationcity = 'Miami'

    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 employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T2.locationcity = 'Miami'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    Who is the highest paid employee in "Boston"? Give the full name. Boston refers to locationcity = 'Boston'; the highest paid employee refers to MAX(salary); full name = firstname, lastname

    【Evidence】
    Boston refers to locationcity = 'Boston'; the highest paid employee refers to MAX(salary); full name = firstname, lastname

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

SQL: SELECT T1.firstname, T1.lastname FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T2.locationcity = 'Boston' ORDER BY T1.salary DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    Who is the employee in “New York City” with a good performance? Give the social security number of the employee. New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn

    【Evidence】
    New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn

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

SQL: SELECT T1.firstname, T1.lastname, T1.ssn FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T2.locationcity = 'New York City' AND T1.performance = 'Good'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    How many "account representatives" are there in Chicago with a good performance? account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'

    【Evidence】
    account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'

    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 employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T2.locationcity = 'Chicago' AND T1.performance = 'Good'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 human_resources
【Schema】
# Table: position
[
(positionID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(positiontitle:TEXT, Examples: [Account Representative]),
(educationrequired:TEXT, Examples: [4 year degree, 2 year degree, 6 year degree]),
(minsalary:TEXT, Examples: [US$25,000.00, US$50,000.00, US$18,000.00]),
(maxsalary:TEXT, Examples: [US$75,000.00, US$150,000.00, US$25,000.00])
]
# Table: location
[
(locationID:INTEGER, Primary Key, Examples: [1, 2, 3]),
(locationcity:TEXT, Examples: [Atlanta, Boston, Chicago]),
(address:TEXT, Examples: [450 Peachtree Rd, 3 Commons Blvd, 500 Loop Highway]),
(state:TEXT, Examples: [GA, MA, IL]),
(zipcode:INTEGER, Examples: [30316, 2190, 60620]),
(officephone:TEXT, Examples: [(404)333-5555, (617)123-4444, (312)444-6666])
]
# Table: employee
[
(ssn:TEXT, Primary Key, Examples: [000-01-0000, 000-02-2222, 109-87-6543]),
(lastname:TEXT, Examples: [Milgrom, Adams, Wood]),
(firstname:TEXT, Examples: [Patricia, Sandy, Emily]),
(hiredate:TEXT, Examples: [10/1/04, 1/15/01, 3/12/97]),
(salary:TEXT, Examples: [US$57,500.00, US$19,500.00, US$69,000.00]),
(gender:TEXT, Examples: [F, M]),
(performance:TEXT, Examples: [Average, Good, Poor]),
(positionID:INTEGER, Examples: [2, 3, 1]),
(locationID:INTEGER, Examples: [2, 1, 5])
]
【Foreign keys】
employee.locationID=location.locationID
employee.positionID=position.positionID

    【Question】
    What is Kenneth Charles's position title? Kenneth Charles is the full name of an employee; full name = firstname, lastname

    【Evidence】
    Kenneth Charles is the full name of an employee; full name = firstname, lastname

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

SQL: SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Kenneth' AND T1.lastname = 'Charles'