answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT position_in_2012_13 FROM table_name_69 WHERE number_of_seasons_in_ligue_1 = 30 AND ligue_1_titles = 1
Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1
CREATE TABLE table_name_69 (position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR, ligue_1_titles VARCHAR)
SELECT laps FROM table_name_97 WHERE grid = 4
How many laps were in grid 4?
CREATE TABLE table_name_97 (laps VARCHAR, grid VARCHAR)
SELECT campus FROM degrees GROUP BY campus ORDER BY SUM(degrees) DESC LIMIT 1
Which campus has the most degrees conferred in all times?
CREATE TABLE degrees (campus VARCHAR, degrees INTEGER)
SELECT type FROM table_2538117_5 WHERE letters = "ΣΑΕΠ"
What type is σαεπ?
CREATE TABLE table_2538117_5 (type VARCHAR, letters VARCHAR)
SELECT COUNT(casinos) FROM table_25438110_5 WHERE fy09_$millions = "$279"
How many casinos are associated with a FY2009 $mil value of exactly $279?
CREATE TABLE table_25438110_5 (casinos VARCHAR, fy09_$millions VARCHAR)
SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v"
Engine 2.3 16v has how many cylinders?
CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR)
SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"
What city was the circuit of mallala motor sport park?
CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)
SELECT reign_began FROM table_name_79 WHERE country = "vietnam" AND reign_ended = "october 1005"
Whose reign began in Vietnam and ended in October 1005?
CREATE TABLE table_name_79 (reign_began VARCHAR, country VARCHAR, reign_ended VARCHAR)
SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r"
What was the 2007 result for a 2008 result of 1R and 2009 result of 2R?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT original_title FROM table_name_53 WHERE year < 1977 AND author = "lagercrantz olof lagercrantz"
Name the original title for years before 1977 and author of lagercrantz olof lagercrantz
CREATE TABLE table_name_53 (original_title VARCHAR, year VARCHAR, author VARCHAR)
SELECT source FROM table_name_54 WHERE michael_signer = "5%"
Which polling source gave Michael Signer 5%?
CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR)
SELECT player FROM table_name_54 WHERE to_par = "−6"
What Player's To par is −6?
CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR)
SELECT opponent FROM table_name_51 WHERE game < 5 AND record = "2-0-0"
Who is the opponent of the game with a game number less than 5 with a 2-0-0 record?
CREATE TABLE table_name_51 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT southern_england FROM table_10128185_2 WHERE northern_ireland = 3
How many votes did Southern England cast whilst Northern Ireland cast 3?
CREATE TABLE table_10128185_2 (southern_england VARCHAR, northern_ireland VARCHAR)
SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010
What is the total salary paid by team Boston Red Stockings in 2010?
CREATE TABLE salary (salary INTEGER, team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT AVG(pick) FROM table_name_51 WHERE overall < 28 AND round = 3
What number pick was the player drafted in round 3 at #28 overall?
CREATE TABLE table_name_51 (pick INTEGER, overall VARCHAR, round VARCHAR)
SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855–1859"
Which Representative was from Kentucky during the years of 1855–1859?
CREATE TABLE table_name_25 (representative VARCHAR, state VARCHAR, years VARCHAR)
SELECT MAX(played) FROM table_name_19 WHERE against < 15 AND team = "bangu" AND points > 9
How many games played for team bangu with under 15 against, and over 9 points?
CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, against VARCHAR, team VARCHAR)
SELECT outcome FROM table_name_21 WHERE venue = "danish open" AND year = "1985"
What was the Outcome of the Danish Open in 1985?
CREATE TABLE table_name_21 (outcome VARCHAR, venue VARCHAR, year VARCHAR)
SELECT attendance FROM table_name_62 WHERE result = "2-4"
What is Attendance, when Result is "2-4"?
CREATE TABLE table_name_62 (attendance VARCHAR, result VARCHAR)
SELECT position FROM table_name_17 WHERE school = "indiana state"
Name the position for indiana state
CREATE TABLE table_name_17 (position VARCHAR, school VARCHAR)
SELECT COUNT(dates_administered) FROM table_16751596_13 WHERE poll_source = "Research 2000/Daily Kos"
When the poll source is research 2000/daily kos, what is the total number of dates administered?
CREATE TABLE table_16751596_13 (dates_administered VARCHAR, poll_source VARCHAR)
SELECT college FROM table_name_95 WHERE round > 1 AND player = "dylan mcfarland"
What college has a round greater than 1, with dylan mcfarland as the player?
CREATE TABLE table_name_95 (college VARCHAR, round VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace"
What home team played against Crystal Palace?
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code
For each payment method, return how many customers use it.
CREATE TABLE customers (payment_method_code VARCHAR)
SELECT location FROM table_13710464_1 WHERE date = "May 20"
Where was the game played on may 20?
CREATE TABLE table_13710464_1 (location VARCHAR, date VARCHAR)
SELECT date FROM table_14875671_1 WHERE attendance = 63995
What was the date when the attendance was 63995
CREATE TABLE table_14875671_1 (date VARCHAR, attendance VARCHAR)
SELECT class FROM table_1745843_9 WHERE part_3 = "schliefen"
Name the class for schliefen
CREATE TABLE table_1745843_9 (class VARCHAR, part_3 VARCHAR)
SELECT theme FROM table_name_54 WHERE artist = "christie paquet" AND issue_price = "$34.95" AND year > 2004
What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95?
CREATE TABLE table_name_54 (theme VARCHAR, year VARCHAR, artist VARCHAR, issue_price VARCHAR)
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100"
Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?
CREATE TABLE table_name_30 (year_started INTEGER, number_of_cars VARCHAR, car__number VARCHAR)
SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14
What is the total number drawn with goals against less than 55, and a total of 14 losses?
CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT status FROM table_name_34 WHERE name = "the cub/john"
What is the status of the Cub/John locomotive?
CREATE TABLE table_name_34 (status VARCHAR, name VARCHAR)
SELECT position FROM table_name_50 WHERE player = "david laliberte"
WHich Position has a Player of david laliberte?
CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR)
SELECT MAX(year) FROM table_1046454_1 WHERE regular_season = "4th, Northwest"
what being the maximum year where regular season is 4th, northwest
CREATE TABLE table_1046454_1 (year INTEGER, regular_season VARCHAR)
SELECT opponent FROM table_name_22 WHERE score = "6–5 (10)"
Who did the Rockies play at the game that had a score of 6–5 (10)?
CREATE TABLE table_name_22 (opponent VARCHAR, score VARCHAR)
SELECT hometown FROM table_name_40 WHERE name = "hasan shah"
What is Hasan Shah's hometown?
CREATE TABLE table_name_40 (hometown VARCHAR, name VARCHAR)
SELECT rank FROM table_name_65 WHERE events = 31
What is the rank where the events is 31?
CREATE TABLE table_name_65 (rank VARCHAR, events VARCHAR)
SELECT opponent FROM table_name_93 WHERE loss = "hendrickson (0-1)"
Who was the opponent at the game that had a loss of Hendrickson (0-1)?
CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR)
SELECT home_team FROM table_name_85 WHERE road_team = "portland" AND result = "104–110"
Which Home team has a Road team of portland, and a Result of 104–110?
CREATE TABLE table_name_85 (home_team VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT COUNT(game) FROM table_name_52 WHERE attendance = 19 OFFSET 190
How many games have an Attendance of 19,190?
CREATE TABLE table_name_52 (game VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_56 WHERE machine = "norton" AND rider = "harry l stephen"
Harry l Stephen rides a Norton machine on what date?
CREATE TABLE table_name_56 (date VARCHAR, machine VARCHAR, rider VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland
What are all the school years where class AAAA is in Gregory-Portland?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)
SELECT launched FROM table_name_91 WHERE laid_down = "14 august 1942"
when was the destroyer launched when it was laid down on 14 august 1942?
CREATE TABLE table_name_91 (launched VARCHAR, laid_down VARCHAR)
SELECT built FROM table_name_57 WHERE cr_no > 940 AND lms_no = 14760
What's the built date when the CR number is more than 940 and the LMS number is 14760?
CREATE TABLE table_name_57 (built VARCHAR, cr_no VARCHAR, lms_no VARCHAR)
SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = "november 12, 1961"
What is the highest attendance for the game after week 1 on November 12, 1961?
CREATE TABLE table_name_27 (attendance INTEGER, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_48 WHERE date = "october 4, 1993"
What was the result on October 4, 1993?
CREATE TABLE table_name_48 (result VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_11589522_3 WHERE written_by = "Iain Morris & Damon Beesley"
what's the original air date where written by is iain morris & damon beesley
CREATE TABLE table_11589522_3 (original_air_date VARCHAR, written_by VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "newcastle united"
What date was Newcastle United the away team?
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT independent_socialist_ticket FROM table_name_35 WHERE office = "comptroller"
Who was the Independent Socialist candidate for the office of comptroller?
CREATE TABLE table_name_35 (independent_socialist_ticket VARCHAR, office VARCHAR)
SELECT status FROM table_142159_1 WHERE location = "Museum"
Whats the status of the trains at location Museum
CREATE TABLE table_142159_1 (status VARCHAR, location VARCHAR)
SELECT industry FROM table_19112_3 WHERE revenue__billion_$_ = "2.1"
Name the industry for revenue being 2.1
CREATE TABLE table_19112_3 (industry VARCHAR, revenue__billion_$_ VARCHAR)
SELECT engine_type FROM table_15944_5 WHERE scenario = "Space shuttle vacuum"
What engine type is used in a Space Shuttle Vacuum scenario?
CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR)
SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60
What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60?
CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR)
SELECT location FROM table_name_42 WHERE record = "1-0"
What was the location of the fight when Sara McMann's record was 1-0?
CREATE TABLE table_name_42 (location VARCHAR, record VARCHAR)
SELECT television_service FROM table_name_90 WHERE content = "presentazione"
What is Television Service, when Content is Presentazione?
CREATE TABLE table_name_90 (television_service VARCHAR, content VARCHAR)
SELECT opposing_pitcher FROM table_name_37 WHERE team = "phillies" AND location = "pittsburgh" AND inning = "8th"
Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?
CREATE TABLE table_name_37 (opposing_pitcher VARCHAR, inning VARCHAR, team VARCHAR, location VARCHAR)
SELECT commander FROM table_11793221_4 WHERE complement = "167 off 2348 men"
Name the commander of 167 off 2348 men
CREATE TABLE table_11793221_4 (commander VARCHAR, complement VARCHAR)
SELECT namesake FROM table_12592074_1 WHERE commissioned_or_completed_ * _ = "16 April 1864"
What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?
CREATE TABLE table_12592074_1 (namesake VARCHAR, commissioned_or_completed_ VARCHAR, _ VARCHAR)
SELECT member FROM table_name_36 WHERE electorate = "southern melbourne"
Which Member has an Electorate of southern melbourne?
CREATE TABLE table_name_36 (member VARCHAR, electorate VARCHAR)
SELECT MIN(first_elected) FROM table_1342218_35 WHERE incumbent = "Michael A. Feighan"
What year was incumbent Michael A. Feighan first elected?
CREATE TABLE table_1342218_35 (first_elected INTEGER, incumbent VARCHAR)
SELECT year_s__won FROM table_name_4 WHERE to_par = 5
What is the Year(s) won of the Player with a To par of 5?
CREATE TABLE table_name_4 (year_s__won VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_31 WHERE date = "february 6"
What score occurred on February 6?
CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR)
SELECT MIN(longitude) FROM table_name_31 WHERE latitude = 46.843963 AND water__sqmi_ < 0.052000000000000005
What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005?
CREATE TABLE table_name_31 (longitude INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT week FROM table_name_49 WHERE tournament = "rome"
Which week held a tournament in Rome?
CREATE TABLE table_name_49 (week VARCHAR, tournament VARCHAR)
SELECT MIN(fourth_place) FROM table_1571238_2 WHERE team = "Lake Superior State"
When the team is lake superior state how many times did they place fourth?
CREATE TABLE table_1571238_2 (fourth_place INTEGER, team VARCHAR)
SELECT MAX(rank) FROM table_13836704_8 WHERE airport = "Birmingham airport"
Name the rank of birmingham airport
CREATE TABLE table_13836704_8 (rank INTEGER, airport VARCHAR)
SELECT 2011 FROM table_name_10 WHERE tournament = "australian open"
How many sets were in the 2011 Australian Open Tournament?
CREATE TABLE table_name_10 (tournament VARCHAR)
SELECT type FROM table_10581768_2 WHERE institution = "Point Park University"
What type institution is point park university
CREATE TABLE table_10581768_2 (type VARCHAR, institution VARCHAR)
SELECT carbon_dioxide_emissions_per_year__10_6_tons___2006_ FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = "1.4"
WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7?
CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ VARCHAR, carbon_dioxide_emissions_per_year__tons_per_person___2007_ VARCHAR)
SELECT opponent FROM table_name_61 WHERE record = "82-68"
What opponnent has a record of 82-68?
CREATE TABLE table_name_61 (opponent VARCHAR, record VARCHAR)
SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech"
What is the lowest round for Georgia Tech?
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)
SELECT location_attendance FROM table_23286112_12 WHERE game = 5
Where was game number 5 played?
CREATE TABLE table_23286112_12 (location_attendance VARCHAR, game VARCHAR)
SELECT venue FROM table_name_48 WHERE season = "1907"
What was the venue of season 1907?
CREATE TABLE table_name_48 (venue VARCHAR, season VARCHAR)
SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007"
What is Runner(s)-up, when Date is 21 Jan 2007?
CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_5 WHERE time_retired = "+49.222 secs"
Which Points have a Time/Retired of +49.222 secs?
CREATE TABLE table_name_5 (points INTEGER, time_retired VARCHAR)
SELECT australian FROM table_name_79 WHERE letter = "i /ɪ/"
What is the Australian equivalent to i /ɪ/?
CREATE TABLE table_name_79 (australian VARCHAR, letter VARCHAR)
SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54
What years did number 54 play for the jazz
CREATE TABLE table_11545282_4 (years_for_jazz VARCHAR, no VARCHAR)
SELECT AVG(wins) FROM table_name_77 WHERE rank = 3
Which Wins have a Rank of 3?
CREATE TABLE table_name_77 (wins INTEGER, rank VARCHAR)
SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims"
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?
CREATE TABLE table_name_91 (elector VARCHAR, cardinalatial_title VARCHAR)
SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)
What are the first name and last name of the professionals who have done treatment with cost below average?
CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR)
SELECT result FROM table_2668367_13 WHERE incumbent = "Thomas R. Gold"
What was the result in the district represented by Thomas R. Gold?
CREATE TABLE table_2668367_13 (result VARCHAR, incumbent VARCHAR)
SELECT sanskrit_word FROM table_20354_5 WHERE thai_name = "มกราคม"
What's the Sanskrit word for month with Thai name มกราคม?
CREATE TABLE table_20354_5 (sanskrit_word VARCHAR, thai_name VARCHAR)
SELECT constructor FROM table_name_29 WHERE grid = "6"
Who constructed the car that had a grid of 6?
CREATE TABLE table_name_29 (constructor VARCHAR, grid VARCHAR)
SELECT MAX(grid) FROM table_name_28 WHERE time_retired = "engine" AND laps < 66
What is the top grid that laps less than 66 and a retried engine?
CREATE TABLE table_name_28 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT total_receipts FROM table_name_44 WHERE candidate = "tom tancredo"
Tell me the total receipts for tom tancredo
CREATE TABLE table_name_44 (total_receipts VARCHAR, candidate VARCHAR)
SELECT song FROM table_name_23 WHERE year > 1976 AND music_director_s_ = "rahul dev burman"
What song was written after 1976 and directed by Rahul Dev Burman?
CREATE TABLE table_name_23 (song VARCHAR, year VARCHAR, music_director_s_ VARCHAR)
SELECT opponent FROM table_name_79 WHERE game_site = "metropolitan stadium"
Who is the opponent on the game that will be played at metropolitan stadium?
CREATE TABLE table_name_79 (opponent VARCHAR, game_site VARCHAR)
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the musician that have produced the most number of songs?
CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR)
SELECT college FROM table_name_44 WHERE player = "peyton siva"
Which college does Peyton Siva play for?
CREATE TABLE table_name_44 (college VARCHAR, player VARCHAR)
SELECT tonnage FROM table_name_26 WHERE nationality = "great britain" AND ship = "batna"
What was the tonnage of the Great Britain ship Batna?
CREATE TABLE table_name_26 (tonnage VARCHAR, nationality VARCHAR, ship VARCHAR)
SELECT week FROM table_name_99 WHERE final_score = "6–26"
What week was the final score 6–26?
CREATE TABLE table_name_99 (week VARCHAR, final_score VARCHAR)
SELECT accreditation FROM table_2076557_2 WHERE school = "Southeast Technical Institute"
Name the accrediatation for southeast technical institute
CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR)
SELECT title FROM table_23499946_1 WHERE us_viewers__in_millions_ = "2.50"
What is the title when 2.50 is u.s. viewers (in millions)?
CREATE TABLE table_23499946_1 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT finalist FROM table_name_83 WHERE winner = "first vienna fc"
Who was the finalist when the winner was First Vienna FC?
CREATE TABLE table_name_83 (finalist VARCHAR, winner VARCHAR)
SELECT tries_for FROM table_name_76 WHERE losing_bonus = "6"
If the losing bonus was 6, what is the tries for?
CREATE TABLE table_name_76 (tries_for VARCHAR, losing_bonus VARCHAR)
SELECT MIN(lane) FROM table_name_28 WHERE country = "france" AND react < 0.14100000000000001
What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001?
CREATE TABLE table_name_28 (lane INTEGER, country VARCHAR, react VARCHAR)
SELECT order__number FROM table_21501511_1 WHERE week__number = "Top 11"
What order did Lambert perform in the top 11?
CREATE TABLE table_21501511_1 (order__number VARCHAR, week__number VARCHAR)
SELECT gtu_winning_team FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing"
What was the gtu winning team when the gto winning team was #48 greenwood racing?
CREATE TABLE table_13657883_2 (gtu_winning_team VARCHAR, gto_winning_team VARCHAR)
SELECT MAX(total) FROM table_name_57 WHERE gold < 0
What is the largest total that has a gold less than 0?
CREATE TABLE table_name_57 (total INTEGER, gold INTEGER)
SELECT MIN(population__2006_) FROM table_189893_1 WHERE percentage__2011_ = "1.06%"
What is the lowest population(2006) when there is a 1.06% in 2011?
CREATE TABLE table_189893_1 (population__2006_ INTEGER, percentage__2011_ VARCHAR)