Chinastark/bird_dataset huggingface dataset:
Database: olympics
Question: How many gold medals were given to the winners in the Ice Hockey Men's Ice Hockey event?
Evidence: gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';
SQL: SELECT COUNT(T2.competitor_id) FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id WHERE T1.event_name LIKE 'Ice Hockey Men%s Ice Hockey' AND T2.medal_id = 1
Database: olympics
Question: Which region has the highest medal number?
Evidence: region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));
SQL: SELECT T5.region_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person_region AS T4 ON T3.person_id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.id != 4 GROUP BY T5.region_name ORDER BY COUNT(T2.competitor_id) DESC LIMIT 1
Database: olympics
Question: List out all the gold medalist winners in cycling sport.
Evidence: gold medalist winners refer to full_name where medal_name = 'Gold'; cycling sport refers to sport_name = 'Cycling';
SQL: SELECT DISTINCT T5.full_name FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN sport AS T4 ON T1.sport_id = T4.id INNER JOIN person AS T5 ON T3.person_id = T5.id WHERE T4.sport_name = 'Cycling' AND T2.medal_id = 1
Database: olympics
Question: List out all the medals won by Lee Chong Wei.
Evidence: medals refer to medal_id where medal_id <> 4;
SQL: SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Lee Chong Wei' AND T2.medal_id <> 4
Database: olympics
Question: What is the percentage of female athletes below 20s who participated in the 2002 Winter Olympic?
Evidence: DIVIDE(COUNT(person_id where gender = 'F' and age < 20), COUNT(person_id)) as percentage where games_name = '2002 Winter';
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_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 WHERE T1.games_name = '2002 Winter' AND T2.age < 20
Database: olympics
Question: What is the ratio male to female athletes in the 2012 Summer Olympic?
Evidence: DIVIDE(COUNT(gender = 'M'), COUNT(gender = 'F')) where games_name = '2012 Summer';
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'M' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'F' THEN 1 ELSE NULL END) 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 = '2012 Summer'
Database: olympics
Question: Which summer Olympic have the highest and lowest number of participants?
Evidence: the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';
SQL: SELECT ( SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' GROUP BY T1.games_year ORDER BY COUNT(T2.person_id) DESC LIMIT 1 ) AS HIGHEST , ( SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' GROUP BY T1.games_year ORDER BY COUNT(T2.person_id) LIMIT 1 ) AS LOWEST
Database: olympics
Question: How many athletes from Malaysia have won a medal?
Evidence: Malaysia refers to region_name = 'Malaysia'; athletes won a medal refer to competitor_id where medal_id <> 4;
SQL: SELECT COUNT(T3.person_id) FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person_region AS T4 ON T3.person_id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T5.region_name = 'Malaysia' AND T1.id != 4
Database: olympics
Question: How many athletes playing in Canoeing fall into overweight BMI category in the 2008 Summer games?
Evidence: fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';
SQL: SELECT COUNT(T5.id) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id INNER JOIN games AS T6 ON T4.games_id = T6.id WHERE T1.sport_name = 'Canoeing' AND T6.games_name = '2008 Summer' AND T5.weight * 10000.0 / (T5.height * T5.height) BETWEEN 25.0 AND 30
Database: olympics
Question: What is the average height of male athletes playing basketball sport?
Evidence: AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';
SQL: SELECT AVG(T5.height) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T1.sport_name = 'Basketball' AND T5.gender = 'M'
Database: olympics
Question: How many female athletes are from the Philippines?
Evidence: female athletes refer to id where gender = 'F'; from the Philippines region_name = 'Philippines';
SQL: SELECT COUNT(T2.person_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 = 'Philippines' AND T3.gender = 'F'
Database: olympics
Question: Which region is Yao Ming from?
Evidence: region refers to region_name;
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 = 'Yao Ming'
Database: olympics
Question: At what age did Michael Fred Phelps, II join the Olympics?
Evidence: At what age join the Olympics refers to MIN(age);
SQL: SELECT T2.age FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Michael Fred Phelps, II' ORDER BY T2.age LIMIT 1
Database: olympics
Question: How many athletes are there in the region where Clara Hughes is from?
SQL: SELECT COUNT(person_id) FROM person_region WHERE region_id = ( SELECT T1.region_id FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T2.full_name = 'Clara Hughes' )
Database: olympics
Question: How many Men's 200 Metres Freestyle events did Ian James Thorpe compete in?
Evidence: Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;
SQL: SELECT COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN event AS T4 ON T3.event_id = T4.id WHERE T1.full_name = 'Ian James Thorpe' AND T4.event_name LIKE 'Swimming Men%s 200 metres Freestyle'
Database: olympics
Question: How many times was Larysa Semenivna Latynina (Diriy-) declared as champion in Gymnastics Women's Individual All-Around?
Evidence: Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;
SQL: SELECT COUNT(T1.id) FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Larysa Semenivna Latynina (Diriy-)' AND T1.event_name LIKE 'Gymnastics Women%s Individual All-Around' AND T2.medal_id = 1
Database: olympics
Question: What are the names of the cities where Carl Lewis Borack competed?
Evidence: name of the cities refers to city_name
SQL: SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_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 T1.full_name = 'Carl Lewis Borack'
Database: olympics
Question: How many Olympic games were held in London?
Evidence: London refers to city_name = 'London';
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'
Database: olympics
Question: Which city was the 1992 Summer Olympic held?
Evidence: city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';
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'
Database: olympics
Question: How many athletes over the age of 59 competed in the 2016 Summer Olympics?
Evidence: over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';
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
Database: olympics
Question: Among the Olympic games held in Los Angeles, what is the name of the Olympic game that has the most number of competitors?
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));
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
Database: olympics
Question: How many 10-year old athletes participated in the Gymnastics Men's Parallel Bars, Teams event?
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';
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
Database: olympics
Question: What is the average age of the athletes from the United States of America who competed in the 2016 Summer Olympics?
Evidence: AVG(age) where games_name = '2016 Summer' and region_name = 'USA';
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'
Database: olympics
Question: Which region does the NOC code "COL" stand for?
Evidence: region refers to region_name; NOC code "COL" refers to noc = 'COL';
SQL: SELECT region_name FROM noc_region WHERE noc = 'COL'
Database: olympics
Question: State the name of sport id 19.
Evidence: name of sport refers to sport_name
SQL: SELECT sport_name FROM sport WHERE id = 19
Database: olympics
Question: Give the id of the event "Shooting Mixed Skeet".
Evidence: "Shooting Mixed Skeet" refers to event_name = 'Shooting Mixed Skeet';
SQL: SELECT id FROM event WHERE event_name = 'Shooting Mixed Skeet'
Database: olympics
Question: Provide hockey's sport id.
Evidence: hockey's sport refers to sport_name = 'hockey';
SQL: SELECT id FROM sport WHERE sport_name = 'Hockey'
Database: olympics
Question: What is the id of Rio de Janeiro?
Evidence: Rio de Janeiro refers to city_name = 'Rio de Janeiro';
SQL: SELECT id FROM city WHERE city_name = 'Rio de Janeiro'
Database: olympics
Question: How many people have won the gold medal of the event "Rowing Women's Coxed Eights"?
Evidence: won the gold medal refers to medal_name = 'Gold'; event "Rowing Women's Coxed Eights" refers to event_name = 'Rowing Women''s Coxed Eights';
SQL: SELECT COUNT(T1.competitor_id) FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN medal AS T3 ON T1.medal_id = T3.id WHERE T2.event_name LIKE 'Rowing Women%s Coxed Eights' AND T3.medal_name = 'Gold'
Database: olympics
Question: How many kinds of events belong to the sport of cycling?
Evidence: kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';
SQL: SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Cycling'
Database: olympics
Question: What is Vijay Singh Chauhan's region name?
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 = 'Vijay Singh Chauhan'
Database: olympics
Question: When did Roma host the Olympic Games?
Evidence: Roma refers to city_name = 'Roma'; When host refers to games_year;
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 = 'Roma'
Database: olympics
Question: How many 20 years old athletes were there in the 1984 Summer Olympic Games?
Evidence: 20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';
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 = '1984 Summer' AND T2.age = 20
Database: olympics
Question: How many games has Prithipal Singh participated in?
Evidence: games refer to games_id;
SQL: SELECT COUNT(T2.games_id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Prithipal Singh'
Database: olympics
Question: State the number of athletes in the 1984 Summer Olympic Games who were more than 50 years old.
Evidence: the 1984 Summer Olympic Games refer to games_name = '1984 Summer'; athletes more than 50 years old refer to person_id where age > 50;
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 = '1984 Summer' AND T2.age > 50
Database: olympics
Question: How many kinds of events does athletics have?
Evidence: kinds of events refer to event_name; athletics refer to sport_name = 'Athletics';
SQL: SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Athletics'
Database: olympics
Question: Who is the heaviest athlete from Russia?
Evidence: the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';
SQL: SELECT T3.full_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 T1.region_name = 'Russia' ORDER BY T3.weight DESC LIMIT 1
Database: olympics
Question: Give the height of the tallest athlete from Portugal.
Evidence: the tallest athlete refers to id where MAX(height); from Portugal refers to region_name = 'Portugal';
SQL: SELECT 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 = 'Portugal' ORDER BY T3.height DESC LIMIT 1
Database: olympics
Question: Tell the host city of the 1968 Winter Olympic Games.
Evidence: host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';
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 = '1968 Winter'
Database: olympics
Question: Which region has the most athletes?
Evidence: region refers to region_name; the most athletes refer to MAX(COUNT(region_name));
SQL: SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1
Database: olympics
Question: What is the percentage of athletes from Vanuatu who are taller than 175?
Evidence: DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';
SQL: SELECT CAST(COUNT(CASE WHEN T3.height > 175 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_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 = 'Vanuatu'
Database: olympics
Question: Calculate the average weight of male athletes from Tonga.
Evidence: AVG(weight) where region_name = 'Tonga' and gender = 'M';
SQL: SELECT AVG(T3.weight) 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 = 'Tonga' AND T3.gender = 'M'
Database: olympics
Question: Where was the 1920 Summer held?
Evidence: where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';
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 = '1920 Summer'
Database: olympics
Question: From 1900 to 1992, how many games did London host?
Evidence: From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;
SQL: SELECT COUNT(T3.id) 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' AND T3.games_year BETWEEN 1900 AND 1992
Database: olympics
Question: How many Summer games are there that were held in Paris?
Evidence: Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';
SQL: SELECT COUNT(T3.id) 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 = 'Paris' AND T3.season = 'Summer'
Database: olympics
Question: Please list all game names that were held in Los Angeles.
Evidence: Los Angeles refers to city_name = 'Los Angeles';
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 = 'Los Angeles'
Database: olympics
Question: Which city hosted the most games?
Evidence: Which city refers to city_name; the most games refer to MAX(COUNT(city_name));
SQL: SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.city_name ORDER BY COUNT(T2.city_name) DESC LIMIT 1
Database: olympics
Question: What is the game name that was held in Beijing in 2008?
Evidence: Beijing refers to city_name = 'Beijing'; in 2008 refers to games_year = '2008';
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 = 'Beijing' AND T3.games_year = 2008
Database: olympics
Question: What is the percentage of champions at the age of over 30?
Evidence: DIVIDE(COUNT(competitor_id where age > 30), COUNT(competitor_id))as percentage where medal_id = 1;
SQL: SELECT CAST(COUNT(CASE WHEN T2.age > 30 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id WHERE T1.medal_id = 1
Database: olympics
Question: At which age did A Lamusi participate in 2012 Summer?
Evidence: 2012 Summer refers to games_name = '2012 Summer';
SQL: SELECT 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 = '2012 Summer' AND T3.full_name = 'A Lamusi'
Database: olympics
Question: How many competitors were there who participated in 2000 Summer with age 31?
Evidence: in 2000 Summer refers to games_name = '2000 Summer'; age = 31
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 = '2000 Summer' AND T2.age = 31
Database: olympics
Question: How many male competitors were there who participated in 1948 Summer?
Evidence: male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';
SQL: SELECT COUNT(T2.person_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 WHERE T1.games_name = '1948 Summer' AND T3.gender = 'M'
Database: olympics
Question: Please list all competitors' names who participated in 1936 Summer.
Evidence: competitors' names refer to full_name; in 1936 Summer refers to games_name = '1936 Summer';
SQL: SELECT T3.full_name 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 = '1936 Summer'
Database: olympics
Question: Who is the youngest competitor that participated in 2014 Winter?
Evidence: the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';
SQL: SELECT T3.full_name 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 = '2014 Winter' ORDER BY T2.age LIMIT 1
Database: olympics
Question: What is the average age of competitors who participated in 1988 Winter?
Evidence: AVG(age) where games_name = '1988 Winter';
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 = '1988 Winter'
Database: olympics
Question: What is the percentage of female competitors whose heights are over 170 that participated in the game in 1988?
Evidence: DIVIDE(COUNT(person_id where gender = 'F' and height > 170), COUNT(person_id)) as percentage where games_year = 1988;
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'F' AND T3.height > 170 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_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 WHERE T1.games_year = 1988
Database: olympics
Question: What is the sport name of "Cross Country Skiing Men's 10/15 kilometres Pursuit" event?
Evidence: "Cross Country Skiing Men's 10/15 kilometres Pursuit" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';
SQL: SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T2.event_name LIKE 'Cross Country Skiing Men%s 10/15 kilometres Pursuit'
Database: olympics
Question: What is the percentage of people whose age greater than 24 and participate in winter season?
Evidence: DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T2.age > 24 AND T1.season = 'Winter' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.games_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id
Database: olympics
Question: What is the region id of Christine Jacoba Aaftink?
SQL: SELECT T1.region_id FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T2.full_name = 'Christine Jacoba Aaftink'
Database: olympics
Question: Mention the height of people who belong to region id 7.
SQL: SELECT T2.height FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T1.region_id = 7
Database: olympics
Question: State the name of the city that held game id 3.
Evidence: name of city refers to city_name
SQL: SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T1.games_id = 3
Database: olympics
Question: What are the id of the games held in London?
Evidence: London refers to city_name = 'London';
SQL: SELECT T1.games_id FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London'