question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?
CREATE TABLE table_name_78 (label VARCHAR, Nr VARCHAR, from_album VARCHAR, year VARCHAR)
SELECT label - Nr FROM table_name_78 WHERE year < 1968 AND label = "world pacific" AND from_album = "chile con soul"
what is the series when the team is gunbroker racing?
CREATE TABLE table_name_95 (series VARCHAR, team VARCHAR)
SELECT series FROM table_name_95 WHERE team = "gunbroker racing"
Name the general classification for mauricio soler
CREATE TABLE table_29077342_19 (general_classification VARCHAR, winner VARCHAR)
SELECT general_classification FROM table_29077342_19 WHERE winner = "Mauricio Soler"
What is the Date of the game against Detroit in game 31 or after?
CREATE TABLE table_name_59 (date VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_59 WHERE game > 31 AND opponent = "detroit"
Which title has a US release of august 1996?
CREATE TABLE table_name_56 (title VARCHAR, us_release VARCHAR)
SELECT title FROM table_name_56 WHERE us_release = "august 1996"
What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam
CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR)
SELECT AVG(money_requested__) AS £_ FROM table_name_96 WHERE first_aired = "18 january 2005" AND company_or_product_name = "iv cam"
What is the average rank of a player with fewer than 3 matches?
CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER)
SELECT AVG(rank) FROM table_name_38 WHERE matches < 3
Who was the home team at MCG?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_86 WHERE venue = "mcg"
Who was the opponent when the result was L 0-14?
CREATE TABLE table_name_64 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_64 WHERE result = "l 0-14"
What is the total number of rounds that had Jason Missiaen?
CREATE TABLE table_name_75 (round VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_75 WHERE player = "jason missiaen"
What is the Acquisition via for Dennis Miranda?
CREATE TABLE table_name_33 (acquisition_via VARCHAR, name VARCHAR)
SELECT acquisition_via FROM table_name_33 WHERE name = "dennis miranda"
When was the game on Taylor Field played?
CREATE TABLE table_21796261_4 (date VARCHAR, location VARCHAR)
SELECT date FROM table_21796261_4 WHERE location = "Taylor Field"
What is the Netflix number having a segment D, of NED can corn?
CREATE TABLE table_name_2 (netflix VARCHAR, segment_d VARCHAR)
SELECT netflix FROM table_name_2 WHERE segment_d = "ned can corn"
What year before 1980 has is the highest Inflation Index (2000=100)?
CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER)
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_34 WHERE year < 1980
What team has a vehicle with an Offenhauser engine and a McLaren chassis?
CREATE TABLE table_1405704_1 (team VARCHAR, chassis VARCHAR, engine VARCHAR)
SELECT team FROM table_1405704_1 WHERE chassis = "McLaren" AND engine = "Offenhauser"
Which Order has a Nationality of ese milan?
CREATE TABLE table_name_68 (order VARCHAR, nationality VARCHAR)
SELECT order FROM table_name_68 WHERE nationality = "ese milan"
When were episodes first broadcast with jessica ennis as andrew and jacks guest?
CREATE TABLE table_29141354_5 (first_broadcast VARCHAR, andrew_and_jacks_guest VARCHAR)
SELECT first_broadcast FROM table_29141354_5 WHERE andrew_and_jacks_guest = "Jessica Ennis"
Name the location for illinois
CREATE TABLE table_1672976_7 (location VARCHAR, big_ten_team VARCHAR)
SELECT location FROM table_1672976_7 WHERE big_ten_team = "Illinois"
What is the production code when the u.s. viewers (million) is 11.76?
CREATE TABLE table_26702204_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76"
What's the 1996 if 1986 has a 1R?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"
Name the rank on channel for january 21, 2011
CREATE TABLE table_26493520_3 (rank_on_channel VARCHAR, original_air_date VARCHAR)
SELECT rank_on_channel FROM table_26493520_3 WHERE original_air_date = "January 21, 2011"
In which year did he finish 11th?
CREATE TABLE table_name_31 (year VARCHAR, result VARCHAR)
SELECT COUNT(year) FROM table_name_31 WHERE result = "11th"
Name the least points for patrick
CREATE TABLE table_14342592_4 (points INTEGER, player VARCHAR)
SELECT MIN(points) FROM table_14342592_4 WHERE player = "Patrick"
Which home team has a venue of Arden Street Oval?
CREATE TABLE table_name_94 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_94 WHERE venue = "arden street oval"
What is the record when the visitor is Buffalo?
CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_69 WHERE visitor = "buffalo"
What is the 2nd leg of emelec team 2?
CREATE TABLE table_name_66 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_66 WHERE team__number2 = "emelec"
What is the current club with a position of sg/sf and a height less than 1.96?
CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR)
SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96
Name the remarks for sawhouse
CREATE TABLE table_211791_1 (remarks VARCHAR, nato_reporting_name VARCHAR)
SELECT remarks FROM table_211791_1 WHERE nato_reporting_name = "SAWHOUSE"
What was the away teams score when they played at kardinia park?
CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE venue = "kardinia park"
How many players have more than 1000 hours of training?
CREATE TABLE Player (HS INTEGER)
SELECT COUNT(*) FROM Player WHERE HS > 1000
What is the average grid for johnny dumfries with less than 8 laps?
CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8
How tall is contestant Alexandra Díaz Bello?
CREATE TABLE table_22447251_2 (height VARCHAR, contestant VARCHAR)
SELECT height FROM table_22447251_2 WHERE contestant = "Alexandra Díaz Bello"
Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height
CREATE TABLE table_name_22 (height VARCHAR, weight VARCHAR, spike VARCHAR, name VARCHAR)
SELECT COUNT(height) FROM table_name_22 WHERE spike < 340 AND name = "gilberto godoy filho" AND weight < 85
What is 01-02, when 03-04 is 03-04?
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04"
who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fröhlich lore voit
CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Reinhold Pum Karl Buchart" AND mixed_doubles = "Hermann Fröhlich Lore Voit"
Which Position has a CFL Team of montreal alouettes (via edmonton)?
CREATE TABLE table_name_6 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_name_6 WHERE cfl_team = "montreal alouettes (via edmonton)"
What place was the player who scored 70-69-68=207?
CREATE TABLE table_name_6 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_6 WHERE score = 70 - 69 - 68 = 207
Name the chassis of 1961
CREATE TABLE table_name_33 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_33 WHERE year = 1961
What is the number of touchdowns with the average is less than 2.6?
CREATE TABLE table_name_80 (touchdowns VARCHAR, average INTEGER)
SELECT COUNT(touchdowns) FROM table_name_80 WHERE average < 2.6
Name the 2010 for 2007 of a and 2012 of a
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT 2010 FROM table_name_77 WHERE 2007 = "a" AND 2012 = "a"
what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?
CREATE TABLE table_name_62 (type VARCHAR, averaging_time VARCHAR, standard VARCHAR)
SELECT type FROM table_name_62 WHERE averaging_time = "1-hour" AND standard = "0.12 ppm (235 μg/m³)"
What are the original air date(s) for episodes with 8.63 million viewers?
CREATE TABLE table_2501754_2 (original_airdate VARCHAR, viewing_figures_millions VARCHAR)
SELECT original_airdate FROM table_2501754_2 WHERE viewing_figures_millions = "8.63"
How many different results came out of the round in which #98 All American Racers became the GTU winning team?
CREATE TABLE table_13643320_2 (results VARCHAR, gtu_winning_team VARCHAR)
SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = "#98 All American Racers"
Name the region with catalog of 576 097-2
CREATE TABLE table_name_47 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_47 WHERE catalog = "576 097-2"
How many players had 12 wickets?
CREATE TABLE table_27922491_8 (player VARCHAR, wickets VARCHAR)
SELECT COUNT(player) FROM table_27922491_8 WHERE wickets = 12
What GWR is associated with 4?
CREATE TABLE table_name_56 (gwr_nos VARCHAR, quantity VARCHAR)
SELECT gwr_nos FROM table_name_56 WHERE quantity = 4
What year had Third-Person Shooter?
CREATE TABLE table_name_16 (year INTEGER, genre VARCHAR)
SELECT AVG(year) FROM table_name_16 WHERE genre = "third-person shooter"
What was the score for the game on December 20?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE date = "december 20"
When did he play with peter nyborg?
CREATE TABLE table_name_76 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_76 WHERE partner = "peter nyborg"
What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?
CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR)
SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%"
Which tournament has a Score of 6-4, 6-4?
CREATE TABLE table_name_30 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_30 WHERE score = "6-4, 6-4"
What category was Scream nominated for at the International Horror Guild?
CREATE TABLE table_name_52 (category VARCHAR, work VARCHAR, award VARCHAR)
SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild"
what position is number 22?
CREATE TABLE table_25429986_1 (position VARCHAR, number VARCHAR)
SELECT position FROM table_25429986_1 WHERE number = 22
Who led in assists on January 17, and with how many?
CREATE TABLE table_27712702_9 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_27712702_9 WHERE date = "January 17"
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09"
What is the most recent year that had a time of 1:36.69?
CREATE TABLE table_name_82 (year INTEGER, time VARCHAR)
SELECT MAX(year) FROM table_name_82 WHERE time = "1:36.69"
What is the total number of rounds of the player from lehigh college with an overall less than 152?
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_39 WHERE college = "lehigh" AND overall < 152
What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?
CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta"
What lane did Bronte Barratt, who had a rank larger than 4, swim in?
CREATE TABLE table_name_79 (lane INTEGER, name VARCHAR, rank VARCHAR)
SELECT AVG(lane) FROM table_name_79 WHERE name = "bronte barratt" AND rank > 4
Name the total number of total when round 1 +2A points of 19.620
CREATE TABLE table_name_48 (total VARCHAR, round_1_ VARCHAR, _2a_points VARCHAR)
SELECT COUNT(total) FROM table_name_48 WHERE round_1_ + _2a_points = "19.620"
What was the H/A/N for the game that ended in a score of 108-102?
CREATE TABLE table_name_12 (h_a_n VARCHAR, score VARCHAR)
SELECT h_a_n FROM table_name_12 WHERE score = "108-102"
Which 2nd Party has a Election of 1857?
CREATE TABLE table_name_14 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857"
What is the fleet number when the length (ft) is 30?
CREATE TABLE table_19643196_1 (fleet__number VARCHAR, length__ft_ VARCHAR)
SELECT fleet__number FROM table_19643196_1 WHERE length__ft_ = 30
What is the name of the 9th ranked common?
CREATE TABLE table_1449176_1 (common_of VARCHAR, rank VARCHAR)
SELECT common_of FROM table_1449176_1 WHERE rank = "9th"
What are the districts represented by the Democratic Party and a Committee in Economic Matters?
CREATE TABLE table_12679326_1 (district VARCHAR, committee VARCHAR, party VARCHAR)
SELECT district FROM table_12679326_1 WHERE committee = "Economic Matters" AND party = "Democratic"
Name the total number of races for 15th position
CREATE TABLE table_24466191_1 (races VARCHAR, position VARCHAR)
SELECT COUNT(races) FROM table_24466191_1 WHERE position = "15th"
Find the name of customers who do not have an saving account.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'
What are the document ids for the budget type code 'SF'?
CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'
List the branding for krca-tv.
CREATE TABLE table_2523809_1 (branding VARCHAR, callsign VARCHAR)
SELECT branding FROM table_2523809_1 WHERE callsign = "KRCA-TV"
What is the position of Allen Gamboa?
CREATE TABLE table_name_50 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_50 WHERE name = "allen gamboa"
Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea?
CREATE TABLE table_name_60 (total INTEGER, to_par VARCHAR, country VARCHAR)
SELECT AVG(total) FROM table_name_60 WHERE to_par < 10 AND country = "south korea"
What is the score when there was a Loss of birkbeck (0–3)?
CREATE TABLE table_name_70 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_70 WHERE loss = "birkbeck (0–3)"
On what date was the record 62–84?
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_38 WHERE record = "62–84"
What is Paul Tracy's best time racing on the Forsythe Racing team?
CREATE TABLE table_name_62 (best VARCHAR, team VARCHAR, name VARCHAR)
SELECT best FROM table_name_62 WHERE team = "forsythe racing" AND name = "paul tracy"
Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?
CREATE TABLE table_name_90 (champion VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT champion FROM table_name_90 WHERE runner_up = "jimmy connors" AND year < 1978
What is Tiffani Johnson's maximum steals?
CREATE TABLE table_24912693_4 (steals INTEGER, player VARCHAR)
SELECT MAX(steals) FROM table_24912693_4 WHERE player = "Tiffani Johnson"
Name the females when males are 1 548
CREATE TABLE table_name_60 (females VARCHAR, males VARCHAR)
SELECT females FROM table_name_60 WHERE males = "1 548"
Find the number of scientists involved for each project name.
CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
What is the most recent season with a date of 27 October 1957?
CREATE TABLE table_name_43 (season INTEGER, date VARCHAR)
SELECT MAX(season) FROM table_name_43 WHERE date = "27 october 1957"
What was the population for census ranking 782 of 5,008?
CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR)
SELECT population FROM table_171236_1 WHERE census_ranking = "782 of 5,008"
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?
CREATE TABLE table_name_26 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)
SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009
where title is beginning callanetics , what is the total of format ?
CREATE TABLE table_11222744_2 (format VARCHAR, title VARCHAR)
SELECT COUNT(format) FROM table_11222744_2 WHERE title = "Beginning Callanetics"
Who was the host of the premiere on November 10, 2007?
CREATE TABLE table_name_18 (host VARCHAR, premiere VARCHAR)
SELECT host FROM table_name_18 WHERE premiere = "november 10, 2007"
I want the plaid cymru for 4 may 2011
CREATE TABLE table_name_9 (plaid_cymru VARCHAR, date_s__conducted VARCHAR)
SELECT plaid_cymru FROM table_name_9 WHERE date_s__conducted = "4 may 2011"
Which Nation does e.j. bradley play for?
CREATE TABLE table_name_99 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_99 WHERE player = "e.j. bradley"
What was the score for the game played on May 10 at Alex Box Stadium?
CREATE TABLE table_name_65 (score VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE site_stadium = "alex box stadium" AND date = "may 10"
what is the camera used when the wavelength is 814nm (i-band)?
CREATE TABLE table_2583036_1 (camera VARCHAR, wavelength VARCHAR)
SELECT camera FROM table_2583036_1 WHERE wavelength = "814nm (I-band)"
Name the railway when class is j19
CREATE TABLE table_15608800_2 (railway VARCHAR, class VARCHAR)
SELECT railway FROM table_15608800_2 WHERE class = "J19"
What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?
CREATE TABLE table_name_28 (no_1 VARCHAR, no_2 VARCHAR, no_7 VARCHAR)
SELECT no_1 FROM table_name_28 WHERE no_2 = "emma" AND no_7 = "olivia"
What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573?
CREATE TABLE table_name_94 (vertical_relief__ft_ INTEGER, rank VARCHAR, location VARCHAR)
SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = "va0573"
What year has 59th as a finish position?
CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR)
SELECT year FROM table_name_58 WHERE finish_position = "59th"
What's the gender of the students taught in the school founded in 1894?
CREATE TABLE table_1930857_1 (gender VARCHAR, year_founded VARCHAR)
SELECT gender FROM table_1930857_1 WHERE year_founded = "1894"
What was the result for Steve & Anna when the score was 21 (7, 7, 7)?
CREATE TABLE table_name_80 (result VARCHAR, score VARCHAR, couple VARCHAR)
SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna"
Who has Took Office of march 4, 1875?
CREATE TABLE table_name_67 (name VARCHAR, took_office VARCHAR)
SELECT name FROM table_name_67 WHERE took_office = "march 4, 1875"
How many different pairs of writers wrote the episode with series number 56?
CREATE TABLE table_29584601_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(written_by) FROM table_29584601_1 WHERE no_in_series = 56
How many Placings have Points smaller than 330.84, and a Name of silvo svajger?
CREATE TABLE table_name_1 (placings VARCHAR, points VARCHAR, name VARCHAR)
SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = "silvo svajger"
Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)?
CREATE TABLE table_name_10 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_10 WHERE margin_of_victory = "2 strokes" AND winning_score = −14(68 - 66 - 68 = 202)
What is the sum of the value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0?
CREATE TABLE table_name_26 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 0
What is the title of the film with a production number of 1023?
CREATE TABLE table_name_48 (title VARCHAR, production_number VARCHAR)
SELECT title FROM table_name_48 WHERE production_number = "1023"
what is the team that played in 2006?
CREATE TABLE table_name_70 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_70 WHERE year = 2006