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 persons in total have participated in 12 meter Mixed Sailing competitions? 12 meter Mixed Sailing competitions refer to event_name = 'Sailing Mixed 12 metres';

    【Evidence】
    12 meter Mixed Sailing competitions refer to event_name = 'Sailing Mixed 12 metres';

    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.competitor_id) FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN sport AS T3 ON T2.sport_id = T3.id WHERE T2.event_name = 'Sailing Mixed 12 metres'
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 different events are there of Modern Pentathlon? Modern Pentathlon refers to sport_name = 'Modern Pentathlon';

    【Evidence】
    Modern Pentathlon refers to sport_name = 'Modern Pentathlon';

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

SQL: SELECT COUNT(DISTINCT T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Modern Pentathlon'
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】
    Calculate the average age of the persons who participated in the 1992 Summer Games. DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';

    【Evidence】
    DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';

    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 AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1992 Summer'
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】
    List out years that only have summer games. years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';

    【Evidence】
    years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';

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

SQL: SELECT games_year FROM games WHERE season != 'Winter' GROUP BY games_year HAVING COUNT(season) = 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 Olympics games were held during the 90s? games refer to id; during the 90s refers to games_year BETWEEN 1990 AND 1999;

    【Evidence】
    games refer to id; during the 90s refers to games_year BETWEEN 1990 AND 1999;

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

SQL: SELECT COUNT(games_year) FROM games WHERE games_year BETWEEN '1990' AND '1999'
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 participated in the 2014 Winter Olympics? athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';

    【Evidence】
    athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';

    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 = '2014 Winter'
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 from region 151 have won a medal? athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;

    【Evidence】
    athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;

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

SQL: SELECT COUNT(T3.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id WHERE T3.region_id = 151 AND T1.medal_id != 4
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 athlete from China participate in the 2016 Summer Olympics? athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';

    【Evidence】
    athletes from China refer to person_id where region_name = 'China'; 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(T3.id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id INNER JOIN person_region AS T4 ON T3.id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.games_name = '2016 Summer' AND T5.region_name = 'China'