question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Distance has a Time of 2:20.00?
CREATE TABLE table_name_73 (distance VARCHAR, time VARCHAR)
SELECT distance FROM table_name_73 WHERE time = "2:20.00"
Which song has a Picturization of Vijay?
CREATE TABLE table_name_86 (song VARCHAR, picturization VARCHAR)
SELECT song FROM table_name_86 WHERE picturization = "vijay"
Which Podium has 1 Race and a Final Place of 5th?
CREATE TABLE table_name_11 (podiums VARCHAR, races VARCHAR, final_placing VARCHAR)
SELECT podiums FROM table_name_11 WHERE races = "1" AND final_placing = "5th"
What is the number of bids with elite eight larger than 1.0
CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, elite_eight INTEGER)
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE elite_eight > 1.0
How many numbers in the season were written by Brett Conrad & Liz Sagal?
CREATE TABLE table_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR)
SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = "Brett Conrad & Liz Sagal"
What was the report in Buenos Aires?
CREATE TABLE table_name_98 (report VARCHAR, location VARCHAR)
SELECT report FROM table_name_98 WHERE location = "buenos aires"
Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
CREATE TABLE CUSTOMER (CustomerId VARCHAR, FirstName VARCHAR); CREATE TABLE INVOICE (InvoiceDate VARCHAR, CustomerId VARCHAR)
SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
What was the home team when the Tie no was 60?
CREATE TABLE table_name_31 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_31 WHERE tie_no = "60"
What Competition has a Year smaller than 1983?
CREATE TABLE table_name_52 (competition VARCHAR, year INTEGER)
SELECT competition FROM table_name_52 WHERE year < 1983
What is the die size(mm 2) for model sgx531?
CREATE TABLE table_1439045_5 (die_size__mm_2___ VARCHAR, model VARCHAR)
SELECT die_size__mm_2___[1] FROM table_1439045_5 WHERE model = "SGX531"
What is the population for the English name Spiddal?
CREATE TABLE table_101196_1 (population VARCHAR, english_name VARCHAR)
SELECT population FROM table_101196_1 WHERE english_name = "Spiddal"
Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia?
CREATE TABLE table_name_76 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT silver FROM table_name_76 WHERE bronze = "1" AND total = "4" AND nation = "slovakia"
What is the time before round 2, and the ko (knee to the body) method?
CREATE TABLE table_name_57 (time VARCHAR, round VARCHAR, method VARCHAR)
SELECT time FROM table_name_57 WHERE round < 2 AND method = "ko (knee to the body)"
Who was the home team when there was a record of 20–13–3?
CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_52 WHERE record = "20–13–3"
What percentage of Asians are there in the year 2004?
CREATE TABLE table_14754471_1 (asian___percentage_ VARCHAR, year VARCHAR)
SELECT asian___percentage_ FROM table_14754471_1 WHERE year = 2004
What was the latest week with a result of l 14-3?
CREATE TABLE table_name_83 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_83 WHERE result = "l 14-3"
Who wrote episode 23 of the season?
CREATE TABLE table_29436007_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT written_by FROM table_29436007_1 WHERE no_in_season = 23
how many district  with incumbent being david delano glover
CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342331_5 WHERE incumbent = "David Delano Glover"
What circuit did Innes Ireland win at for the I lombank trophy?
CREATE TABLE table_name_35 (circuit VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
SELECT circuit FROM table_name_35 WHERE winning_driver = "innes ireland" AND race_name = "i lombank trophy"
What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals?
CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT MAX(league_cup_apps) FROM table_name_81 WHERE league_cup_goals = 0 AND fa_cup_apps = 2 AND league_goals = 4
WHo is the Visitor on april 14?
CREATE TABLE table_name_78 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_78 WHERE date = "april 14"
What rank was caerphilly with a Swing smaller than 6.92?
CREATE TABLE table_name_25 (rank VARCHAR, swing_to_gain VARCHAR, constituency VARCHAR)
SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = "caerphilly"
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?
CREATE TABLE table_name_48 (ages VARCHAR, dance VARCHAR, pair VARCHAR)
SELECT ages FROM table_name_48 WHERE dance = "cha-cha-cha" AND pair = "mitchell & jessica"
In what series was TDS Racing the winning team on 9 October?
CREATE TABLE table_25572068_1 (series VARCHAR, winning_team VARCHAR, date VARCHAR)
SELECT series FROM table_25572068_1 WHERE winning_team = "TDS Racing" AND date = "9 October"
What is the game number played on April 3?
CREATE TABLE table_27723526_13 (game INTEGER, date VARCHAR)
SELECT MAX(game) FROM table_27723526_13 WHERE date = "April 3"
What is the last season?
CREATE TABLE table_2140071_5 (season INTEGER)
SELECT MAX(season) FROM table_2140071_5
What type has a date of 1 june?
CREATE TABLE table_name_70 (type VARCHAR, date VARCHAR)
SELECT type FROM table_name_70 WHERE date = "1 june"
What is the number of tickets sold and available for the concert at Long Beach Arena?
CREATE TABLE table_name_18 (tickets_sold___available VARCHAR, venue VARCHAR)
SELECT tickets_sold___available FROM table_name_18 WHERE venue = "long beach arena"
What is the day and date of game 2?
CREATE TABLE table_name_20 (day VARCHAR, _date VARCHAR, game VARCHAR)
SELECT day, _date FROM table_name_20 WHERE game = "2"
what date saw the chicago bears lose in green bay earlier than 1931?
CREATE TABLE table_name_12 (date VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)
SELECT date FROM table_name_12 WHERE loser = "chicago bears" AND location = "green bay" AND year < 1931
What was the pick for round 2 with the team Indianapolis Olympians?
CREATE TABLE table_name_14 (pick VARCHAR, round VARCHAR, team VARCHAR)
SELECT pick FROM table_name_14 WHERE round = "2" AND team = "indianapolis olympians"
What day did Phoenix play?
CREATE TABLE table_name_32 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_32 WHERE team = "phoenix"
How many episodes were broadcast in 2010?
CREATE TABLE table_24212608_1 (episode VARCHAR, broadcast_date VARCHAR)
SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 2010
How many trophy presentations where in the year 1987?
CREATE TABLE table_22514845_4 (trophy_presentation VARCHAR, year VARCHAR)
SELECT COUNT(trophy_presentation) FROM table_22514845_4 WHERE year = 1987
What is the total code number for places with a population greater than 87,585?
CREATE TABLE table_name_41 (code VARCHAR, population INTEGER)
SELECT COUNT(code) FROM table_name_41 WHERE population > 87 OFFSET 585
What is the smallest number for old membership total?
CREATE TABLE table_27671835_3 (old_membership_total INTEGER)
SELECT MIN(old_membership_total) FROM table_27671835_3
What is the date of the game with a result of W 13-10?
CREATE TABLE table_name_53 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_53 WHERE result = "w 13-10"
What was the team record by Week 8?
CREATE TABLE table_name_60 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_60 WHERE week = "8"
What is the earliest quarterfinal week when the genre is dancing and the act is 32?
CREATE TABLE table_27529608_21 (qtr_final__week_ INTEGER, genre VARCHAR, age_s_ VARCHAR)
SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE genre = "Dancing" AND age_s_ = "32"
What's the minimum number of execution units?
CREATE TABLE table_25839957_5 (execution_units INTEGER)
SELECT MIN(execution_units) FROM table_25839957_5
What was the score of the game that Washington played at home against Florida?
CREATE TABLE table_name_23 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_23 WHERE home = "washington" AND visitor = "florida"
Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?
CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills"
Find the name of all customers whose name contains "Alex".
CREATE TABLE customers (customer_name VARCHAR)
SELECT customer_name FROM customers WHERE customer_name LIKE "%Alex%"
Tell me the discovery/publication for red deer cave people
CREATE TABLE table_name_69 (discovery___publication_of_name VARCHAR, species VARCHAR)
SELECT discovery___publication_of_name FROM table_name_69 WHERE species = "red deer cave people"
How many people had a prosecutor background?
CREATE TABLE table_1289860_2 (result VARCHAR, background VARCHAR)
SELECT COUNT(result) FROM table_1289860_2 WHERE background = "Prosecutor"
What is the status in those places where the poverty rate is 8.6%?
CREATE TABLE table_22815568_7 (status VARCHAR, poverty_rate VARCHAR)
SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%"
Which score has a Home of grizzlies, and a Leading scorer of rudy gay (18)?
CREATE TABLE table_name_62 (score VARCHAR, home VARCHAR, leading_scorer VARCHAR)
SELECT score FROM table_name_62 WHERE home = "grizzlies" AND leading_scorer = "rudy gay (18)"
How many tries did the player have which ended with 20 Points?
CREATE TABLE table_name_13 (tries VARCHAR, points VARCHAR)
SELECT tries FROM table_name_13 WHERE points = 20
Who is the Opponent in the final on 4 April 2011?
CREATE TABLE table_name_16 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_16 WHERE date = "4 april 2011"
What is the coverage for relay tv-37?
CREATE TABLE table_12379297_1 (coverage__transmitter_site_ VARCHAR, station_type VARCHAR, ch__number VARCHAR)
SELECT coverage__transmitter_site_ FROM table_12379297_1 WHERE station_type = "Relay" AND ch__number = "TV-37"
Who was the opponent on January 7?
CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_36 WHERE date = "january 7"
What date had a margin victory of 2 strokes?
CREATE TABLE table_name_91 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_91 WHERE margin_of_victory = "2 strokes"
What is the density of an area that is 1.38km and has a population more than 12924?
CREATE TABLE table_name_95 (density__people_km_2__ VARCHAR, area__km_2__ VARCHAR, population__2012_ VARCHAR)
SELECT COUNT(density__people_km_2__) FROM table_name_95 WHERE area__km_2__ > 1.38 AND population__2012_ > 12924
Can you tell me the Score that has the Country of united states, and the To par of 8?
CREATE TABLE table_name_45 (score VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_45 WHERE country = "united states" AND to_par = 8
Which tournament has the highest number of cuts while also having 4 top 25 appearances?
CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_54 WHERE top_25 = 4
With Lindsay Lee-Waters as a partner, what was the final score?
CREATE TABLE table_name_90 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT score_in_the_final FROM table_name_90 WHERE partner = "lindsay lee-waters"
What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?
CREATE TABLE table_13943239_1 (episode VARCHAR, viewers__millions_ VARCHAR)
SELECT episode FROM table_13943239_1 WHERE viewers__millions_ = "6.06"
which party is the newark representative from
CREATE TABLE table_29486189_4 (party VARCHAR, residence VARCHAR)
SELECT party FROM table_29486189_4 WHERE residence = "Newark"
What is the Difference with a position of less than 3, and, 17 points.
CREATE TABLE table_name_57 (difference VARCHAR, position VARCHAR, points VARCHAR)
SELECT difference FROM table_name_57 WHERE position < 3 AND points = 17
Which stadium hosted the November 20 game?
CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_11 WHERE date = "november 20"
From what Country is T6 Place Player Tom Weiskopf?
CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_12 WHERE place = "t6" AND player = "tom weiskopf"
What date did they play in Cleveland Municipal Stadium?
CREATE TABLE table_14423274_3 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_14423274_3 WHERE game_site = "Cleveland Municipal Stadium"
Who was hired to fill the spot that became vacant on 3 March 2009?
CREATE TABLE table_name_11 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = "3 march 2009"
What's the college of the player with a height of 6-4 and went to lake howell high school?
CREATE TABLE table_name_68 (college VARCHAR, height VARCHAR, school VARCHAR)
SELECT college FROM table_name_68 WHERE height = "6-4" AND school = "lake howell high school"
Which date has roma as opponent and a H/A of A?
CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a"
Name the high assists for l 98–103 (ot)
CREATE TABLE table_17323529_5 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_17323529_5 WHERE score = "L 98–103 (OT)"
Show the facility codes of apartments with more than 4 bedrooms.
CREATE TABLE Apartment_Facilities (facility_code VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR, bedroom_count INTEGER)
SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4
Which airport has IATA of BKK?
CREATE TABLE table_name_59 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_59 WHERE iata = "bkk"
Which award show nominated Cole Sprouse for the Favorite TV Actor category?
CREATE TABLE table_name_49 (award VARCHAR, category VARCHAR, recipient VARCHAR)
SELECT award FROM table_name_49 WHERE category = "favorite tv actor" AND recipient = "cole sprouse"
What club has over 1 runners-up and last won the final in 2010?
CREATE TABLE table_name_28 (club VARCHAR, runners_up VARCHAR, last_final_won VARCHAR)
SELECT club FROM table_name_28 WHERE runners_up > 1 AND last_final_won = "2010"
What is the number of goals when the goal difference was less than 43, and the position less than 3?
CREATE TABLE table_name_27 (goals_for INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT SUM(goals_for) FROM table_name_27 WHERE goal_difference < 43 AND position < 3
Who directed series # 422?
CREATE TABLE table_25800134_11 (director VARCHAR, series__number VARCHAR)
SELECT director FROM table_25800134_11 WHERE series__number = 422
Show the ministers and the time they took and left office, listed by the time they left office.
CREATE TABLE party (minister VARCHAR, took_office VARCHAR, left_office VARCHAR)
SELECT minister, took_office, left_office FROM party ORDER BY left_office
Which Make has a Car # larger than 59?
CREATE TABLE table_name_48 (make VARCHAR, car__number INTEGER)
SELECT make FROM table_name_48 WHERE car__number > 59
Find the name and id of the item with the highest average rating.
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1
How many goals are associated with 75 games?
CREATE TABLE table_name_51 (goals INTEGER, games VARCHAR)
SELECT MAX(goals) FROM table_name_51 WHERE games = 75
When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?
CREATE TABLE table_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR)
SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River"
What year did the finish of 15 happen in?
CREATE TABLE table_name_16 (year VARCHAR, finish VARCHAR)
SELECT year FROM table_name_16 WHERE finish = "15"
Who are all successors when reason for change is died May 12, 1964?
CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR)
SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964"
who's the premier with in 1970
CREATE TABLE table_10566855_1 (premier VARCHAR, season VARCHAR)
SELECT premier FROM table_10566855_1 WHERE season = 1970
Who scored 69-74=143 for Colombia?
CREATE TABLE table_name_78 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_78 WHERE score = 69 - 74 = 143 AND country = "colombia"
Tell me the section for position of 8th and season of 2003
CREATE TABLE table_name_29 (section VARCHAR, position VARCHAR, season VARCHAR)
SELECT section FROM table_name_29 WHERE position = "8th" AND season = "2003"
What was the nickname of the team in the East Geelong club?
CREATE TABLE table_name_93 (nickname VARCHAR, club VARCHAR)
SELECT nickname FROM table_name_93 WHERE club = "east geelong"
What lane did the swimmer with a time of 52.84 have?
CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR)
SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84
WHAT IS THE POSITION WITH BOSTON RED SOX FOR COREY JENKINS?
CREATE TABLE table_name_44 (position VARCHAR, team VARCHAR, player VARCHAR)
SELECT position FROM table_name_44 WHERE team = "boston red sox" AND player = "corey jenkins"
Artist Justinas Lapatinskas with a draw of greater than 9 got what as the highest televote?
CREATE TABLE table_name_64 (televote INTEGER, artist VARCHAR, draw VARCHAR)
SELECT MAX(televote) FROM table_name_64 WHERE artist = "justinas lapatinskas" AND draw > 9
How many picks had a round smaller than 6 and an overall bigger than 153?
CREATE TABLE table_name_47 (pick INTEGER, round VARCHAR, overall VARCHAR)
SELECT SUM(pick) FROM table_name_47 WHERE round < 6 AND overall > 153
What ist he Home with a Score that is 42-64?
CREATE TABLE table_name_69 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_69 WHERE score = "42-64"
Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19
CREATE TABLE table_name_75 (Id VARCHAR)
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21
Which Hanyu Pinyin is labeled rural?
CREATE TABLE table_name_68 (hanyu_pinyin VARCHAR, name VARCHAR)
SELECT hanyu_pinyin FROM table_name_68 WHERE name = "rural"
Which IHSAA class A school are the Cavaliers from?
CREATE TABLE table_name_38 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_38 WHERE ihsaa_class = "a" AND mascot = "cavaliers"
What is the aspect ratio of the DVD released on 12/10/2009?
CREATE TABLE table_1180228_1 (aspect_ratio VARCHAR, released VARCHAR)
SELECT aspect_ratio FROM table_1180228_1 WHERE released = "12/10/2009"
What Loss had an Attendance of 17,675?
CREATE TABLE table_name_27 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_27 WHERE attendance = "17,675"
What is the Score of the game of the Player in Place 4?
CREATE TABLE table_name_16 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_16 WHERE place = "4"
What is the surface on 15 August 2009?
CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_45 WHERE date = "15 august 2009"
What is the least total number with a rank of 4 and a total silver number bigger than 3?
CREATE TABLE table_name_99 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_99 WHERE rank = 4 AND silver > 3
What was the score when the Tie no was 9?
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_56 WHERE tie_no = "9"
What are the colors for the division 2 team with the nickname, the seahawks?
CREATE TABLE table_name_74 (colors VARCHAR, division VARCHAR, nickname VARCHAR)
SELECT colors FROM table_name_74 WHERE division = "division 2" AND nickname = "seahawks"
What is the total money requested by entrepreneurs with height more than 1.85?
CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE entrepreneur (Money_Requested INTEGER, People_ID VARCHAR)
SELECT SUM(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
What game has 2 points?
CREATE TABLE table_name_58 (games INTEGER, points VARCHAR)
SELECT MAX(games) FROM table_name_58 WHERE points = 2