db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
soccer_2016 | select count(player_name) from player where bowling_skill > 2 | Question: how many players have the bowling skill greater than 2? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Ex... | how many players have the bowling skill greater than 2? |
soccer_2016 | select count(player_name) from player where dob like '1970%' | Question: how many players were born in 1970? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_R... | how many players were born in 1970? |
soccer_2016 | select count(player_name) from player where dob like '198%' and bowling_skill = 2 | Question: how many players were born in the 80s and have bowling skill of 2? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, ... | how many players were born in the 80s and have bowling skill of 2? |
soccer_2016 | select count(match_id) from match where match_date like '2008-04%' | Question: how many matches are there in april, 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, ... | how many matches are there in april, 2008? |
soccer_2016 | select city_name from city where country_id = 3 | Question: what is the city name of country id 3? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extr... | what is the city name of country id 3? |
soccer_2016 | select count(match_id) from match where match_date like '2008%' and match_winner is not null | Question: how many victory matches were there in 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id... | how many victory matches were there in 2008? |
soccer_2016 | select country_id from city where city_name = 'east london' | Question: provide the country id of east london. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extr... | provide the country id of east london. |
soccer_2016 | select 2008 - strftime('%y', dob) from player where player_name = 'sc ganguly' | Question: how old is sc ganguly in 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Runs, ... | how old is sc ganguly in 2008? |
soccer_2016 | select t1.player_name from player as t1 inner join batting_style as t2 on t1.batting_hand = t2.batting_id where t2.batting_hand = 'left-hand bat' | Question: list the names of players who play by the left hand. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra... | list the names of players who play by the left hand. |
soccer_2016 | select count(t1.player_id) from player as t1 inner join country as t2 on t1.country_name = t2.country_id where t2.country_name = 'india' | Question: how many players are indians? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Runs, I... | how many players are indians? |
soccer_2016 | select t1.player_name from player as t1 inner join country as t2 on t1.country_name = t2.country_id where t2.country_name = 'england' | Question: list the name of england players. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Run... | list the name of england players. |
soccer_2016 | select t1.venue_name from venue as t1 inner join city as t2 on t1.city_id = t2.city_id where t2.city_name = 'bangalore' | Question: what is the venue name of bandladore? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra... | what is the venue name of bandladore? |
soccer_2016 | select t1.player_name from player as t1 inner join match as t2 on t1.player_id = t2.man_of_the_match inner join player_match as t3 on t3.player_id = t1.player_id inner join season as t4 on t2.season_id = t4.season_id where t4.season_year = 2008 group by t1.player_name | Question: what are the names of players who participated in season year 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id,... | what are the names of players who participated in season year 2008? |
soccer_2016 | select t1.player_name from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join batsman_scored as t3 on t2.match_id = t3.match_id where t3.runs_scored < 3 group by t1.player_name | Question: what are the names of players that have run scored less than 3? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Bal... | what are the names of players that have run scored less than 3? |
soccer_2016 | select t3.role_desc from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join rolee as t3 on t2.role_id = t3.role_id where t1.player_name = 'sc ganguly' group by t3.role_desc | Question: what is the role of sc ganguly? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Runs,... | what is the role of sc ganguly? |
soccer_2016 | select t1.player_name from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join rolee as t3 on t2.role_id = t3.role_id where t3.role_desc = 'keeper' group by t1.player_name | Question: list the names of players who played as a keeper. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Ty... | list the names of players who played as a keeper. |
soccer_2016 | select t1.player_name from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join team as t3 on t2.team_id = t3.team_id where t3.team_id = 1 group by t1.player_name | Question: what are the names of players in team 1? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Ex... | what are the names of players in team 1? |
soccer_2016 | select count(t1.player_id) from player_match as t1 inner join match as t2 on t1.match_id = t2.match_id inner join rolee as t3 on t1.role_id = t3.role_id where t3.role_desc = 'captain' and t2.match_date like '2008%' | Question: how many players played as a captain in season year 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, ... | how many players played as a captain in season year 2008? |
soccer_2016 | select t5.team_name from player as t1 inner join match as t2 on t1.player_id = t2.man_of_the_match inner join player_match as t3 on t3.player_id = t1.player_id inner join season as t4 on t2.season_id = t4.season_id inner join team as t5 on t3.team_id = t5.team_id where t4.season_year = 2008 and t1.player_name = 'sc gan... | Question: which teams did sc ganguly join in season year 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra... | which teams did sc ganguly join in season year 2008? |
soccer_2016 | select t2.win_type from match as t1 inner join win_by as t2 on t1.win_type = t2.win_id where t1.match_id = 336000 | Question: what type did match id 336000 win? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Ru... | what type did match id 336000 win? |
soccer_2016 | select t2.country_name from player as t1 inner join country as t2 on t1.country_name = t2.country_id where t1.player_name = 'sb joshi' | Question: where did sb joshi come from? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Extra_Runs, I... | where did sb joshi come from? |
soccer_2016 | select count(t1.player_id) from player as t1 inner join bowling_style as t2 on t1.bowling_skill = t2.bowling_id where t2.bowling_skill = 'left-arm fast' | Question: how many players have left arm fast in bowling skill? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extr... | how many players have left arm fast in bowling skill? |
soccer_2016 | select t2.outcome_type from match as t1 inner join outcome as t2 on t1.outcome_type = t2.outcome_id where t1.match_id = '392195' | Question: what is the outcome type of match id 392195? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id... | what is the outcome type of match id 392195? |
soccer_2016 | select t3.city_name from player as t1 inner join country as t2 on t1.country_name = t2.country_id inner join city as t3 on t2.country_id = t3.country_id order by t1.dob limit 1 | Question: who is the youngest player and which city did he/she come from? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Bal... | who is the youngest player and which city did he/she come from? |
soccer_2016 | select count(distinct t2.match_id) from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join player_match as t3 on t1.team_id = t3.team_id inner join season as t4 on t2.season_id = t4.season_id where t1.team_name = 'kings xi punjab' and t4.season_year = 2008 | Question: how many matches did team kings xi punjab win in season year 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, ... | how many matches did team kings xi punjab win in season year 2008? |
soccer_2016 | select count(t.season_year) from ( select t4.season_year from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join player_match as t3 on t1.team_id = t3.team_id inner join season as t4 on t2.season_id = t4.season_id where t1.team_name = 'pune warriors' group by t4.season_year ) t | Question: how many seasons did pune warriors participate in? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_T... | how many seasons did pune warriors participate in? |
soccer_2016 | select t1.dob, t3.role_desc from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join rolee as t3 on t2.role_id = t3.role_id where t1.player_name = 'r dravid' group by t1.dob, t3.role_desc | Question: what year was r dravid born and the role he played? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_... | what year was r dravid born and the role he played? |
soccer_2016 | select count(t2.man_of_the_match) from player as t1 inner join match as t2 on t1.player_id = t2.man_of_the_match inner join player_match as t3 on t3.player_id = t1.player_id where t1.player_name = 'sc ganguly' | Question: how many times did sc ganguly be the man of the match? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Ext... | how many times did sc ganguly be the man of the match? |
soccer_2016 | select count(t.match_id) from ( select t2.match_id from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join player_match as t3 on t1.team_id = t3.team_id where t1.team_name = 'mumbai indians' and t2.match_date like '2008%' group by t2.match_id ) t | Question: how many matches did team mumbai indians win in 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extr... | how many matches did team mumbai indians win in 2008? |
soccer_2016 | select t1.team_name from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join player_match as t3 on t1.team_id = t3.team_id inner join win_by as t4 on t2.win_type = t4.win_id where t2.match_id = '335993' group by t1.team_name | Question: which team won by wickets in match id 335993? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_I... | which team won by wickets in match id 335993? |
soccer_2016 | select count(t1.match_id) from match as t1 inner join win_by as t2 on t1.win_type = t2.win_id where t2.win_type = 'wickets' | Question: count the matches that were won by wickets in all season. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, ... | count the matches that were won by wickets in all season. |
soccer_2016 | select t4.role_desc from player as t1 inner join player_match as t2 on t1.player_id = t2.player_id inner join match as t3 on t2.match_id = t3.match_id inner join rolee as t4 on t2.role_id = t4.role_id inner join season as t5 on t3.season_id = t5.season_id where t1.player_name = 'w jaffer' and t5.season_year = 2012 | Question: what is the role of w jaffer in season year 2012? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Ty... | what is the role of w jaffer in season year 2012? |
soccer_2016 | select case when count(t2.man_of_the_match) > 5 then t1.player_name else 0 end from player as t1 inner join match as t2 on t1.player_id = t2.man_of_the_match inner join player_match as t3 on t3.player_id = t1.player_id inner join season as t4 on t2.season_id = t4.season_id where t4.season_year = 2008 | Question: what are the names of players who had been man of the match more than 5 times in season year 2008? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. E... | what are the names of players who had been man of the match more than 5 times in season year 2008? |
soccer_2016 | select cast(sum(case when t2.country_name = 'india' then 1 else 0 end) as real) / count(t1.player_id) from player as t1 inner join country as t2 on t1.country_name = t2.country_id where strftime('%y', t1.dob) between '1975' and '1985' | Question: what is the average of indian players that were born between 1975 and 1985 among all players? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_... | what is the average of indian players that were born between 1975 and 1985 among all players? |
soccer_2016 | select cast(sum(case when t2.batting_hand = 'left-hand bat' then 1 else 0 end) as real) * 100 / count(t1.player_id) from player as t1 inner join batting_style as t2 on t1.batting_hand = t2.batting_id | Question: calculate the percentage of left hand batting style players among all players. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_I... | calculate the percentage of left hand batting style players among all players. |
soccer_2016 | select cast(sum(case when t1.win_type = 1 then 1 else 0 end) as real) * 100 / count(t1.win_type) from match as t1 inner join win_by as t2 on t1.win_type = t2.win_id | Question: what is the percentage of matches that are won by runs? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Ex... | what is the percentage of matches that are won by runs? |
soccer_2016 | select count(match_id) from match where win_margin = 7 | Question: how many matches have 7 points of winning margin? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Ty... | how many matches have 7 points of winning margin? |
soccer_2016 | select count(player_id) from player where strftime('%y', dob) between '1970' and '1975' | Question: what is the total number of players born between 1970 to 1975? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball... | what is the total number of players born between 1970 to 1975? |
soccer_2016 | select t1.team_name from team as t1 inner join match as t2 on t1.team_id = t2.match_winner where t2.win_margin = 6 and t2.match_date = '2009-04-26' | Question: who is the winning team in a match held on april 26, 2009 with a winning margin of 6 points? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_R... | who is the winning team in a match held on april 26, 2009 with a winning margin of 6 points? |
soccer_2016 | select t1.team_name from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join win_by as t3 on t2.win_type = t3.win_id where t2.match_id = 419135 | Question: in the match id 419135, who won by runs? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id, Ex... | in the match id 419135, who won by runs? |
soccer_2016 | select t2.match_id from venue as t1 inner join match as t2 on t1.venue_id = t2.venue_id where t1.venue_name = 'st george''s park' order by t2.win_margin desc limit 1 | Question: among the matches held in st. george's park, give the match id of the match with the highest winning margin points. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_... | among the matches held in st. george's park, give the match id of the match with the highest winning margin points. |
soccer_2016 | select count(*) from player as t1 inner join country as t2 on t1.country_name = t2.country_id where t2.country_name = 'sri lanka' | Question: how many of the players are from sri lanka? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type_Id,... | how many of the players are from sri lanka? |
soccer_2016 | select t2.player_name from player_match as t1 inner join player as t2 on t1.player_id = t2.player_id inner join rolee as t3 on t1.role_id = t3.role_id where t3.role_desc = 'captain' group by t2.player_name | Question: list the player's name who played as a captain. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ball_Id, Extra_Type... | list the player's name who played as a captain. |
soccer_2016 | select t1.venue_name, t3.team_name from venue as t1 inner join match as t2 on t1.venue_id = t2.venue_id inner join team as t3 on t2.match_winner = t3.team_id where t2.match_id = 392194 | Question: give the match's venue and winning team for the match id 392194. | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Name. Extra_Runs -> Match_Id, Over_Id, Ba... | give the match's venue and winning team for the match id 392194. |
soccer_2016 | select cast(sum(case when t3.win_type = 'wickets' then 1 else 0 end) as real) * 100 / count(t3.win_type) from team as t1 inner join match as t2 on t1.team_id = t2.match_winner inner join win_by as t3 on t2.win_type = t3.win_id where t1.team_name = 'delhi daredevils' | Question: among the matches of delhi daredevils in 2009, what is the percentage of their matches won by wickets? | Tables: Batting_Style -> Batting_Id, Batting_hand. Bowling_Style -> Bowling_Id, Bowling_skill. City -> City_Id, City_Name, Country_id. Country -> Country_Id, Country_Name. Extra_Type -> Extra_Id, Extra_Nam... | among the matches of delhi daredevils in 2009, what is the percentage of their matches won by wickets? |
music_tracker | select groupname from torrents where artist like 'ron hunt & ronnie g & the sm crew' and groupyear = 1979 and releasetype like 'single' and totalsnatched = 239 | Question: what is the release title of the single that was released by ron hunt in 1979 that was downloaded 239 times? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what is the release title of the single that was released by ron hunt in 1979 that was downloaded 239 times? |
music_tracker | select totalsnatched from torrents where artist like 'blowfly' and groupyear = 1980 | Question: how many times was the album released by blowfly in 1980 downloaded? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many times was the album released by blowfly in 1980 downloaded? |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'album' order by t1.totalsnatched desc limit 1 | Question: what is the tag of the album with the highest amount of downloads? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what is the tag of the album with the highest amount of downloads? |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'album' order by t1.totalsnatched desc limit 5 | Question: what are the top 5 tags with the highest amount of downloads? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what are the top 5 tags with the highest amount of downloads? |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag like 'funk' and t1.releasetype = 'single' order by t1.groupyear limit 1 | Question: what is the release title of the single under the 'funk' tag that was released the oldest? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what is the release title of the single under the 'funk' tag that was released the oldest? |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag like 'alternative' and t1.releasetype = 'ep' | Question: name all the release titles of the 'ep's' under the alternative tag. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | name all the release titles of the 'ep's' under the alternative tag. |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'album' order by t1.totalsnatched limit 5 | Question: what are the tags of the top 5 least downloaded live albums? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what are the tags of the top 5 least downloaded live albums? |
music_tracker | select t2.tag, t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'single' order by t1.totalsnatched desc limit 1 | Question: what is the tag and the artist of the most downloaded single? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what is the tag and the artist of the most downloaded single? |
music_tracker | select count(id) from tags where tag like '1980s' | Question: how many releases are tagged '1980s'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many releases are tagged '1980s'? |
music_tracker | select totalsnatched from torrents where groupname like 'city funk' | Question: how many times has the release 'city funk' been downloaded? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many times has the release 'city funk' been downloaded? |
music_tracker | select groupname from torrents where totalsnatched > 20000 | Question: please list the releases that have been downloaded for more than 20000 times. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | please list the releases that have been downloaded for more than 20000 times. |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupname = 'sugarhill gang' | Question: what are the tags of the release 'sugarhill gang'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what are the tags of the release 'sugarhill gang'? |
music_tracker | select count(t2.tag) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupname = 'city funk' | Question: how many tags does the release 'city funk' have | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many tags does the release 'city funk' have |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = '1980s' | Question: please list the titles of all the releases with the tag '1980s'. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | please list the titles of all the releases with the tag '1980s'. |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = '1980s' order by t1.totalsnatched desc limit 1 | Question: among the releases with the tag '1980s', which one of them is the most downloaded? please give its title. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | among the releases with the tag '1980s', which one of them is the most downloaded? please give its title. |
music_tracker | select count(t1.groupname) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'pop' and t1.artist = 'michael jackson' | Question: how many releases by the artist michael jackson are tagged 'pop'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many releases by the artist michael jackson are tagged 'pop'? |
music_tracker | select count(t1.groupname) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'pop' and t1.releasetype = 'album' and t1.groupyear = 2000 | Question: among the releases that were released in 2000, how many of them were released as an album and tagged 'pop'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | among the releases that were released in 2000, how many of them were released as an album and tagged 'pop'? |
music_tracker | select cast(sum(t1.totalsnatched) as real) / count(t2.tag) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = '1980s' | Question: what are the average download times for the a release tagged '1980s'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | what are the average download times for the a release tagged '1980s'? |
music_tracker | select groupname from torrents order by totalsnatched desc limit 3 | Question: name the title of the top three releases with the highest number of downloads. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | name the title of the top three releases with the highest number of downloads. |
music_tracker | select artist, groupname from torrents where groupyear = 2012 and releasetype like 'single' order by totalsnatched desc limit 1 | Question: provide the name of the artist who released his or her single-table in 2012 with the highest number of downloads. name the single-table title as well. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | provide the name of the artist who released his or her single-table in 2012 with the highest number of downloads. name the single-table title as well. |
music_tracker | select count(id), ( select count(id) from torrents where groupyear between 2010 and 2015 and artist like '50 cent' and releasetype like 'album' ) from torrents where groupyear between 2010 and 2015 and artist like '50 cent' and releasetype like 'single' | Question: how many albums and single-tables were released by the artist named '50 cent' between 2010 and 2015? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many albums and single-tables were released by the artist named '50 cent' between 2010 and 2015? |
music_tracker | select ( select groupyear from torrents where artist like '2pac' and releasetype like 'album' order by groupyear limit 1, 1 ) - groupyear from torrents where artist like '2pac' and releasetype like 'album' and groupyear = 1991 | Question: an american rapper '2pac' released his first solo album in 1991, how many years have passed until his next album was released? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | an american rapper '2pac' released his first solo album in 1991, how many years have passed until his next album was released? |
music_tracker | select avg(totalsnatched) from torrents where artist like '2pac' and releasetype like 'single' and groupyear between 2001 and 2013 | Question: find the average number of downloads for single-tables released by '2pac' between 2001 and 2013. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | find the average number of downloads for single-tables released by '2pac' between 2001 and 2013. |
music_tracker | select t1.groupname, t1.groupyear, t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'live album' order by t1.totalsnatched desc limit 1 | Question: provide the title, release year and the tag associated with the live album that has the highest number of downloads? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | provide the title, release year and the tag associated with the live album that has the highest number of downloads? |
music_tracker | select artist from torrents where groupyear = 2016 and releasetype like 'bootleg' group by artist having count(releasetype) > 2 | Question: provide the name of artists who released at least two bootlegs in 2016. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | provide the name of artists who released at least two bootlegs in 2016. |
music_tracker | select artist from torrents where groupyear between 1980 and 1982 and releasetype like 'single' | Question: which artist released singles between 1980 to 1982? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | which artist released singles between 1980 to 1982? |
music_tracker | select groupname from torrents where totalsnatched >= 20 and releasetype like 'single' and id between 10 and 20 | Question: indicates groups with id from 10 to 20 with singles downloaded at least 20. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | indicates groups with id from 10 to 20 with singles downloaded at least 20. |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'disco' and t1.groupyear between 1980 and 1982 | Question: among the artists from 1980 to 1982. which artist was tagged as 'disco'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | among the artists from 1980 to 1982. which artist was tagged as 'disco'? |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'funk' and t1.groupyear = 1980 and t1.totalsnatched <= 100 | Question: provide the name of artists who had no more than 100 downloads and are tagged 'funk' in 1980. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | provide the name of artists who had no more than 100 downloads and are tagged 'funk' in 1980. |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'soul' and t1.releasetype = 'single' group by t1.artist order by count(t1.releasetype) desc limit 1 | Question: which artist has released the most singles with the tag 'soul'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | which artist has released the most singles with the tag 'soul'? |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'funk' and t1.groupyear = 1980 and t1.id between 10 and 30 | Question: among the artists with the id from 10 to 30. which artist released the product with the tag 'funk' in 1980? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | among the artists with the id from 10 to 30. which artist released the product with the tag 'funk' in 1980? |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'jazz' and t1.groupyear >= 1982 order by t1.totalsnatched desc limit 1 | Question: list the group name has the most downloaded that have released jazz genres from 1982 or later. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | list the group name has the most downloaded that have released jazz genres from 1982 or later. |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.id = 16 | Question: which artist has id '16'? provide her or his tag genre. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | which artist has id '16'? provide her or his tag genre. |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.id between 10 and 50 and t2.tag like 'new.york' order by t1.totalsnatched desc limit 1 | Question: among id from 10 to 50. which artist tagged as 'new.york' has the most downloads? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | among id from 10 to 50. which artist tagged as 'new.york' has the most downloads? |
music_tracker | select count(t1.artist) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'dance' and t1.groupyear between 1980 and 1985 and t1.releasetype like 'album' or t1.releasetype like 'mixtape' | Question: list the name of artists who have released albums and mixtape from 1980 to 1985 in 'dance' genre. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | list the name of artists who have released albums and mixtape from 1980 to 1985 in 'dance' genre. |
music_tracker | select count(t2.tag) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'soul' and t1.groupyear between 1979 and 1981 and t1.releasetype like 'single' | Question: how many singles were released between 1979 and 1981 labeled as 'soul'? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many singles were released between 1979 and 1981 labeled as 'soul'? |
music_tracker | select count(releasetype) from torrents where releasetype like 'single' and groupyear = 1979 | Question: how many singles were released in 1979? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many singles were released in 1979? |
music_tracker | select count(releasetype) from torrents where artist like 'sugar daddy' and releasetype like 'single' and groupyear = 1980 | Question: in 1980, how many singles were released by sugar daddy? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | in 1980, how many singles were released by sugar daddy? |
music_tracker | select count(t1.id) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t2.tag = 'christmas' and t1.groupyear = 2004 and t1.releasetype like 'album' | Question: how many christmas albums were released in 2004? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | how many christmas albums were released in 2004? |
music_tracker | select t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupyear between 2000 and 2010 and t1.artist like 'kurtis blow' | Question: please list all tags of kurtis blow from 2000 to 2010. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | please list all tags of kurtis blow from 2000 to 2010. |
music_tracker | select t1.groupname, t2.tag from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupyear = 1980 and t1.artist like 'millie jackson' and t1.releasetype like 'album' | Question: which album title and tag that millie jackson released in 1980? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | which album title and tag that millie jackson released in 1980? |
music_tracker | select t1.groupname from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupyear = 2005 and t2.tag like 'jazz' | Question: please list all release titles whose tag is jazz in 2005. | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | please list all release titles whose tag is jazz in 2005. |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupyear between 1980 and 2000 and t2.tag like 'disco' group by t1.artist order by count(t2.tag) desc limit 1 | Question: from 1980 to 2000, which artist had the most disco releases? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | from 1980 to 2000, which artist had the most disco releases? |
music_tracker | select t1.artist from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.releasetype = 'single' and t2.tag like '1970s' | Question: which artists have released singles with the tag 1970s? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | which artists have released singles with the tag 1970s? |
music_tracker | select cast(sum(case when t2.tag like 'united.states' then 1 else 0 end) as real) * 100 / count(t1.releasetype) from torrents as t1 inner join tags as t2 on t1.id = t2.id where t1.groupyear between 1979 and 1982 and t1.releasetype like 'album' | Question: from 1979 to 1982, what was the percentage of united.states albums out of total albums were released? | Tables: torrents -> groupName, totalSnatched, artist, groupYear, releaseType, groupId, id. tags -> index, id, tag. | Joins: | from 1979 to 1982, what was the percentage of united.states albums out of total albums were released? |
world_development_indicators | select count(countrycode) from country where lendingcategory = 'ida' and othergroups = 'hipc' | Question: among the countries in the group of heavily indebted poor countries, how many of them are under the lending category of the international development associations? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAc... | among the countries in the group of heavily indebted poor countries, how many of them are under the lending category of the international development associations? |
world_development_indicators | select shortname, externaldebtreportingstatus from country where lendingcategory = 'ida' | Question: please list the countries under the lending category of the international development associations and have a external debt reporting finished by estimation. | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccounts... | please list the countries under the lending category of the international development associations and have a external debt reporting finished by estimation. |
world_development_indicators | select t2.description from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t1.shortname = 'aruba' and t2.seriescode = 'sm.pop.totl' | Question: what's the description of the series code sm.pop.totl for aruba? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, NationalAccountsReferenceYear, SnaPriceValuation, LendingCategory, OtherGroups, Sys... | what's the description of the series code sm.pop.totl for aruba? |
world_development_indicators | select t1.shortname, t2.description from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t1.region = 'latin america & caribbean' and t2.seriescode = 'sm.pop.totl' | Question: please list the countries in latin america & caribbean with a note on the series code sm.pop.totl. | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, NationalAccountsReferenceYear, SnaPriceValuation,... | please list the countries in latin america & caribbean with a note on the series code sm.pop.totl. |
world_development_indicators | select count(t1.countrycode) from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t2.seriescode = 'sm.pop.totl' and t1.incomegroup = 'low income' | Question: among the countries with note on the series code sm.pop.totl, how many of them are in the low-income group? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, NationalAccountsReferenceYear, SnaPriceV... | among the countries with note on the series code sm.pop.totl, how many of them are in the low-income group? |
world_development_indicators | select t2.description from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t1.lendingcategory = 'ida' and t2.seriescode = 'sm.pop.totl' | Question: please list the descriptions of the series code sm.pop.totl for all the countries that are under the lending category of the international development associations. | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalA... | please list the descriptions of the series code sm.pop.totl for all the countries that are under the lending category of the international development associations. |
world_development_indicators | select count(t1.countrycode) from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t1.lendingcategory = 'ida' and t2.seriescode = 'sm.pop.totl' and incomegroup = 'low income' | Question: how many low-income countries under the lending category of the international development associations have a note on the series code sm.pop.totl? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, N... | how many low-income countries under the lending category of the international development associations have a note on the series code sm.pop.totl? |
world_development_indicators | select count(t1.countrycode) from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t1.incomegroup = 'high income: oecd' and t1.currencyunit = 'euro' and t2.seriescode = 'sp.dyn.amrt.fe' | Question: among the countries in the high income: oecd group whose currency unit is euro, how many of them have a note on the series code sp.dyn.amrt.fe? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, Nati... | among the countries in the high income: oecd group whose currency unit is euro, how many of them have a note on the series code sp.dyn.amrt.fe? |
world_development_indicators | select t1.longname from country as t1 inner join countrynotes as t2 on t1.countrycode = t2.countrycode where t2.description = 'estimates are derived from data on foreign-born population.' and t2.seriescode = 'sm.pop.totl' | Question: what is the long name of the country with the description 'estimates are derived from data on foreign-born population.' on the series code sm.pop.totl? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYe... | what is the long name of the country with the description 'estimates are derived from data on foreign-born population.' on the series code sm.pop.totl? |
world_development_indicators | select t2.description from country as t1 inner join footnotes as t2 on t1.countrycode = t2.countrycode where t1.shortname = 'aruba' and t2.seriescode = 'ag.lnd.frst.k2' and t2.year = 'yr1990' | Question: what is the description of the footnote on the series code ag.lnd.frst.k2 in 1990 for aruba? | Tables: Country -> CountryCode, ShortName, TableName, LongName, Alpha2Code, CurrencyUnit, SpecialNotes, Region, IncomeGroup, Wb2Code, NationalAccountsBaseYear, NationalAccountsReferenceYear, SnaPriceValuation, Lendi... | what is the description of the footnote on the series code ag.lnd.frst.k2 in 1990 for aruba? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.