question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When did South Melbourne play as the away team?
CREATE TABLE table_name_45 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_45 WHERE away_team = "south melbourne"
What is the value for New entries, when the value for Fixtures is 2?
CREATE TABLE table_name_71 (new_entries VARCHAR, fixtures VARCHAR)
SELECT new_entries FROM table_name_71 WHERE fixtures = 2
WHAT IS A Seine-Saint-Denis WITH A PARIS OF 12.1%?
CREATE TABLE table_name_90 (seine_saint_denis VARCHAR, paris VARCHAR)
SELECT seine_saint_denis FROM table_name_90 WHERE paris = "12.1%"
Where did Wales play?
CREATE TABLE table_name_39 (venue VARCHAR, opposing_teams VARCHAR)
SELECT venue FROM table_name_39 WHERE opposing_teams = "wales"
Who has 37 grids?
CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_36 WHERE grid = 37
Find the personal names of students not enrolled in any course.
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)
SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id
What were the points for when there were 30 tries against?
CREATE TABLE table_13564637_5 (points_for VARCHAR, tries_against VARCHAR)
SELECT points_for FROM table_13564637_5 WHERE tries_against = "30"
What is the score of game 33?
CREATE TABLE table_15780049_6 (score VARCHAR, game VARCHAR)
SELECT score FROM table_15780049_6 WHERE game = 33
Who was the Centerfold model on 5-88?
CREATE TABLE table_name_20 (centerfold_model VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_20 WHERE date = "5-88"
What was the drawn amount for teams with points of 12 and played smaller than 10?
CREATE TABLE table_name_13 (drawn INTEGER, points VARCHAR, played VARCHAR)
SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 10
Find the title, credit, and department name of courses that have more than one prerequisites?
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, dept_name VARCHAR, course_id VARCHAR)
SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1
What is the number of Frequency MHz in woodstock, georgia?
CREATE TABLE table_name_91 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia"
What was the attendance of week 8?
CREATE TABLE table_name_24 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_24 WHERE week = 8
Which Name has a Round smaller than 11, and a Pick of 13?
CREATE TABLE table_name_15 (name VARCHAR, round VARCHAR, pick VARCHAR)
SELECT name FROM table_name_15 WHERE round < 11 AND pick = 13
What day was the bell atlantic classic?
CREATE TABLE table_name_53 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_53 WHERE tournament = "bell atlantic classic"
What School is in the kio kio area?
CREATE TABLE table_name_60 (name VARCHAR, area VARCHAR)
SELECT name FROM table_name_60 WHERE area = "kio kio"
What is the census division for the name Stratford?
CREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR)
SELECT census_division FROM table_21284653_1 WHERE name = "Stratford"
Crawley Town as the home team has what as the tie no?
CREATE TABLE table_name_77 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_77 WHERE home_team = "crawley town"
What is the round when the opponent is Andre Roberts?
CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_42 WHERE opponent = "andre roberts"
Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?
CREATE TABLE table_name_6 (college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR)
SELECT college FROM table_name_6 WHERE round < 7 AND overall < 186 AND pick = 13
What is the nickname of staff with first name as Janessa and last name as Sawayn?
CREATE TABLE Staff (nickname VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
Who was the winner for the Rome to Teramo course?
CREATE TABLE table_name_97 (winner VARCHAR, course VARCHAR)
SELECT winner FROM table_name_97 WHERE course = "rome to teramo"
List all dbm's when profiles are 8a.
CREATE TABLE table_2394927_1 (power___dbm__ VARCHAR, profile VARCHAR)
SELECT power___dbm__ FROM table_2394927_1 WHERE profile = "8a"
What was the average attendance on October 30, 1938?
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938"
Who is the opponent with a save of ||33,453||36–27?
CREATE TABLE table_name_39 (opponent VARCHAR, save VARCHAR)
SELECT opponent FROM table_name_39 WHERE save = "||33,453||36–27"
What venue is located in Indiana and hosted at Purdue University?
CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR)
SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university"
What is the smallest grid with collision as the Time/Retired for pedro diniz?
CREATE TABLE table_name_6 (grid INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_6 WHERE time_retired = "collision" AND driver = "pedro diniz"
What country has a series premier of unknown and mbc action as their TV network?
CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR)
SELECT country FROM table_name_27 WHERE series_premiere = "unknown" AND tv_network_s_ = "mbc action"
What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?
CREATE TABLE table_name_3 (long VARCHAR, loss VARCHAR, avg_g VARCHAR)
SELECT COUNT(long) FROM table_name_3 WHERE loss > 0 AND avg_g = 124.9
On March 23, what is the site/stadium?
CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)
SELECT site_stadium FROM table_name_21 WHERE date = "march 23"
What was the average attendance when the record was 58–49?
CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR)
SELECT AVG(attendance) FROM table_name_63 WHERE record = "58–49"
What is the type of POR?
CREATE TABLE table_name_10 (type VARCHAR, nat VARCHAR)
SELECT type FROM table_name_10 WHERE nat = "por"
What was the value in 2006 when 2003 was not held and 2012 was A?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a"
How many years where Eichstädt had a number of 939?
CREATE TABLE table_11680175_1 (year VARCHAR, eichstädt VARCHAR)
SELECT COUNT(year) FROM table_11680175_1 WHERE eichstädt = 939
How many papers are published in total?
CREATE TABLE papers (Id VARCHAR)
SELECT COUNT(*) FROM papers
who received gold when silver is wolfgang eibeck austria (aut)?
CREATE TABLE table_name_42 (gold VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_42 WHERE silver = "wolfgang eibeck austria (aut)"
Name the sepal length for sepal width of 2.8 and petal length of 5.1
CREATE TABLE table_10477224_1 (sepal_length VARCHAR, sepal_width VARCHAR, petal_length VARCHAR)
SELECT sepal_length FROM table_10477224_1 WHERE sepal_width = "2.8" AND petal_length = "5.1"
What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?
CREATE TABLE table_name_22 (draws INTEGER, against VARCHAR, losses VARCHAR, geelong_fl VARCHAR)
SELECT MAX(draws) FROM table_name_22 WHERE losses > 6 AND geelong_fl = "st josephs" AND against < 1250
What is the outcome of a score that is 6–1, 6–4?
CREATE TABLE table_name_4 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_4 WHERE score = "6–1, 6–4"
What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected
CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
SELECT bleeding_time FROM table_1099080_1 WHERE partial_thromboplastin_time = "Unaffected" AND platelet_count = "Unaffected"
What is College of Ohio State's pick number with an overall lower than 145?
CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR)
SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = "ohio state"
What was the title of the movie from lebanon?
CREATE TABLE table_12842068_1 (film_title_used_in_nomination VARCHAR, submitting_country VARCHAR)
SELECT film_title_used_in_nomination FROM table_12842068_1 WHERE submitting_country = "Lebanon"
Which Skip has a Second of vicki adams?
CREATE TABLE table_name_21 (skip VARCHAR, second VARCHAR)
SELECT skip FROM table_name_21 WHERE second = "vicki adams"
What game did the Bruins have 56 points?
CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)
SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56
Name the player for chicago black hawks
CREATE TABLE table_1473672_8 (player VARCHAR, nhl_team VARCHAR)
SELECT player FROM table_1473672_8 WHERE nhl_team = "Chicago Black Hawks"
If the stage is 3, what is the points classification name?
CREATE TABLE table_22941863_19 (points_classification VARCHAR, stage VARCHAR)
SELECT points_classification FROM table_22941863_19 WHERE stage = 3
Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?
CREATE TABLE table_name_11 (election VARCHAR, second_member VARCHAR, first_party VARCHAR, first_member VARCHAR)
SELECT election FROM table_name_11 WHERE first_party = "conservative" AND first_member = "rowland smith" AND second_member = "sir henry wilmot, bt"
Who was the opponent at the game when the record was 22-13?
CREATE TABLE table_name_95 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_95 WHERE record = "22-13"
What is the stadium name that has 144 as the runs?
CREATE TABLE table_name_86 (stadium VARCHAR, runs VARCHAR)
SELECT stadium FROM table_name_86 WHERE runs = "144"
What are the profits of Wells Fargo (in billions)?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo"
What class has nsr250 as the machine, with points greater than 97?
CREATE TABLE table_name_45 (class VARCHAR, machine VARCHAR, points VARCHAR)
SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97
Return the names of singers who are from UK and released an English song.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"
What's the name of the competition in 8th position?
CREATE TABLE table_name_98 (competition VARCHAR, position VARCHAR)
SELECT competition FROM table_name_98 WHERE position = "8th"
What was the recorded flaps of HBR Motorsport team?
CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR)
SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport"
What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?
CREATE TABLE table_name_40 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT date FROM table_name_40 WHERE competition = "2006 fifa world cup qualification" AND venue = "alamodome, san antonio, united states"
Which sign has a red border and a warning sign?
CREATE TABLE table_name_68 (text_symbol VARCHAR, border VARCHAR, type_of_sign VARCHAR)
SELECT text_symbol FROM table_name_68 WHERE border = "red" AND type_of_sign = "warning"
What is the try bonus when the tries against are 17?
CREATE TABLE table_17625749_3 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT try_bonus FROM table_17625749_3 WHERE tries_against = "17"
What are all distinct country for artists?
CREATE TABLE artist (country VARCHAR)
SELECT DISTINCT country FROM artist
What is To Par, when Player is "Tommy Bolt"?
CREATE TABLE table_name_55 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_55 WHERE player = "tommy bolt"
Which Artist has an Issue Price of $8,159.95?
CREATE TABLE table_name_11 (artist VARCHAR, issue_price VARCHAR)
SELECT artist FROM table_name_11 WHERE issue_price = "$8,159.95"
what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?
CREATE TABLE table_name_29 (giro_wins INTEGER, young_rider VARCHAR, jerseys VARCHAR, country VARCHAR)
SELECT SUM(giro_wins) FROM table_name_29 WHERE jerseys = 2 AND country = "portugal" AND young_rider > 0
How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification?
CREATE TABLE table_23995075_2 (remaining_places_in_finals VARCHAR, teams_that_can_still_qualify VARCHAR, teams_that_have_secured_qualification VARCHAR)
SELECT remaining_places_in_finals FROM table_23995075_2 WHERE teams_that_can_still_qualify = "1" AND teams_that_have_secured_qualification = "0"
Which race had an average climb of 40%?
CREATE TABLE table_1749567_2 (location VARCHAR, average_climb___percentage_ VARCHAR)
SELECT location FROM table_1749567_2 WHERE average_climb___percentage_ = 40
What is the total number of electorates in 2009 with a constituency of 193?
CREATE TABLE table_name_83 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = "193"
How many TV Channel using language English?
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English"
What was the winning % when there were 322 goals?
CREATE TABLE table_2259285_1 (winning_pct__percentage VARCHAR, goals_for VARCHAR)
SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 322
What was the lowest number of votes Scotland cast?
CREATE TABLE table_10128185_2 (scotland INTEGER)
SELECT MIN(scotland) FROM table_10128185_2
Income poverty f smaller than 13.6, and a Mining b of 1, and a Structural poverty g smaller than 7.8, so what is the total number of agriculture?
CREATE TABLE table_name_10 (agri_culture_b VARCHAR, structural_poverty_g VARCHAR, income_poverty_f VARCHAR, mining_b VARCHAR)
SELECT COUNT(agri_culture_b) FROM table_name_10 WHERE income_poverty_f < 13.6 AND mining_b = 1 AND structural_poverty_g < 7.8
What Player has 23 Tries?
CREATE TABLE table_name_61 (player VARCHAR, tries VARCHAR)
SELECT player FROM table_name_61 WHERE tries = 23
What is the High rebounds with a Team that is charlotte?
CREATE TABLE table_name_68 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte"
if they played last on 12/5/1987 what is their record
CREATE TABLE table_15740666_6 (current_streak VARCHAR, last_meeting VARCHAR)
SELECT current_streak FROM table_15740666_6 WHERE last_meeting = "12/5/1987"
How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?
CREATE TABLE table_26335424_86 (round_of_16 VARCHAR, round_of_32 VARCHAR)
SELECT COUNT(round_of_16) FROM table_26335424_86 WHERE round_of_32 = "Lakpa Tashi Sherpa ( BHU ) W PTS 12-5"
Name the date which has a home team of north melbourne
CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_3 WHERE home_team = "north melbourne"
What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008?
CREATE TABLE table_name_25 (venue VARCHAR, date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT venue FROM table_name_25 WHERE competition = "2010 fifa world cup qualification" AND result = "won" AND date = "14 june 2008"
How many pages does the story from 1987-08 have?
CREATE TABLE table_name_69 (pages VARCHAR, date VARCHAR)
SELECT pages FROM table_name_69 WHERE date = "1987-08"
What is the attendance for august 29?
CREATE TABLE table_name_9 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_9 WHERE date = "august 29"
How many different outcomes of the French Championships were there?
CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR)
SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships"
I want to know the drawn that has a tie of 0 and the player is chris cowdrey
CREATE TABLE table_name_25 (drawn VARCHAR, tied VARCHAR, player VARCHAR)
SELECT drawn FROM table_name_25 WHERE tied = "0" AND player = "chris cowdrey"
In which location was the method decision (split)?
CREATE TABLE table_name_26 (location VARCHAR, method VARCHAR)
SELECT location FROM table_name_26 WHERE method = "decision (split)"
What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?
CREATE TABLE table_name_42 (zone VARCHAR, opponent VARCHAR, round VARCHAR, against VARCHAR)
SELECT zone FROM table_name_42 WHERE round = "semifinal" AND against = "israel" AND opponent = "anna smashnova"
for a Goals Against greater than 42 what is the number of losses?
CREATE TABLE table_name_9 (losses INTEGER, goals_against INTEGER)
SELECT AVG(losses) FROM table_name_9 WHERE goals_against > 42
What category has showest award for the category awards?
CREATE TABLE table_name_9 (category VARCHAR, award VARCHAR)
SELECT category FROM table_name_9 WHERE award = "showest award"
What is the highest number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?
CREATE TABLE table_name_82 (wins INTEGER, points VARCHAR, draws VARCHAR, club VARCHAR)
SELECT MAX(wins) FROM table_name_82 WHERE draws > 4 AND club = "cd orense" AND points > 36
What is the low point total when there are over 5 games?
CREATE TABLE table_name_56 (points INTEGER, games INTEGER)
SELECT MIN(points) FROM table_name_56 WHERE games > 5
When were the Avenging Angels founded?
CREATE TABLE table_255188_1 (founded INTEGER, nickname VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE nickname = "Avenging Angels"
What date did the team play on week 8?
CREATE TABLE table_24278858_2 (date VARCHAR, week VARCHAR)
SELECT date FROM table_24278858_2 WHERE week = 8
What is the rank of the player who got 58179 in yardage?
CREATE TABLE table_18686317_1 (rank VARCHAR, yardage VARCHAR)
SELECT rank FROM table_18686317_1 WHERE yardage = 58179
What round does Bryan Berard do?
CREATE TABLE table_name_64 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_64 WHERE player = "bryan berard"
What is the total number of bronzes that is less than 1 in total?
CREATE TABLE table_name_24 (bronze VARCHAR, total INTEGER)
SELECT COUNT(bronze) FROM table_name_24 WHERE total < 1
In Cavalier County and the geo id is larger than 3801931620.0, what is the population?
CREATE TABLE table_18600760_7 (pop__2010_ VARCHAR, county VARCHAR, geo_id VARCHAR)
SELECT pop__2010_ FROM table_18600760_7 WHERE county = "Cavalier" AND geo_id > 3801931620.0
Which Label that has an Album of so red the rose?
CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)
SELECT label FROM table_name_61 WHERE album = "so red the rose"
What shows as the Diameter (km) when the Diameter (mi) is 5mi?
CREATE TABLE table_name_5 (diameter__km_ VARCHAR, diameter__mi_ VARCHAR)
SELECT diameter__km_ FROM table_name_5 WHERE diameter__mi_ = "5mi"
What was home team South Melbourne's opponents score?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE home_team = "south melbourne"
Which couple had a week 2 score of exactly 23?
CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)
SELECT couple FROM table_28946565_2 WHERE week_2 = 23
How many no outs are there for an average of 43.70?
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
SELECT not_out FROM table_20367820_16 WHERE average = "43.70"
What is the number drawn when 3 have been lost?
CREATE TABLE table_name_74 (drawn VARCHAR, lost VARCHAR)
SELECT drawn FROM table_name_74 WHERE lost = "3"
What is the event when the method was submission (armbar), and Jeff Gibson was the opponent?
CREATE TABLE table_name_67 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_67 WHERE method = "submission (armbar)" AND opponent = "jeff gibson"
What are the points against for 2000, when games won is 4 (1)?
CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)
SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2000 AND games_won___tests__ = "4 (1)"
Which surface was played during Curitiba tournament?
CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_46 WHERE tournament = "curitiba"
what are the names and classes of the ships that do not have any captain yet?
CREATE TABLE ship (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR); CREATE TABLE captain (name VARCHAR, CLASS VARCHAR, ship_id VARCHAR)
SELECT name, CLASS FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain)