answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(pick) FROM table_name_59 WHERE player = "clarence mason"
What is the average pick for clarence mason?
CREATE TABLE table_name_59 (pick INTEGER, player VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_95 WHERE score = 70 - 66 - 73 - 69 = 278
Which Money ($) has a Score of 70-66-73-69=278?
CREATE TABLE table_name_95 (money___ INTEGER, score VARCHAR)
SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?
CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT singular FROM table_name_19 WHERE plural = "xweer(a)du"
What is the singular if the plural is xweer(a)du?
CREATE TABLE table_name_19 (singular VARCHAR, plural VARCHAR)
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell"
In 1955 which party did Thomas Mitchell belong to?
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)
SELECT location___state FROM table_name_92 WHERE date = "16 jun"
What is the location/state of the race on 16 Jun?
CREATE TABLE table_name_92 (location___state VARCHAR, date VARCHAR)
SELECT jobbik FROM table_name_41 WHERE fidesz = "61%" AND others = "2%"
What is the Jobbik percentage with a Fidesz of 61% and others of 2%?
CREATE TABLE table_name_41 (jobbik VARCHAR, fidesz VARCHAR, others VARCHAR)
SELECT state FROM table_name_36 WHERE association_agreement = "2010-05-01 (saa)"
Which state has a 2010-05-01 (saa) association agreement?
CREATE TABLE table_name_36 (state VARCHAR, association_agreement VARCHAR)
SELECT location FROM table_24935743_2 WHERE school = "Jeromesville"
What school is in Jeromesville?
CREATE TABLE table_24935743_2 (location VARCHAR, school VARCHAR)
SELECT MIN(shutouts) FROM table_29743928_4
What is the lowest overall amount of shutouts?
CREATE TABLE table_29743928_4 (shutouts INTEGER)
SELECT MAX(silver) FROM table_name_70 WHERE gold = 4 AND total > 25
What is listed as the highest Silver that also has a Gold of 4 and a Total that's larger than 25?
CREATE TABLE table_name_70 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT attendance FROM table_name_94 WHERE week = 3
What was the attendance for the game in Week 3?
CREATE TABLE table_name_94 (attendance VARCHAR, week VARCHAR)
SELECT SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 0
What is Craig Whelihan's average when his yards are smaller than 0?
CREATE TABLE table_name_76 (avg INTEGER, player VARCHAR, yards VARCHAR)
SELECT crew_chief FROM table_2187178_1 WHERE driver_s_ = "Ricky Craven"
Name the crew chief for ricky craven
CREATE TABLE table_2187178_1 (crew_chief VARCHAR, driver_s_ VARCHAR)
SELECT COUNT(crowd) FROM table_name_77 WHERE venue = "glenferrie oval"
What is the crowd total for glenferrie oval?
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)
SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = "english" AND isofficial = "t" UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = "dutch" AND isofficial = "t"
What are the countries where either English or Dutch is the official language ?
CREATE TABLE countrylanguage (countrycode VARCHAR, language VARCHAR); CREATE TABLE country (name VARCHAR, code VARCHAR)
SELECT venue FROM table_name_69 WHERE away_team = "hawthorn"
What was the venue when the away team was Hawthorn?
CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR)
SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf"
What was the event for round 1 against Lance Wipf?
CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT party FROM table_1342249_5 WHERE district = "Arkansas 5"
What party did the incumbent from the Arkansas 5 district belong to?
CREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR)
SELECT hebrew FROM table_26919_6 WHERE proto_semitic = "*tišʻ-"
Name the hebrew for *tišʻ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, proto_semitic VARCHAR)
SELECT venue FROM table_name_31 WHERE status = "tour match" AND against > 0 AND opposing_team = "eastern province"
What venue was the tour match against eastern province played at with more than 0 against?
CREATE TABLE table_name_31 (venue VARCHAR, opposing_team VARCHAR, status VARCHAR, against VARCHAR)
SELECT 2004 FROM table_name_28 WHERE 2009 = "a"
What is 2004, when 2009 is "A"?
CREATE TABLE table_name_28 (Id VARCHAR)
SELECT partner FROM table_name_14 WHERE surface = "hard"
Who played on a hard surface?
CREATE TABLE table_name_14 (partner VARCHAR, surface VARCHAR)
SELECT poles FROM table_name_2 WHERE team = "team jva"
What Poles do Team jva have?
CREATE TABLE table_name_2 (poles VARCHAR, team VARCHAR)
SELECT MIN(against) FROM table_name_99 WHERE byes > 0
Which against has the lowest when byes are larger than 0?
CREATE TABLE table_name_99 (against INTEGER, byes INTEGER)
SELECT result FROM table_name_16 WHERE time = "7:00 pm"
What was the final score for the game played at 7:00 pm?
CREATE TABLE table_name_16 (result VARCHAR, time VARCHAR)
SELECT frequency FROM table_name_23 WHERE location = "dagupan"
Which frequency is located in Dagupan?
CREATE TABLE table_name_23 (frequency VARCHAR, location VARCHAR)
SELECT label FROM table_name_87 WHERE catalog = "lpm-2899"
What is the Label of the release with Catalog number LPM-2899?
CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR)
SELECT no_in_season FROM table_10953197_4 WHERE production_code = "2395118"
What's the number of the episode with production code 2395118?
CREATE TABLE table_10953197_4 (no_in_season VARCHAR, production_code VARCHAR)
SELECT venue FROM table_name_76 WHERE closed = "1990s"
Which venues closed in the 1990s?
CREATE TABLE table_name_76 (venue VARCHAR, closed VARCHAR)
SELECT position FROM table_name_83 WHERE round = "3"
In round 3 what was the position?
CREATE TABLE table_name_83 (position VARCHAR, round VARCHAR)
SELECT rider FROM table_name_46 WHERE time = "1:01.50.57"
What Rider had a Time of 1:01.50.57?
CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR)
SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ01"
Who directed the episode with production code 4akj01?
CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1
Find the name, type, and flag of the ship that is built in the most recent year.
CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR)
SELECT series_4 FROM table_name_27 WHERE seat = 1
What shows for series 4 when the seat shows 1?
CREATE TABLE table_name_27 (series_4 VARCHAR, seat VARCHAR)
SELECT location FROM table_name_34 WHERE method = "tko"
Where was the method of tko?
CREATE TABLE table_name_34 (location VARCHAR, method VARCHAR)
SELECT release_date FROM table_name_29 WHERE production_num = "9105"
When was Production Number 9105 released?
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
SELECT ship FROM table_name_28 WHERE home_port = "oakland" AND nvr_page = "aor-3"
Name the ship for oakland home port and NVR page of aor-3
CREATE TABLE table_name_28 (ship VARCHAR, home_port VARCHAR, nvr_page VARCHAR)
SELECT units_sold_in_the_us FROM table_name_72 WHERE units_sold_in_japan = "346,000"
How many units were sold in the US of the game that sold 346,000 units in japan?
CREATE TABLE table_name_72 (units_sold_in_the_us VARCHAR, units_sold_in_japan VARCHAR)
SELECT MIN(viewers__m_) FROM table_name_65 WHERE air_date = "january 24, 2008" AND rating > 3.6
What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?
CREATE TABLE table_name_65 (viewers__m_ INTEGER, air_date VARCHAR, rating VARCHAR)
SELECT COUNT(attendance) FROM table_name_68 WHERE venue = "los angeles memorial coliseum"
What is the number in attendance at Los Angeles Memorial Coliseum?
CREATE TABLE table_name_68 (attendance VARCHAR, venue VARCHAR)
SELECT 2002 FROM table_name_37 WHERE 2013 = "2–4"
Which 2002 has a 2013 of 2–4?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE home_team = "fitzroy"
What is Fitzroy's Home team score?
CREATE TABLE table_name_60 (home_team VARCHAR)
SELECT tournament FROM table_name_56 WHERE date = "apr 16, 1967"
What is the Tournament with a Date that is apr 16, 1967?
CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_35 WHERE date = "13 november 2000"
What is the name of the tournament played 13 November 2000?
CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR)
SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-02"
What is Segment B for series episode 12-02?
CREATE TABLE table_15187735_12 (segment_b VARCHAR, series_ep VARCHAR)
SELECT MAX(total) FROM table_name_20 WHERE year_s__won = "1976"
What is the winning total from 1976?
CREATE TABLE table_name_20 (total INTEGER, year_s__won VARCHAR)
SELECT score FROM table_name_21 WHERE country = "united states" AND place = "t6"
What did United States score in the place t6?
CREATE TABLE table_name_21 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT COUNT(writer) FROM table_10470082_8 WHERE _number = 1
Who wrote episode #1 in season 7?
CREATE TABLE table_10470082_8 (writer VARCHAR, _number VARCHAR)
SELECT player FROM table_name_97 WHERE rank = 2011
What player has the rank 2011?
CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR)
SELECT surface FROM table_name_57 WHERE opponent = "fernanda hermenegildo monika kochanova"
Which Surface had an Opponent of fernanda hermenegildo monika kochanova?
CREATE TABLE table_name_57 (surface VARCHAR, opponent VARCHAR)
SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical"
When was the last time a nominee for Best Revival of a Musical was selected?
CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR)
SELECT label FROM table_name_37 WHERE date = "october 21, 1981"
What is the label for October 21, 1981?
CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR)
SELECT team FROM table_13464416_5 WHERE game = 20
Which team played in game 20?
CREATE TABLE table_13464416_5 (team VARCHAR, game VARCHAR)
SELECT MAX(pick) FROM table_name_42 WHERE position = "back" AND round = 28
What is the highest pick of the back player from round 28?
CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT record FROM table_name_26 WHERE event = "strikeforce: barnett vs. cormier"
What was strikeforce: barnett vs. cormier's record?
CREATE TABLE table_name_26 (record VARCHAR, event VARCHAR)
SELECT MAX(crowd) FROM table_name_85 WHERE venue = "arden street oval"
What was the largest crowd at Arden Street Oval?
CREATE TABLE table_name_85 (crowd INTEGER, venue VARCHAR)
SELECT formula FROM table_name_63 WHERE refractive_index_es__5893nm = "1.97"
Which formula has a refractive index 589.3 at 1.97?
CREATE TABLE table_name_63 (formula VARCHAR, refractive_index_es__5893nm VARCHAR)
SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i"
What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?
CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR)
SELECT MIN(silver) FROM table_name_7 WHERE nation = "vietnam"
What is the smallest silver from Vietnam?
CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR)
SELECT COUNT(roll) FROM table_name_31 WHERE authority = "state" AND name = "stanley avenue school" AND decile > 5
Name the total number of roll for state authority and stanley avenue school with decile more than 5
CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT COUNT(DISTINCT label) FROM albums
How many unique labels are there for albums?
CREATE TABLE albums (label VARCHAR)
SELECT AVG(rank) FROM table_name_98 WHERE third = 2 AND winners < 2
Which Rank has a Third of 2, and Winners smaller than 2?
CREATE TABLE table_name_98 (rank INTEGER, third VARCHAR, winners VARCHAR)
SELECT MAX(runs) FROM table_name_45 WHERE matches > 5
What was the highest amount of runs for more than 5 matches?
CREATE TABLE table_name_45 (runs INTEGER, matches INTEGER)
SELECT COUNT(year) FROM table_2333416_2 WHERE position = "38th"
How many seasons did Ken Bouchard finish in 38th place?
CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR)
SELECT team FROM table_name_80 WHERE laps = 65 AND grid < 20 AND driver = "scott pruett"
Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps?
CREATE TABLE table_name_80 (team VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT location_attendance FROM table_name_29 WHERE high_rebounds = "lennox (7)"
Which Location/Attendance has High rebounds of lennox (7)?
CREATE TABLE table_name_29 (location_attendance VARCHAR, high_rebounds VARCHAR)
SELECT document_name FROM documents WHERE NOT document_code IN (SELECT document_code FROM document_sections)
Find all the name of documents without any sections.
CREATE TABLE document_sections (document_name VARCHAR, document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
SELECT member FROM table_name_50 WHERE electorate = "kennedy"
Which member has an Electorate of kennedy?
CREATE TABLE table_name_50 (member VARCHAR, electorate VARCHAR)
SELECT location FROM table_name_36 WHERE event = "jiu-jitsu vs martial arts"
What is the Location for the jiu-jitsu vs martial arts?
CREATE TABLE table_name_36 (location VARCHAR, event VARCHAR)
SELECT COUNT(constancy) FROM table_11609814_1 WHERE purity = "falling"
what is the total number of constancy where purity is falling
CREATE TABLE table_11609814_1 (constancy VARCHAR, purity VARCHAR)
SELECT county FROM table_name_90 WHERE ihsaa_class = "aa" AND location = "ferdinand"
What is the county with an AA IHSAA class in ferdinand?
CREATE TABLE table_name_90 (county VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT score FROM table_name_44 WHERE home_team = "york city"
The home team york city has what score?
CREATE TABLE table_name_44 (score VARCHAR, home_team VARCHAR)
SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3
What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?
CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)
SELECT record FROM table_name_63 WHERE date = "september 7"
On September 7 what was the record?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT advisor FROM Student GROUP BY advisor ORDER BY COUNT(*) DESC LIMIT 1
Which advisor has most number of students?
CREATE TABLE Student (advisor VARCHAR)
SELECT record FROM table_name_95 WHERE opponent = "new york jets"
What was the Steeler's record when they played against the new york Jets?
CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR)
SELECT full_name FROM table_name_23 WHERE age¹ = 20 AND occupation² = "student"
What is Full Name, when Age¹ is "20", and when Occupation² is "Student"?
CREATE TABLE table_name_23 (full_name VARCHAR, age¹ VARCHAR, occupation² VARCHAR)
SELECT MAX(laps) FROM table_name_51 WHERE driver = "chris amon"
What is the highest number of laps for chris amon?
CREATE TABLE table_name_51 (laps INTEGER, driver VARCHAR)
SELECT group_b FROM table_name_17 WHERE group_e = "georgia"
What is the group B region with a Group E region of Georgia?
CREATE TABLE table_name_17 (group_b VARCHAR, group_e VARCHAR)
SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12"
What was the highest week with a result of l 16–12?
CREATE TABLE table_name_53 (week INTEGER, result VARCHAR)
SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny"
What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?
CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT MAX(top_5) FROM table_name_47 WHERE wins = 0 AND events > 6
Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?
CREATE TABLE table_name_47 (top_5 INTEGER, wins VARCHAR, events VARCHAR)
SELECT podiums FROM table_10753917_1 WHERE team = "Alfa Romeo"
Which podiums did the alfa romeo team have?
CREATE TABLE table_10753917_1 (podiums VARCHAR, team VARCHAR)
SELECT COUNT(compulsory) FROM table_name_42 WHERE voluntary = 38.7 AND total > 69.2
What's the total compulsory when the total is more than 69.2 and the voluntary is 38.7?
CREATE TABLE table_name_42 (compulsory VARCHAR, voluntary VARCHAR, total VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_80 WHERE fa_cup_apps = "0" AND total_goals < 1 AND position = "df"
what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?
CREATE TABLE table_name_80 (fa_cup_goals INTEGER, position VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT theme FROM table_15796100_1 WHERE original_artist = "Dolly Parton"
What theme name has the original artist of Dolly Parton?
CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR)
SELECT COUNT(winner) FROM table_20867295_2 WHERE third_place = "Feyenoord" AND runner_up = "AZ"
When az is the runner up nad feyenoord came in third place how many overall winners are there?
CREATE TABLE table_20867295_2 (winner VARCHAR, third_place VARCHAR, runner_up VARCHAR)
SELECT record FROM table_27723228_12 WHERE score = "W 101–93 (OT)"
Name the record for w 101–93 (ot)
CREATE TABLE table_27723228_12 (record VARCHAR, score VARCHAR)
SELECT AVG(region) FROM table_name_43 WHERE area__km_2__ = 451.79 AND population < 496 OFFSET 257
What is the average region that has an Area (km 2 ) of 451.79, and a Population under 496,257?
CREATE TABLE table_name_43 (region INTEGER, area__km_2__ VARCHAR, population VARCHAR)
SELECT MAX(attendance) FROM table_name_63 WHERE game_site = "tulane stadium"
What was the highest attendance at a game that was played in tulane stadium?
CREATE TABLE table_name_63 (attendance INTEGER, game_site VARCHAR)
SELECT MIN(number) FROM table_name_30 WHERE school_club_team = "misamis institute"
What is the lowest Number, when School/Club Team is Misamis Institute?
CREATE TABLE table_name_30 (number INTEGER, school_club_team VARCHAR)
SELECT model_name FROM table_1147701_5 WHERE engine_code = "D5244 T7"
What is the model of the engine d5244 t7?
CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR)
SELECT COUNT(no_in_series) FROM table_27657925_1 WHERE us_viewers__millions_ = "5.2"
When there are 5.2 million u.s. viewers how many numbers in series are there?
CREATE TABLE table_27657925_1 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
SELECT team_classification FROM table_name_30 WHERE winner = "cyril dessel"
What is the Team Classification if the Winner is Cyril Dessel?
CREATE TABLE table_name_30 (team_classification VARCHAR, winner VARCHAR)
SELECT high_rebounds FROM table_27721131_10 WHERE team = "@ Detroit"
Who was the high rebounds of team @ Detroit?
CREATE TABLE table_27721131_10 (high_rebounds VARCHAR, team VARCHAR)
SELECT name FROM table_name_15 WHERE event = "men's time trial"
What is the Name with an Event that is men's time trial?
CREATE TABLE table_name_15 (name VARCHAR, event VARCHAR)
SELECT _virtual_ FROM table_1979203_1 WHERE callsign = "WNET"
what is the virtual callsign if is wnet
CREATE TABLE table_1979203_1 (_virtual_ VARCHAR, callsign VARCHAR)
SELECT MIN(seasons) FROM table_name_2 WHERE name = "kathy graham"
What is the number of seasons coached by Kathy Graham?
CREATE TABLE table_name_2 (seasons INTEGER, name VARCHAR)
SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1
What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes?
CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR)