answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT score_in_the_final FROM table_name_92 WHERE date = 1974
What was the score of the tournament that was held in 1974?
CREATE TABLE table_name_92 (score_in_the_final VARCHAR, date VARCHAR)
SELECT chinese__traditional_ FROM table_1893815_1 WHERE chinese__simplified_ = "美丽人生"
Name the chinese traditional for 美丽人生
CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, chinese__simplified_ VARCHAR)
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"
What is the total best for Bruno junqueira
CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)
SELECT MAX(goals) FROM table_name_37 WHERE player = "robbie findley" AND rank < 10
What is the highest number of goals for robbie findley ranked above 10?
CREATE TABLE table_name_37 (goals INTEGER, player VARCHAR, rank VARCHAR)
SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66
What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?
CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR)
SELECT result FROM table_name_16 WHERE partner = "magdalena maleeva"
What was the result when the partner was magdalena maleeva?
CREATE TABLE table_name_16 (result VARCHAR, partner VARCHAR)
SELECT zx_spectrum FROM table_name_92 WHERE year > 1984 AND genre = "arcade/strategy"
Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?
CREATE TABLE table_name_92 (zx_spectrum VARCHAR, year VARCHAR, genre VARCHAR)
SELECT date FROM table_name_56 WHERE results¹ = "4:0"
On what Date were the Results¹ 4:0?
CREATE TABLE table_name_56 (date VARCHAR, results¹ VARCHAR)
SELECT venue FROM table_name_80 WHERE result = "aus by 229 runs"
Which Venue resulted in AUS by 229 runs?
CREATE TABLE table_name_80 (venue VARCHAR, result VARCHAR)
SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15.250"
What horizontal bar score also has a pommel horse score of 15.250?
CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR)
SELECT MAX(kr_narayanan__votes_) FROM table_22897453_1 WHERE value_of_each_vote = 208
Name the most kr votes for value of each vote for 208
CREATE TABLE table_22897453_1 (kr_narayanan__votes_ INTEGER, value_of_each_vote VARCHAR)
SELECT displacement FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1500 rpm"
What is the displacement for torque of n·m (lb·ft) @1500 rpm?
CREATE TABLE table_21021796_1 (displacement VARCHAR, torque VARCHAR)
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field"
Who is the opponent at Bishop Kearney Field?
CREATE TABLE table_name_19 (opponent VARCHAR, field VARCHAR)
SELECT season FROM table_29697744_1 WHERE position = "5th"
in which year the season was in 5th position
CREATE TABLE table_29697744_1 (season VARCHAR, position VARCHAR)
SELECT date FROM table_name_35 WHERE opponents = "police" AND venue = "selayang municipal council stadium"
Opponents of police, and a Venue of selayang municipal council stadium had what date?
CREATE TABLE table_name_35 (date VARCHAR, opponents VARCHAR, venue VARCHAR)
SELECT policy_type_code, COUNT(*) FROM policies GROUP BY policy_type_code
Find the number of records of each policy type and its type code.
CREATE TABLE policies (policy_type_code VARCHAR)
SELECT points_for FROM table_name_62 WHERE points_against = "272"
What is the value of the item "Points" when the value of the item "Points against" is 272?
CREATE TABLE table_name_62 (points_for VARCHAR, points_against VARCHAR)
SELECT mascot FROM table_name_21 WHERE size < 154 AND county = "49 marion"
What is the mascot for the team smaller than 154 from 49 Marion?
CREATE TABLE table_name_21 (mascot VARCHAR, size VARCHAR, county VARCHAR)
SELECT championship FROM table_name_66 WHERE date = "26 may 1986"
What Championship has a Date of 26 may 1986?
CREATE TABLE table_name_66 (championship VARCHAR, date VARCHAR)
SELECT streak FROM table_name_53 WHERE date = "january 7"
Which Streak has a Date of january 7?
CREATE TABLE table_name_53 (streak VARCHAR, date VARCHAR)
SELECT AVG(cuts_made) FROM table_name_59 WHERE events < 4 AND wins > 0
What is the average number of cuts made for events with under 4 entries and more than 0 wins?
CREATE TABLE table_name_59 (cuts_made INTEGER, events VARCHAR, wins VARCHAR)
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976
How many championships did the team or teams established in 1976 win?
CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR)
SELECT ravg FROM table_name_87 WHERE year = "2003"
What was the Ravg for 2003?
CREATE TABLE table_name_87 (ravg VARCHAR, year VARCHAR)
SELECT venue FROM table_name_9 WHERE figures = "5/29"
What is Venue, when Figures is 5/29?
CREATE TABLE table_name_9 (venue VARCHAR, figures VARCHAR)
SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%"
What is short-term capital gain rate with long-term gain on collectibles at 15%?
CREATE TABLE table_name_29 (short_term_capital_gain_rate VARCHAR, long_term_gain_on_collectibles VARCHAR)
SELECT club FROM table_13741576_6 WHERE points_against = "404"
What club had 404 points against?
CREATE TABLE table_13741576_6 (club VARCHAR, points_against VARCHAR)
SELECT fixtures_sec FROM table_name_12 WHERE season = "2009–2010"
Name the Fixtures Sec which has a Season of 2009–2010
CREATE TABLE table_name_12 (fixtures_sec VARCHAR, season VARCHAR)
SELECT MIN(win) FROM table_14288212_1 WHERE played = 5
For teams that played 5 games, what was the smallest number of wins?
CREATE TABLE table_14288212_1 (win INTEGER, played VARCHAR)
SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Find the name of all the cities and states.
CREATE TABLE addresses (town_city VARCHAR, state_province_county VARCHAR)
SELECT round FROM table_name_27 WHERE college = "minnesota"
What round did the College of Minnesota pick?
CREATE TABLE table_name_27 (round VARCHAR, college VARCHAR)
SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve"
What is the highest number of titles won by the Järve club before 2013?
CREATE TABLE table_name_9 (titles INTEGER, current_run_since VARCHAR, club VARCHAR)
SELECT MIN(average) FROM table_name_26 WHERE team = "beijing guo'an" AND games > 240
What is the smallest average for Beijing Guo'an when they played more than 240 games?
CREATE TABLE table_name_26 (average INTEGER, team VARCHAR, games VARCHAR)
SELECT competition FROM table_name_49 WHERE score = "1-5"
What is the name of the competition with a score of 1-5?
CREATE TABLE table_name_49 (competition VARCHAR, score VARCHAR)
SELECT result FROM table_name_35 WHERE year > 2002
What result has a year after 2002?
CREATE TABLE table_name_35 (result VARCHAR, year INTEGER)
SELECT MIN(pupil_teacher_ratio) FROM table_name_13 WHERE city = "saratoga" AND students < 1213
What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?
CREATE TABLE table_name_13 (pupil_teacher_ratio INTEGER, city VARCHAR, students VARCHAR)
SELECT circuit FROM table_name_60 WHERE date = "16 april"
what is the circuit when the date is 16 april?
CREATE TABLE table_name_60 (circuit VARCHAR, date VARCHAR)
SELECT ihsaa_class FROM table_name_56 WHERE location = "monon"
What is the IHSAA class in monon?
CREATE TABLE table_name_56 (ihsaa_class VARCHAR, location VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
Who was the away team at Brunswick Street Oval?
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005
Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.
CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR)
SELECT fourth FROM table_name_98 WHERE second = "anders martinson usa"
Who is fourth when Anders Martinson USA is second?
CREATE TABLE table_name_98 (fourth VARCHAR, second VARCHAR)
SELECT SUM(silver) FROM table_name_25 WHERE rank = "8" AND total > 3
What is the sum of silvers for countries in rank 8 with totals over 3?
CREATE TABLE table_name_25 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT nationality² FROM table_24565004_20 WHERE position = "Defender" AND appearances¹ = 201
Name the nationality for defender 201
CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)
SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = "FedExForum 11,283"
Name the total number of high assists for fedexforum 11,283
CREATE TABLE table_27756474_6 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT programming FROM table_name_98 WHERE channel = 26.5
Which Programming is on Channel 26.5?
CREATE TABLE table_name_98 (programming VARCHAR, channel VARCHAR)
SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207
In what place did the golfer that scored 68-70-69=207 finish?
CREATE TABLE table_name_59 (place VARCHAR, score VARCHAR)
SELECT country_of_origin FROM table_29474407_11 WHERE name__designation = "Flieger-Doppelpistole 1919"
What country made the Flieger-Doppelpistole 1919?
CREATE TABLE table_29474407_11 (country_of_origin VARCHAR, name__designation VARCHAR)
SELECT country FROM table_name_40 WHERE score = 72 - 65 = 137
What is Country, when Score is "72-65=137"?
CREATE TABLE table_name_40 (country VARCHAR, score VARCHAR)
SELECT surface FROM table_name_13 WHERE opponents = "louise field nathalie herreman"
what is the surface when the opponents are louise field nathalie herreman?
CREATE TABLE table_name_13 (surface VARCHAR, opponents VARCHAR)
SELECT location FROM table_name_30 WHERE competition = "gold medal match"
What is the location of the gold medal match?
CREATE TABLE table_name_30 (location VARCHAR, competition VARCHAR)
SELECT singapore_league_cup FROM table_name_50 WHERE rank > 4 AND s_league = "2 (12)"
What is the Singapore League Cup when rank is more than 4, and the S-League is 2 (12)?
CREATE TABLE table_name_50 (singapore_league_cup VARCHAR, rank VARCHAR, s_league VARCHAR)
SELECT MAX(drawn) FROM table_name_92 WHERE against = 54 AND played > 6
What is the highest draws when more than 6 are played and the points against are 54?
CREATE TABLE table_name_92 (drawn INTEGER, against VARCHAR, played VARCHAR)
SELECT number FROM table_name_3 WHERE inning = "8th" AND length = "410'"
What number home run was in the 8th inning and went 410'?
CREATE TABLE table_name_3 (number VARCHAR, inning VARCHAR, length VARCHAR)
SELECT name FROM table_name_13 WHERE population = "810"
What name has a population of 810?
CREATE TABLE table_name_13 (name VARCHAR, population VARCHAR)
SELECT roger_françois FROM table_name_54 WHERE world_record = "total"
What is the total amount of world records for Roger Francois?
CREATE TABLE table_name_54 (roger_françois VARCHAR, world_record VARCHAR)
SELECT opponent FROM table_name_47 WHERE venue = "launceston cricket club ground, launceston" AND season = "1853/54"
Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?
CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR)
SELECT wounded FROM table_11793221_4 WHERE complement = "46 off 656 men"
What were the wounded for complement of 46 off 656 men?
CREATE TABLE table_11793221_4 (wounded VARCHAR, complement VARCHAR)
SELECT winning_driver FROM table_name_55 WHERE winning_team = "engstler motorsport engstler motorsport" AND date = "22 july"
Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July?
CREATE TABLE table_name_55 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)
SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary"
Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?
CREATE TABLE table_name_49 (communist_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT COUNT(intergiro_classification) FROM table_12261714_2 WHERE stage = "20"
How many leaders are there in the intergiro classification in stage 20?
CREATE TABLE table_12261714_2 (intergiro_classification VARCHAR, stage VARCHAR)
SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC
Find the name of players whose card is yes in the descending order of training hours.
CREATE TABLE Player (pName VARCHAR, yCard VARCHAR, HS VARCHAR)
SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'
Find the total revenue created by the companies whose headquarter is located at Austin.
CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (14)"
Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?
CREATE TABLE table_name_55 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT tournament FROM table_name_61 WHERE 1990 = "olympic games"
What is the Tournament when the 1990 is Olympic Games?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT record FROM table_17848578_1 WHERE game_site = "San Diego Stadium"
What is the record when the game was at the San Diego Stadium?
CREATE TABLE table_17848578_1 (record VARCHAR, game_site VARCHAR)
SELECT location FROM table_13759592_2 WHERE institution = "Interlake"
Where is Interlake located?
CREATE TABLE table_13759592_2 (location VARCHAR, institution VARCHAR)
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'
Find the name of dorms which have TV Lounge but no Study Room as amenity.
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
SELECT COUNT(DISTINCT services) FROM station
How many different services are provided by all stations?
CREATE TABLE station (services VARCHAR)
SELECT original_air_date FROM table_22835602_1 WHERE production_code = "1ARK79"
What is the original air date for production code 1ark79?
CREATE TABLE table_22835602_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128
What is the highest average that has 6 dances and a total of over 128?
CREATE TABLE table_name_15 (average INTEGER, number_of_dances VARCHAR, total VARCHAR)
SELECT COUNT(station_ownership) FROM table_1404984_1 WHERE network = "Bounce TV"
How many stations own Bounce TV?
CREATE TABLE table_1404984_1 (station_ownership VARCHAR, network VARCHAR)
SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = "23 november 2008"
What was the manner of depature of the manager with a date of appointment on 23 November 2008?
CREATE TABLE table_name_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?
CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR)
SELECT july FROM table_15945862_1 WHERE march = "0.41"
March 0.41 in July?
CREATE TABLE table_15945862_1 (july VARCHAR, march VARCHAR)
SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961
Who were all the candidates when the first elected year was 1961?
CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR)
SELECT SUM(rank_by_average) FROM table_name_29 WHERE competition_finish > 8 AND average > 30
Name the sum of rank by average with competition finish more than 8 and average larger than 30
CREATE TABLE table_name_29 (rank_by_average INTEGER, competition_finish VARCHAR, average VARCHAR)
SELECT MAX(games) FROM table_name_9 WHERE lost = 1 AND points < 18
What is the highest number of games with 1 loss and points less than 18?
CREATE TABLE table_name_9 (games INTEGER, lost VARCHAR, points VARCHAR)
SELECT COUNT(nhl_team) FROM table_1965650_7 WHERE player = "Denis Andersen"
How many teams have a player named Denis Andersen?
CREATE TABLE table_1965650_7 (nhl_team VARCHAR, player VARCHAR)
SELECT metric_value FROM table_name_19 WHERE russian = "че́тверть"
What is the Metric value of Russian че́тверть?
CREATE TABLE table_name_19 (metric_value VARCHAR, russian VARCHAR)
SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138
What was the to par score of the golfer that had a score of 68-70=138?
CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR)
SELECT COUNT(high_assists) FROM table_19778010_5 WHERE high_rebounds = "Sales (10)"
How many different players did the high assists in games where the high rebounds were done by Sales (10)?
CREATE TABLE table_19778010_5 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT notes FROM table_name_89 WHERE venue = "barcelona, spain"
Which Notes has a Venue of barcelona, spain?
CREATE TABLE table_name_89 (notes VARCHAR, venue VARCHAR)
SELECT rank FROM table_name_42 WHERE bronze = 1 AND nation = "czechoslovakia"
What was the rank for czechoslovakia with 1 bronze?
CREATE TABLE table_name_42 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT original_name FROM table_name_42 WHERE singer_s_ = "brad kavanagh"
What was the original name for the song performed by Brad Kavanagh?
CREATE TABLE table_name_42 (original_name VARCHAR, singer_s_ VARCHAR)
SELECT player FROM table_2886617_8 WHERE nhl_team = "Buffalo Sabres"
What player was picked for Buffalo Sabres?
CREATE TABLE table_2886617_8 (player VARCHAR, nhl_team VARCHAR)
SELECT tied FROM table_name_19 WHERE losses = "8" AND win__percentage = "50%"
Who tied with 8 losses and 50% wins?
CREATE TABLE table_name_19 (tied VARCHAR, losses VARCHAR, win__percentage VARCHAR)
SELECT Grape, Appelation, Name FROM WINE WHERE Score > 93 ORDER BY Name
List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.
CREATE TABLE WINE (Grape VARCHAR, Appelation VARCHAR, Name VARCHAR, Score INTEGER)
SELECT loss FROM table_name_71 WHERE record = "28-22"
What team did they lose to when they had a 28-22 record?
CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR)
SELECT years FROM table_name_29 WHERE representative = "walter evans"
When was Walter Evans a representative?
CREATE TABLE table_name_29 (years VARCHAR, representative VARCHAR)
SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = "Fluminense"
What was team number 2's Fluminense's 2nd leg?
CREATE TABLE table_24426072_1 (team__number2 VARCHAR)
SELECT 5 AS ’utr_splice FROM table_name_70 WHERE coding = "1a 2" AND variant_id = "abd'1a 2"
Which 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2?
CREATE TABLE table_name_70 (coding VARCHAR, variant_id VARCHAR)
SELECT record FROM table_16295365_1 WHERE school = "UMBC"
What was the overall record of UMBC?
CREATE TABLE table_16295365_1 (record VARCHAR, school VARCHAR)
SELECT AVG(crowd) FROM table_name_97 WHERE home_team = "north melbourne"
What is the average crowd for the home team of North Melbourne?
CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR)
SELECT home_team AS score FROM table_name_13 WHERE away_team = "richmond"
What was the home team's score when they played Richmond?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT region FROM table_name_63 WHERE catalog = "885 380-1"
In what Region is Catalog number 885 380-1?
CREATE TABLE table_name_63 (region VARCHAR, catalog VARCHAR)
SELECT time___gmt__ FROM table_name_9 WHERE serial = "12a"
What is the time (GMT) for the 12A Serial?
CREATE TABLE table_name_9 (time___gmt__ VARCHAR, serial VARCHAR)
SELECT result FROM table_name_37 WHERE round > 17
Which Result has a Round larger than 17?
CREATE TABLE table_name_37 (result VARCHAR, round INTEGER)
SELECT state FROM table_name_10 WHERE venue = "harry a. gampel pavilion"
Which state includes the Harry A. Gampel Pavilion venue?
CREATE TABLE table_name_10 (state VARCHAR, venue VARCHAR)
SELECT event FROM table_name_94 WHERE position = "4th"
What is Event, when Position is 4th?
CREATE TABLE table_name_94 (event VARCHAR, position VARCHAR)
SELECT original_name FROM table_1104312_5 WHERE population_at_2010_census = 210450
What are the original names of the districts where the population in the 2010 census was 210450?
CREATE TABLE table_1104312_5 (original_name VARCHAR, population_at_2010_census VARCHAR)
SELECT country FROM table_name_65 WHERE score = 73 - 74 - 72 - 64 = 283
What country did the player with the score line 73-74-72-64=283 from?
CREATE TABLE table_name_65 (country VARCHAR, score VARCHAR)