answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(pick) FROM table_name_24 WHERE team = "tri-cities blackhawks" AND college = "drake"
What is the sum total of picks for drake players from the tri-cities blackhawks?
CREATE TABLE table_name_24 (pick INTEGER, team VARCHAR, college VARCHAR)
SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "albion congregational church"
Which type has a list entry number more than 1356436, named Albion Congregational Church?
CREATE TABLE table_name_64 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR)
SELECT score FROM table_name_44 WHERE high_rebounds = "howard (8)"
Name the score for howard (8) high rebounds
CREATE TABLE table_name_44 (score VARCHAR, high_rebounds VARCHAR)
SELECT elite_eight FROM table_name_89 WHERE sweet_sixteen = "1" AND win__percentage = ".875"
What Elite Eight had a Sweet Sixteen of 1 and a win % of .875?
CREATE TABLE table_name_89 (elite_eight VARCHAR, sweet_sixteen VARCHAR, win__percentage VARCHAR)
SELECT horse FROM table_name_43 WHERE jockey = "jara"
What horse for jara?
CREATE TABLE table_name_43 (horse VARCHAR, jockey VARCHAR)
SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = "noble county" AND school = "wawaka"
Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?
CREATE TABLE table_name_83 (location VARCHAR, school VARCHAR, year_joined VARCHAR, previous_conference VARCHAR)
SELECT tie_no FROM table_name_21 WHERE home_team = "wigan athletic"
What is the tie number when Wigan Athletic is the home team?
CREATE TABLE table_name_21 (tie_no VARCHAR, home_team VARCHAR)
SELECT gp_gs FROM table_name_44 WHERE receptions > 4 AND long = 55 AND avg_g = 151
what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151?
CREATE TABLE table_name_44 (gp_gs VARCHAR, avg_g VARCHAR, receptions VARCHAR, long VARCHAR)
SELECT SUM(laps) FROM table_name_20 WHERE driver = "derek warwick"
What is the sum of laps for Derek Warwick?
CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR)
SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk"
what is the title when the year is after 2011 and the original channel is nhk?
CREATE TABLE table_name_71 (title VARCHAR, year VARCHAR, original_channel VARCHAR)
SELECT time FROM table_name_30 WHERE nation = "kenya" AND rank = "2"
What is the time of kenya, which is ranked 2?
CREATE TABLE table_name_30 (time VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_14 WHERE away_team = "collingwood"
What venue had collingwood as the away team?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT city FROM table_name_31 WHERE state = "maharashtra" AND team = "pune"
Where is the city of Maharashtra's Pune team?
CREATE TABLE table_name_31 (city VARCHAR, state VARCHAR, team VARCHAR)
SELECT MIN(points) FROM table_name_8 WHERE place > 10
Which places have points larger than 10?
CREATE TABLE table_name_8 (points INTEGER, place INTEGER)
SELECT county FROM table_10586064_2 WHERE total = "18,900 (R)"
What country had the total 18,900 (r)?
CREATE TABLE table_10586064_2 (county VARCHAR, total VARCHAR)
SELECT SUM(draws) FROM table_name_53 WHERE losses > 16 AND season > 1966
Which Draws have Losses larger than 16, and a Season larger than 1966?
CREATE TABLE table_name_53 (draws INTEGER, losses VARCHAR, season VARCHAR)
SELECT order_id, COUNT(*) FROM Invoices GROUP BY order_id
Show the order ids and the number of invoices for each order.
CREATE TABLE Invoices (order_id VARCHAR)
SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)
Find the average age of students who do not have any pet .
CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE has_pet (age INTEGER, stuid VARCHAR)
SELECT reason_for_termination FROM table_name_14 WHERE appointed_by = "eisenhower category:articles with hcards"
Which Reason for termination has Appointed by of eisenhower category:articles with hcards?
CREATE TABLE table_name_14 (reason_for_termination VARCHAR, appointed_by VARCHAR)
SELECT date FROM table_name_79 WHERE city = "zagreb"
When was the game played in Zagreb?
CREATE TABLE table_name_79 (date VARCHAR, city VARCHAR)
SELECT COUNT(league_cup) FROM table WHERE r = 4
How many times was the r 4?
CREATE TABLE table (league_cup VARCHAR, r VARCHAR)
SELECT score FROM table_name_84 WHERE date = "15/6/03"
What was the score for the date of 15/6/03
CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR)
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg"
When tus rosenberg is the oberpfalz what is the oberbayern b?
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)
SELECT MAX(rank) FROM table_name_99 WHERE team = "grupo capitol valladolid" AND games > 34
What is Grupo Capitol Valladolid's highest rank with more than 34 games?
CREATE TABLE table_name_99 (rank INTEGER, team VARCHAR, games VARCHAR)
SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162
What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?
CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR)
SELECT language FROM table_name_3 WHERE television_service = "telemarket for you"
What language is telemarket for you?
CREATE TABLE table_name_3 (language VARCHAR, television_service VARCHAR)
SELECT event_1_medley FROM table_24302700_2 WHERE event_3_squat_lift = "4 (6 in 31.85s)"
What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?
CREATE TABLE table_24302700_2 (event_1_medley VARCHAR, event_3_squat_lift VARCHAR)
SELECT guest_performer FROM table_name_8 WHERE time = "5:49"
Which guest performer has a track length of 5:49?
CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR)
SELECT AVG(rank) FROM table_name_26 WHERE candidate_name = "antun salman"
What is the average rank for antun salman?
CREATE TABLE table_name_26 (rank INTEGER, candidate_name VARCHAR)
SELECT växjö FROM table_name_53 WHERE karlstad = "1"
What did Vaxjo score when Karlstad scored 1?
CREATE TABLE table_name_53 (växjö VARCHAR, karlstad VARCHAR)
SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox"
What location did david mccann receive a siver and morgan fox win the gold?
CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT description FROM table_256286_23 WHERE _percentage_yes = "39.57%"
What is the description of the measure that got 39.57% yes votes?
CREATE TABLE table_256286_23 (description VARCHAR, _percentage_yes VARCHAR)
SELECT retired FROM table_13605170_2 WHERE aircraft_type = "Airspeed Fleet Shadower"
How many Airspeed Fleet Shadower aircraft are retired?
CREATE TABLE table_13605170_2 (retired VARCHAR, aircraft_type VARCHAR)
SELECT scored_1, 500 AS _points FROM table_name_34 WHERE years_played = "2004–2008" AND name = "jolene anderson"
WHich Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson?
CREATE TABLE table_name_34 (scored_1 VARCHAR, years_played VARCHAR, name VARCHAR)
SELECT category FROM table_name_9 WHERE year = 2013 AND nominated_work = "the berlin file"
Which category was the berlin file up to win in 2013?
CREATE TABLE table_name_9 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)
SELECT MAX(rank) FROM table_name_87 WHERE wins__outdoor_ > 1 AND wins__indoor_ < 0
Name the most rank for wins outdoor larger than 1 and wins indoor less than 0
CREATE TABLE table_name_87 (rank INTEGER, wins__outdoor_ VARCHAR, wins__indoor_ VARCHAR)
SELECT current_status FROM table_name_66 WHERE livery = "network south-east"
What's the Current Status of Livery of the Network South-East?
CREATE TABLE table_name_66 (current_status VARCHAR, livery VARCHAR)
SELECT MIN(played) FROM table_name_76 WHERE position > 9
what is the lowest played when the position is more than 9?
CREATE TABLE table_name_76 (played INTEGER, position INTEGER)
SELECT SUM(crowd) FROM table_name_36 WHERE home_team = "fitzroy"
What was the attendance at the Fitzroy home game?
CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
SELECT position FROM table_name_78 WHERE surname = "naylor"
Which Position has a Surname of naylor?
CREATE TABLE table_name_78 (position VARCHAR, surname VARCHAR)
SELECT stadium FROM table_21377473_7 WHERE score = "1 - 1 Leckie 90+3'"
When 1 - 1 leckie 90+3' is the score what is the stadium?
CREATE TABLE table_21377473_7 (stadium VARCHAR, score VARCHAR)
SELECT high_assists FROM table_27712702_11 WHERE team = "Detroit"
Who had the high assists against detroit?
CREATE TABLE table_27712702_11 (high_assists VARCHAR, team VARCHAR)
SELECT manner_of_departure FROM table_22297140_3 WHERE team = "Gostaresh Foolad"
What was the manner of leaving the team for the manager of Gostaresh Foolad?
CREATE TABLE table_22297140_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT rd FROM table_10706961_2 WHERE name = "Indianapolis 500"
Which Rd took place at the Indianapolis 500?
CREATE TABLE table_10706961_2 (rd VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_78 WHERE name = "melaine walker"
What is Melaine Walker's Rank?
CREATE TABLE table_name_78 (rank INTEGER, name VARCHAR)
SELECT time_retired FROM table_name_4 WHERE grid = 6
What is the Time/Retired for Grid 6?
CREATE TABLE table_name_4 (time_retired VARCHAR, grid VARCHAR)
SELECT position FROM table_name_56 WHERE competition = "european indoor championships"
What place did Târlea come in at the European Indoor Championships?
CREATE TABLE table_name_56 (position VARCHAR, competition VARCHAR)
SELECT song FROM table_19249824_1 WHERE result = "Out" AND country = "Sweden"
With the country of Sweden and the result is out, what is the song?
CREATE TABLE table_19249824_1 (song VARCHAR, result VARCHAR, country VARCHAR)
SELECT visitor FROM table_name_26 WHERE date = "december 25"
What is the Visitor of the game on December 25?
CREATE TABLE table_name_26 (visitor VARCHAR, date VARCHAR)
SELECT date_final FROM table_name_90 WHERE year = "1989"
What date final has 1989 as the year?
CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR)
SELECT aircraft_flown FROM table_name_40 WHERE axis_unit = "luftwaffe (**)" AND enemy_aircraft = "ju.88"
What was the aircraft flown when the axis unit was luftwaffe (**) and the enemy aircraft was ju.88?
CREATE TABLE table_name_40 (aircraft_flown VARCHAR, axis_unit VARCHAR, enemy_aircraft VARCHAR)
SELECT steals FROM table_19722664_5 WHERE player = "Nicole Levandusky"
How many steals did Nicole Levandusky make?
CREATE TABLE table_19722664_5 (steals VARCHAR, player VARCHAR)
SELECT COUNT(*), project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id
How many documents are with document type code BK for each product id?
CREATE TABLE Documents (project_id VARCHAR, document_type_code VARCHAR)
SELECT high_rebounds FROM table_name_80 WHERE high_assists = "rafer alston , rashard lewis , hedo türkoğlu (3)"
What is High Rebounds, when High Assists is "Rafer Alston , Rashard Lewis , Hedo Türkoğlu (3)"?
CREATE TABLE table_name_80 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT score FROM table_name_50 WHERE december > 29
after december 29 what is the score?
CREATE TABLE table_name_50 (score VARCHAR, december INTEGER)
SELECT country FROM table_name_88 WHERE icao = "wadd"
What is the country of the airport with ICAO of WADD?
CREATE TABLE table_name_88 (country VARCHAR, icao VARCHAR)
SELECT position FROM table_name_48 WHERE school = "clemson"
What position did the person from Clemson school fill?
CREATE TABLE table_name_48 (position VARCHAR, school VARCHAR)
SELECT team_classification FROM table_28298471_14 WHERE points_classification = "Michael Van Stayen"
When michael van stayen is the points classification what is the team classification?
CREATE TABLE table_28298471_14 (team_classification VARCHAR, points_classification VARCHAR)
SELECT against FROM table_name_76 WHERE date = "17/02/1979"
What is the against for 17/02/1979?
CREATE TABLE table_name_76 (against VARCHAR, date VARCHAR)
SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = "8,552.4"
What division had a population density of 8,552.4 km2 in 2011?
CREATE TABLE table_24027047_1 (administrative_division VARCHAR, population_density___km²_2011_ VARCHAR)
SELECT truck_details FROM trucks ORDER BY truck_licence_number
Show the details of all trucks in the order of their license number.
CREATE TABLE trucks (truck_details VARCHAR, truck_licence_number VARCHAR)
SELECT state FROM table_name_4 WHERE mountain_peak = "west spanish peak"
Which state is West Spanish Peak in?
CREATE TABLE table_name_4 (state VARCHAR, mountain_peak VARCHAR)
SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Please show the industries of companies in descending order of the number of companies.
CREATE TABLE Companies (Industry VARCHAR)
SELECT COUNT(game) FROM table_name_70 WHERE team = "minnesota"
What game was Minnesota the team?
CREATE TABLE table_name_70 (game VARCHAR, team VARCHAR)
SELECT session FROM table_name_84 WHERE event = "fall nationals"
The Fall Nationals has what sessions?
CREATE TABLE table_name_84 (session VARCHAR, event VARCHAR)
SELECT record FROM table_11391448_2 WHERE week = 7
What was the record at week 7
CREATE TABLE table_11391448_2 (record VARCHAR, week VARCHAR)
SELECT COUNT(lost) FROM table_name_1 WHERE against < 15
How many losses have points against less than 15?
CREATE TABLE table_name_1 (lost VARCHAR, against INTEGER)
SELECT result FROM table_1341690_20 WHERE incumbent = "Robert Bauman"
What are all the results where Robert Bauman is the incumbent politician?
CREATE TABLE table_1341690_20 (result VARCHAR, incumbent VARCHAR)
SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141
What was the average of games that were one in 1978 that were smaller than 141?
CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR)
SELECT fleet FROM table_name_61 WHERE number = "l4"
what fleet is associated with the number L4?
CREATE TABLE table_name_61 (fleet VARCHAR, number VARCHAR)
SELECT club FROM table_name_27 WHERE runners_up = "13"
Which club had 13 runners-up?
CREATE TABLE table_name_27 (club VARCHAR, runners_up VARCHAR)
SELECT term_ended FROM table_224672_2 WHERE term_began = "January 3, 2007"
When did the term end that began January 3, 2007?
CREATE TABLE table_224672_2 (term_ended VARCHAR, term_began VARCHAR)
SELECT COUNT(win__percentage) FROM table_name_93 WHERE conference = "hockey east" AND _number_of_bids < 4
For the Hockey East conference, what is the total number of win percentages when there are less than 4 bids?
CREATE TABLE table_name_93 (win__percentage VARCHAR, conference VARCHAR, _number_of_bids VARCHAR)
SELECT COUNT(won) FROM table_2509505_1 WHERE goals_for = 274
Name the number of won for goals for being 274
CREATE TABLE table_2509505_1 (won VARCHAR, goals_for VARCHAR)
SELECT COUNT(womens_singles) FROM table_12027364_1 WHERE mens_singles = "Peter Rasmussen"
How many womens singles winners were there when peter rasmussen won the mens singles?
CREATE TABLE table_12027364_1 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT manager FROM table_name_3 WHERE fund = "fmc corporation pension fund"
Who is the manager for FMC Corporation pension fund?
CREATE TABLE table_name_3 (manager VARCHAR, fund VARCHAR)
SELECT AVG(attendance) FROM table_name_62 WHERE opponent = "braves" AND record = "56-53"
What was the attendance when the Braves were the opponent and the record was 56-53?
CREATE TABLE table_name_62 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT record FROM table_name_20 WHERE event = "ufc 67"
What is his record at ufc 67?
CREATE TABLE table_name_20 (record VARCHAR, event VARCHAR)
SELECT school FROM table_2076490_1 WHERE enrollment__2005_ = "69"
What school had an enrollment in 2005 of 69?
CREATE TABLE table_2076490_1 (school VARCHAR, enrollment__2005_ VARCHAR)
SELECT edition FROM table_name_69 WHERE date = "september 23, 2008" AND region = "united states"
What kind of edition was released September 23, 2008 from the United States?
CREATE TABLE table_name_69 (edition VARCHAR, date VARCHAR, region VARCHAR)
SELECT COUNT(goals_for) FROM table_name_6 WHERE pct__percentage > 0.557 AND points < 90 AND games > 68
How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?
CREATE TABLE table_name_6 (goals_for VARCHAR, games VARCHAR, pct__percentage VARCHAR, points VARCHAR)
SELECT high_points FROM table_name_79 WHERE location_attendance = "conseco fieldhouse 7,134"
What is the highest number of points of the game in Conseco fieldhouse 7,134?
CREATE TABLE table_name_79 (high_points VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná"
What was the final score of the game against Lenka Novotná?
CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT frame_size FROM table_1251878_3 WHERE maximum_fps = 30
What size is a 30 frames per minute
CREATE TABLE table_1251878_3 (frame_size VARCHAR, maximum_fps VARCHAR)
SELECT grid FROM table_name_53 WHERE time_retired = "+6.8359"
What is the grid with a +6.8359 time/retired?
CREATE TABLE table_name_53 (grid VARCHAR, time_retired VARCHAR)
SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League"
Where was the Ivy League conference tournament?
CREATE TABLE table_21091982_3 (tournament_venue__city_ VARCHAR, conference VARCHAR)
SELECT name FROM table_name_46 WHERE year_named = 1994 AND diameter__km_ > 125 AND latitude = "30.0s"
What name was given in 1994 when the diameter (km) was larger than 125 and the latitude was 30.0s?
CREATE TABLE table_name_46 (name VARCHAR, latitude VARCHAR, year_named VARCHAR, diameter__km_ VARCHAR)
SELECT MIN(round) FROM table_name_84 WHERE position = "defensive back" AND pick = 226
Name the Round which has a Position of defensive back and a Pick of 226?
CREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)
SELECT build_year FROM table_name_44 WHERE total_production = 150
Tell me the build year for total production of 150
CREATE TABLE table_name_44 (build_year VARCHAR, total_production VARCHAR)
SELECT diameter FROM table_name_80 WHERE €_equiv = "0.60"
What is the diameter of the coin with a € equivalence of 0.60?
CREATE TABLE table_name_80 (diameter VARCHAR, €_equiv VARCHAR)
SELECT result FROM table_21790203_1 WHERE language_s_ = "Japanese"
Name the result for japanese
CREATE TABLE table_21790203_1 (result VARCHAR, language_s_ VARCHAR)
SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research"
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?
CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR)
SELECT telugu_తెలుగు FROM table_name_87 WHERE kannada_ಕನ್ನಡ = "chitra ಚಿತ್ತ"
Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?
CREATE TABLE table_name_87 (telugu_తెలుగు VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT home_team FROM table_name_8 WHERE road_team = "st. louis" AND date = "april 13"
What is the Home Team on April 13 with a Road Team of St. Louis?
CREATE TABLE table_name_8 (home_team VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT week_4 FROM table_name_80 WHERE week_3 = "cidney carson"
Which week 4 had a week 3 of Cidney Carson?
CREATE TABLE table_name_80 (week_4 VARCHAR, week_3 VARCHAR)
SELECT MIN(week) FROM table_name_76 WHERE result = "l 35-10"
In what week was the Result L 35-10?
CREATE TABLE table_name_76 (week INTEGER, result VARCHAR)
SELECT away_team FROM table_name_97 WHERE home_team = "richmond"
When Richmond was the Home team, who was the away team?
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(average_cards_a_game) FROM table_name_78 WHERE season = "1997/1998" AND games > 38
Which Average Cards a game has a Season of 1997/1998, and a Games larger than 38?
CREATE TABLE table_name_78 (average_cards_a_game INTEGER, season VARCHAR, games VARCHAR)
SELECT date_of_birth__age_ FROM table_name_4 WHERE caps = 51 AND club_province = "clermont"
When was the player with 51 caps from a Club/province of clermont born?
CREATE TABLE table_name_4 (date_of_birth__age_ VARCHAR, caps VARCHAR, club_province VARCHAR)
SELECT SUM(grid) FROM table_name_96 WHERE time_retired = "+1:12.208" AND laps > 24
How many grids have more than 24 laps with a time/retired of +1:12.208?
CREATE TABLE table_name_96 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)