question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Tell me the year for rank more than 35 and out of 167
CREATE TABLE table_name_11 (year VARCHAR, rank VARCHAR, out_of VARCHAR)
SELECT year FROM table_name_11 WHERE rank > 35 AND out_of = 167
What is the 2009 when 2012 is Year-End Championship?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT 2009 FROM table_name_38 WHERE 2012 = "year-end championship"
Name the loss with record of 71-33
CREATE TABLE table_name_4 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_4 WHERE record = "71-33"
Which Partner has a Date of june 18, 1989?
CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_87 WHERE date = "june 18, 1989"
How many figures for 08 A points for the team with 1.1863 average?
CREATE TABLE table_25887826_17 (avg VARCHAR)
SELECT COUNT(08 AS _a_pts) FROM table_25887826_17 WHERE avg = "1.1863"
What is the ICAO for the Yangon International Airport?
CREATE TABLE table_name_52 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_52 WHERE airport = "yangon international airport"
What is the Total for the Player who won in 1922, 1932?
CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR)
SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932"
On what network was the Kentucky game broadcast?
CREATE TABLE table_26842217_16 (broadcast VARCHAR, home_team VARCHAR)
SELECT broadcast FROM table_26842217_16 WHERE home_team = "Kentucky"
Who was the opponent in the 2011 event with less than 113 players?
CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011
Find the name of airports which do not have any flight in and out.
CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR)
SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)
What is the document type code for document type "Paper"?
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)
SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"
What is the total PI GP that a Reg GP has larger than 3?
CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER)
SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3
What's the IS-3 when the KV-85 is 40?
CREATE TABLE table_name_11 (is_3_m1945 VARCHAR, kv_85_m1943 VARCHAR)
SELECT is_3_m1945 FROM table_name_11 WHERE kv_85_m1943 = "40"
What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?
CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0
What is the average laps that had a time/retired of +5 laps?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
What is the Java EE compatibility of the 5.2.4 edition?
CREATE TABLE table_name_97 (java_ee_compatibility VARCHAR, edition VARCHAR)
SELECT java_ee_compatibility FROM table_name_97 WHERE edition = "5.2.4"
In what county did McCain get 57.8%?
CREATE TABLE table_20799905_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT county FROM table_20799905_1 WHERE mccain_percentage = "57.8%"
What engine had a JBW chassis in 1960?
CREATE TABLE table_name_49 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT engine FROM table_name_49 WHERE chassis = "jbw" AND year = 1960
What was Shaun Murphy's outcome in the Premier League Snooker championship held before 2010?
CREATE TABLE table_name_1 (outcome VARCHAR, championship VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_1 WHERE championship = "premier league snooker" AND year < 2010
what's the electorate where election date is 16 cannot handle non-empty timestamp argument!
CREATE TABLE table_1193568_1 (electorate VARCHAR, election_date VARCHAR)
SELECT electorate FROM table_1193568_1 WHERE election_date = "16 Cannot handle non-empty timestamp argument!"
How many items appear in the area column when Glasvaunta is the townland?
CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, townland VARCHAR)
SELECT COUNT(area__acres__) FROM table_30120556_1 WHERE townland = "Glasvaunta"
Who was the MVP the season Scaligera Verona were Champions?
CREATE TABLE table_19651669_1 (mvp VARCHAR, champion VARCHAR)
SELECT mvp FROM table_19651669_1 WHERE champion = "Scaligera Verona"
Who is the friend of Zach with longest year relationship?
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER)
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
Which tournament has a value of 2R in 2008?
CREATE TABLE table_name_54 (tournament VARCHAR)
SELECT tournament FROM table_name_54 WHERE 2008 = "2r"
What communes have enrolled values of 174946?
CREATE TABLE table_2683116_1 (communes VARCHAR, enrolled VARCHAR)
SELECT communes FROM table_2683116_1 WHERE enrolled = 174946
Name the highest game for west (8) high assists
CREATE TABLE table_name_35 (game INTEGER, high_assists VARCHAR)
SELECT MAX(game) FROM table_name_35 WHERE high_assists = "west (8)"
What country is Craig Parry from?
CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_59 WHERE player = "craig parry"
What was the lowest re-elected result for Sylvester C. Smith?
CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_47 WHERE result = "re-elected" AND incumbent = "sylvester c. smith"
What are the maximum and minimum settlement amount on record?
CREATE TABLE settlements (settlement_amount INTEGER)
SELECT MAX(settlement_amount), MIN(settlement_amount) FROM settlements
How many were in district virginia 6?
CREATE TABLE table_2668405_17 (candidates VARCHAR, district VARCHAR)
SELECT COUNT(candidates) FROM table_2668405_17 WHERE district = "Virginia 6"
Which School/ Club Team acquired Jondan Salvador via trade?
CREATE TABLE table_name_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR)
SELECT school_club_team FROM table_name_8 WHERE acquisition_via = "trade" AND name = "jondan salvador"
Tell me the result for primetime emmy awards
CREATE TABLE table_name_94 (result VARCHAR, association VARCHAR)
SELECT result FROM table_name_94 WHERE association = "primetime emmy awards"
How many people attended games at alberto picco stadium?
CREATE TABLE table_name_97 (capacity VARCHAR, stadium VARCHAR)
SELECT COUNT(capacity) FROM table_name_97 WHERE stadium = "alberto picco"
Tell me the pitcher on september 6, 2006
CREATE TABLE table_name_8 (pitcher VARCHAR, date VARCHAR)
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 2006"
Name the number of candidates for # of seats won being 43
CREATE TABLE table_19283982_4 (_number_of_candidates VARCHAR, _number_of_seats_won VARCHAR)
SELECT _number_of_candidates FROM table_19283982_4 WHERE _number_of_seats_won = 43
Name the head of household that has married filing separately of $104,426–$186,475
CREATE TABLE table_name_89 (head_of_household VARCHAR, married_filing_separately VARCHAR)
SELECT head_of_household FROM table_name_89 WHERE married_filing_separately = "$104,426–$186,475"
What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?
CREATE TABLE table_name_2 (title VARCHAR, season VARCHAR, first_broadcast VARCHAR)
SELECT title FROM table_name_2 WHERE season < 1.8 AND first_broadcast = "march 6, 1981"
What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?
CREATE TABLE table_name_20 (channel_4_weekly_rank_a INTEGER, viewers__millions_ VARCHAR, airdate VARCHAR)
SELECT AVG(channel_4_weekly_rank_a) FROM table_name_20 WHERE viewers__millions_ < 2.19 AND airdate = "december 7, 2007"
Show the most common nationality of pilots.
CREATE TABLE pilot (Nationality VARCHAR)
SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Game larger than 4, and a Time of 2:26 resulted in what score?
CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, time VARCHAR)
SELECT score FROM table_name_15 WHERE game > 4 AND time = "2:26"
Which nation has 0 gold, 0 silver and 2 total?
CREATE TABLE table_name_53 (nation VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT nation FROM table_name_53 WHERE gold = 0 AND silver = 0 AND total = 2
Which Prominence (m) has a Rank of 10, and a Col (m) smaller than 50?
CREATE TABLE table_name_41 (prominence__m_ INTEGER, rank VARCHAR, col__m_ VARCHAR)
SELECT MIN(prominence__m_) FROM table_name_41 WHERE rank = 10 AND col__m_ < 50
Which date featured the Boston Patriots as the opponent?
CREATE TABLE table_name_96 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_96 WHERE opponent = "boston patriots"
Which Opponents has a Score of 6–3, 6–4, 6–1?
CREATE TABLE table_name_60 (opponents VARCHAR, score VARCHAR)
SELECT opponents FROM table_name_60 WHERE score = "6–3, 6–4, 6–1"
Who was the home team for the match at Stadion pod Vrmcem?
CREATE TABLE table_name_77 (home VARCHAR, venue VARCHAR)
SELECT home FROM table_name_77 WHERE venue = "stadion pod vrmcem"
Name the winner for date of nov 5, 1987
CREATE TABLE table_1594772_2 (winner VARCHAR, match_date VARCHAR)
SELECT winner FROM table_1594772_2 WHERE match_date = "Nov 5, 1987"
Which golfer had a score of 68-70-68-66=272?
CREATE TABLE table_name_3 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_3 WHERE score = 68 - 70 - 68 - 66 = 272
Name the result with notes of quarter-finals and event of adcc 2001 absolute
CREATE TABLE table_name_65 (result VARCHAR, notes VARCHAR, event VARCHAR)
SELECT result FROM table_name_65 WHERE notes = "quarter-finals" AND event = "adcc 2001 absolute"
What title does Overkill have before 1984?
CREATE TABLE table_name_65 (title VARCHAR, artist VARCHAR, year VARCHAR)
SELECT title FROM table_name_65 WHERE artist = "overkill" AND year < 1984
What was the record for Dec 16?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_36 WHERE date = "dec 16"
What is the earliest season where Aisha Jefcoate was the runner-up?
CREATE TABLE table_name_13 (season INTEGER, runner_up VARCHAR)
SELECT MIN(season) FROM table_name_13 WHERE runner_up = "aisha jefcoate"
Which authority has a rocket launch called rehnuma-8?
CREATE TABLE table_11869952_1 (institutional_authority VARCHAR, rocket_launch VARCHAR)
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Rehnuma-8"
What is the maximum start record for player of Jeff Brehaut?
CREATE TABLE table_29504351_2 (starts INTEGER, player VARCHAR)
SELECT MAX(starts) FROM table_29504351_2 WHERE player = "Jeff Brehaut"
What date did the episode with 8.61 million U.S. viewers originally air?
CREATE TABLE table_24648983_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_24648983_1 WHERE us_viewers__million_ = "8.61"
What is the dissolved date of the parliament summoned on 28 February 1467?
CREATE TABLE table_name_53 (dissolved VARCHAR, summoned VARCHAR)
SELECT dissolved FROM table_name_53 WHERE summoned = "28 february 1467"
Which Goberman has a Date of april 28–april 30, 2008?
CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR)
SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 2008"
What is To par, when Player is "Larry Rinker"?
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "larry rinker"
Name the year model for 1.3
CREATE TABLE table_1444201_1 (year_model VARCHAR, model VARCHAR)
SELECT year_model FROM table_1444201_1 WHERE model = "1.3"
how many races were in 2009 with 0 wins?
CREATE TABLE table_10748727_1 (races VARCHAR, season VARCHAR, wins VARCHAR)
SELECT races FROM table_10748727_1 WHERE season = "2009" AND wins = 0
What was the away team for the match that had a time of 18:30?
CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR)
SELECT away_team FROM table_name_45 WHERE time = "18:30"
What year was best costume design the award category?
CREATE TABLE table_name_97 (year VARCHAR, category VARCHAR)
SELECT year FROM table_name_97 WHERE category = "best costume design"
What is the train number when the time is 10:38?
CREATE TABLE table_29202276_2 (train_number INTEGER, time VARCHAR)
SELECT MAX(train_number) FROM table_29202276_2 WHERE time = "10:38"
Which Position has 24 Goals against, and a Played smaller than 30?
CREATE TABLE table_name_97 (position INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT MAX(position) FROM table_name_97 WHERE goals_against = 24 AND played < 30
Which version has a KINKA pre-release of no*?
CREATE TABLE table_name_42 (version VARCHAR, kinka_pre_release VARCHAR)
SELECT version FROM table_name_42 WHERE kinka_pre_release = "no*"
Name the home team score for south melbourne home team
CREATE TABLE table_name_35 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_35 WHERE home_team = "south melbourne"
What are the fewest seats with a -3.7% change and more than 4.7% votes?
CREATE TABLE table_name_28 (seats INTEGER, _percentage_change VARCHAR, _percentage_votes VARCHAR)
SELECT MIN(seats) FROM table_name_28 WHERE _percentage_change = -3.7 AND _percentage_votes > 4.7
How many leading scorers were there in the game against Utah?
CREATE TABLE table_13557843_5 (high_points VARCHAR, team VARCHAR)
SELECT COUNT(high_points) FROM table_13557843_5 WHERE team = "Utah"
What is the Record for Game 17?
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_36 WHERE game = "17"
List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics."
CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation"
Name the results for district new york 24
CREATE TABLE table_1341423_32 (results VARCHAR, district VARCHAR)
SELECT results FROM table_1341423_32 WHERE district = "New York 24"
What is the sum of goals scored for the Al Wahda team with less than 4 drawn and more than 22 plays?
CREATE TABLE table_name_6 (goals_for INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT SUM(goals_for) FROM table_name_6 WHERE drawn < 4 AND team = "al wahda" AND played > 22
What was the earliest week when the New Orleans Saints were the opponents?
CREATE TABLE table_name_31 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_31 WHERE opponent = "new orleans saints"
What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?
CREATE TABLE table_17350255_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_17350255_1 WHERE original_title = "Bābǎi zhuàngshì (八百壯士)"
How many Miss Waters has Canada had?
CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR)
SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada"
What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?
CREATE TABLE table_name_18 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_18 WHERE total = 5 AND bronze < 0
List the nominees that have been nominated more than two musicals.
CREATE TABLE musical (Nominee VARCHAR)
SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2
Which Region has a Format of cd album, and a Label of kemado records, and a Catalog of kem 071?
CREATE TABLE table_name_20 (region VARCHAR, catalog VARCHAR, format VARCHAR, label VARCHAR)
SELECT region FROM table_name_20 WHERE format = "cd album" AND label = "kemado records" AND catalog = "kem 071"
What day was the visitor Cleveland when the record was 34-26?
CREATE TABLE table_name_43 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_43 WHERE visitor = "cleveland" AND record = "34-26"
What is the college for the player that went to ridge community high school and is defensive back?
CREATE TABLE table_name_19 (college VARCHAR, position VARCHAR, school VARCHAR)
SELECT college FROM table_name_19 WHERE position = "defensive back" AND school = "ridge community high school"
When the game is listed as 2, what is the score?
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_81 WHERE game = 2
What prefecture is listed in the map as number 39?
CREATE TABLE table_221398_1 (prefecture VARCHAR, number_in_map VARCHAR)
SELECT prefecture FROM table_221398_1 WHERE number_in_map = "39"
Name the outcome for dunlop world challenge
CREATE TABLE table_name_58 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_58 WHERE tournament = "dunlop world challenge"
Who is the player who played for the Miami Sol and went to school at North Carolina State?
CREATE TABLE table_name_62 (player VARCHAR, new_wnba_team VARCHAR, college_country_team VARCHAR)
SELECT player FROM table_name_62 WHERE new_wnba_team = "miami sol" AND college_country_team = "north carolina state"
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, revenue VARCHAR)
SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC
Which Reason for termination has Appointed by of eisenhower category:articles with hcards?
CREATE TABLE table_name_14 (reason_for_termination VARCHAR, appointed_by VARCHAR)
SELECT reason_for_termination FROM table_name_14 WHERE appointed_by = "eisenhower category:articles with hcards"
What is the highest gold number count where a county had over 9 golds and 10 silvers?
CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_87 WHERE total > 9 AND silver > 10
For any races with a start of 14 what was the lowest finish?
CREATE TABLE table_name_61 (finish INTEGER, start VARCHAR)
SELECT MIN(finish) FROM table_name_61 WHERE start = 14
List the race time for may 11.
CREATE TABLE table_28178756_1 (race_time VARCHAR, date VARCHAR)
SELECT race_time FROM table_28178756_1 WHERE date = "May 11"
What is the home team's score for north melbourne?
CREATE TABLE table_name_57 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE home_team = "north melbourne"
What is the average rec that is greater than 10 and has 40 yards?
CREATE TABLE table_name_2 (rec INTEGER, yards VARCHAR, avg VARCHAR)
SELECT AVG(rec) FROM table_name_2 WHERE yards = 40 AND avg > 10
What is the population (2010 census) if s barangay is 51?
CREATE TABLE table_184334_2 (population__2010_census_ VARCHAR, s_barangay VARCHAR)
SELECT COUNT(population__2010_census_) FROM table_184334_2 WHERE s_barangay = 51
What away team has tottenham hotspur as the home team?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur"
What was the quantity of the fleet information for DWWR 50 and 51?
CREATE TABLE table_name_4 (quantity_made VARCHAR, fleet_numbers VARCHAR)
SELECT quantity_made FROM table_name_4 WHERE fleet_numbers = "dwwr 50 and 51"
What is the attendance for the t7-7 result?
CREATE TABLE table_name_17 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_17 WHERE result = "t7-7"
Can you tell me the Steals that has the Place of 6?
CREATE TABLE table_name_13 (steals VARCHAR, place VARCHAR)
SELECT steals FROM table_name_13 WHERE place = 6
What is Date, when Opponent is "Chicago Stags"?
CREATE TABLE table_name_39 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_39 WHERE opponent = "chicago stags"
If finishes is 10, what is the POS minimum?
CREATE TABLE table_23385853_20 (pos INTEGER, finishes VARCHAR)
SELECT MIN(pos) FROM table_23385853_20 WHERE finishes = 10
Find the first names of faculties of rank Professor in alphabetic order.
CREATE TABLE FACULTY (Fname VARCHAR, Rank VARCHAR)
SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname
What is the total of all to par with player Bob Rosburg?
CREATE TABLE table_name_65 (to_par INTEGER, player VARCHAR)
SELECT SUM(to_par) FROM table_name_65 WHERE player = "bob rosburg"
What is the result for the date of august 23?
CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_83 WHERE date = "august 23"