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】
    The Olympic competitor John Aalberg is from which region? from which region refers to region_name;

    【Evidence】
    from which region refers to region_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.region_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'John Aalberg'
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 NOC code of the region where the tallest male Olympic competitor is from? NOC code of the region refers to noc; male refers to gender = 'M'; the tallest refers to MAX(height);

    【Evidence】
    NOC code of the region refers to noc; male refers to gender = 'M'; the tallest refers to MAX(height);

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

SQL: SELECT T1.noc FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'M' ORDER BY T3.height 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】
    Among all the Olympic competitors from Finland, how many of them are female? competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';

    【Evidence】
    competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';

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

SQL: SELECT COUNT(T3.id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland' AND T3.gender = 'F'
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】
    In which city was the 1992 Summer Olympic Games held? In which city refers to city_name; 1992 Summer Olympic Games refer to games_name = '1992 Summer';

    【Evidence】
    In which city refers to city_name; 1992 Summer Olympic Games refer to 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 T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.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】
    Please list the names of the Olympic games that were held in London. held in London refers to city_name = 'London';

    【Evidence】
    held in London refers to city_name = 'London';

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

SQL: SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London'
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】
    In which year did London hold its earliest Olympic game? In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);

    【Evidence】
    In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);

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

SQL: SELECT T3.games_year FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' ORDER BY T3.games_year 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】
    For how many times has London held the Olympic games? London refers to city_name = 'London'; how many times refer to COUNT(games_id);

    【Evidence】
    London refers to city_name = 'London'; how many times refer to COUNT(games_id);

    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.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London'
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 height of the male Olympic competitors from Finland? DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';

    【Evidence】
    DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';

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

SQL: SELECT AVG(T3.height) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Finland' AND T3.gender = 'M'