answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT team FROM table_name_70 WHERE date = "february 1"
Who was the opposing team for the February 1 game?
CREATE TABLE table_name_70 (team VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_13 WHERE venue = "vfl park"
What team played away at vfl park?
CREATE TABLE table_name_13 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_name_69 WHERE performance = "long jump" AND competition = "world indoor championships" AND position = "5th"
What was the earliest year in which long jump was performed in the world indoor Championships in 5th position?
CREATE TABLE table_name_69 (year INTEGER, position VARCHAR, performance VARCHAR, competition VARCHAR)
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61
What was the score after february 4 in the game 61?
CREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)
SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"
What district did S. William Green belong to?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR)
SELECT celebrity FROM table_name_84 WHERE famous_for = "actor"
What celebrity is famous for being an actor?
CREATE TABLE table_name_84 (celebrity VARCHAR, famous_for VARCHAR)
SELECT artist FROM table_name_29 WHERE mintage > 34 OFFSET 135
What artist has a mintage of greater than 34,135?
CREATE TABLE table_name_29 (artist VARCHAR, mintage INTEGER)
SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college)
Find the states where have the colleges whose enrollments are less than the largest size.
CREATE TABLE college (state VARCHAR, enr INTEGER)
SELECT AVG(games) FROM table_name_61 WHERE lost > 27 AND points < 78 AND goals_against < 300
How many games were lost by more than 27 but not more 78 with goals less than 300?
CREATE TABLE table_name_61 (games INTEGER, goals_against VARCHAR, lost VARCHAR, points VARCHAR)
SELECT method FROM table_name_26 WHERE opponent = "paula mataele"
What is the method against Paula Mataele?
CREATE TABLE table_name_26 (method VARCHAR, opponent VARCHAR)
SELECT launched FROM table_name_17 WHERE spacecraft = "mariner 4"
What launched has mariner 4 as the spacecraft?
CREATE TABLE table_name_17 (launched VARCHAR, spacecraft VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_62 WHERE name = "david beresford" AND fa_cup_goals < 0
What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?
CREATE TABLE table_name_62 (league_cup_goals INTEGER, name VARCHAR, fa_cup_goals VARCHAR)
SELECT home FROM table_name_16 WHERE date = "april 14, 2008"
Who was the home team at the game played on April 14, 2008?
CREATE TABLE table_name_16 (home VARCHAR, date VARCHAR)
SELECT joined FROM table_261931_2 WHERE location = "Lewiston, Maine"
When did the institution located in Lewiston, Maine join the conference?
CREATE TABLE table_261931_2 (joined VARCHAR, location VARCHAR)
SELECT MAX(no_in_season) FROM table_23117208_3 WHERE no_in_series = 20
which is the biggest number of episode in the season, where the number of the episode in series is 20?
CREATE TABLE table_23117208_3 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT printer FROM table_name_79 WHERE date_of_issue = "october 5, 2006"
Which printer issued sheets on October 5, 2006?
CREATE TABLE table_name_79 (printer VARCHAR, date_of_issue VARCHAR)
SELECT date FROM table_name_44 WHERE opponent = "boston yanks"
What date was the opponent the Boston Yanks?
CREATE TABLE table_name_44 (date VARCHAR, opponent VARCHAR)
SELECT MAX(division) FROM table_14723382_1
What is the largest numbered?
CREATE TABLE table_14723382_1 (division INTEGER)
SELECT home FROM table_name_15 WHERE opponent = "brøndby"
Which Home has an Opponent of brøndby?
CREATE TABLE table_name_15 (home VARCHAR, opponent VARCHAR)
SELECT COUNT(year) FROM table_name_11 WHERE silver = "mika miyazato"
What is the total number of years when Mika Miyazato won the silver?
CREATE TABLE table_name_11 (year VARCHAR, silver VARCHAR)
SELECT date FROM table_11964047_9 WHERE visitor = "Phoenix Suns" AND record = "31–30"
what's the date where visitor is phoenix suns and record is 31–30
CREATE TABLE table_11964047_9 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT school_name, LOCATION, mascot FROM school
List the name, location, mascot for all schools.
CREATE TABLE school (school_name VARCHAR, LOCATION VARCHAR, mascot VARCHAR)
SELECT aggregate FROM table_name_56 WHERE opponents = "bayer leverkusen"
What is the Aggregate of Bayer Leverkusen opponents?
CREATE TABLE table_name_56 (aggregate VARCHAR, opponents VARCHAR)
SELECT winner FROM table_1646960_3 WHERE debut_album = "Mike"
How many winners had a debut album titled "mike"?
CREATE TABLE table_1646960_3 (winner VARCHAR, debut_album VARCHAR)
SELECT wimbledon FROM table_2092557_12 WHERE player = "Martina Navratilova"
What year did Martina Navratilova win Wimbledon?
CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR)
SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = "1 stroke"
How much is the purse ( $ ) when the margin of victory is 1 stroke?
CREATE TABLE table_13388681_1 (purse___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT operator FROM table_name_8 WHERE ship = "costa pacifica"
What operator has a ship costa pacifica?
CREATE TABLE table_name_8 (operator VARCHAR, ship VARCHAR)
SELECT Builder, COUNT(*) FROM railway GROUP BY Builder
Show different builders of railways, along with the corresponding number of railways using each builder.
CREATE TABLE railway (Builder VARCHAR)
SELECT COUNT(sr_no) FROM table_name_22 WHERE building_type = "residential" AND locale = "yashodham"
how many times is the building type residential and the locale yashodham?
CREATE TABLE table_name_22 (sr_no VARCHAR, building_type VARCHAR, locale VARCHAR)
SELECT COUNT(number_of_clubs) FROM table_17632217_2 WHERE runners_up = "Liaoning Fushun"
What is the total number of clubs when the runner-up was Liaoning Fushun?
CREATE TABLE table_17632217_2 (number_of_clubs VARCHAR, runners_up VARCHAR)
SELECT round FROM table_21311525_1 WHERE date = "19/06/2009"
What is the round number for the date 19/06/2009?
CREATE TABLE table_21311525_1 (round VARCHAR, date VARCHAR)
SELECT written_by FROM table_12159115_2 WHERE us_viewers__millions_ = "12.13"
Who's the writer of the episode see by 12.13 million US viewers?
CREATE TABLE table_12159115_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(total_points_earned) FROM table_23662272_4 WHERE average = "21.3"
What is the total points earned total number if the average is 21.3?
CREATE TABLE table_23662272_4 (total_points_earned VARCHAR, average VARCHAR)
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009"
On the Date of 4 Oct 2009, who was the Runner(s)-up?
CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR)
SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s"
Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s
CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix"
What is the average attendance for a game against Phoenix?
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR)
SELECT lost FROM table_name_8 WHERE points_against = "387"
when points against was 387 what was the lost?
CREATE TABLE table_name_8 (lost VARCHAR, points_against VARCHAR)
SELECT rank_points FROM table_name_59 WHERE total = "15" AND score_points = "7"
What were the rank points when the score was 7 and the total was 15?
CREATE TABLE table_name_59 (rank_points VARCHAR, total VARCHAR, score_points VARCHAR)
SELECT COUNT(3 AS rd_runner_up) FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT MIN(rank_by_average) FROM table_25391981_3 WHERE average = "22.8"
What is the rank by average for the team who averaged 22.8?
CREATE TABLE table_25391981_3 (rank_by_average INTEGER, average VARCHAR)
SELECT date FROM table_name_14 WHERE registration = "tc-jes"
When was the registration of tc-jes?
CREATE TABLE table_name_14 (date VARCHAR, registration VARCHAR)
SELECT grade FROM Highschooler
Show all the grades of the high schoolers.
CREATE TABLE Highschooler (grade VARCHAR)
SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao"
What season was herschelle gibbs andrew symonds venugopal rao batsmen?
CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)
SELECT LOCATION, SUM(number_of_platforms), SUM(total_passengers) FROM station GROUP BY LOCATION
Show all locations and the total number of platforms and passengers for all train stations in each location.
CREATE TABLE station (LOCATION VARCHAR, number_of_platforms INTEGER, total_passengers INTEGER)
SELECT SUM(countries_sampled) FROM table_name_71 WHERE year_of_publication = "2010" AND world_ranking__1_ = "33" AND ranking_in_latin_america__2_ < 3
How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America?
CREATE TABLE table_name_71 (countries_sampled INTEGER, ranking_in_latin_america__2_ VARCHAR, year_of_publication VARCHAR, world_ranking__1_ VARCHAR)
SELECT date__to_ FROM table_name_79 WHERE date__from_ = "30 sep 1913"
Which date has date started from 30 Sep 1913?
CREATE TABLE table_name_79 (date__to_ VARCHAR, date__from_ VARCHAR)
SELECT qld_cup_premierships FROM table_2383498_4 WHERE team = "Gold Coast Vikings"
What is the QLD Cup Premierships if team is Gold Coast Vikings?
CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, team VARCHAR)
SELECT date FROM table_name_69 WHERE opponent_in_the_final = "paul goldstein"
What date did Paul Goldstein play the final?
CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT height FROM table_12962773_13 WHERE year_born = 1980 AND position = "Center"
Name the height for the player born in 1980 and center?
CREATE TABLE table_12962773_13 (height VARCHAR, year_born VARCHAR, position VARCHAR)
SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63
Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against?
CREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)
SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'
Find the players whose names contain letter 'a'.
CREATE TABLE Player (pName VARCHAR)
SELECT engine FROM table_name_50 WHERE entrant = "garvey team lotus"
What engine does Garvey Team Lotus use?
CREATE TABLE table_name_50 (engine VARCHAR, entrant VARCHAR)
SELECT total_time FROM table_name_44 WHERE margin = "04:02" AND driver = "coad"
How much time did Coad make when the margin was 04:02?
CREATE TABLE table_name_44 (total_time VARCHAR, margin VARCHAR, driver VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE bronze > 2 AND silver > 0 AND nation = "soviet union"
What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?
CREATE TABLE table_name_2 (total INTEGER, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 15
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)
SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "club brugge" AND venue = "a"
What is the highest attendance for the opponents Club Brugge in Venue A?
CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
SELECT type FROM table_name_26 WHERE locomotive_number = "ctn 46"
What type is locomotive number CTN 46?
CREATE TABLE table_name_26 (type VARCHAR, locomotive_number VARCHAR)
SELECT candidates FROM table_1342256_33 WHERE incumbent = "Harold D. Cooley"
Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?
CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR)
SELECT award FROM table_name_76 WHERE result = "nominated" AND year = 2007
What award was nominated in 2007?
CREATE TABLE table_name_76 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT 2008 AS _status FROM table_name_15 WHERE democratic = "rosa delauro"
What's the 2008 Status of Rosa Delauro?
CREATE TABLE table_name_15 (democratic VARCHAR)
SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = "23.4"
How many networks run on virtual channel 23.4?
CREATE TABLE table_2857352_3 (network VARCHAR, virtual_channel VARCHAR)
SELECT gender FROM table_name_14 WHERE romanized_name = "kim yoon-yeong"
What gender has Romanized name and kim yoon-yeong?
CREATE TABLE table_name_14 (gender VARCHAR, romanized_name VARCHAR)
SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76
what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?
CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1
What is the document type code with most number of documents?
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT cfl_team FROM table_16575609_1 WHERE player = "Dimitri Tsoumpas"
Who picked dimitri tsoumpas?
CREATE TABLE table_16575609_1 (cfl_team VARCHAR, player VARCHAR)
SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos"
What was the date of appointment for Christos Kassianos who belonged to AEK?
CREATE TABLE table_name_38 (date_of_appointment VARCHAR, team VARCHAR, replaced_by VARCHAR)
SELECT population FROM table_171236_1 WHERE census_ranking = "782 of 5,008"
What was the population for census ranking 782 of 5,008?
CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR)
SELECT trofeo_fast_team FROM table_12261714_2 WHERE stage = "20"
What's the leader team in the Trofeo Fast Team in stage 20?
CREATE TABLE table_12261714_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT result FROM table_name_78 WHERE date = "4 april 1993"
Which Result has a Date of 4 april 1993?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT height FROM table_name_44 WHERE position = "guard" AND year_born = 1982
Born in 1982, this guard has what listed as a height?
CREATE TABLE table_name_44 (height VARCHAR, position VARCHAR, year_born VARCHAR)
SELECT competition FROM table_1233808_2 WHERE date_and_time = "17.04.1920 at 15:00"
What competitions record a date and time of 17.04.1920 at 15:00?
CREATE TABLE table_1233808_2 (competition VARCHAR, date_and_time VARCHAR)
SELECT venue FROM table_name_48 WHERE extra = "team competition" AND result = "1st"
Which venue had an extra of Team Competition and a result of 1st?
CREATE TABLE table_name_48 (venue VARCHAR, extra VARCHAR, result VARCHAR)
SELECT team_2 FROM table_name_64 WHERE team_1 = "far rabat"
Which team has far rabat as the team 1?
CREATE TABLE table_name_64 (team_2 VARCHAR, team_1 VARCHAR)
SELECT release_date FROM table_name_96 WHERE location = "germany"
What is the release in Germany?
CREATE TABLE table_name_96 (release_date VARCHAR, location VARCHAR)
SELECT T2.Pilot_name, COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name
Show the names of pilots and the number of records they have.
CREATE TABLE pilot (Pilot_name VARCHAR, pilot_ID VARCHAR); CREATE TABLE pilot_record (pilot_ID VARCHAR)
SELECT SUM(scored) FROM table_name_94 WHERE result = "40-22"
What is the scored figure when the result is 40-22?
CREATE TABLE table_name_94 (scored INTEGER, result VARCHAR)
SELECT constructor FROM table_28190534_1 WHERE driver = "B. Bira"
Name the constructor for b. bira
CREATE TABLE table_28190534_1 (constructor VARCHAR, driver VARCHAR)
SELECT MAX(pick__number) FROM table_name_25 WHERE overall = 184 AND round > 6
Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?
CREATE TABLE table_name_25 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid > 10 AND laps > 2 AND constructor = "maserati" AND driver = "masten gregory carroll shelby"
What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?
CREATE TABLE table_name_30 (time_retired VARCHAR, driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = "Democratic" AND district = "Georgia 8"
How many incumbents are there in the georgia 8 district when the party is democratic?
CREATE TABLE table_19753079_13 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT SUM(week) FROM table_name_35 WHERE result = "w 40–62"
What is the number week with a result of w 40–62?
CREATE TABLE table_name_35 (week INTEGER, result VARCHAR)
SELECT formula FROM table_23548160_1 WHERE driver = "Stirling Moss"
What type of formula did Stirling Moss drive?
CREATE TABLE table_23548160_1 (formula VARCHAR, driver VARCHAR)
SELECT form_factor FROM table_27615520_1 WHERE product_name = "RamSan-630"
List the range distroration for the ramsan-630
CREATE TABLE table_27615520_1 (form_factor VARCHAR, product_name VARCHAR)
SELECT android FROM table_11381701_3 WHERE windows = "1.15%"
What is the percentage of Android use when Windows is 1.15%?
CREATE TABLE table_11381701_3 (android VARCHAR, windows VARCHAR)
SELECT MAX(Serial) AS number FROM table_29002641_1 WHERE scrapped = "Feb 1994"
Name the most serial number for feb 1994
CREATE TABLE table_29002641_1 (Serial INTEGER, scrapped VARCHAR)
SELECT set_2 FROM table_name_45 WHERE date = "25 may" AND set_3 = "21–25"
Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?
CREATE TABLE table_name_45 (set_2 VARCHAR, date VARCHAR, set_3 VARCHAR)
SELECT transaction_type_code, MAX(share_count), MIN(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code
Show the maximum and minimum share count of different transaction types.
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, share_count INTEGER)
SELECT name FROM table_name_68 WHERE moving_to = "arminia bielefeld"
Who was the player moving to Arminia Bielefeld?
CREATE TABLE table_name_68 (name VARCHAR, moving_to VARCHAR)
SELECT result FROM table_name_75 WHERE home = "ssv ulm 1846"
What is the result for SSV ULM 1846?
CREATE TABLE table_name_75 (result VARCHAR, home VARCHAR)
SELECT opponent FROM table_21062353_1 WHERE game = 4
Who were the opponents of the Wildcats in game 4?
CREATE TABLE table_21062353_1 (opponent VARCHAR, game VARCHAR)
SELECT judge FROM table_name_42 WHERE state = "sd"
Who was the judge for the state SD?
CREATE TABLE table_name_42 (judge VARCHAR, state 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 SUM(band) FROM table_name_46 WHERE power__w_ < 400
What Band number has a Power (W) of 400 or less?
CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER)
SELECT MAX(international_mail) FROM table_name_45 WHERE change = "+0,2%" AND domestic_mail < 0
What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?
CREATE TABLE table_name_45 (international_mail INTEGER, change VARCHAR, domestic_mail VARCHAR)
SELECT school_club_team FROM table_name_92 WHERE years_in_orlando = "1997–1998"
Which School/Club Team has a Years in Orlando of 1997–1998?
CREATE TABLE table_name_92 (school_club_team VARCHAR, years_in_orlando VARCHAR)
SELECT laps FROM table_name_96 WHERE points = 19
How many laps were there in the race that netted the winner 19 points?
CREATE TABLE table_name_96 (laps VARCHAR, points VARCHAR)
SELECT label FROM table_name_33 WHERE format = "double cd"
What is Label, when Format is Double CD?
CREATE TABLE table_name_33 (label VARCHAR, format VARCHAR)
SELECT game FROM table_name_3 WHERE score = "4–0" AND points = 44
Which Game has a Score of 4–0 and Points of 44?
CREATE TABLE table_name_3 (game VARCHAR, score VARCHAR, points VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_76 WHERE to_par = 9 AND player = "tommy bolt"
How much total money does player tommy bolt, who has a to par of 9, have?
CREATE TABLE table_name_76 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT SUM(pick__number) FROM table_name_94 WHERE position = "d" AND team_from = "chilliwack bruins"
What is the total pick # for the D position from a team from Chilliwack Bruins?
CREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR)