answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(second_place) FROM table_2876467_3 WHERE region_represented = "Tajikistan"
CREATE TABLE table_2876467_3 (second_place INTEGER, region_represented VARCHAR)
What is the maximum number of 2nd places for Tajikistan?
SELECT MAX(first_place) FROM table_2876467_3 WHERE third_place = 1
CREATE TABLE table_2876467_3 (first_place INTEGER, third_place VARCHAR)
What is the maximum number of 1st places for the country with exactly 1 third place?
SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = "Taiwan"
CREATE TABLE table_2876467_3 (total_top_3_placements VARCHAR, region_represented VARCHAR)
How many values of total top 3 placements does Taiwan have?
SELECT country FROM table_2879165_1 WHERE ioc_code = "MAS"
CREATE TABLE table_2879165_1 (country VARCHAR, ioc_code VARCHAR)
What is the name of the country when the ioc code is mas?
SELECT ioc_code FROM table_2879165_1 WHERE country = "Singapore"
CREATE TABLE table_2879165_1 (ioc_code VARCHAR, country VARCHAR)
What is the ioc code when the country is listed as Singapore?
SELECT COUNT(network_station) FROM table_2879165_1 WHERE country = "Brunei"
CREATE TABLE table_2879165_1 (network_station VARCHAR, country VARCHAR)
What is listed in Network station when the country is Brunei?
SELECT COUNT(television_station) FROM table_2879165_1 WHERE radio_station = "Lao National Radio"
CREATE TABLE table_2879165_1 (television_station VARCHAR, radio_station VARCHAR)
How many television station listing have a radio station as lao national radio?
SELECT COUNT(television_station) FROM table_2879165_1 WHERE ioc_code = "MAS"
CREATE TABLE table_2879165_1 (television_station VARCHAR, ioc_code VARCHAR)
How many television station listings have a ioc code as mas?
SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27
CREATE TABLE table_28768925_1 (written_by VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
Who wrote episode 27 in the series that was directed by Wendey Stanzler?
SELECT title FROM table_28768925_1 WHERE no_in_series = 43
CREATE TABLE table_28768925_1 (title VARCHAR, no_in_series VARCHAR)
What is the name of episode 43 in the series?
SELECT original_air_date FROM table_28768925_1 WHERE us_viewers__million_ = "8.84"
CREATE TABLE table_28768925_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
What date did the episode that had 8.84 million u.s. viewers originally air?
SELECT COUNT(game) FROM table_28768469_7 WHERE high_assists = "Earl Watson (11)" AND location_attendance = "KeyArena 16,841"
CREATE TABLE table_28768469_7 (game VARCHAR, high_assists VARCHAR, location_attendance VARCHAR)
How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?
SELECT record FROM table_28768469_7 WHERE high_assists = "Earl Watson (6)"
CREATE TABLE table_28768469_7 (record VARCHAR, high_assists VARCHAR)
What is the record listed when the high assists is earl watson (6)?
SELECT location_attendance FROM table_28768469_7 WHERE date = "January 9"
CREATE TABLE table_28768469_7 (location_attendance VARCHAR, date VARCHAR)
Where is the location attendance when the date is January 9?
SELECT high_points FROM table_28768469_7 WHERE high_rebounds = "Nick Collison (10)"
CREATE TABLE table_28768469_7 (high_points VARCHAR, high_rebounds VARCHAR)
What is listed in hight points when the high rebounds is listed as Nick Collison (10)?
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)
What is listed in game when the location attendance is listed as Keyarena 16,841?
SELECT original_air_date FROM table_28787871_3 WHERE production_code = 214
CREATE TABLE table_28787871_3 (original_air_date VARCHAR, production_code VARCHAR)
What was the airdate of the episode of production code 214?
SELECT COUNT(no_in_season) FROM table_28787871_3 WHERE original_air_date = "June 3, 2012"
CREATE TABLE table_28787871_3 (no_in_season VARCHAR, original_air_date VARCHAR)
How many numbers in the season have an air date of June 3, 2012?
SELECT MAX(production_code) FROM table_28787871_3 WHERE us_viewers__millions_ = "2.3"
CREATE TABLE table_28787871_3 (production_code INTEGER, us_viewers__millions_ VARCHAR)
What is the highest production code of the episodes having a US viewership of exactly 2.3?
SELECT economy FROM table_28797906_3 WHERE wickets = 29
CREATE TABLE table_28797906_3 (economy VARCHAR, wickets VARCHAR)
When the number of wickets is 29, what was the economy?
SELECT wickets FROM table_28797906_3 WHERE economy = "3.64"
CREATE TABLE table_28797906_3 (wickets VARCHAR, economy VARCHAR)
How many wickets was there when the economy was 3.64?
SELECT average FROM table_28797906_3 WHERE wickets = 27
CREATE TABLE table_28797906_3 (average VARCHAR, wickets VARCHAR)
What is the average of all the wickets that were 27?
SELECT branding FROM table_28794440_1 WHERE callsign = "DXGH"
CREATE TABLE table_28794440_1 (branding VARCHAR, callsign VARCHAR)
Which branding has the callsign of DXGH?
SELECT station_type FROM table_28794440_1 WHERE frequency = "972kHz"
CREATE TABLE table_28794440_1 (station_type VARCHAR, frequency VARCHAR)
What type of station is within the 972khz frequency?
SELECT station_type FROM table_28794440_1 WHERE location = "Cebu"
CREATE TABLE table_28794440_1 (station_type VARCHAR, location VARCHAR)
What types of stations are located in Cebu?
SELECT location FROM table_28794440_1 WHERE frequency = "1485kHz"
CREATE TABLE table_28794440_1 (location VARCHAR, frequency VARCHAR)
Where are all the 1485khz frequency located?
SELECT COUNT(location) FROM table_28794440_1 WHERE callsign = "DXGH"
CREATE TABLE table_28794440_1 (location VARCHAR, callsign VARCHAR)
How many locations have the callsign DXGH?
SELECT location FROM table_28794440_1 WHERE callsign = "DWRH"
CREATE TABLE table_28794440_1 (location VARCHAR, callsign VARCHAR)
Where are the broadcasting companys with the callsign DWRH located?
SELECT audition_city FROM table_28793672_1 WHERE venue = "UPI Convention Center"
CREATE TABLE table_28793672_1 (audition_city VARCHAR, venue VARCHAR)
Where is the audition city when the venue is upi convention center?
SELECT COUNT(golden_tickets) FROM table_28793672_1 WHERE callback_venue = "RCTI Studio, Jakarta"
CREATE TABLE table_28793672_1 (golden_tickets VARCHAR, callback_venue VARCHAR)
How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?
SELECT year FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "1.35"
CREATE TABLE table_28819393_1 (year VARCHAR, average__percentage_of_vote_per_candidate VARCHAR)
In what year was 1.35% the average vote per candidate?
SELECT MIN(average_votes_per_candidate) FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "3.29"
CREATE TABLE table_28819393_1 (average_votes_per_candidate INTEGER, average__percentage_of_vote_per_candidate VARCHAR)
When 3.29% was the average per candidate, what was the number of average votes per candidate?
SELECT _percentage_of_total_vote FROM table_28819393_1 WHERE year = "1997"
CREATE TABLE table_28819393_1 (_percentage_of_total_vote VARCHAR, year VARCHAR)
What was the percentage of total votes in 1997?
SELECT COUNT(launched) FROM table_28803803_1 WHERE original_channel = "CBS (2002)"
CREATE TABLE table_28803803_1 (launched VARCHAR, original_channel VARCHAR)
How many shows were launched on CBS (2002)?
SELECT COUNT(irst) FROM table_28803803_1 WHERE original_channel = "Canale 5 (2006)"
CREATE TABLE table_28803803_1 (irst VARCHAR, original_channel VARCHAR)
How many IRST figures for the show that premiered on Canale 5 (2006)?
SELECT date FROM table_28803803_1 WHERE name = "Falling Angel"
CREATE TABLE table_28803803_1 (date VARCHAR, name VARCHAR)
What are the dates that Falling Angel aired?
SELECT COUNT(economy) FROM table_28846752_13 WHERE bbi = "2/19"
CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR)
How many economy stats for the player with 2/19 BBI?
SELECT player FROM table_28846752_13 WHERE average = "35.42"
CREATE TABLE table_28846752_13 (player VARCHAR, average VARCHAR)
Who is the player with an average of 35.42?
SELECT economy FROM table_28846752_13 WHERE bbi = "3/33"
CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR)
What is the economy of the player with BBI of 3/33?
SELECT average FROM table_28846752_4 WHERE highest_score = "151"
CREATE TABLE table_28846752_4 (average VARCHAR, highest_score VARCHAR)
What is the average when the highest score is 151?
SELECT player FROM table_28846752_4 WHERE highest_score = "84"
CREATE TABLE table_28846752_4 (player VARCHAR, highest_score VARCHAR)
Who is the player when the highest score is 84?
SELECT MIN(runs) FROM table_28846752_4 WHERE highest_score = "228*"
CREATE TABLE table_28846752_4 (runs INTEGER, highest_score VARCHAR)
How many runs are there when the highest score is 228*?
SELECT MAX(innings) FROM table_28846752_4 WHERE highest_score = "72"
CREATE TABLE table_28846752_4 (innings INTEGER, highest_score VARCHAR)
What is the innings when the highest score is 72?
SELECT MAX(matches) FROM table_28846752_8
CREATE TABLE table_28846752_8 (matches INTEGER)
What is the highest number listed for matches?
SELECT 50 AS s FROM table_28846752_8 WHERE average = "39.60"
CREATE TABLE table_28846752_8 (average VARCHAR)
How many entries is under 50s column when the average is 39.60?
SELECT player FROM table_28846752_8 WHERE average = "69.66"
CREATE TABLE table_28846752_8 (player VARCHAR, average VARCHAR)
Who is the player when the average is 69.66?
SELECT MIN(5 AS wi) FROM table_28846752_5
CREATE TABLE table_28846752_5 (Id VARCHAR)
what is the minimumfor 5wi?
SELECT COUNT(10 AS wi) FROM table_28846752_5 WHERE bbi = "6/101"
CREATE TABLE table_28846752_5 (bbi VARCHAR)
how many 10wi and bbi is 6/101
SELECT innings FROM table_28846752_5 WHERE bbi = "4/26"
CREATE TABLE table_28846752_5 (innings VARCHAR, bbi VARCHAR)
how many innings had bbi 4/26?
SELECT COUNT(5 AS wi) FROM table_28846752_5 WHERE average = "33.13"
CREATE TABLE table_28846752_5 (average VARCHAR)
how many 5wi with an average of 33.13?
SELECT innings FROM table_28846752_5 WHERE average = "19.60"
CREATE TABLE table_28846752_5 (innings VARCHAR, average VARCHAR)
how many innings have an average of 19.60?
SELECT average FROM table_28846752_9 WHERE bbi = "3/27"
CREATE TABLE table_28846752_9 (average VARCHAR, bbi VARCHAR)
What is the average when the BBI is 3/27?
SELECT player FROM table_28846752_9 WHERE economy = "6.14"
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
Who is the player when the economy is 6.14?
SELECT player FROM table_28846752_9 WHERE economy = "5.29"
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
Who is the player when the economy is 5.29?
SELECT MIN(matches) FROM table_28846752_9 WHERE bbi = "3/27"
CREATE TABLE table_28846752_9 (matches INTEGER, bbi VARCHAR)
What the number of matches when the BBI is 3/27?
SELECT bbi FROM table_28846752_9 WHERE economy = "5.68"
CREATE TABLE table_28846752_9 (bbi VARCHAR, economy VARCHAR)
What is the BBI whent the economy is 5.68?
SELECT year FROM table_28848697_4 WHERE tied = 11
CREATE TABLE table_28848697_4 (year VARCHAR, tied VARCHAR)
What is the year listed when tied is listed as 11?
SELECT goals_against FROM table_28848697_4 WHERE goals_scored = 30
CREATE TABLE table_28848697_4 (goals_against VARCHAR, goals_scored VARCHAR)
What is the goals against listed when the goals scored is 30?
SELECT COUNT(goals_scored) FROM table_28848697_4 WHERE year = "Verano 2001"
CREATE TABLE table_28848697_4 (goals_scored VARCHAR, year VARCHAR)
How many goals scored entries are listed when the year is verano 2001?
SELECT goals_scored FROM table_28848697_4 WHERE position = 17 AND tied = 5
CREATE TABLE table_28848697_4 (goals_scored VARCHAR, position VARCHAR, tied VARCHAR)
What are goals scored when postition is 17 and tied is 5?
SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Jaime Vergara" AND team_classification = "Col es Pasion Café De Colombia 472"
CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)
Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?
SELECT general_classification FROM table_28853064_15 WHERE winner = "Sergio Luis Henao" AND points_classification = "Sergio Luis Henao"
CREATE TABLE table_28853064_15 (general_classification VARCHAR, winner VARCHAR, points_classification VARCHAR)
Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?
SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Oscar Solis" AND team_classification = "EPM-UNE"
CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)
Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?
SELECT stage FROM table_28853064_15 WHERE team_classification = "EPM-UNE" AND mountains_classification = "Oscar Solis" AND winner = "Jaime Vergara"
CREATE TABLE table_28853064_15 (stage VARCHAR, winner VARCHAR, team_classification VARCHAR, mountains_classification VARCHAR)
In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003"
CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR)
Who directed the episode that aired November 21, 2003?
SELECT COUNT(title) FROM table_28859177_2 WHERE series__number = 4
CREATE TABLE table_28859177_2 (title VARCHAR, series__number VARCHAR)
How many episode titles have series number 4?
SELECT COUNT(college_junior_club_team) FROM table_2886617_5 WHERE nhl_team = "Colorado Avalanche"
CREATE TABLE table_2886617_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
How may college/junior/club team has a the nhl team listed as Colorado Avalanche?
SELECT player FROM table_2886617_2 WHERE nhl_team = "New York Rangers"
CREATE TABLE table_2886617_2 (player VARCHAR, nhl_team VARCHAR)
What player was picked by the New York Rangers?
SELECT position FROM table_2886617_8 WHERE nhl_team = "Toronto Maple Leafs"
CREATE TABLE table_2886617_8 (position VARCHAR, nhl_team VARCHAR)
What position did the draft pick for Toronto Maple Leafs play?
SELECT player FROM table_2886617_8 WHERE nhl_team = "Edmonton Oilers"
CREATE TABLE table_2886617_8 (player VARCHAR, nhl_team VARCHAR)
Who did Edmonton Oilers get for their draft pick?
SELECT college_junior_club_team FROM table_2886617_8 WHERE player = "Milan Kostolny"
CREATE TABLE table_2886617_8 (college_junior_club_team VARCHAR, player VARCHAR)
What college team did Milan Kostolny play for?
SELECT player FROM table_2886617_8 WHERE nhl_team = "Buffalo Sabres"
CREATE TABLE table_2886617_8 (player VARCHAR, nhl_team VARCHAR)
What player was picked for Buffalo Sabres?
SELECT nhl_team FROM table_2886617_8 WHERE player = "Sergei Luchinkin"
CREATE TABLE table_2886617_8 (nhl_team VARCHAR, player VARCHAR)
What NHL team picked Sergei Luchinkin?
SELECT MIN(motogp_500cc) FROM table_2889810_1
CREATE TABLE table_2889810_1 (motogp_500cc INTEGER)
What is the minimum MotoGP/500cc ranking?
SELECT tournament_winner FROM table_28884880_4 WHERE conference = "Southwestern Athletic conference"
CREATE TABLE table_28884880_4 (tournament_winner VARCHAR, conference VARCHAR)
Who was the tournament winner in the Southwestern Athletic Conference?
SELECT crashandride_cymbalpads FROM table_2889300_6 WHERE drumset_name = "TD-9K2"
CREATE TABLE table_2889300_6 (crashandride_cymbalpads VARCHAR, drumset_name VARCHAR)
what is the crashandride cymbalpads for the drumset name td-9k2
SELECT COUNT(drumset_name) FROM table_2889300_6 WHERE drumstand__oftenoptional_ = "HD-1/3Stand" AND tom_tom_pads = "3xCloth-Head"
CREATE TABLE table_2889300_6 (drumset_name VARCHAR, drumstand__oftenoptional_ VARCHAR, tom_tom_pads VARCHAR)
how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are
SELECT years_available FROM table_2889300_6 WHERE kickdrum_pad = "Rubber"
CREATE TABLE table_2889300_6 (years_available VARCHAR, kickdrum_pad VARCHAR)
in which year was available the rubber as kickdrum pad
SELECT tom_tom_pads FROM table_2889300_6 WHERE drum_module = "TD-5"
CREATE TABLE table_2889300_6 (tom_tom_pads VARCHAR, drum_module VARCHAR)
in the drum module td-5 what are the tom-tom pads
SELECT COUNT(snare_pad) FROM table_2889300_6 WHERE drumset_name = "TD-15K"
CREATE TABLE table_2889300_6 (snare_pad VARCHAR, drumset_name VARCHAR)
for the drumset name td-15k how many snare pads are
SELECT race_winner FROM table_28925058_1 WHERE date = "June 26"
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
Who won the race on June 26?
SELECT race_winner FROM table_28925058_1 WHERE date = "August 15"
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
Who won the race on August 15?
SELECT date FROM table_28925058_1 WHERE grand_prix = "Italian grand_prix"
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR)
What is the date of the Italian Grand Prix?
SELECT COUNT(date) FROM table_28925058_1 WHERE grand_prix = "Spanish grand_prix" AND race_winner = "Daniel Ruiz"
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR, race_winner VARCHAR)
How many dates did Daniel Ruiz win the Spanish Grand Prix?
SELECT race_winner FROM table_28925058_1 WHERE date = "May 1"
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
Who won the race on May 1?
SELECT COUNT(date) FROM table_28898974_3 WHERE incumbent = "James Rutherford"
CREATE TABLE table_28898974_3 (date VARCHAR, incumbent VARCHAR)
When james rutherford is the incumbent how many dates are there?
SELECT date FROM table_28898974_3 WHERE winner = "Edward Shaw"
CREATE TABLE table_28898974_3 (date VARCHAR, winner VARCHAR)
When edward shaw is the winner what is the date?
SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula"
CREATE TABLE table_28898974_3 (reason VARCHAR, electorate VARCHAR)
When peninsula is the electorate what is the reason?
SELECT reason FROM table_28898974_3 WHERE incumbent = "James Seaton"
CREATE TABLE table_28898974_3 (reason VARCHAR, incumbent VARCHAR)
When james seaton is the incumbent what is the reason?
SELECT handicap FROM table_2896329_1 WHERE prize_money = "120s"
CREATE TABLE table_2896329_1 (handicap VARCHAR, prize_money VARCHAR)
What was the handicap when the prize money was 120s?
SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb"
CREATE TABLE table_2896329_1 (date VARCHAR, handicap VARCHAR)
On what date was the handicap 8 st 12 lb?
SELECT date FROM table_2896329_1 WHERE track = "Ballarat"
CREATE TABLE table_2896329_1 (date VARCHAR, track VARCHAR)
On what date was the track Ballarat?
SELECT MAX(Literate) AS male FROM table_28939145_2 WHERE taluka_name = "Nevasa"
CREATE TABLE table_28939145_2 (Literate INTEGER, taluka_name VARCHAR)
How many literate males are there in the taluka name nevasa?
SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65"
CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR)
how many literate males are there that has a district population of 6.65?
SELECT male FROM table_28939145_2 WHERE female = 139361
CREATE TABLE table_28939145_2 (male VARCHAR, female VARCHAR)
How many males are in the group that has an amount of 139361
SELECT runners_up FROM table_28962227_1 WHERE finale = "16 October 2012"
CREATE TABLE table_28962227_1 (runners_up VARCHAR, finale VARCHAR)
List all the runners-up on 16 October 2012?
SELECT finale FROM table_28962227_1 WHERE runners_up = "Miranda Gore Browne"
CREATE TABLE table_28962227_1 (finale VARCHAR, runners_up VARCHAR)
What is the date when Miranda Gore Browne was runner-up?
SELECT finale FROM table_28962227_1 WHERE runners_up = "Holly Bell"
CREATE TABLE table_28962227_1 (finale VARCHAR, runners_up VARCHAR)
What is the date of the finale where Holly Bell was runner-up?
SELECT premiere FROM table_28962227_1 WHERE runners_up = "Holly Bell"
CREATE TABLE table_28962227_1 (premiere VARCHAR, runners_up VARCHAR)
What is the premiere of the season where Holly Bell was the runner-up?
SELECT COUNT(runners_up) FROM table_28962227_1 WHERE winner = "Joanne Wheatley"
CREATE TABLE table_28962227_1 (runners_up VARCHAR, winner VARCHAR)
How many runners-up were there when Joanne Wheatley won?