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】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    How many athletes over the age of 59 competed in the 2016 Summer Olympics? over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';

    【Evidence】
    over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';

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

SQL: SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2016 Summer' AND T2.age > 59
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    Among the Olympic games held in Los Angeles, what is the name of the Olympic game that has the most number of competitors? Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));

    【Evidence】
    Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));

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

SQL: SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T4.city_name = 'Los Angeles' GROUP BY T1.id ORDER BY COUNT(T2.person_id) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    How many 10-year old athletes participated in the Gymnastics Men's Parallel Bars, Teams event? 10-year old athletes refer to competitor_id where age = 10; Gymnastics Men's Parallel Bars, Teams refer to event_name = 'Gymnastics Men''s Parallel Bars, Teams';

    【Evidence】
    10-year old athletes refer to competitor_id where age = 10; Gymnastics Men's Parallel Bars, Teams refer to event_name = 'Gymnastics Men''s Parallel Bars, Teams';

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

SQL: SELECT COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN event AS T3 ON T1.event_id = T3.id WHERE T3.event_name LIKE 'Gymnastics Men%s Parallel Bars, Teams' AND T2.age = 10
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    What is the average age of the athletes from the United States of America who competed in the 2016 Summer Olympics? AVG(age) where games_name = '2016 Summer' and region_name = 'USA';

    【Evidence】
    AVG(age) where games_name = '2016 Summer' and region_name = 'USA';

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

SQL: SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id INNER JOIN noc_region AS T4 ON T3.region_id = T4.id WHERE T1.games_name = '2016 Summer' AND T4.region_name = 'USA'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    Which region does the NOC code "COL" stand for? region refers to region_name; NOC code "COL" refers to noc = 'COL';

    【Evidence】
    region refers to region_name; NOC code "COL" refers to noc = 'COL';

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

SQL: SELECT region_name FROM noc_region WHERE noc = 'COL'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    State the name of sport id 19. name of sport refers to sport_name

    【Evidence】
    name of sport refers to sport_name

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

SQL: SELECT sport_name FROM sport WHERE id = 19
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    Give the id of the event "Shooting Mixed Skeet". "Shooting Mixed Skeet" refers to event_name = 'Shooting Mixed Skeet';

    【Evidence】
    "Shooting Mixed Skeet" refers to event_name = 'Shooting Mixed Skeet';

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

SQL: SELECT id FROM event WHERE event_name = 'Shooting Mixed Skeet'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 olympics
【Schema】
# Table: person_region
[
(person_id:INTEGER, Examples: [1, 2, 3]),
(region_id:INTEGER, Examples: [42, 56, 146])
]
# Table: competitor_event
[
(event_id:INTEGER, Examples: [1, 2, 3]),
(competitor_id:INTEGER, Examples: [1, 2, 3]),
(medal_id:INTEGER, Examples: [4, 1, 3])
]
# Table: games_city
[
(games_id:INTEGER, Examples: [1, 2, 3]),
(city_id:INTEGER, Examples: [1, 2, 3])
]
# Table: noc_region
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(noc:TEXT, Examples: [AFG, AHO, ALB]),
(region_name:TEXT, Examples: [Afghanistan, Netherlands Antilles, Albania])
]
# Table: person
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(full_name:TEXT, Examples: [A Dijiang, A Lamusi, Gunnar Nielsen Aaby]),
(gender:TEXT, Examples: [M, F]),
(height:INTEGER, Examples: [180, 170, 0]),
(weight:INTEGER, Examples: [80, 60, 0])
]
# Table: event
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_id:INTEGER, Examples: [9, 33, 25]),
(event_name:TEXT, Examples: [Basketball Men's Basketball])
]
# Table: games
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_year:INTEGER, Examples: [1992, 2012, 1920]),
(games_name:TEXT, Examples: [1992 Summer, 2012 Summer, 1920 Summer]),
(season:TEXT, Examples: [Summer, Winter])
]
# Table: medal
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(medal_name:TEXT, Examples: [Gold, Silver, Bronze])
]
# Table: sport
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(sport_name:TEXT, Examples: [Aeronautics, Alpine Skiing, Alpinism])
]
# Table: games_competitor
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(games_id:INTEGER, Examples: [1, 2, 3]),
(person_id:INTEGER, Examples: [1, 2, 3]),
(age:INTEGER, Examples: [24, 23, 34])
]
# Table: city
[
(id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(city_name:TEXT, Examples: [Barcelona, London, Antwerpen])
]
【Foreign keys】
person_region.person_id=person.id
person_region.region_id=noc_region.id
competitor_event.competitor_id=games_competitor.id
competitor_event.event_id=event.id
competitor_event.medal_id=medal.id
games_city.city_id=city.id
games_city.games_id=games.id
event.sport_id=sport.id
games_competitor.games_id=games.id
games_competitor.person_id=person.id

    【Question】
    Provide hockey's sport id. hockey's sport refers to sport_name = 'hockey';

    【Evidence】
    hockey's sport refers to sport_name = 'hockey';

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

SQL: SELECT id FROM sport WHERE sport_name = 'Hockey'