question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which title is 3:38 long?
CREATE TABLE table_name_52 (title VARCHAR, length VARCHAR)
SELECT title FROM table_name_52 WHERE length = "3:38"
What is the 1st leg that has a Rc Cannes Team 1?
CREATE TABLE table_name_40 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_40 WHERE team_1 = "rc cannes"
Which position had 5 games played and a record of 1-2-2?
CREATE TABLE table_name_63 (position VARCHAR, games_played VARCHAR, w_l_d VARCHAR)
SELECT position FROM table_name_63 WHERE games_played = 5 AND w_l_d = "1-2-2"
How many drivers did Bob Gerard Racing have?
CREATE TABLE table_21977627_1 (driver VARCHAR, entrant VARCHAR)
SELECT COUNT(driver) FROM table_21977627_1 WHERE entrant = "Bob Gerard Racing"
What was the record at week 7
CREATE TABLE table_11391448_2 (record VARCHAR, week VARCHAR)
SELECT record FROM table_11391448_2 WHERE week = 7
On what date was the week less than 3 with a result of w 24-13?
CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_60 WHERE week < 3 AND result = "w 24-13"
What is the average prize for the Buttercross Limited Stakes?
CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR)
SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = "buttercross limited stakes"
What is the position when the League is the malaysian super league, and a Year of 2011?
CREATE TABLE table_name_85 (position VARCHAR, league VARCHAR, year VARCHAR)
SELECT position FROM table_name_85 WHERE league = "malaysian super league" AND year = "2011"
Find the salaries of all distinct instructors that are less than the largest salary.
CREATE TABLE instructor (salary INTEGER)
SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT MAX(salary) FROM instructor)
Which player who won in 1977 and scored great than 155 was the closest to par?
CREATE TABLE table_name_96 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR)
SELECT MAX(to_par) FROM table_name_96 WHERE year_s__won = "1977" AND total > 155
What is Term Start, when Name is Prime Ministers 1939 - 1943?
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR)
SELECT term_start FROM table_name_38 WHERE name = "prime ministers 1939 - 1943"
Who was the away captain for matches played at Trent Bridge?
CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_81 WHERE venue = "trent bridge"
When the change is 8.8%, what is the density (pop/km²)?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR, _percentage_change VARCHAR)
SELECT density__pop_km²_ FROM table_1425958_1 WHERE _percentage_change = "8.8"
Which away team had a venue of mcg?
CREATE TABLE table_name_90 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_90 WHERE venue = "mcg"
What is the latest result where a person from the Philippines won?
CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
List the name of the company that produced more than one phone model.
CREATE TABLE phone (Company_name VARCHAR)
SELECT Company_name FROM phone GROUP BY Company_name HAVING COUNT(*) > 1
Show all locations and the number of gas stations in each location ordered by the count.
CREATE TABLE gas_station (LOCATION VARCHAR)
SELECT LOCATION, COUNT(*) FROM gas_station GROUP BY LOCATION ORDER BY COUNT(*)
How many different software platforms are there for devices?
CREATE TABLE device (Software_Platform VARCHAR)
SELECT COUNT(DISTINCT Software_Platform) FROM device
What place did Jimmy Reece finish in 1957?
CREATE TABLE table_name_29 (finish VARCHAR, year VARCHAR)
SELECT finish FROM table_name_29 WHERE year = "1957"
What day was the against 22 and the status tour match?
CREATE TABLE table_name_51 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT date FROM table_name_51 WHERE status = "tour match" AND against = 22
What is the average position with an against value less than 11?
CREATE TABLE table_name_76 (position INTEGER, against INTEGER)
SELECT AVG(position) FROM table_name_76 WHERE against < 11
Which Qual has Laps smaller than 195, and a Rank of 25?
CREATE TABLE table_name_74 (qual VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_74 WHERE laps < 195 AND rank = "25"
How many points for when the points was 53?
CREATE TABLE table_13564637_4 (points_for VARCHAR, points VARCHAR)
SELECT points_for FROM table_13564637_4 WHERE points = "53"
What is the lowest total for 1985-1986 when the total points are 124?
CREATE TABLE table_name_33 (total_points VARCHAR)
SELECT MIN(1985 AS _1986) FROM table_name_33 WHERE total_points = 124
Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.
CREATE TABLE track (year_opened VARCHAR, seating INTEGER)
SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000
What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR)
SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010
Who left office in June 2011?
CREATE TABLE table_name_1 (name VARCHAR, left_office VARCHAR)
SELECT name FROM table_name_1 WHERE left_office = "june 2011"
Which college with a position of rb had a pick larger than 6 in round 28?
CREATE TABLE table_name_19 (college VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT college FROM table_name_19 WHERE pick > 6 AND position = "rb" AND round = 28
What is the IHSAA Football Class for county 67 putnam at Greencastle?
CREATE TABLE table_name_16 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR)
SELECT ihsaa_football_class FROM table_name_16 WHERE county = "67 putnam" AND school = "greencastle"
What is the Method for Brazil?
CREATE TABLE table_name_55 (method VARCHAR, location VARCHAR)
SELECT method FROM table_name_55 WHERE location = "brazil"
What Driver had 50+3 Points?
CREATE TABLE table_name_99 (driver VARCHAR, points VARCHAR)
SELECT driver FROM table_name_99 WHERE points = "50+3"
What positions do the hartford whalers nhl team have?
CREATE TABLE table_1013129_1 (position VARCHAR, nhl_team VARCHAR)
SELECT position FROM table_1013129_1 WHERE nhl_team = "Hartford Whalers"
What nationality is the #63 pick?
CREATE TABLE table_name_72 (nationality VARCHAR, pick__number VARCHAR)
SELECT nationality FROM table_name_72 WHERE pick__number = "63"
What is the highest total when there is less than 1 championship?
CREATE TABLE table_name_80 (total INTEGER, championship INTEGER)
SELECT MAX(total) FROM table_name_80 WHERE championship < 1
If the game was on January 21, which game was it?
CREATE TABLE table_27537870_6 (game INTEGER, january VARCHAR)
SELECT MAX(game) FROM table_27537870_6 WHERE january = 21
What was the attendance last year at Manuka Oval?
CREATE TABLE table_1161065_28 (last_year VARCHAR, venue VARCHAR)
SELECT last_year FROM table_1161065_28 WHERE venue = "Manuka Oval"
Name the result for ursinus college
CREATE TABLE table_21094951_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_21094951_1 WHERE opponent = "Ursinus College"
What is the Score of West Asian Games 2005 on 10 dec 2005?
CREATE TABLE table_name_44 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_44 WHERE competition = "west asian games 2005" AND date = "10 dec 2005"
Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?
CREATE TABLE table_name_26 (filename_extension VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR, open_standard VARCHAR)
SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = "yes" AND open_standard = "no" AND interactivity_support = "yes"
Find the founder of the company whose name begins with the letter 'S'.
CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
SELECT founder FROM manufacturers WHERE name LIKE 'S%'
What venue does the soccer team Pennsylvania Stoners play in?
CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR)
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners"
What driver has BRM as a constructor and had more than 30 laps?
CREATE TABLE table_name_12 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_12 WHERE constructor = "brm" AND laps > 30
Which Date has a Result of w 27–20?
CREATE TABLE table_name_30 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_30 WHERE result = "w 27–20"
How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21?
CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR)
SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21
What's the Material collected for the 978-1401209674 ISBN?
CREATE TABLE table_name_75 (material_collected VARCHAR, isbn VARCHAR)
SELECT material_collected FROM table_name_75 WHERE isbn = "978-1401209674"
What is the denomination for the stamp issued 8 January 2009?
CREATE TABLE table_name_34 (denomination VARCHAR, date_of_issue VARCHAR)
SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009"
Which player went to the College of Wyoming?
CREATE TABLE table_name_99 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_99 WHERE college = "wyoming"
Name the home team score when the away team is south melbourne
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE away_team = "south melbourne"
What is the sanskrit word if the transcription is wan athit?
CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, transcription VARCHAR)
SELECT sanskrit_word FROM table_180802_3 WHERE transcription = "wan athit"
What are the id and the amount of refund of the booking that incurred the most times of payments?
CREATE TABLE Payments (booking_id VARCHAR); CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR)
SELECT T1.booking_id, T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY COUNT(*) DESC LIMIT 1
what is г г [ɡ] when а а [a] is ҕә ҕә [ʁʷ/ɣʷ]?
CREATE TABLE table_202365_2 (г_г_ VARCHAR, ɡ VARCHAR, а_а_ VARCHAR, a VARCHAR)
SELECT г_г_[ɡ] FROM table_202365_2 WHERE а_а_[a] = "Ҕә ҕә [ʁʷ/ɣʷ]"
What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?
CREATE TABLE table_name_96 (fall_08 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR, fall_06 VARCHAR)
SELECT MAX(fall_08) FROM table_name_96 WHERE fall_09 < 82 AND fall_06 = 5 AND fall_05 < 3
What is the time/retired for phil hill with over 67 laps and a grad smaller than 18?
CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_29 WHERE laps > 67 AND grid < 18 AND driver = "phil hill"
What is the outcome for the Hershey tournament?
CREATE TABLE table_name_1 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_1 WHERE tournament = "hershey"
How many clubs are there in the Korea Republic?
CREATE TABLE table_19412902_2 (clubs VARCHAR, member_association VARCHAR)
SELECT clubs FROM table_19412902_2 WHERE member_association = "Korea Republic"
What is Finish, when Total is "306"?
CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR)
SELECT finish FROM table_name_20 WHERE total = 306
Author of stanisław wyspiański, and a Year of 1969 happened in what theatre?
CREATE TABLE table_name_5 (theatre VARCHAR, author VARCHAR, year VARCHAR)
SELECT theatre FROM table_name_5 WHERE author = "stanisław wyspiański" AND year = 1969
What score did the opposing home team have against Melbourne
CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE away_team = "melbourne"
What is the launch date of 栗?
CREATE TABLE table_name_70 (launched VARCHAR, kanji VARCHAR)
SELECT launched FROM table_name_70 WHERE kanji = "栗"
What episode in the season was episode us17 in the series?
CREATE TABLE table_19897294_11 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT COUNT(no_in_season) FROM table_19897294_11 WHERE no_in_series = "US17"
Who were the candidates in the district where Charlie Norwood is the incumbent?
CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"
Which record has a Visitor of magic?
CREATE TABLE table_name_89 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_89 WHERE visitor = "magic"
What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?
CREATE TABLE table_name_89 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_89 WHERE opponent_in_the_final = "kyoko nagatsuka"
What is the nationality when Claude Periard is the player?
CREATE TABLE table_name_33 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_33 WHERE player = "claude periard"
On what date was the opponent the White Sox and the record 18-13?
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13"
Name the number of party for richard l. hanna (r) 53.1% mike arcuri (d) 46.9%
CREATE TABLE table_19753079_35 (party VARCHAR, candidates VARCHAR)
SELECT COUNT(party) FROM table_19753079_35 WHERE candidates = "Richard L. Hanna (R) 53.1% Mike Arcuri (D) 46.9%"
What is the sum of all the touchdowns when the player had more than 0 extra points and less than 0 field goals?
CREATE TABLE table_name_44 (touchdowns INTEGER, extra_points VARCHAR, field_goals VARCHAR)
SELECT SUM(touchdowns) FROM table_name_44 WHERE extra_points > 0 AND field_goals < 0
Which public college has a nickname of The Grenadiers?
CREATE TABLE table_name_30 (institution VARCHAR, type VARCHAR, nickname VARCHAR)
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers"
List the carriers of devices that have no devices in stock.
CREATE TABLE stock (Carrier VARCHAR, Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)
SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock)
in what year did the colors red and gold join?
CREATE TABLE table_20887670_1 (year_joined VARCHAR, colors VARCHAR)
SELECT COUNT(year_joined) FROM table_20887670_1 WHERE colors = "Red and Gold"
Where was the game played with a 2013 left and Royals nickname?
CREATE TABLE table_name_13 (location VARCHAR, left VARCHAR, nickname VARCHAR)
SELECT location FROM table_name_13 WHERE left = "2013" AND nickname = "royals"
What is the civil parish of Aghafullim?
CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim"
What is the Shirt No for the person whose height is 188?
CREATE TABLE table_name_9 (shirt_no INTEGER, height VARCHAR)
SELECT SUM(shirt_no) FROM table_name_9 WHERE height = 188
How many rounds did Brett go against Kevin Asplund?
CREATE TABLE table_name_72 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_72 WHERE opponent = "kevin asplund"
What is the total blocks when there are less than 210 digs and the total attempts are more than 1116?
CREATE TABLE table_name_78 (total_blocks INTEGER, digs VARCHAR, total_attempts VARCHAR)
SELECT AVG(total_blocks) FROM table_name_78 WHERE digs < 210 AND total_attempts > 1116
What was the reating share when the total viewers was 11.49 million?
CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR)
SELECT rating / SHARE(18 AS –49) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "11.49"
What are the downhill points for the skier with total of 9.31 points?
CREATE TABLE table_name_50 (downhill_points INTEGER, total VARCHAR)
SELECT SUM(downhill_points) FROM table_name_50 WHERE total = "9.31"
What's the lowest rating with 11.2 million viewers?
CREATE TABLE table_217785_2 (ranking INTEGER, viewers__in_millions_of_households_ VARCHAR)
SELECT MIN(ranking) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "11.2"
Who was the away team at Arden Street Oval?
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_20 WHERE venue = "arden street oval"
What was the home team score at Kardinia Park?
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE venue = "kardinia park"
What season has races larger than 18 and 36 points?
CREATE TABLE table_name_35 (season VARCHAR, races VARCHAR, points VARCHAR)
SELECT season FROM table_name_35 WHERE races > 18 AND points = 36
What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?
CREATE TABLE table_name_65 (goals INTEGER, total_gs VARCHAR, name VARCHAR, competition VARCHAR, team VARCHAR)
SELECT AVG(goals) FROM table_name_65 WHERE competition = "k-league" AND team = "pohang steelers" AND name = "park sung-ho" AND total_gs < 46
HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL?
CREATE TABLE table_10262329_1 (temp__ VARCHAR, adhesive_type VARCHAR)
SELECT COUNT(temp__) AS °c_ FROM table_10262329_1 WHERE adhesive_type = "Acryl"
Tell me the engine for dhg tom's racing
CREATE TABLE table_name_88 (engine VARCHAR, team VARCHAR)
SELECT engine FROM table_name_88 WHERE team = "dhg tom's racing"
how many voted in the texas 6 section
CREATE TABLE table_1341884_45 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341884_45 WHERE district = "Texas 6"
Where is the IHSAA Class of aaa school with more than 590 enrolled?
CREATE TABLE table_name_1 (location VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT location FROM table_name_1 WHERE ihsaa_class = "aaa" AND enrollment > 590
Name the most ending with for peyalvar
CREATE TABLE table_1852650_1 (ending_with INTEGER, sung_by VARCHAR)
SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = "Peyalvar"
What club team is the United States player with an overall pick smaller than 142 from?
CREATE TABLE table_name_98 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT club_team FROM table_name_98 WHERE nationality = "united states" AND overall < 142
How many Last wins have a Club of mansfield town, and Wins smaller than 1?
CREATE TABLE table_name_42 (last_win VARCHAR, club VARCHAR, wins VARCHAR)
SELECT COUNT(last_win) FROM table_name_42 WHERE club = "mansfield town" AND wins < 1
Which TV Time has a Result of w 24–17?
CREATE TABLE table_name_93 (tv_time VARCHAR, result VARCHAR)
SELECT tv_time FROM table_name_93 WHERE result = "w 24–17"
What team does George Hulme play for?
CREATE TABLE table_1213511_4 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1213511_4 WHERE player = "George Hulme"
What type of state did the ruler have a title?
CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR)
SELECT type FROM table_name_54 WHERE title = "ruler"
Show all advisors and corresponding number of students.
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor
Name the swuinsuit for oregon
CREATE TABLE table_17516967_1 (swimsuit VARCHAR, state VARCHAR)
SELECT swimsuit FROM table_17516967_1 WHERE state = "Oregon"
What college did the player drafted after round 2 before pick 160 attend?
CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR, round VARCHAR)
SELECT college FROM table_name_50 WHERE pick < 160 AND round > 2
For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?
CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle"
What lowest round has orlando pace as the player?
CREATE TABLE table_name_3 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_3 WHERE player = "orlando pace"
What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?
CREATE TABLE table_name_87 (market_value__us INTEGER, rank VARCHAR, revenues__us$_billion_ VARCHAR, company VARCHAR)
SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = "national bank of greece" AND rank < 1
What is the smallest crowd at punt road oval?
CREATE TABLE table_name_10 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_10 WHERE venue = "punt road oval"
What was the away team's score at Western Oval?
CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_74 WHERE venue = "western oval"