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】
    Which position has the highest amount of poor performing employees? poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)

    【Evidence】
    poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)

    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.performance = 'Poor' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) 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】
    Which position has the highest number of female employees with a 2 year degree? 2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)

    【Evidence】
    2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)

    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 T2.educationrequired = '2 year degree' AND T1.gender = 'F' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) 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】
    How many Account Representatives are there in Illinois with satisfying performance? Account Representatives is a position title; satisfying performance mostly refers togood performance

    【Evidence】
    Account Representatives is a position title; satisfying performance mostly refers togood performance

    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 T1.performance = 'Good' AND T2.state = 'IL'
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 worst performing managers? the worst performing refers to performance = 'Poor'; manager is a positiontitle; average salary refers to AVG(salary)

    【Evidence】
    the worst performing refers to performance = 'Poor'; manager is a positiontitle; average salary refers to AVG(salary)

    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)) FROM employee AS T1 INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Manager'
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 can you find the highest amount of good performing Account Representatives? good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);

    【Evidence】
    good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);

    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 INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' GROUP BY T2.state ORDER BY COUNT(T2.state) 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】
    Mention the employee's full name and performance status who got the lowest in salary per year. full name = firstname, lastname; the lowest salary refers to MIN(salary)

    【Evidence】
    full name = firstname, lastname; the lowest salary refers to MIN(salary)

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

SQL: SELECT firstname, lastname, performance FROM employee ORDER BY salary ASC 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】
    List the location cities in the Western states. Western states refers to state = 'CO' OR state = 'UT' OR state = 'CA'; location cities refers to locationcity

    【Evidence】
    Western states refers to state = 'CO' OR state = 'UT' OR state = 'CA'; location cities 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 locationcity FROM location WHERE state IN ('CO', 'UT', 'CA')
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】
    Which city and address has zip code of above 90000? zip code of above 90000 refers to zipcode > 90000; city refers to locationcity

    【Evidence】
    zip code of above 90000 refers to zipcode > 90000; 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 locationcity, address FROM location WHERE zipcode > 90000
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】
    Which positions are suitable with 4 years degree education? 4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle

    【Evidence】
    4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle

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

SQL: SELECT positiontitle FROM position WHERE educationrequired = '4 year degree'
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 maximum salary of position "Trainer"? maximum salary refers to maxsalary; Trainee is a positiontitle

    【Evidence】
    maximum salary refers to maxsalary; Trainee is a positiontitle

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

SQL: SELECT maxsalary FROM position WHERE 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】
    List the full name and social security number of the account representative with average performance. full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'

    【Evidence】
    full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'

    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 position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Average'