answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_93 WHERE visitor = "edmonton"
What is the score of the game that had a visiting team of Edmonton?
CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR)
SELECT AVG(Snatch) FROM body_builder
What is the average snatch score of body builders?
CREATE TABLE body_builder (Snatch INTEGER)
SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319
What is the original air date of the episode with production code is 319?
CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_16 WHERE week < 13 AND opponent = "green bay packers"
Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?
CREATE TABLE table_name_16 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_27 WHERE debut_year < 1943 AND games < 12 AND goals < 11 AND years_at_club = "1942"
Which player debuted before 1943, played for the club in 1942, played less than 12 games, and scored less than 11 goals?
CREATE TABLE table_name_27 (player VARCHAR, years_at_club VARCHAR, goals VARCHAR, debut_year VARCHAR, games VARCHAR)
SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
What is the title of the representative appointed by James K. Polk?
CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)
SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom"
Show the name of ships whose nationality is either United States or United Kingdom.
CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR)
SELECT tyres FROM table_name_22 WHERE year > 1984
What were the Tyres after 1984?
CREATE TABLE table_name_22 (tyres VARCHAR, year INTEGER)
SELECT AVG(laps) FROM table_name_74 WHERE grid = 9
I want the average Laps for grid of 9
CREATE TABLE table_name_74 (laps INTEGER, grid VARCHAR)
SELECT "pick_the_winners" AS _score FROM table_name_70 WHERE match_score = "illawarra 19 souths 0"
What is the "Pick The Winners" score when the Match score was illawarra 19 souths 0?
CREATE TABLE table_name_70 (match_score VARCHAR)
SELECT opponent FROM table_name_5 WHERE surface = "hard (i)"
Who was the Opponent on a Hard (i) Surface?
CREATE TABLE table_name_5 (opponent VARCHAR, surface VARCHAR)
SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200"
WHAT IS THE RANK WITH A GROSS OF $96,773,200?
CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR)
SELECT date FROM table_23285761_8 WHERE score = "W 109–95 (OT)"
Name the date for score w 109–95 (ot)
CREATE TABLE table_23285761_8 (date VARCHAR, score VARCHAR)
SELECT SUM(matches) FROM table_name_67 WHERE overs < 59.1 AND economy_rate > 6.78
How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?
CREATE TABLE table_name_67 (matches INTEGER, overs VARCHAR, economy_rate VARCHAR)
SELECT AVG(rank) FROM table_name_79 WHERE lane = 1
What is the average rank of a swimmer in lane 1?
CREATE TABLE table_name_79 (rank INTEGER, lane VARCHAR)
SELECT conference FROM table_22779004_1 WHERE regular_season_winner = "Arizona State"
What was the conference when Arizona State won the regular season?
CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT mountains_classification FROM table_25551880_2 WHERE winner = "Alessandro Petacchi"
Who was awarded mountains classification when Alessandro petacchi won?
CREATE TABLE table_25551880_2 (mountains_classification VARCHAR, winner VARCHAR)
SELECT Title FROM book WHERE NOT Book_ID IN (SELECT Book_ID FROM publication)
List the titles of books that are not published.
CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Title VARCHAR, Book_ID VARCHAR)
SELECT MAX(height) FROM table_name_19 WHERE position = "c" AND current_club = "unicaja malaga"
What's the tallest height for c position in current club unicaja malaga?
CREATE TABLE table_name_19 (height INTEGER, position VARCHAR, current_club VARCHAR)
SELECT ground FROM table_16388545_1 WHERE crowd = 22537
Which location had an attendance of 22537?
CREATE TABLE table_16388545_1 (ground VARCHAR, crowd VARCHAR)
SELECT COUNT(hometown) FROM table_26263322_1 WHERE result = "Hired by Serepisos"
How many times was the result is hired by serepisos?
CREATE TABLE table_26263322_1 (hometown VARCHAR, result VARCHAR)
SELECT MAX(rank_by_average) FROM table_name_27 WHERE average = 25.3 AND number_of_dances > 10
What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?
CREATE TABLE table_name_27 (rank_by_average INTEGER, average VARCHAR, number_of_dances VARCHAR)
SELECT COUNT(game) FROM table_17360840_4 WHERE record = "1-3-3"
How many games with record 1-3-3
CREATE TABLE table_17360840_4 (game VARCHAR, record VARCHAR)
SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street"
During what years did the tallest building, located at 211 Union Street, have less than 31 floors?
CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
SELECT score FROM table_name_72 WHERE date = "30 april 1977"
I want the score for 30 april 1977
CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR)
SELECT MAX(position) FROM table_17366952_1 WHERE team = "Bangor City"
What is the highest position of the Bangor City team?
CREATE TABLE table_17366952_1 (position INTEGER, team VARCHAR)
SELECT MIN(points) FROM table_29261215_4 WHERE peeter_vähi = 9
What is the maximum points received when Peeter Vähl gave a 9?
CREATE TABLE table_29261215_4 (points INTEGER, peeter_vähi VARCHAR)
SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade"
What is the First Issue date of Bamboo Blade?
CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR)
SELECT iata FROM table_name_28 WHERE city = "jeddah"
Name the IATA for jeddah
CREATE TABLE table_name_28 (iata VARCHAR, city VARCHAR)
SELECT SUM(rank) FROM table_name_32 WHERE col__m_ = 0 AND peak = "aoraki/mount cook" AND prominence__m_ > 3 OFFSET 755
Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755?
CREATE TABLE table_name_32 (rank INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)
SELECT COUNT(average) FROM table_name_47 WHERE county = "tipperary" AND rank < 1
What is the average total in the county of tipperary with a rank less than 1?
CREATE TABLE table_name_47 (average VARCHAR, county VARCHAR, rank VARCHAR)
SELECT gold FROM table_name_56 WHERE year = 2006
What Gold has the Year of 2006?
CREATE TABLE table_name_56 (gold VARCHAR, year VARCHAR)
SELECT COUNT(gold) FROM table_name_32 WHERE silver > 1 AND nation = "vietnam" AND bronze < 3
How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?
CREATE TABLE table_name_32 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT weekly_schedule FROM table_name_75 WHERE timeslot = "11:00"
Which days of the week does the telenovela play that is aired at 11:00?
CREATE TABLE table_name_75 (weekly_schedule VARCHAR, timeslot VARCHAR)
SELECT conv FROM table_name_19 WHERE span = "1992-2000"
on the span of 1992-2000, what was the conv ?
CREATE TABLE table_name_19 (conv VARCHAR, span VARCHAR)
SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open"
What was the winning score of the Buy.com Siouxland Open?
CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR)
SELECT MIN(agricultural_panel) FROM table_name_29 WHERE industrial_and_commercial_panel = 9 AND national_university_of_ireland > 3
What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?
CREATE TABLE table_name_29 (agricultural_panel INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)
SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 2
What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts?
CREATE TABLE table_name_17 (wins INTEGER, starts VARCHAR, top_10 VARCHAR, winnings VARCHAR)
SELECT party FROM table_2668169_2 WHERE incumbent = "Mathias Morris"
Which party does the incumbent Mathias Morris belong to?
CREATE TABLE table_2668169_2 (party VARCHAR, incumbent VARCHAR)
SELECT final_score FROM table_name_28 WHERE attendance = "65,309"
What was the final score for the game with 65,309 people in attendance?
CREATE TABLE table_name_28 (final_score VARCHAR, attendance VARCHAR)
SELECT fsb FROM table_16729930_11 WHERE model_number = "Atom Z540"
Name the fsb for atom z540
CREATE TABLE table_16729930_11 (fsb VARCHAR, model_number VARCHAR)
SELECT 2008 FROM table_name_34 WHERE 2003 = "325"
What is the 2008 result where 2003 is 325?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT player FROM table_name_84 WHERE height = 182
What is the name of the player who is a height of 182?
CREATE TABLE table_name_84 (player VARCHAR, height VARCHAR)
SELECT perpetrator FROM table_name_85 WHERE location = "baghdad"
Who went on a rampage in Baghdad?
CREATE TABLE table_name_85 (perpetrator VARCHAR, location VARCHAR)
SELECT score FROM table_name_7 WHERE couple = "cristián & cheryl" AND style = "cha-cha-cha"
Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
CREATE TABLE table_name_7 (score VARCHAR, couple VARCHAR, style VARCHAR)
SELECT finish FROM table_name_20 WHERE total = 273
What is the Finish of the Player with a Total of 273?
CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR)
SELECT institution FROM table_2293402_2 WHERE type = "Private"
Name the school that is private
CREATE TABLE table_2293402_2 (institution VARCHAR, type VARCHAR)
SELECT DISTINCT name FROM instructor ORDER BY name
List in alphabetic order the names of all distinct instructors.
CREATE TABLE instructor (name VARCHAR)
SELECT COUNT(date_of_issue) FROM table_298883_5 WHERE obverse = "Kumsusan Memorial Palace"
How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?
CREATE TABLE table_298883_5 (date_of_issue VARCHAR, obverse VARCHAR)
SELECT MIN(game) FROM table_name_30 WHERE record = "11-4"
Which Game is the lowest one that has a Record of 11-4?
CREATE TABLE table_name_30 (game INTEGER, record VARCHAR)
SELECT opponent FROM table_name_56 WHERE date = "april 2"
Who was the opponent on April 2?
CREATE TABLE table_name_56 (opponent VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_65 WHERE english_title = "my queen"
Tell me the average year for my queen
CREATE TABLE table_name_65 (year INTEGER, english_title VARCHAR)
SELECT loss FROM table_name_3 WHERE record = "36-20"
Who did the Blue Jays lose to when their record was 36-20?
CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR)
SELECT longitude FROM table_18600760_3 WHERE latitude = "48.075823"
What was the longitude of the township with a latitude of 48.075823?
CREATE TABLE table_18600760_3 (longitude VARCHAR, latitude VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "melbourne"
On what date did the away team Melbourne play?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT score FROM table_19072602_1 WHERE match_no = 4
What was the score at the end of the match number 4?
CREATE TABLE table_19072602_1 (score VARCHAR, match_no VARCHAR)
SELECT country FROM table_name_55 WHERE notes = "sa/b" AND time = "5:51.30"
What country has sa/b as the notes, and a time of 5:51.30?
CREATE TABLE table_name_55 (country VARCHAR, notes VARCHAR, time VARCHAR)
SELECT 2000 FROM table_name_66 WHERE 2001 = "a" AND 2010 = "3r"
What is the 2000 figure when 2010 is 3R and 2001 is A?
CREATE TABLE table_name_66 (Id VARCHAR)
SELECT SUM(field_goals) FROM table_name_91 WHERE touchdowns = 8 AND points > 49
How many field goals are there that have 8 touchdowns and more than 49 points?
CREATE TABLE table_name_91 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE density² = "165.81"
How many provinces have a density of 165.81?
CREATE TABLE table_254234_1 (iso_ VARCHAR, density² VARCHAR)
SELECT COUNT(track) FROM table_name_21 WHERE translation = "the fallen angel"
Name the total number of tracks for of the fallen angel
CREATE TABLE table_name_21 (track VARCHAR, translation VARCHAR)
SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36
What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals?
CREATE TABLE table_name_21 (rank INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MAX(laps) FROM table_name_41 WHERE points = "5"
What is the highest number of laps for the driver with 5 points?
CREATE TABLE table_name_41 (laps INTEGER, points VARCHAR)
SELECT to_par FROM table_name_91 WHERE player = "peter senior"
What is the to par of player peter senior?
CREATE TABLE table_name_91 (to_par VARCHAR, player VARCHAR)
SELECT season FROM table_name_95 WHERE number < 90 AND league = "mitte" AND team = "spvgg ruhmannsfelden"
What season has a number less than 90, Mitte as the league and spvgg ruhmannsfelden as the team?
CREATE TABLE table_name_95 (season VARCHAR, team VARCHAR, number VARCHAR, league VARCHAR)
SELECT score FROM table_name_86 WHERE opponent_in_the_final = "jim courier"
What score has jim courier as the opponent in the final?
CREATE TABLE table_name_86 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril"
Name the 125cc winner with circuit of estoril
CREATE TABLE table_name_2 (circuit VARCHAR)
SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name
Find the total number of students and total number of instructors for each department.
CREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR)
SELECT SUM(pl_gp) FROM table_name_90 WHERE pick__number = 199 AND reg_gp > 0
What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?
CREATE TABLE table_name_90 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)
SELECT COUNT(viewers) FROM table_name_47 WHERE episode = "gary gets boundaries"
How many viewed the episode gary gets boundaries?
CREATE TABLE table_name_47 (viewers VARCHAR, episode VARCHAR)
SELECT surface FROM table_22597626_6 WHERE score_in_the_final = "6–0, 6–3"
Name the surface for 6–0, 6–3
CREATE TABLE table_22597626_6 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT location_attendance FROM table_27700530_13 WHERE date = "March 9"
What was the location and attendance on March 9?
CREATE TABLE table_27700530_13 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_1 WHERE date = "february 5"
What was the lowest Attendance for Games played on the Date of February 5?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT MAX(participants) FROM table_name_13 WHERE rank = 5 AND silver < 0
What is listed as the highest Participants that also have a Rank of 5, and Silver that's smaller than 0?
CREATE TABLE table_name_13 (participants INTEGER, rank VARCHAR, silver VARCHAR)
SELECT name FROM table_name_86 WHERE date_from = "2008-02-21"
What was the name for the row with Date From of 2008-02-21?
CREATE TABLE table_name_86 (name VARCHAR, date_from VARCHAR)
SELECT MAX(points) FROM table_name_11 WHERE wins = 0 AND year < 1992
What is the highest number of points the team with 0 wins had before 1992?
CREATE TABLE table_name_11 (points INTEGER, wins VARCHAR, year VARCHAR)
SELECT home_team AS score FROM table_name_50 WHERE away_team = "richmond"
What was the home team score for the Richmond away team?
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
SELECT released FROM table_name_41 WHERE english_title = "oxygenie of happiness"
English title of oxygenie of happiness has what release date?
CREATE TABLE table_name_41 (released VARCHAR, english_title VARCHAR)
SELECT COUNT(opponent) FROM table_11406866_2 WHERE date = "November 23, 1980"
what is the total number of opponent where date is november 23, 1980
CREATE TABLE table_11406866_2 (opponent VARCHAR, date VARCHAR)
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup"
What Club has Fiba European Champion's Cup and an Italian Cup?
CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800
What is the average duration of songs that have mp3 format and resolution below 800?
CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE home_team = "footscray"
When the home team was footscray what did they score?
CREATE TABLE table_name_27 (home_team VARCHAR)
SELECT MIN(inhabitants_per_km²) FROM table_16278673_1 WHERE markatal = 49
Name the minimum inhabitants for markatal 49
CREATE TABLE table_16278673_1 (inhabitants_per_km² INTEGER, markatal VARCHAR)
SELECT record FROM table_name_34 WHERE week = 13
What is the record of the game on week 13?
CREATE TABLE table_name_34 (record VARCHAR, week VARCHAR)
SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing"
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong
CREATE TABLE table_15511178_3 (report VARCHAR, pole_position VARCHAR, winning_team VARCHAR)
SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 6
What is the highest rank of the day with a gross of $38,916 and more than 6 screens?
CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR)
SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2
Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)
SELECT game_site FROM table_name_44 WHERE week > 14
Which Game site has a Week larger than 14?
CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER)
SELECT date FROM table_name_32 WHERE catalog = "alca-275"
On what date was the record with catalog ALCA-275 released?
CREATE TABLE table_name_32 (date VARCHAR, catalog VARCHAR)
SELECT film_title FROM table_26385848_1 WHERE year__ceremony_ = "1995 (68th)"
In the year (ceremony) 1995 (68th), what is the film title?
CREATE TABLE table_26385848_1 (film_title VARCHAR, year__ceremony_ VARCHAR)
SELECT rank FROM table_name_90 WHERE lane = 6 AND heat = 2
Can you tell me the Rank that has the Lane of 6, and the Heat of 2?
CREATE TABLE table_name_90 (rank VARCHAR, lane VARCHAR, heat VARCHAR)
SELECT home_team FROM table_name_24 WHERE game = "game 1"
Which Home Team has a Game of game 1?
CREATE TABLE table_name_24 (home_team VARCHAR, game VARCHAR)
SELECT event FROM table_name_36 WHERE round = "1" AND opponent = "dan spychalski"
Which event lasted 1 round and included an opponent of Dan Spychalski?
CREATE TABLE table_name_36 (event VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT school FROM table_name_71 WHERE round > 3 AND player = "jason odom"
Which school has more than 3 rounds with jason odom?
CREATE TABLE table_name_71 (school VARCHAR, round VARCHAR, player VARCHAR)
SELECT year FROM table_name_44 WHERE production = "wicked" AND award = "green room awards"
During what year was Wicked associated with the Green Room Awards?
CREATE TABLE table_name_44 (year VARCHAR, production VARCHAR, award VARCHAR)
SELECT model FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)@5400-6500"
What Petrol engine has total power of ps (kw; bhp)@5400-6500?
CREATE TABLE table_21154679_1 (model VARCHAR, max_power VARCHAR)
SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = "pp."
A plural abbreviation of pp. is used for what singular word?
CREATE TABLE table_name_82 (singular_word VARCHAR, plural_abbreviation VARCHAR)
SELECT decision FROM table_name_22 WHERE record = "28-35-1"
For the game that ended with a record of 28-35-1, what was the decision?
CREATE TABLE table_name_22 (decision VARCHAR, record VARCHAR)
SELECT record FROM table_name_4 WHERE home = "new york rangers" AND date = "april 17"
What is Record, when Home is "New York Rangers", and when Date is "April 17"?
CREATE TABLE table_name_4 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'
Find the number of routes whose destination airports are in Canada.
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR)