question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Tournament has a Partner of martín rodríguez?
CREATE TABLE table_name_19 (tournament VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_19 WHERE partner = "martín rodríguez"
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?
CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR)
SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3
What country did Gil play against on 21–23 september 2007?
CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR)
SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007"
What is the first elected for Jo Bonner?
CREATE TABLE table_name_12 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_12 WHERE incumbent = "jo bonner"
When Brett Lancaster won the general classification, who won the team calssification?
CREATE TABLE table_25055040_22 (team_classification VARCHAR, general_classification VARCHAR)
SELECT team_classification FROM table_25055040_22 WHERE general_classification = "Brett Lancaster"
What is the nationality of player Jani Hakanpaa?
CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_65 WHERE player = "jani hakanpaa"
Which standing broad jump (cm) had the b grade?
CREATE TABLE table_name_67 (standing_broad_jump__cm_ VARCHAR, grade VARCHAR)
SELECT standing_broad_jump__cm_ FROM table_name_67 WHERE grade = "b"
What is the average attendance of game 1?
CREATE TABLE table_name_72 (attendance INTEGER, game INTEGER)
SELECT AVG(attendance) FROM table_name_72 WHERE game < 1
Which finish has a 99.550 Qual?
CREATE TABLE table_name_13 (finish VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_13 WHERE qual = "99.550"
Tell me the location for win with record of 8-5
CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR)
SELECT location FROM table_name_52 WHERE res = "win" AND record = "8-5"
Who had the high assists while Erick Dampier (8) had the high rebounds?
CREATE TABLE table_17288869_7 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT high_assists FROM table_17288869_7 WHERE high_rebounds = "Erick Dampier (8)"
What is Summoned, when Elected is "March 1298"?
CREATE TABLE table_name_23 (summoned VARCHAR, elected VARCHAR)
SELECT summoned FROM table_name_23 WHERE elected = "march 1298"
From what year is the engine with engine code M57D30?
CREATE TABLE table_name_21 (year VARCHAR, engine_code VARCHAR)
SELECT year FROM table_name_21 WHERE engine_code = "m57d30"
What was the maximum perigee on 1969-01-09?
CREATE TABLE table_12141496_1 (perigee__km_ INTEGER, decay_date VARCHAR)
SELECT MAX(perigee__km_) FROM table_12141496_1 WHERE decay_date = "1969-01-09"
What was the CB CW for the year of 1982?
CREATE TABLE table_name_89 (cb_cw VARCHAR, year VARCHAR)
SELECT cb_cw FROM table_name_89 WHERE year = 1982
Who is the pick from the Purdue College?
CREATE TABLE table_name_90 (pick VARCHAR, college VARCHAR)
SELECT pick FROM table_name_90 WHERE college = "purdue"
What is the mean number of laps when the grid was 8?
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8
How many students whose are playing the role of goalie?
CREATE TABLE tryout (pPos VARCHAR)
SELECT COUNT(*) FROM tryout WHERE pPos = 'goalie'
Which Position has a D.O.B. of 3 june 1989?
CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR)
SELECT position FROM table_name_78 WHERE dob = "3 june 1989"
What is the average round of the match with kevin manderson as the opponent?
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson"
What was France's highest score when the venue was Bokskogens?
CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR)
SELECT MAX(score) FROM table_name_1 WHERE country = "france" AND venue = "bokskogens"
What is the stadium of the NK Zagreb?
CREATE TABLE table_name_70 (stadium VARCHAR, team VARCHAR)
SELECT stadium FROM table_name_70 WHERE team = "nk zagreb"
Which position has a time of 1:45:53:00?
CREATE TABLE table_name_41 (position VARCHAR, time VARCHAR)
SELECT position FROM table_name_41 WHERE time = "1:45:53:00"
How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91?
CREATE TABLE table_18143210_2 (number_of_seasons_in_top_division INTEGER, first_season_in_top_division VARCHAR)
SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91"
What is Australia's highest total?
CREATE TABLE table_name_86 (total INTEGER, country VARCHAR)
SELECT MAX(total) FROM table_name_86 WHERE country = "australia"
How many numbers were listed under Silver Medals for Portsmouth HS?
CREATE TABLE table_1305623_20 (silver_medals VARCHAR, ensemble VARCHAR)
SELECT COUNT(silver_medals) FROM table_1305623_20 WHERE ensemble = "Portsmouth HS"
What place is Ben Hogan?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_49 WHERE player = "ben hogan"
Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?
CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)
SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16"
Name the Adelaide for Sydney of yes and Perth of yes
CREATE TABLE table_name_6 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes"
Where was the Fairfield Barnett classic tournament held?
CREATE TABLE table_11622771_1 (location VARCHAR, tournament VARCHAR)
SELECT location FROM table_11622771_1 WHERE tournament = "Fairfield Barnett Classic"
What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?
CREATE TABLE table_name_64 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR, type VARCHAR)
SELECT AVG(gold) FROM table_name_64 WHERE bronze = 1 AND type = "winter" AND silver < 3 AND total < 4
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical?
CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR)
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth"
What was the rangers' record on Game 14?
CREATE TABLE table_name_44 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_44 WHERE game = 14
When the Mandarins won more than 1 bronze medals, how many gold medals did they win?
CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = "mandarins" AND bronze_medals > 1
What is the highest episode# with the writer Paul West?
CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR)
SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = "Paul West"
Tell me the average Laps for grid of 6
CREATE TABLE table_name_51 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_51 WHERE grid = 6
What was the record on April 10?
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_75 WHERE date = "april 10"
What is every value for Under-11 when value of under-17 is Salma Nassar?
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_17 VARCHAR)
SELECT under_11 FROM table_26368963_2 WHERE under_17 = "Salma Nassar"
Which broadcast date has 6.8 million viewers?
CREATE TABLE table_2114238_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT broadcast_date FROM table_2114238_1 WHERE viewers__in_millions_ = "6.8"
What is the money with a Score of 76-70-75-72=293?
CREATE TABLE table_name_68 (money___£__ VARCHAR, score VARCHAR)
SELECT money___£__ FROM table_name_68 WHERE score = 76 - 70 - 75 - 72 = 293
Who is the person that has no friend?
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR)
SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
What percentages of social democratic correspond to a 5.5% left bloc?
CREATE TABLE table_1463383_1 (social_democratic VARCHAR, left_bloc VARCHAR)
SELECT social_democratic FROM table_1463383_1 WHERE left_bloc = "5.5%"
What's the first elected year of the district that Ed Towns is an incumbent of?
CREATE TABLE table_1341453_34 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341453_34 WHERE incumbent = "Ed Towns"
Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?
CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR)
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)"
When was the Partido radical party in Madrid registered?
CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR)
SELECT date_of_registration FROM table_name_38 WHERE province = "madrid" AND party = "partido radical"
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity?
CREATE TABLE table_name_49 (opened VARCHAR, stadium VARCHAR, capacity VARCHAR)
SELECT COUNT(opened) FROM table_name_49 WHERE stadium = "stade de la mosson" AND capacity > 32 OFFSET 939
What position is Sweden in round 2?
CREATE TABLE table_name_55 (position VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT position FROM table_name_55 WHERE nationality = "sweden" AND round = "2"
What is the media market ranking for the Blackhawks?
CREATE TABLE table_1205598_1 (media_market_ranking VARCHAR, nhl_team_s_ VARCHAR)
SELECT COUNT(media_market_ranking) FROM table_1205598_1 WHERE nhl_team_s_ = "Blackhawks"
What is the smallest grid for driver of juan pablo montoya?
CREATE TABLE table_name_92 (grid INTEGER, driver VARCHAR)
SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya"
What is the height of the building with 40 floors?
CREATE TABLE table_name_77 (height_ft___m VARCHAR, floors VARCHAR)
SELECT height_ft___m FROM table_name_77 WHERE floors = 40
Name the high points for may 29
CREATE TABLE table_17622423_12 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17622423_12 WHERE date = "May 29"
Find the id and city of the student address with the highest average monthly rental.
CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
Which Game has an Opponent of phoenix suns?
CREATE TABLE table_name_22 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_22 WHERE opponent = "phoenix suns"
What is the Interregnum ended for the person with a Duration of 3 months, 6 days?
CREATE TABLE table_name_78 (interregnum_ended VARCHAR, duration VARCHAR)
SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days"
How many distinct teams are involved in match seasons?
CREATE TABLE match_season (Team VARCHAR)
SELECT COUNT(DISTINCT Team) FROM match_season
What is the birthday of caps of 32?
CREATE TABLE table_name_85 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT date_of_birth__age_ FROM table_name_85 WHERE caps = 32
When did NASA launch the wide field infrared explorer (wire)?
CREATE TABLE table_name_11 (launch_date VARCHAR, space_agency VARCHAR, name VARCHAR)
SELECT launch_date FROM table_name_11 WHERE space_agency = "nasa" AND name = "wide field infrared explorer (wire)"
Which home had a record of 2-4?
CREATE TABLE table_name_73 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_73 WHERE record = "2-4"
What is the altitude for the distance medellin downtown (km) is 42?
CREATE TABLE table_name_10 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR)
SELECT altitude_m FROM table_name_10 WHERE distance_medellín_downtown___km__ = "42"
Which Class has a City of license of garden city, kansas?
CREATE TABLE table_name_50 (class VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_50 WHERE city_of_license = "garden city, kansas"
How many times what the comptroller alan hevesi and the party working families?
CREATE TABLE table_name_78 (year VARCHAR, comptroller VARCHAR, party VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE comptroller = "alan hevesi" AND party = "working families"
Who is the Second with Nikolina Petric as Third?
CREATE TABLE table_name_41 (second VARCHAR, third VARCHAR)
SELECT second FROM table_name_41 WHERE third = "nikolina petric"
who is the winner when the team is mobil 1 racing?
CREATE TABLE table_name_31 (winner VARCHAR, team VARCHAR)
SELECT winner FROM table_name_31 WHERE team = "mobil 1 racing"
What was the score for the game that attendance was 70,721?
CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_24 WHERE attendance = "70,721"
Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?
CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR)
SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–5"
What is the highest round with a guard position and an overall greater than 71?
CREATE TABLE table_name_21 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT MAX(round) FROM table_name_21 WHERE position = "guard" AND overall > 71
Nation of total has what sum of gold?
CREATE TABLE table_name_36 (gold INTEGER, nation VARCHAR)
SELECT SUM(gold) FROM table_name_36 WHERE nation = "total"
For what platform does Mindark publish?
CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR)
SELECT platform FROM table_name_37 WHERE publisher = "mindark"
What years have goals less than 229, and 440 as matches?
CREATE TABLE table_name_70 (years VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440
Who was the director for the episode in season #50?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT directed_by FROM table_16471432_4 WHERE series__number = 50
What is the least ERP W when the freguency MHz is 89.3 fm?
CREATE TABLE table_name_27 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT MIN(erp_w) FROM table_name_27 WHERE frequency_mhz = "89.3 fm"
What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?
CREATE TABLE table_name_33 (comp INTEGER, comp_percentage VARCHAR, att VARCHAR)
SELECT SUM(comp) FROM table_name_33 WHERE comp_percentage = 65.4 AND att < 451
How many women from Uruguay has become third runner-up in this pageant?
CREATE TABLE table_29942205_1 (country_territory VARCHAR)
SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = "Uruguay"
Which Score has a Home team of yeovil town won 5–3 on penalties?
CREATE TABLE table_name_82 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_82 WHERE home_team = "yeovil town won 5–3 on penalties"
What is the official language spoken in the country whose head of state is Beatrix?
CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = "Beatrix" AND T2.IsOfficial = "T"
What shows as the Time/Retired for Grid 8?
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_2 WHERE grid = "8"
How many are named River Esk
CREATE TABLE table_142159_1 (built VARCHAR, name VARCHAR)
SELECT COUNT(built) FROM table_142159_1 WHERE name = "River Esk"
What is Time, when Geust is AC Bellinzona (CHL)?
CREATE TABLE table_name_77 (time VARCHAR, geust VARCHAR)
SELECT time FROM table_name_77 WHERE geust = "ac bellinzona (chl)"
For the Tie number of 14 who was the away team?
CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_46 WHERE tie_no = "14"
What is the Time/Retired for a Grid larger than 6, and 57 laps?
CREATE TABLE table_name_51 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_51 WHERE grid > 6 AND laps = 57
How many Byes have an Against of 972, and more than 11 wins?
CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)
SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11
Name the number of processors for october 2006 - january 2010
CREATE TABLE table_27765443_2 (no_of_processors VARCHAR, period_of_operation VARCHAR)
SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010"
What is the 2013 of the grand slam tournaments?
CREATE TABLE table_name_71 (tournament VARCHAR)
SELECT 2013 FROM table_name_71 WHERE tournament = "grand slam tournaments"
What was segment D for episode 183?
CREATE TABLE table_15187735_15 (segment_d VARCHAR, episode VARCHAR)
SELECT segment_d FROM table_15187735_15 WHERE episode = 183
What is the last year incumbent frederick h. dominick was first elected?
CREATE TABLE table_1342451_38 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1342451_38 WHERE incumbent = "Frederick H. Dominick"
Name the total number of season for production code 3m17
CREATE TABLE table_23286722_1 (season__number VARCHAR, production_code VARCHAR)
SELECT COUNT(season__number) FROM table_23286722_1 WHERE production_code = "3M17"
Name of David Kimball, and an Overall smaller than 229 is what highest round?
CREATE TABLE table_name_51 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229
what is the highest attendance for week 3?
CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_34 WHERE week = 3
What is the height associated with Paraguay?
CREATE TABLE table_25461827_2 (height__ft_ VARCHAR, country VARCHAR)
SELECT height__ft_ FROM table_25461827_2 WHERE country = "Paraguay"
What is the highest Rank for Jason Kreis, with less than 305 matches?
CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR, matches VARCHAR)
SELECT MAX(rank) FROM table_name_67 WHERE name = "jason kreis" AND matches < 305
What is the biggest roll number of Sylvia Park School, which has a state authority?
CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR)
SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school"
Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s
CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s"
What is the nationality of a player from linköpings hc (se)?
CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR)
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)"
What is the most sets won with less than 1 legs won?
CREATE TABLE table_name_25 (sets_won INTEGER, legs_won INTEGER)
SELECT MAX(sets_won) FROM table_name_25 WHERE legs_won < 1
What is the score of the friendly match competition on 24 July 2008?
CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_3 WHERE competition = "friendly match" AND date = "24 july 2008"
what is the number of sites when the number of screens is 687 and rank is more than 7?
CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR)
SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7
Name the original air date for 3.04 production code
CREATE TABLE table_2226817_4 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_2226817_4 WHERE production_code = "3.04"
What's the average wins of those games with 3 podiums?
CREATE TABLE table_name_42 (wins INTEGER, podiums VARCHAR)
SELECT AVG(wins) FROM table_name_42 WHERE podiums = 3
What model type has 97100 model designation?
CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR)
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97100"
How many number in series's are written by Greg Haddrick?
CREATE TABLE table_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = "Greg Haddrick"