answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland"
Tell me the eastern #2 for western #2 of oakland
CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR)
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "flavio cipolla"
When did Mathieu play against Flavio Cipolla?
CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT fastest_lap FROM table_1140082_2 WHERE location = "Watkins Glen"
Who did the fastest lap at Watkins glen?
CREATE TABLE table_1140082_2 (fastest_lap VARCHAR, location VARCHAR)
SELECT position FROM table_11545282_5 WHERE player = "Blue Edwards"
What is the position for player Blue Edwards?
CREATE TABLE table_11545282_5 (position VARCHAR, player VARCHAR)
SELECT MAX(goals_for) FROM table_name_2 WHERE team = "cheadle town" AND drawn > 7
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?
CREATE TABLE table_name_2 (goals_for INTEGER, team VARCHAR, drawn VARCHAR)
SELECT alternate FROM table_name_97 WHERE second = "hubert gründhammer"
What is the alternate of the nation with hubert gründhammer as the second?
CREATE TABLE table_name_97 (alternate VARCHAR, second VARCHAR)
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id
Find the subject ID, subject name, and the corresponding number of available courses for each subject.
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
SELECT tries_for FROM table_name_16 WHERE played = "18" AND points_against = "375"
What is the value for the item "Tries" when the value of the item "Played" is 18 and the value of the item "Points" is 375?
CREATE TABLE table_name_16 (tries_for VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe"
what team played against zimbabwe in 1999?
CREATE TABLE table_name_11 (team VARCHAR, year VARCHAR, versus VARCHAR)
SELECT score FROM table_name_14 WHERE game = 4
What was the final score of Game #4?
CREATE TABLE table_name_14 (score VARCHAR, game VARCHAR)
SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542
What is the number of Ashmolean with 14s Harrison, and image less than 542?
CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR)
SELECT game FROM table_name_55 WHERE home_team = "philadelphia" AND date = "april 23"
Which game had Philadelphia as its home team and was played on April 23?
CREATE TABLE table_name_55 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = "Poblacion II"
Name the least population 2007 for barangay is poblacion ii
CREATE TABLE table_1686313_1 (population__2007_ INTEGER, barangay VARCHAR)
SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211"
What are the first names and date of birth of professors teaching course ACCT-211?
CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR)
SELECT SUM(gain) FROM table_name_75 WHERE name = "kass, rob" AND avg_g < 1.9
Can you tell me the sum of Gain that has the Name of kass, rob, and the Avg/g smaller than 1.9?
CREATE TABLE table_name_75 (gain INTEGER, name VARCHAR, avg_g VARCHAR)
SELECT interview_subject FROM table_1566850_9 WHERE date = "8-98"
Who was interviewed in the 8-98 issue?
CREATE TABLE table_1566850_9 (interview_subject VARCHAR, date VARCHAR)
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523
What was the final score of the game with 7523 in attendance?
CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR)
SELECT latitude FROM table_18600760_3 WHERE township = "Clearwater"
What was the latitude of the Clearwater townsship?
CREATE TABLE table_18600760_3 (latitude VARCHAR, township VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond"
What is the home team score with Away team Richmond?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT position FROM table_name_89 WHERE no_s_ = "11" AND years_for_rockets = "1989-95"
Name the position for number 11 and years on the rockets for 1989-95
CREATE TABLE table_name_89 (position VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 2009"
Who is the opponent on November 22, 2009, clay surface?
CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
SELECT years FROM table_name_86 WHERE roll = 9
When is a Roll of 9?
CREATE TABLE table_name_86 (years VARCHAR, roll VARCHAR)
SELECT SUM(bronze) FROM table_name_79 WHERE gold > 1 AND nation = "france" AND rank < 1
How many France bronze have a gold of more than 1 and a rank of 0?
CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT eliminated FROM table_1893276_2 WHERE air_date = "November 3, 2005"
What was eliminated on the air date of November 3, 2005?
CREATE TABLE table_1893276_2 (eliminated VARCHAR, air_date VARCHAR)
SELECT COUNT(crowd) FROM table_name_73 WHERE home_team = "melbourne"
What was the crowd attendance when the home team was Melbourne?
CREATE TABLE table_name_73 (crowd VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_6 WHERE total = 22
What is the name of the person with a total of 22?
CREATE TABLE table_name_6 (name VARCHAR, total VARCHAR)
SELECT date FROM table_name_29 WHERE location_attendance = "td banknorth garden 18,624"
What is Date, when Location Attendance is "TD Banknorth Garden 18,624"?
CREATE TABLE table_name_29 (date VARCHAR, location_attendance VARCHAR)
SELECT height FROM table_name_82 WHERE stories = 52
How tall is the 52 story building?
CREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR)
SELECT captain FROM table_24039173_1 WHERE location = "Chaguaramas"
Who is the captain in Chaguaramas?
CREATE TABLE table_24039173_1 (captain VARCHAR, location VARCHAR)
SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
Find the number of students who are older than 18 and do not have allergy to either food or animal.
CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR)
SELECT AVG(silver) FROM table_name_10 WHERE total = 7 AND gold > 1
Which Silver has a Total of 7, and a Gold larger than 1?
CREATE TABLE table_name_10 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT MAX(amount_of_transaction) FROM TRANSACTIONS
Show the maximum amount of transaction.
CREATE TABLE TRANSACTIONS (amount_of_transaction INTEGER)
SELECT d_46_√ FROM table_name_3 WHERE d_44_√ = "← majority"
What is the D 46 √ when the D 44 √ is ← majority?
CREATE TABLE table_name_3 (d_46_√ VARCHAR, d_44_√ VARCHAR)
SELECT occupation FROM table_name_38 WHERE residence = "windsor junction"
What is the occupation of the candidate that resides in Windsor Junction?
CREATE TABLE table_name_38 (occupation VARCHAR, residence VARCHAR)
SELECT COUNT(DISTINCT Birth_Place) FROM people
How many distinct birth places are there?
CREATE TABLE people (Birth_Place VARCHAR)
SELECT venue FROM table_name_70 WHERE away_team = "richmond"
Where did Richmond play as an away team?
CREATE TABLE table_name_70 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(DISTINCT Country) FROM climber
How many distinct countries are the climbers from?
CREATE TABLE climber (Country VARCHAR)
SELECT opponent FROM table_name_21 WHERE week = 3
What is the Opponent of the game in Week 3?
CREATE TABLE table_name_21 (opponent VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_name_68 WHERE opponent = "chelsea"
What was the lowest attendance was the opponent was chelsea?
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR)
SELECT Studio, COUNT(*) FROM film GROUP BY Studio
List the studios of each film and the number of films produced by that studio.
CREATE TABLE film (Studio VARCHAR)
SELECT player FROM table_name_24 WHERE country = "united states" AND score = 71 - 75 = 146
Who is the player from the United States with a score of 71-75=146?
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = "Barbara Windsor"
What song was performed when Barbara Windsor was the guest host?
CREATE TABLE table_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR)
SELECT high_assists FROM table_29982187_4 WHERE date = "January 29"
what re the high assists for january 29?
CREATE TABLE table_29982187_4 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_64 WHERE record = "26-35"
What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?
CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(pick__number) FROM table_name_37 WHERE college = "west virginia" AND overall < 203
What is the Pick # of the player with an Overall less than 203 from West Virginia?
CREATE TABLE table_name_37 (pick__number VARCHAR, college VARCHAR, overall VARCHAR)
SELECT stamp_duty_reserve_tax FROM table_1618358_1 WHERE over_total_tax_revenue__in__percentage_ = "0.79"
What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79?
CREATE TABLE table_1618358_1 (stamp_duty_reserve_tax VARCHAR, over_total_tax_revenue__in__percentage_ VARCHAR)
SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type is the most frequently appearring type?
CREATE TABLE vocals (TYPE VARCHAR)
SELECT COUNT(ofsted) FROM table_name_1 WHERE school = "chowbent primary school"
How many values for Ofsted occurr at Chowbent Primary School?
CREATE TABLE table_name_1 (ofsted VARCHAR, school VARCHAR)
SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = "truncated icosahedron" AND vertices > 32
Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?
CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR)
SELECT COUNT(round) FROM table_name_19 WHERE opponent = "wrexham" AND venue = "away"
What is the round number when the opponent was Wrexham, and the venue shows as Away?
CREATE TABLE table_name_19 (round VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT COUNT(winning_driver) FROM table_11056278_3 WHERE rnd = 6
In Round 6, how many winning drivers were there?
CREATE TABLE table_11056278_3 (winning_driver VARCHAR, rnd VARCHAR)
SELECT venue FROM table_name_74 WHERE goals < 72 AND assists > 40
Where were less than 72 goals made and more than 40 assists made?
CREATE TABLE table_name_74 (venue VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT MIN(draw) FROM table_name_74 WHERE artist = "anastasia prikhodko" AND place > 1
What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?
CREATE TABLE table_name_74 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
Find the list of attribute data types possessed by more than 3 attribute definitions.
CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)
SELECT MIN(wins) FROM table_name_41 WHERE against = 1314
What is the least amount of wins when against is 1314?
CREATE TABLE table_name_41 (wins INTEGER, against VARCHAR)
SELECT surface FROM table_name_35 WHERE partner = "tiya rolle"
What was the surface for the game that was played with partner Tiya Rolle?
CREATE TABLE table_name_35 (surface VARCHAR, partner VARCHAR)
SELECT site FROM table_name_37 WHERE date = "11/11/1950"
What is the Site when the date is 11/11/1950?
CREATE TABLE table_name_37 (site VARCHAR, date VARCHAR)
SELECT position FROM table_name_74 WHERE player = "jeff brown"
What position is Jeff Brown?
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR)
SELECT advertisement_date FROM table_name_17 WHERE block = "10c" AND ensemble_name = "muxco gloucestershire"
What is Ensemble Name Muxco Gloucestershire's Advertisement Date in Block 10C?
CREATE TABLE table_name_17 (advertisement_date VARCHAR, block VARCHAR, ensemble_name VARCHAR)
SELECT state FROM table_20065425_1 WHERE termination_of_mission = "November 29, 1973"
What state does the representative whose mission was terminated on November 29, 1973 represent?
CREATE TABLE table_20065425_1 (state VARCHAR, termination_of_mission VARCHAR)
SELECT COUNT(lost) FROM table_name_66 WHERE order = "2nd" AND played > 13
How many games were lost when the order was 2nd and the play was more than 13
CREATE TABLE table_name_66 (lost VARCHAR, order VARCHAR, played VARCHAR)
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe"
Which first election for the labor party is James Sharpe a part of?
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
SELECT team FROM table_name_29 WHERE school = "sussex tech"
What is the name of the School of the Sussex Tech's Team?
CREATE TABLE table_name_29 (team VARCHAR, school VARCHAR)
SELECT MIN(pos) FROM table_19412902_2 WHERE points__total_500_ = 279
At what position is the association with 279 points?
CREATE TABLE table_19412902_2 (pos INTEGER, points__total_500_ VARCHAR)
SELECT COUNT(purse__) AS $__ FROM table_11622771_1 WHERE date = "Mar 16"
How many purses were there for the mar 16?
CREATE TABLE table_11622771_1 (purse__ VARCHAR, date VARCHAR)
SELECT experience FROM table_name_29 WHERE year_at_cu = "1st" AND position = "graduate assistant"
The graduate assistant who was in the 1st year at CU has what experience?
CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR)
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57
What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT loss_gain FROM table_25818630_2 WHERE affiliation = "Solidarity"
What was the loss/gain when the affiliation was solidarity?
CREATE TABLE table_25818630_2 (loss_gain VARCHAR, affiliation VARCHAR)
SELECT date FROM table_name_14 WHERE score = "4–2"
Which Date has a Score of 4–2?
CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR)
SELECT position FROM table_10812403_4 WHERE player = "Calvin McCarty"
What position did Calvin Mccarty play?
CREATE TABLE table_10812403_4 (position VARCHAR, player VARCHAR)
SELECT COUNT(bronze) FROM table_name_81 WHERE total < "11" AND rank = "11" AND gold < 1
How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1?
CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, total VARCHAR, rank VARCHAR)
SELECT original_air_date FROM table_10413597_5 WHERE setting = "1544"
What was the original air date of an episode set in 1544?
CREATE TABLE table_10413597_5 (original_air_date VARCHAR, setting VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE music_director_s_ = "anu malik"
WHich Year has a Music director(s) of anu malik?
CREATE TABLE table_name_5 (year INTEGER, music_director_s_ VARCHAR)
SELECT MIN(conceded) FROM table_name_77 WHERE wins < 8 AND scored = 21 AND points < 23
What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points?
CREATE TABLE table_name_77 (conceded INTEGER, points VARCHAR, wins VARCHAR, scored VARCHAR)
SELECT LNER AS class FROM table_name_31 WHERE class = "6db"
What LNER Class has a Class of 6db?
CREATE TABLE table_name_31 (LNER VARCHAR, class VARCHAR)
SELECT years_in_orlando FROM table_name_74 WHERE school_club_team = "texas tech"
Which Years in Orlando has a School/Club Team of texas tech?
CREATE TABLE table_name_74 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT location_attendance FROM table_name_86 WHERE record = "3–16"
What was the attendance on location when the record was 3–16?
CREATE TABLE table_name_86 (location_attendance VARCHAR, record VARCHAR)
SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado"
Name the lowest Round with Opponent of rolando delgado?
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT status AS Date FROM table_name_1 WHERE city_state = "indor, madhya pradesh"
What is the status of the city/state of Indor, Madhya Pradesh?
CREATE TABLE table_name_1 (status VARCHAR, city_state VARCHAR)
SELECT MIN(innings) FROM table_2985664_8
What is the lowest value for innings?
CREATE TABLE table_2985664_8 (innings INTEGER)
SELECT author FROM table_name_42 WHERE language = "english" AND book_title = "sironia, texas"
Which author wrote Sironia, Texas in English?
CREATE TABLE table_name_42 (author VARCHAR, language VARCHAR, book_title VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_13 WHERE played > 18
What are the number of goals conceded that has a played greater than 18?
CREATE TABLE table_name_13 (goals_conceded VARCHAR, played INTEGER)
SELECT COUNT(archive) FROM table_1498589_1 WHERE run_time = "24:06"
How many episodes in history have a running time of 24:06?
CREATE TABLE table_1498589_1 (archive VARCHAR, run_time VARCHAR)
SELECT MAX(bronze) FROM table_name_99 WHERE nation = "spain"
Which Bronze has a Nation of spain?
CREATE TABLE table_name_99 (bronze INTEGER, nation VARCHAR)
SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975"
What week of the season had a date of october 5, 1975?
CREATE TABLE table_name_24 (week INTEGER, date VARCHAR)
SELECT champion FROM table_name_78 WHERE score = "12-1"
Which champion got a score of 12-1?
CREATE TABLE table_name_78 (champion VARCHAR, score VARCHAR)
SELECT name_of_award FROM table_25926120_7 WHERE awardee_s_ = "Elangbam Natasha"
what is the name of award when the awardee(s) is elangbam natasha?
CREATE TABLE table_25926120_7 (name_of_award VARCHAR, awardee_s_ VARCHAR)
SELECT team FROM table_name_28 WHERE recopa_sudamericana_1992 = "runner-up"
Which Team has a Recopa Sudamericana 1992 of runner-up?
CREATE TABLE table_name_28 (team VARCHAR, recopa_sudamericana_1992 VARCHAR)
SELECT date FROM table_name_22 WHERE format = "cd" AND label = "avex entertainment"
When did Avex Entertainment release a CD?
CREATE TABLE table_name_22 (date VARCHAR, format VARCHAR, label VARCHAR)
SELECT MIN(league_goals) FROM table_name_1 WHERE league_apps = "1" AND fa_cup_goals > 0
what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?
CREATE TABLE table_name_1 (league_goals INTEGER, league_apps VARCHAR, fa_cup_goals VARCHAR)
SELECT middle_german___luxemburgish__ FROM table_name_58 WHERE english = "stone"
What is the Middle German (Luxemburgish) word for stone?
CREATE TABLE table_name_58 (middle_german___luxemburgish__ VARCHAR, english VARCHAR)
SELECT league FROM table_name_99 WHERE open_cup = "1st round" AND year = 2009
Which League that has a Open Cup of 1st round, and a Year of 2009?
CREATE TABLE table_name_99 (league VARCHAR, open_cup VARCHAR, year VARCHAR)
SELECT date FROM table_name_76 WHERE decision = "osgood" AND score = "6 – 7"
When is a Decision of osgood, and a Score of 6 – 7?
CREATE TABLE table_name_76 (date VARCHAR, decision VARCHAR, score VARCHAR)
SELECT event FROM table_name_52 WHERE res = "loss" AND opponent = "maurice smith"
Which event resulted in loss with an Opponent of maurice smith?
CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT latitude FROM table_name_66 WHERE year_named > 1997 AND longitude = "152.0e"
What's the latitude when the longitude is 152.0e later than 1997?
CREATE TABLE table_name_66 (latitude VARCHAR, year_named VARCHAR, longitude VARCHAR)
SELECT manufacturer FROM table_name_49 WHERE grid = 12
Who was the manufacturer for the race on grid 12?
CREATE TABLE table_name_49 (manufacturer VARCHAR, grid VARCHAR)
SELECT MAX(innings) FROM table_name_86 WHERE runs < 342 AND matches > 4
What is the largest number of innings with less than 342 runs and more than 4 matches?
CREATE TABLE table_name_86 (innings INTEGER, runs VARCHAR, matches VARCHAR)
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58
How many played have 8 wins and more than 58 goals against?
CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE away_team = "north melbourne"
What was the home team's score when North Melbourne was the away team?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT year FROM table_name_16 WHERE town = "greensboro, north carolina"
What year was the structure in greensboro, north carolina considered tallest?
CREATE TABLE table_name_16 (year VARCHAR, town VARCHAR)