question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the lowest height for Parent grasmoor when it has a Prom larger than 117?
CREATE TABLE table_name_94 (height__m_ INTEGER, parent VARCHAR, prom__m_ VARCHAR)
SELECT MIN(height__m_) FROM table_name_94 WHERE parent = "grasmoor" AND prom__m_ > 117
WHAT YEAR DID MIKE BRADY GET RUNNER-UP?
CREATE TABLE table_1507806_1 (year INTEGER, runner_up VARCHAR)
SELECT MIN(year) FROM table_1507806_1 WHERE runner_up = "Mike Brady"
WHat was the max public with danniella and matthew?
CREATE TABLE table_26375386_18 (public INTEGER, couple VARCHAR)
SELECT MAX(public) FROM table_26375386_18 WHERE couple = "Danniella and Matthew"
When was –16 (62-71-71-68=272) the winning score?
CREATE TABLE table_name_20 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_20 WHERE winning_score = –16(62 - 71 - 71 - 68 = 272)
How many points are there when the lost is 7?
CREATE TABLE table_14058433_3 (points_for VARCHAR, lost VARCHAR)
SELECT points_for FROM table_14058433_3 WHERE lost = "7"
Which Skip has Ends Lost larger than 44, and Blank Ends of 10?
CREATE TABLE table_name_80 (skip VARCHAR, ends_lost VARCHAR, blank_ends VARCHAR)
SELECT skip FROM table_name_80 WHERE ends_lost > 44 AND blank_ends = 10
How tall is the florida life building, completed before 1990?
CREATE TABLE table_name_44 (height_ft___m VARCHAR, year_completed VARCHAR, name VARCHAR)
SELECT height_ft___m FROM table_name_44 WHERE year_completed < 1990 AND name = "florida life building"
What is every Finnish name for the English name of Province of Viborg and Nyslott?
CREATE TABLE table_198175_2 (finnish_name VARCHAR, english_name VARCHAR)
SELECT finnish_name FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
What is the title when the series # is 7?
CREATE TABLE table_29747178_2 (title VARCHAR, series__number VARCHAR)
SELECT title FROM table_29747178_2 WHERE series__number = 7
what episode number had 11.73 million viewers?
CREATE TABLE table_24689168_5 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT episode FROM table_24689168_5 WHERE viewers__millions_ = "11.73"
What is the total of Caps when player born 13 December 1977?
CREATE TABLE table_name_57 (caps INTEGER, date_of_birth__age_ VARCHAR)
SELECT SUM(caps) FROM table_name_57 WHERE date_of_birth__age_ = "13 december 1977"
What is the sum of the drawn values for teams with 2 losses?
CREATE TABLE table_name_45 (drawn INTEGER, lost VARCHAR)
SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2
What's the lowest total when there's less than 16 bronze and more than 6 silver?
CREATE TABLE table_name_13 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6
Name the phoneme for realizaiton of [ɪj]
CREATE TABLE table_name_13 (phoneme VARCHAR, realization VARCHAR)
SELECT phoneme FROM table_name_13 WHERE realization = "[ɪj]"
What was the score when the loss was hideo nomo (3–5)?
CREATE TABLE table_name_57 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_57 WHERE loss = "hideo nomo (3–5)"
Which player debuted before 1943, played for the club in 1942, played less than 12 games, and scored less than 11 goals?
CREATE TABLE table_name_27 (player VARCHAR, years_at_club VARCHAR, goals VARCHAR, debut_year VARCHAR, games VARCHAR)
SELECT player FROM table_name_27 WHERE debut_year < 1943 AND games < 12 AND goals < 11 AND years_at_club = "1942"
What was the BID/PRONAR investment (in $) in the department that included 1326 farmers in its projects?
CREATE TABLE table_17118006_2 (bid_pronar_investment__us$_ VARCHAR, farmers VARCHAR)
SELECT bid_pronar_investment__us$_ FROM table_17118006_2 WHERE farmers = 1326
What's the number of byes for someone who had 7 wins and an against number greater than 1412?
CREATE TABLE table_name_85 (byes INTEGER, wins VARCHAR, against VARCHAR)
SELECT SUM(byes) FROM table_name_85 WHERE wins = 7 AND against > 1412
What is the race time for emma twigg?
CREATE TABLE table_name_29 (time VARCHAR, athlete VARCHAR)
SELECT time FROM table_name_29 WHERE athlete = "emma twigg"
What is the highest episode number?
CREATE TABLE table_23294081_11 (no INTEGER)
SELECT MAX(no) FROM table_23294081_11
What is the result of the game with a set 1 of 26-24?
CREATE TABLE table_name_17 (result__pts_ VARCHAR, set_1 VARCHAR)
SELECT result__pts_ FROM table_name_17 WHERE set_1 = "26-24"
In which round did Paul McDonald have an overall greater than 109?
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109
Which Definition has a Rank smaller than 12, and a Town of tadcaster?
CREATE TABLE table_name_63 (definition VARCHAR, rank VARCHAR, town VARCHAR)
SELECT definition FROM table_name_63 WHERE rank < 12 AND town = "tadcaster"
What were the bowling figures for the competition at Pietermaritzburg?
CREATE TABLE table_name_19 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR)
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = "pietermaritzburg"
What is the record on Sept 22?
CREATE TABLE table_23624542_4 (record VARCHAR, date VARCHAR)
SELECT record FROM table_23624542_4 WHERE date = "Sept 22"
What was gabriella ferrone's result on the 5th evening?
CREATE TABLE table_29857115_4 (singer VARCHAR)
SELECT 5 AS th_evening FROM table_29857115_4 WHERE singer = "Gabriella Ferrone"
What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)?
CREATE TABLE table_name_82 (xiii_season VARCHAR, viii_season VARCHAR)
SELECT xiii_season FROM table_name_82 WHERE viii_season = "4 780 743 (2 november 2008)"
What is the start number for a rank 11 race with less than 200 laps?
CREATE TABLE table_name_36 (start VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT start FROM table_name_36 WHERE laps < 200 AND rank = "11"
What is the Losses at the western conference and the 2004–05 season?
CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR)
SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05"
What was the record when they played game 58?
CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_59 WHERE game = 58
What's the overall record of the team with 4-3 road record?
CREATE TABLE table_22993636_2 (overall_record VARCHAR, road_record VARCHAR)
SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3"
What is the value for Lost when Drawn is 0, and Tries against is 41?
CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41"
What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?
CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%"
Who is the artist with catalog number ZK 34354?
CREATE TABLE table_name_38 (artist VARCHAR, catalog__number VARCHAR)
SELECT artist FROM table_name_38 WHERE catalog__number = "zk 34354"
Which Title is from 1952?
CREATE TABLE table_name_6 (title VARCHAR, year VARCHAR)
SELECT title FROM table_name_6 WHERE year = 1952
Which location has an elevation of 3798?
CREATE TABLE table_2731431_1 (location VARCHAR, elevation__m_ VARCHAR)
SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798
What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player?
CREATE TABLE table_name_37 (loaned_to VARCHAR, loan_expires VARCHAR, player VARCHAR)
SELECT loaned_to FROM table_name_37 WHERE loan_expires = "end of the season" AND player = "francis jeffers"
What is the Title when the winner was suntory sungoliath, and a Season of 2011-12 details?
CREATE TABLE table_name_37 (title VARCHAR, winner VARCHAR, season VARCHAR)
SELECT title FROM table_name_37 WHERE winner = "suntory sungoliath" AND season = "2011-12 details"
Which Surface has a Tournament of st. petersburg , russia?
CREATE TABLE table_name_53 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_53 WHERE tournament = "st. petersburg , russia"
What is Tina Sachdev's position?
CREATE TABLE table_name_60 (position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT position FROM table_name_60 WHERE co_contestant__yaar_vs_pyaar_ = "tina sachdev"
What Title is listed for the Year of 1999?
CREATE TABLE table_name_63 (title VARCHAR, year VARCHAR)
SELECT title FROM table_name_63 WHERE year = 1999
On what date does visiting team Minnesota score higher than 47 points?
CREATE TABLE table_name_34 (date VARCHAR, points VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_34 WHERE points > 47 AND visitor = "minnesota"
WHich competition was held on Alvor with a score 1-0?
CREATE TABLE table_name_77 (competition VARCHAR, score VARCHAR, location VARCHAR)
SELECT competition FROM table_name_77 WHERE score = "1-0" AND location = "alvor"
what is the Moldovans number when there are 14,200 Ukrainians?
CREATE TABLE table_name_81 (moldovans VARCHAR, ukrainians VARCHAR)
SELECT moldovans FROM table_name_81 WHERE ukrainians = "14,200"
Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?
CREATE TABLE table_name_65 (year INTEGER, income VARCHAR, expenditure VARCHAR, _percentage_gdp VARCHAR)
SELECT SUM(year) FROM table_name_65 WHERE expenditure < 41.3 AND _percentage_gdp = "x" AND income > 34.4
List all document type codes and document type names.
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)
SELECT document_type_code, document_type_name FROM Ref_document_types
Which Player has a Score of 72-69-73=214?
CREATE TABLE table_name_71 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_71 WHERE score = 72 - 69 - 73 = 214
What's the power output for channel tv-29?
CREATE TABLE table_2523809_1 (power__kw_ VARCHAR, channel VARCHAR)
SELECT power__kw_ FROM table_2523809_1 WHERE channel = "TV-29"
Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?
CREATE TABLE table_name_22 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el"
What is the Station Name of Platform 5?
CREATE TABLE table_name_32 (station_name VARCHAR, platform VARCHAR)
SELECT station_name FROM table_name_32 WHERE platform = "5"
When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have?
CREATE TABLE table_name_43 (george_hw_bush VARCHAR, pat_robertson VARCHAR, bob_dole VARCHAR)
SELECT george_hw_bush FROM table_name_43 WHERE pat_robertson = "19%" AND bob_dole = "26%"
What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
CREATE TABLE table_name_34 (airdate VARCHAR, episode_no VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT airdate FROM table_name_34 WHERE episode_no < 4 AND bbc_one_weekly_ranking = 6
Who is the artist where the vocal percussionist is Benjamin Holder?
CREATE TABLE table_28715942_6 (original_artist VARCHAR, vocal_percussionist VARCHAR)
SELECT original_artist FROM table_28715942_6 WHERE vocal_percussionist = "Benjamin Holder"
What score has 34-19-6 as the record?
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_18 WHERE record = "34-19-6"
How many f/laps when he finished 8th?
CREATE TABLE table_24491017_1 (f_laps INTEGER, position VARCHAR)
SELECT MAX(f_laps) FROM table_24491017_1 WHERE position = "8th"
Who came in 2nd place when Ding Junhui won in 2010?
CREATE TABLE table_name_53 (runner_up VARCHAR, year VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_53 WHERE year > 2010 AND winner = "ding junhui"
What was the lowest pick for the RHP position and player Mike Biko?
CREATE TABLE table_name_67 (pick INTEGER, position VARCHAR, player VARCHAR)
SELECT MIN(pick) FROM table_name_67 WHERE position = "rhp" AND player = "mike biko"
Which team is Team 1 with a Team 2 being Sporting CP?
CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp"
What is the highest attendance for the game that was before week 6 on October 22, 1967?
CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_74 WHERE date = "october 22, 1967" AND week < 6
What episode has 7.8 million viewers?
CREATE TABLE table_name_13 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT episode FROM table_name_13 WHERE viewers__in_millions_ = "7.8"
How many countries spent $83.7 billion on international tourism in 2012?
CREATE TABLE table_29789_3 (_percentage_change VARCHAR, international_tourism_expenditure_2012 VARCHAR)
SELECT COUNT(_percentage_change) FROM table_29789_3 WHERE international_tourism_expenditure_2012 = "$83.7 billion"
What college did Bob Larose attend?
CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_26996293_1 WHERE player = "Bob LaRose"
Can you tell me the Played that has the Club of club?
CREATE TABLE table_name_15 (played VARCHAR)
SELECT played FROM table_name_15 WHERE "club" = "club"
what is the capacity for the team šibenik?
CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR)
SELECT MIN(capacity) FROM table_name_35 WHERE team = "šibenik"
Which Semifinalists has a Finalist of andre agassi?
CREATE TABLE table_name_23 (semifinalists VARCHAR, finalist VARCHAR)
SELECT semifinalists FROM table_name_23 WHERE finalist = "andre agassi"
Who were the operational owners during the construction date of April 1892?
CREATE TABLE table_1057316_1 (operational_owner_s_ VARCHAR, build_date VARCHAR)
SELECT operational_owner_s_ FROM table_1057316_1 WHERE build_date = "April 1892"
Find the name of physicians who are affiliated with Surgery or Psychiatry department.
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'
What home team has Richmond listed as their Away team?
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_69 WHERE away_team = "richmond"
Which week's game was attended by 33,057 people?
CREATE TABLE table_name_48 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_48 WHERE attendance = "33,057"
What is the population for Rank 11?
CREATE TABLE table_name_95 (population VARCHAR, rank VARCHAR)
SELECT population FROM table_name_95 WHERE rank = 11
What venue was the game played in when the winner was the atlanta hawks (11)?
CREATE TABLE table_name_81 (venue VARCHAR, winner VARCHAR)
SELECT venue FROM table_name_81 WHERE winner = "atlanta hawks (11)"
Name the score for game more than 6 and before october 28
CREATE TABLE table_name_67 (score VARCHAR, game VARCHAR, october VARCHAR)
SELECT score FROM table_name_67 WHERE game > 6 AND october < 28
What was the result of the ballot that had a 52.49% yes vote percentage?
CREATE TABLE table_256286_22 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT passed FROM table_256286_22 WHERE _percentage_yes = "52.49%"
Find the names of songs whose genre is modern or language is English.
CREATE TABLE song (song_name VARCHAR, genre_is VARCHAR, languages VARCHAR)
SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english"
How man executions in effigie took place at the Lamego tribunal?
CREATE TABLE table_name_26 (executions_in_effigie VARCHAR, tribunal VARCHAR)
SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego"
What is maximum and minimum death toll caused each time?
CREATE TABLE death (killed INTEGER)
SELECT MAX(killed), MIN(killed) FROM death
what is the play when the company is national theatre of greece?
CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR)
SELECT play FROM table_name_11 WHERE company = "national theatre of greece"
What is the Average Finals Goals if the Total Goals is less than 1?
CREATE TABLE table_name_40 (finals_goals INTEGER, total_goals INTEGER)
SELECT AVG(finals_goals) FROM table_name_40 WHERE total_goals < 1
What is the date of the home team from South Melbourne?
CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_41 WHERE home_team = "south melbourne"
what is the Sydney that has Adelaide, Gold Coast, Melbourne, and Auckland are all yes?
CREATE TABLE table_name_61 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR)
SELECT sydney FROM table_name_61 WHERE adelaide = "yes" AND gold_coast = "yes" AND melbourne = "yes" AND auckland = "yes"
What is the lowest capacity with an opening larger than 2015 in Trabzon?
CREATE TABLE table_name_95 (capacity INTEGER, opening VARCHAR, city VARCHAR)
SELECT MIN(capacity) FROM table_name_95 WHERE opening > 2015 AND city = "trabzon"
Name the status with builder of orenstein and koppel
CREATE TABLE table_name_54 (status VARCHAR, builder VARCHAR)
SELECT status FROM table_name_54 WHERE builder = "orenstein and koppel"
Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?
CREATE TABLE table_name_86 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_86 WHERE rider = "colin edwards" AND laps < 28
In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?
CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT date FROM table_name_33 WHERE competition = "1936 summer olympics" AND score = "6-1"
What was the away team when the home team was Carlton?
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "carlton"
What was the place when the score was 65-70-72=207?
CREATE TABLE table_name_35 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_35 WHERE score = 65 - 70 - 72 = 207
What episode number in the series aired on February 8, 2004?
CREATE TABLE table_1876825_6 (no_in_series INTEGER, original_air_date VARCHAR)
SELECT MAX(no_in_series) FROM table_1876825_6 WHERE original_air_date = "February 8, 2004"
how many city with name being providence tower
CREATE TABLE table_13463790_2 (city VARCHAR, name VARCHAR)
SELECT COUNT(city) FROM table_13463790_2 WHERE name = "Providence Tower"
What is the Worldwide Gross of the Film with a Rank of 3?
CREATE TABLE table_name_38 (worldwide_gross VARCHAR, rank VARCHAR)
SELECT worldwide_gross FROM table_name_38 WHERE rank = 3
What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347?
CREATE TABLE table_name_83 (fall_07 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR)
SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347
What college was the draft pick number larger than 18 that went to the Barangay ginebra kings?
CREATE TABLE table_name_78 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)
SELECT college FROM table_name_78 WHERE pick > 18 AND pba_team = "barangay ginebra kings"
Which Player has a Hc Cska Moscow (Russia)?
CREATE TABLE table_name_81 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_81 WHERE college_junior_club_team__league_ = "hc cska moscow (russia)"
How many champions were there in 2009?
CREATE TABLE table_1167698_1 (champion VARCHAR, season VARCHAR)
SELECT COUNT(champion) FROM table_1167698_1 WHERE season = "2009"
Name the high rebounds for charlotte
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_27700375_11 WHERE team = "Charlotte"
What material is made with a rounded, plain edge?
CREATE TABLE table_1307572_1 (composition VARCHAR, edge VARCHAR)
SELECT composition FROM table_1307572_1 WHERE edge = "Rounded, plain"
What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?
CREATE TABLE table_name_91 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT race FROM table_name_91 WHERE winning_team = "chip ganassi racing" AND pole_position = "ryan briscoe" AND most_laps_led = "scott dixon"
What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, province VARCHAR)
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE province = "Azarbaijan, West"
What's the number of the episode with production code 2395118?
CREATE TABLE table_10953197_4 (no_in_season VARCHAR, production_code VARCHAR)
SELECT no_in_season FROM table_10953197_4 WHERE production_code = "2395118"
What was the represented team on June 27?
CREATE TABLE table_1769428_2 (team VARCHAR, date VARCHAR)
SELECT team FROM table_1769428_2 WHERE date = "June 27"
On what date were the Melbourne Tigers the home team?
CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_83 WHERE home_team = "melbourne tigers"