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】 citeseer
【Schema】
# Table: content
[
(paper_id:TEXT, Primary Key, Examples: [100157, 100598, 101570]),
(word_cited_id:TEXT, Primary Key, Examples: [word1163, word1509, word1614])
]
# Table: paper
[
(paper_id:TEXT, Primary Key, Examples: [100157, 100598, 101570]),
(class_label:TEXT, Examples: [Agents, IR, ML])
]
# Table: cites
[
(cited_paper_id:TEXT, Primary Key, Examples: [100157, 100598, 101570]),
(citing_paper_id:TEXT, Primary Key, Examples: [100157, 364207, 38848])
]
【Foreign keys】
content.paper_id=paper.paper_id

    【Question】
    In the papers classified as ML, how many cited butz01algorithmic? classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';

    【Evidence】
    classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';

    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.paper_id) FROM paper AS T1 INNER JOIN cites AS T2 ON T1.paper_id = T2.citing_paper_id WHERE T1.class_label = 'ML' AND T2.cited_paper_id = 'butz01algorithmic'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    Which crew member of the simpson 20s is the oldest? oldest refers to Min(birthdate)

    【Evidence】
    oldest refers to Min(birthdate)

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

SQL: SELECT name FROM Person WHERE birthdate IS NOT NULL ORDER BY birthdate ASC LIMIT 1;
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    What's the nickname for Dan Castellaneta? "Dan Castellaneta" is the name of Person

    【Evidence】
    "Dan Castellaneta" is the name of Person

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

SQL: SELECT nickname FROM Person WHERE name = 'Dan Castellaneta';
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    Write down the title and summary of the episode with the keyword 'eviction.'

    【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, T1.summary FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword = 'eviction';
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    How many episodes have more than 1000 votes? more than 1000 votes refers to votes > 1000

    【Evidence】
    more than 1000 votes refers to votes > 1000

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

SQL: SELECT COUNT(episode_id) FROM Episode WHERE votes > 1000;
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    How many persons were born in New York, USA? "New York" is the birth_place; 'USA' is the birth_region

    【Evidence】
    "New York" is the birth_place; 'USA' is the birth_region

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

SQL: SELECT COUNT(name) FROM Person WHERE birth_place = 'New York City' AND birth_country = 'USA';
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    List the name of all awards along with the award category, nominated by Marc Wilmore. "Marc Wilmore" is the name of person

    【Evidence】
    "Marc Wilmore" is the name of person

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

SQL: SELECT award_id, award_category FROM Award WHERE person = 'Marc Wilmore';
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 simpson_episodes
【Schema】
# Table: Credit
[
(episode_id:TEXT, Examples: [S20-E10, S20-E13, S20-E14]),
(category:TEXT, Examples: [Casting Department, Animation Department, Sound Department]),
(person:TEXT, Examples: [Bonita Pietila, Adam Kuhlman, Carlton Batten]),
(role:TEXT, Examples: [casting, additional timer, adr engineer]),
(credited:TEXT, Examples: [true, false])
]
# Table: Award
[
(award_id:INTEGER, Primary Key, Examples: [325, 326, 327]),
(organization:TEXT, Examples: [Primetime Emmy Awards]),
(year:INTEGER, Examples: [2009, 2010, 2017]),
(award_category:TEXT, Examples: [Primetime Emmy, Annie, Image Award]),
(award:TEXT),
(person:TEXT, Examples: [Dan Castellaneta, Hank Azaria, Harry Shearer]),
(role:TEXT, Examples: [executive producer]),
(episode_id:TEXT, Examples: [S20-E18, S20-E16, S20-E8]),
(season:TEXT),
(song:TEXT),
(result:TEXT, Examples: [Winner, Nominee])
]
# Table: Person
[
(name:TEXT, Primary Key, Examples: [Adam Greeley, Adam Klein, Adam Kuhlman]),
(birthdate:TEXT, Examples: [1963-05-04, 1975-03-30, 1969-12-04]),
(birth_name:TEXT, Examples: [Marc Edward Wilmore, Valentina Lantigua, Joseph Stewart Burns]),
(birth_place:TEXT, Examples: [USA, Brooklyn, Chicago]),
(birth_region:TEXT, Examples: [California, New York, Illinois]),
(birth_country:TEXT, Examples: [USA, Canada, Ireland]),
(height_meters:REAL, Examples: [1.85, 1.75, 2.03]),
(nickname:TEXT, Examples: [Jim, Doofus, Hoops])
]
# Table: Vote
[
(episode_id:TEXT, Examples: [S20-E1, S20-E10, S20-E11]),
(stars:INTEGER, Examples: [2, 3, 4]),
(votes:INTEGER, Examples: [16, 20, 36]),
(percent:REAL, Examples: [1.3, 1.7, 3.0])
]
# Table: Character_Award
[
(award_id:INTEGER, Examples: [325, 326, 327]),
(character:TEXT, Examples: [Homer Simpson, Moe Szyslak, Kent Brockman])
]
# Table: Episode
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(season:INTEGER, Examples: [20]),
(episode:INTEGER, Examples: [1, 2, 3]),
(number_in_series:INTEGER, Examples: [421, 422, 423]),
(title:TEXT, Examples: [Sex, Pies and Idiot Scrapes]),
(summary:TEXT),
(air_date:TEXT, Examples: [2008-09-28, 2008-10-05, 2008-10-19]),
(episode_image:TEXT),
(rating:REAL, Examples: [7.2, 7.0, 7.1]),
(votes:INTEGER, Examples: [1192, 1055, 1015])
]
# Table: Keyword
[
(episode_id:TEXT, Primary Key, Examples: [S20-E1, S20-E10, S20-E11]),
(keyword:TEXT, Primary Key, Examples: [1930s to 2020s, erotic bakery, cake])
]
【Foreign keys】
Credit.episode_id=Episode.episode_id
Credit.person=Person.name
Award.person=Person.name
Award.episode_id=Episode.episode_id
Vote.episode_id=Episode.episode_id
Character_Award.award_id=Award.award_id
Keyword.episode_id=Episode.episode_id

    【Question】
    Find the average height for each person. average high = Divide(Sum(height_meters), Count(name))

    【Evidence】
    average high = Divide(Sum(height_meters), Count(name))

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

SQL: SELECT AVG(height_meters) FROM Person;