question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What's the lane with a time of 1:00.66?
CREATE TABLE table_name_93 (lane INTEGER, time VARCHAR)
SELECT AVG(lane) FROM table_name_93 WHERE time = "1:00.66"
WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?
CREATE TABLE table_name_9 (goals_for INTEGER, draws VARCHAR, losses VARCHAR)
SELECT AVG(goals_for) FROM table_name_9 WHERE draws < 6 AND losses < 7
Which Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920?
CREATE TABLE table_name_1 (works_number INTEGER, date VARCHAR, number VARCHAR, type VARCHAR)
SELECT AVG(works_number) FROM table_name_1 WHERE number > 807 AND type = "0-6-0" AND date = 1920
What stage was 1,648 km achieved?
CREATE TABLE table_name_59 (stages VARCHAR, distance VARCHAR)
SELECT stages FROM table_name_59 WHERE distance = "1,648 km"
Which team was in the 2012 clausura tournament?
CREATE TABLE table_30083499_1 (team VARCHAR, tournament VARCHAR)
SELECT team FROM table_30083499_1 WHERE tournament = "2012 Clausura"
What is the Johnny Palmer with a To larger than 6 Money sum?
CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"
Find the last names of faculties who are members of computer science department.
CREATE TABLE DEPARTMENT (DNO VARCHAR, DName VARCHAR); CREATE TABLE MEMBER_OF (DNO VARCHAR, FacID VARCHAR); CREATE TABLE FACULTY (Lname VARCHAR, FacID VARCHAR)
SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science"
Which AFL team has a pick 4 for the offensive tackle position?
CREATE TABLE table_name_14 (afl_team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT afl_team FROM table_name_14 WHERE position = "offensive tackle" AND pick = 4
what is the pick for adam gettis?
CREATE TABLE table_name_12 (pick INTEGER, name VARCHAR)
SELECT MIN(pick) FROM table_name_12 WHERE name = "adam gettis"
How many episodes were portrayed by Nick Jonas?
CREATE TABLE table_name_81 (_number_of_episodes VARCHAR, portrayed_by VARCHAR)
SELECT COUNT(_number_of_episodes) FROM table_name_81 WHERE portrayed_by = "nick jonas"
In 2011 with a hydroelectricity less than 119.6, what was the solar?
CREATE TABLE table_name_48 (solar VARCHAR, year VARCHAR, hydroelectricity VARCHAR)
SELECT solar FROM table_name_48 WHERE year = 2011 AND hydroelectricity < 119.6
What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?
CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1
What Round has a Time of n/a, in rio de janeiro , brazil?
CREATE TABLE table_name_5 (round VARCHAR, time VARCHAR, location VARCHAR)
SELECT round FROM table_name_5 WHERE time = "n/a" AND location = "rio de janeiro , brazil"
What is Chitwood's lowest completed number of laps with a qualifying time of 124.619?
CREATE TABLE table_name_72 (laps INTEGER, qual VARCHAR)
SELECT MIN(laps) FROM table_name_72 WHERE qual = "124.619"
who is the opponent when the score is 3–6, 6–1, 7–5?
CREATE TABLE table_name_22 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_22 WHERE score = "3–6, 6–1, 7–5"
Who was the loss to for the film Chicago?
CREATE TABLE table_name_74 (lost_to VARCHAR, film VARCHAR)
SELECT lost_to FROM table_name_74 WHERE film = "chicago"
Which country did the Director(s) of kota nagaoka come from and win ¥300,000?
CREATE TABLE table_name_59 (country VARCHAR, prize VARCHAR, director_s_ VARCHAR)
SELECT country FROM table_name_59 WHERE prize = "¥300,000" AND director_s_ = "kota nagaoka"
Name the highest cuts made when top 5 is less than 3 and top ten is more than 4
CREATE TABLE table_name_99 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_99 WHERE top_5 < 3 AND top_10 > 4
Can you tell me the Result that has the Week of 5?
CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_63 WHERE week = 5
What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?
CREATE TABLE table_name_32 (total_atms VARCHAR, off_site_atms VARCHAR, number_of_branches VARCHAR)
SELECT COUNT(total_atms) FROM table_name_32 WHERE off_site_atms > 3672 AND number_of_branches < 1685
What Country has a Director of 2007?
CREATE TABLE table_name_43 (country VARCHAR, director_s_ VARCHAR)
SELECT country FROM table_name_43 WHERE director_s_ = "2007"
If the lees team is Clare Balding and Miranda Hart, what was the score?
CREATE TABLE table_23575917_7 (scores VARCHAR, lees_team VARCHAR)
SELECT scores FROM table_23575917_7 WHERE lees_team = "Clare Balding and Miranda Hart"
What is the value of the runner up column for the Alberta province?
CREATE TABLE table_28457809_3 (runner_up INTEGER, province VARCHAR)
SELECT MAX(runner_up) FROM table_28457809_3 WHERE province = "Alberta"
Name the third district for christine young
CREATE TABLE table_15442974_1 (third_district VARCHAR, fifth_district VARCHAR)
SELECT third_district FROM table_15442974_1 WHERE fifth_district = "Christine Young"
What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14?
CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR)
SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = "vilma voroblevaitė" AND place > 14
What is the maximum number of 2006 subscribers for Glo Mobile?
CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Glo Mobile"
Find the number of students in total.
CREATE TABLE list (Id VARCHAR)
SELECT COUNT(*) FROM list
In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4"
What is the code for Saint-Damien in Matawinie with a type p?
CREATE TABLE table_name_35 (code INTEGER, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)
SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"
What is the rank when 64.5 is tosses/pyramids?
CREATE TABLE table_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR)
SELECT MAX(rank) FROM table_22014431_3 WHERE tosses_pyramids = "64.5"
What are the terps points for the nov. 25/05 game?
CREATE TABLE table_22862203_2 (terps_points VARCHAR, date VARCHAR)
SELECT terps_points FROM table_22862203_2 WHERE date = "Nov. 25/05"
When the Venue was Glenferrie Oval, who is the Away team?
CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_3 WHERE venue = "glenferrie oval"
What is the median income of Maule?
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, region VARCHAR)
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule"
Which Opponent has a Surface of hard on 28 august 1993?
CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_46 WHERE surface = "hard" AND date = "28 august 1993"
What is the total surface area of the countries in the Caribbean region?
CREATE TABLE country (SurfaceArea INTEGER, Region VARCHAR)
SELECT SUM(SurfaceArea) FROM country WHERE Region = "Caribbean"
What is the player with a Span of 1998-2009?
CREATE TABLE table_name_8 (player VARCHAR, span VARCHAR)
SELECT player FROM table_name_8 WHERE span = "1998-2009"
How many times does November 3rd occur when January 15, 1991 does?
CREATE TABLE table_25235489_2 (november_3 VARCHAR, january_15_16 VARCHAR)
SELECT COUNT(november_3) FROM table_25235489_2 WHERE january_15_16 = "January 15, 1991"
What was the crowd size when geelong played home?
CREATE TABLE table_name_98 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_98 WHERE home_team = "geelong"
Where is the longest arch with a length in meters of 64.2?
CREATE TABLE table_name_29 (location VARCHAR, length___m__ VARCHAR)
SELECT location FROM table_name_29 WHERE length___m__ = "64.2"
What is the language of TV3?
CREATE TABLE table_name_83 (language VARCHAR, name VARCHAR)
SELECT language FROM table_name_83 WHERE name = "tv3"
What is the Delivered as name of the H3 Locomotive?
CREATE TABLE table_name_64 (delivered_as VARCHAR, locomotive VARCHAR)
SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3"
Name the result for New York 11
CREATE TABLE table_1341472_34 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341472_34 WHERE district = "New York 11"
In 2001, where the mens singles is armand jehle and the womens singles is michaela ritter, who are the mixed doubles
CREATE TABLE table_15001681_1 (mixed_doubles VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR)
SELECT mixed_doubles FROM table_15001681_1 WHERE womens_singles = "Michaela Ritter" AND mens_singles = "Armand Jehle"
Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?
CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR)
SELECT date FROM table_name_40 WHERE location = "scotiabank place" AND points < 20 AND game > 16 AND opponent = "montreal canadiens"
What title was written by Matt Wayne?
CREATE TABLE table_16581695_3 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_16581695_3 WHERE written_by = "Matt Wayne"
Which player was D past Round 3?
CREATE TABLE table_name_88 (player VARCHAR, position VARCHAR, round VARCHAR)
SELECT player FROM table_name_88 WHERE position = "d" AND round > 3
Which Drawn is the highest one that has a Played smaller than 18?
CREATE TABLE table_name_36 (drawn INTEGER, played INTEGER)
SELECT MAX(drawn) FROM table_name_36 WHERE played < 18
Which city has the team nickname bearcats?
CREATE TABLE table_16384648_2 (location VARCHAR, team_nickname VARCHAR)
SELECT location FROM table_16384648_2 WHERE team_nickname = "Bearcats"
What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR)
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922"
Where the time is 2:46, what is the record?
CREATE TABLE table_name_83 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_83 WHERE time = "2:46"
What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?
CREATE TABLE table_name_85 (laps INTEGER, points VARCHAR, team VARCHAR, time_retired VARCHAR)
SELECT MIN(laps) FROM table_name_85 WHERE team = "dale coyne racing" AND time_retired = "mechanical" AND points < 5
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
CREATE TABLE table_287659_2 (region_name VARCHAR, regional_page__number VARCHAR)
SELECT region_name FROM table_287659_2 WHERE regional_page__number = "1-3, 5-7, 9-11, 13-15"
Who was the home team at the game when the Thrashers had a record of 18–18–1?
CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_31 WHERE record = "18–18–1"
During 2003 what was open cup qualifying status?
CREATE TABLE table_1570003_2 (open_cup VARCHAR, year VARCHAR)
SELECT open_cup FROM table_1570003_2 WHERE year = 2003
What was the record of the game for game 31?
CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_78 WHERE game = 31
What is the location for Egypt in 2013?
CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, country VARCHAR)
SELECT location FROM table_name_81 WHERE year = "2013" AND country = "egypt"
what is the total number of singles w–l where doubles w–l is 11–14
CREATE TABLE table_10294071_1 (singles_w_l VARCHAR, doubles_w_l VARCHAR)
SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–14"
Name the averag scored for 2011 long teng cup and 2 october 2011
CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR)
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011"
Who had a rank larger than 7, less than 305 goals, and 418 matches?
CREATE TABLE table_name_36 (name VARCHAR, matches VARCHAR, rank VARCHAR, goals VARCHAR)
SELECT name FROM table_name_36 WHERE rank > 7 AND goals < 305 AND matches = "418"
for fiumicino airport what is the icao?
CREATE TABLE table_name_76 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_76 WHERE airport = "fiumicino airport"
In week 7, what was the average attendance?
CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_74 WHERE week = 7
Which School has a Mascot of generals?
CREATE TABLE table_name_21 (school VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_21 WHERE mascot = "generals"
What is the earliest season with an advertising account manager profile?
CREATE TABLE table_name_38 (season INTEGER, profile VARCHAR)
SELECT MIN(season) FROM table_name_38 WHERE profile = "advertising account manager"
What office is Jon Huntsman a candidate for?
CREATE TABLE table_20246201_9 (office VARCHAR, candidate VARCHAR)
SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman"
How many scores have paul casey as a player?
CREATE TABLE table_name_87 (score VARCHAR, player VARCHAR)
SELECT COUNT(score) FROM table_name_87 WHERE player = "paul casey"
What date did Delage win?
CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR)
SELECT date FROM table_name_34 WHERE winning_constructor = "delage"
Find the number of rooms with a king bed.
CREATE TABLE Rooms (bedType VARCHAR)
SELECT COUNT(*) FROM Rooms WHERE bedType = "King"
At a longitude of 293.0e, what is the diameter, in km?
CREATE TABLE table_16799784_9 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_9 WHERE longitude = "293.0E"
What was the competition on 25/08/07?
CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_52 WHERE date = "25/08/07"
How many high points were at the wachovia center 18,347?
CREATE TABLE table_11960196_3 (high_points VARCHAR, location_attendance VARCHAR)
SELECT COUNT(high_points) FROM table_11960196_3 WHERE location_attendance = "Wachovia Center 18,347"
When was Quantum Research's poll conducted?
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR)
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research"
How many people play Frank in London?
CREATE TABLE table_10402018_1 (london VARCHAR, character VARCHAR)
SELECT COUNT(london) FROM table_10402018_1 WHERE character = "Frank"
What is Larry Centers' average number when there were less than 600 yards?
CREATE TABLE table_name_23 (number INTEGER, player VARCHAR, yards VARCHAR)
SELECT AVG(number) FROM table_name_23 WHERE player = "larry centers" AND yards < 600
In which area was there a score of 68?
CREATE TABLE table_name_42 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_42 WHERE score = 68
How many longitudes have a latitude of 9.9n?
CREATE TABLE table_16768245_2 (longitude VARCHAR, latitude VARCHAR)
SELECT COUNT(longitude) FROM table_16768245_2 WHERE latitude = "9.9N"
Tell me the report for bugatti and brooklands
CREATE TABLE table_name_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT report FROM table_name_96 WHERE winning_constructor = "bugatti" AND circuit = "brooklands"
What is the title of the edition with more than 128 pages and a volume # of 5?
CREATE TABLE table_name_5 (title VARCHAR, pages VARCHAR, vol__number VARCHAR)
SELECT title FROM table_name_5 WHERE pages > 128 AND vol__number = 5
Name the attendance on april 17
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 17"
who is the winner when the home team is sioux falls storm and the year is earlier than 2012?
CREATE TABLE table_name_48 (winner VARCHAR, home_team VARCHAR, year VARCHAR)
SELECT winner FROM table_name_48 WHERE home_team = "sioux falls storm" AND year < 2012
How many goals were scored on 21 Junio 2008?
CREATE TABLE table_name_26 (goal VARCHAR, date VARCHAR)
SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 2008"
Where was the match that had 119 points for played?
CREATE TABLE table_name_55 (played_in VARCHAR, points_for VARCHAR)
SELECT played_in FROM table_name_55 WHERE points_for = "119"
Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?
CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)
SELECT award_ceremony FROM table_name_87 WHERE nominee = "sarah travis" AND category = "best orchestrations"
What is the Element when the Nuclide is 55 mn?
CREATE TABLE table_name_79 (element VARCHAR, nuclide VARCHAR)
SELECT element FROM table_name_79 WHERE nuclide = "55 mn"
Name the original title for 6.05 million viewership
CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR)
SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million"
What is the lowest attendance when footscray is the away team?
CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "footscray"
how many innings had bbi 4/26?
CREATE TABLE table_28846752_5 (innings VARCHAR, bbi VARCHAR)
SELECT innings FROM table_28846752_5 WHERE bbi = "4/26"
What was the score of the game on November 9 when Atlanta was the visiting team?
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 9"
How many steals did Tamika Williams have?
CREATE TABLE table_24908692_5 (steals VARCHAR, player VARCHAR)
SELECT steals FROM table_24908692_5 WHERE player = "Tamika Williams"
What is the average number of bedrooms of all apartments?
CREATE TABLE Apartments (bedroom_count INTEGER)
SELECT AVG(bedroom_count) FROM Apartments
What team does F Trey Gilder play for?
CREATE TABLE table_name_63 (team VARCHAR, pos VARCHAR, player VARCHAR)
SELECT team FROM table_name_63 WHERE pos = "f" AND player = "trey gilder"
Name the software with the latest stable date of 0.6.1
CREATE TABLE table_name_87 (software VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = "0.6.1"
Which unique cities are in Asian countries where Chinese is the official language ?
CREATE TABLE city (name VARCHAR, countrycode VARCHAR); CREATE TABLE countrylanguage (countrycode VARCHAR, isofficial VARCHAR, language VARCHAR); CREATE TABLE country (code VARCHAR, continent VARCHAR)
SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = "asia"
What is the party for the candidates edwin gray (dr)?
CREATE TABLE table_2668393_18 (party VARCHAR, candidates VARCHAR)
SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"
What driver went 59 laps on grid 11?
CREATE TABLE table_name_57 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 11
What Date has a time of (seconds) 42.172?
CREATE TABLE table_name_73 (date VARCHAR, time__seconds_ VARCHAR)
SELECT date FROM table_name_73 WHERE time__seconds_ = 42.172
What was the visiting team on october 23?
CREATE TABLE table_name_10 (visiting_team VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_10 WHERE date = "october 23"
Who was the crew for the duration of 12 minutes?
CREATE TABLE table_name_4 (crew VARCHAR, duration VARCHAR)
SELECT crew FROM table_name_4 WHERE duration = "12 minutes"
How many gold medals has the club with the most coaches won?
CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)
SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
What Unit has a Ratio of 1/32?
CREATE TABLE table_name_55 (unit VARCHAR, ratio VARCHAR)
SELECT unit FROM table_name_55 WHERE ratio = "1/32"
What's the team's status in the Open Cup in 2006?
CREATE TABLE table_1990460_1 (open_cup VARCHAR, year VARCHAR)
SELECT open_cup FROM table_1990460_1 WHERE year = 2006