answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT turbo FROM table_name_30 WHERE cores = "standard power"
what is the turbo when the cores is standard power?
CREATE TABLE table_name_30 (turbo VARCHAR, cores VARCHAR)
SELECT tier FROM table_name_46 WHERE semi_finalists = "sandrine testud mary pierce" AND runner_up = "lisa raymond"
What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?
CREATE TABLE table_name_46 (tier VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)
SELECT date FROM table_name_67 WHERE field = "commerce bank ballpark"
What is the date of the game at Commerce Bank Ballpark?
CREATE TABLE table_name_67 (date VARCHAR, field VARCHAR)
SELECT SUM(grid) FROM table_name_44 WHERE manufacturer = "aprilia" AND laps < 19 AND rider = "sandro cortese"
What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps?
CREATE TABLE table_name_44 (grid INTEGER, rider VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT playoffs_mvp FROM table_name_65 WHERE result = "4–1" AND champions = "daejeon hyundai dynat"
What is the Playoffs MVP of the game with a Result of 4–1 with Champions Daejeon Hyundai Dynat?
CREATE TABLE table_name_65 (playoffs_mvp VARCHAR, result VARCHAR, champions VARCHAR)
SELECT date FROM table_name_97 WHERE away_team = "carlton"
If the Away team was carlton, what Date did they play?
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 21
What is the lowest Lost for são paulo railway, Points more than 21?
CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR)
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix"
Name the winning driver for monaco grand prix
CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR)
SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38
What is the number of goals against when the played is more than 38?
CREATE TABLE table_name_19 (goals_against VARCHAR, played INTEGER)
SELECT faroese FROM table_name_83 WHERE english = "white"
Which Faroese has an English of white?
CREATE TABLE table_name_83 (faroese VARCHAR, english VARCHAR)
SELECT moving_from FROM table_name_55 WHERE rank = 9
The player with a rank of 9, made a move from what football club?
CREATE TABLE table_name_55 (moving_from VARCHAR, rank VARCHAR)
SELECT type_of_game FROM table_name_27 WHERE date = "june 14"
what game was played on june 14
CREATE TABLE table_name_27 (type_of_game VARCHAR, date VARCHAR)
SELECT league FROM table_name_68 WHERE season = "2012–13"
Season of 2012–13 is what league?
CREATE TABLE table_name_68 (league VARCHAR, season VARCHAR)
SELECT name FROM table_name_5 WHERE club = "spandau 04" AND height = "m (ft 4in)" AND pos = "d"
What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?
CREATE TABLE table_name_5 (name VARCHAR, pos VARCHAR, club VARCHAR, height VARCHAR)
SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = "ted varnick"
Name the orchestra for ted varnick
CREATE TABLE table_name_41 (orchestra VARCHAR, songwriter_s_ VARCHAR)
SELECT original_air_date FROM table_2618072_1 WHERE written_by = "Michael S. Chernuchin & Joe Morgenstern"
When was the original air date written by michael s. chernuchin & joe morgenstern?
CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT(field_goals) FROM table_14342592_8 WHERE extra_points = 19
Name the number of field goals for 19 extra points
CREATE TABLE table_14342592_8 (field_goals VARCHAR, extra_points VARCHAR)
SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993
When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?
CREATE TABLE table_name_78 (civil_liberties INTEGER, year VARCHAR, political_rights VARCHAR, president VARCHAR)
SELECT party FROM table_2668401_12 WHERE district = "Pennsylvania 8"
What are the parties listed for Pennsylvania 8?
CREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR)
SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1
find the name of employee who was awarded the most times in the evaluation.
CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)
SELECT fielding_team FROM table_11303072_5 WHERE runs = "155"
What is the fielding team with 155 runs?
CREATE TABLE table_11303072_5 (fielding_team VARCHAR, runs VARCHAR)
SELECT 1 AS st_round FROM table_name_91 WHERE team_2 = "paris sg (d1)"
What is the 1st round with a team 2 paris sg (d1)?
CREATE TABLE table_name_91 (team_2 VARCHAR)
SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball"
What competition had a Rank-Qualifying of 1st and a ball apparatus?
CREATE TABLE table_name_94 (competition_description VARCHAR, rank_qualifying VARCHAR, apparatus VARCHAR)
SELECT SUM(total) FROM table_name_85 WHERE finish = "t6"
How many totals have t6 as the finish?
CREATE TABLE table_name_85 (total INTEGER, finish VARCHAR)
SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995"
What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?
CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT MIN(stations_served) FROM table_name_39 WHERE line_color = "brown"
What route with the line color brown has the lowest number of stations served?
CREATE TABLE table_name_39 (stations_served INTEGER, line_color VARCHAR)
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button"
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT date FROM table_name_65 WHERE catalog = "lp 5060"
What is the Date for Catalog of lp 5060?
CREATE TABLE table_name_65 (date VARCHAR, catalog VARCHAR)
SELECT score FROM table_name_64 WHERE record = "79-77"
What was the score of the game that led to a 79-77 record?
CREATE TABLE table_name_64 (score VARCHAR, record VARCHAR)
SELECT AVG(league_goals) FROM table_name_80 WHERE fa_cup_apps = "2" AND total_goals < 0
Which League Goals have FA Cup Apps of 2, and Total Goals smaller than 0?
CREATE TABLE table_name_80 (league_goals INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
Find the unit of measurement and product category code of product named "chervil".
CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE fighter = "manny pacquiao"
When did Manny Pacquiao win his first championship?
CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR)
SELECT opponent FROM table_name_25 WHERE attendance = "38,150"
Who was the Opponent when the Attendance was 38,150?
CREATE TABLE table_name_25 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM"
Name the number of coverage for 106.7 energy fm
CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR)
SELECT location FROM table_name_23 WHERE name = "telmatosaurus"
What is the Location when the name is telmatosaurus?
CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR)
SELECT road_record FROM table_23183195_2 WHERE overall_record = "22-11"
What is the road record for the team with an overall record of 22-11?
CREATE TABLE table_23183195_2 (road_record VARCHAR, overall_record VARCHAR)
SELECT home_team FROM table_name_13 WHERE rank > 6 AND capacity = "94,392"
What home team has a rank greater than 6, and 94,392 as the capacity?
CREATE TABLE table_name_13 (home_team VARCHAR, rank VARCHAR, capacity VARCHAR)
SELECT cust_name FROM customer ORDER BY acc_bal
List the name of all customers sorted by their account balance in ascending order.
CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR)
SELECT name, year_join FROM artist WHERE country <> 'United States'
Show all artist names and the year joined who are not from United States.
CREATE TABLE artist (name VARCHAR, year_join VARCHAR, country VARCHAR)
SELECT stage FROM table_name_89 WHERE course = "reggio calabria to catanzaro"
What stage of the race was held on the course Reggio Calabria to Catanzaro?
CREATE TABLE table_name_89 (stage VARCHAR, course VARCHAR)
SELECT host_team FROM table_name_39 WHERE date = "december 16"
What was the name of the host team dated December 16?
CREATE TABLE table_name_39 (host_team VARCHAR, date VARCHAR)
SELECT AVG(avg_g) FROM table_name_60 WHERE name = "david allen" AND gain > 371
Which Avg/G has a Name of david allen, and a Gain larger than 371?
CREATE TABLE table_name_60 (avg_g INTEGER, name VARCHAR, gain VARCHAR)
SELECT branding FROM table_19215259_1 WHERE location = "Metro Manila"
What is the brand in Metro Manila?
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv"
What was the final score agains Dynamo Kyiv, when the group position was 1st?
CREATE TABLE table_name_39 (result_f___a VARCHAR, group_position VARCHAR, opponents VARCHAR)
SELECT nationality FROM table_name_65 WHERE goals = 33
What was the nationality for the player with 33 goals?
CREATE TABLE table_name_65 (nationality VARCHAR, goals VARCHAR)
SELECT SUM(lost) FROM table_name_38 WHERE played < 4
What is the sum of losses for teams with less than 4 games played?
CREATE TABLE table_name_38 (lost INTEGER, played INTEGER)
SELECT chairman FROM table_27374004_2 WHERE current_manager = "Bob Peeters"
Who is the chairman when the current manager is bob peeters?
CREATE TABLE table_27374004_2 (chairman VARCHAR, current_manager VARCHAR)
SELECT directed_by FROM table_27927185_1 WHERE viewers__millions_ = "6.37"
Who directed the episode with 6.37 million viewers?
CREATE TABLE table_27927185_1 (directed_by VARCHAR, viewers__millions_ VARCHAR)
SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1
Show the role description and the id of the project staff involved in most number of project outcomes?
CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR)
SELECT game FROM table_name_30 WHERE result = "99-112"
WHAT GAME HAD A SCORE OF 99-112?
CREATE TABLE table_name_30 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_82 WHERE record = "11-12"
What was the number of the game when the record was 11-12?
CREATE TABLE table_name_82 (game VARCHAR, record VARCHAR)
SELECT date FROM table_name_59 WHERE country = "china" AND perpetrator = "shi yuejun , 35"
What is Date, when Country is "China", and when Perpetrator is "Shi Yuejun , 35"?
CREATE TABLE table_name_59 (date VARCHAR, country VARCHAR, perpetrator VARCHAR)
SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1"
What team is 2 when 1 is Taipower and the result is 0-1?
CREATE TABLE table_name_90 (team_2 VARCHAR, team_1 VARCHAR, result VARCHAR)
SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn
Show the average price of hotels for different pet policy.
CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER)
SELECT départ_de_la_main_gauche FROM table_name_26 WHERE mode = "do"
What is the Depart de la main gauche of the do Mode?
CREATE TABLE table_name_26 (départ_de_la_main_gauche VARCHAR, mode VARCHAR)
SELECT lost FROM table_12792876_2 WHERE points_against = "714"
How many loses corresponded to giving up 714 points?
CREATE TABLE table_12792876_2 (lost VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_6 WHERE week = 9
What is the Date of Week 9?
CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR)
SELECT opposition FROM table_name_22 WHERE date = "july 29"
Who was the opposition in the game on July 29?
CREATE TABLE table_name_22 (opposition VARCHAR, date VARCHAR)
SELECT premier_date FROM table_2140071_5 WHERE coach = "John O'Connell"
What date did the episode, with John O'Connell as the coach, premier?
CREATE TABLE table_2140071_5 (premier_date VARCHAR, coach VARCHAR)
SELECT competition FROM table_name_47 WHERE date = "17/9/00"
Which competition was on 17/9/00?
CREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR)
SELECT championship_game FROM table_name_29 WHERE conference = "big eight"
Tell me the championship game for big eight
CREATE TABLE table_name_29 (championship_game VARCHAR, conference VARCHAR)
SELECT barrel_profile FROM table_12834315_5 WHERE name = "Gas Piston Carbine"
What is the barrell profile that goes with the gas piston carbine?
CREATE TABLE table_12834315_5 (barrel_profile VARCHAR, name VARCHAR)
SELECT constructor FROM table_name_40 WHERE grid = 2
Who built the grid 2 car?
CREATE TABLE table_name_40 (constructor VARCHAR, grid VARCHAR)
SELECT mixed_doubles FROM table_12027364_1 WHERE mens_singles = "Ji Xinpeng"
Who won the mixed doubles when ji xinpeng won the mens singles?
CREATE TABLE table_12027364_1 (mixed_doubles VARCHAR, mens_singles VARCHAR)
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the user who gives the most reviews.
CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)
SELECT event FROM table_name_59 WHERE year = 2008
What is Event, when Year is 2008?
CREATE TABLE table_name_59 (event VARCHAR, year VARCHAR)
SELECT date FROM table_name_96 WHERE result = "w 23–17"
WHEN has a Result of w 23–17?
CREATE TABLE table_name_96 (date VARCHAR, result VARCHAR)
SELECT location FROM table_1176371_1 WHERE name_of_ground = "Ropery Lane"
Where is ropery lane located?
CREATE TABLE table_1176371_1 (location VARCHAR, name_of_ground VARCHAR)
SELECT score FROM table_16864968_7 WHERE opponent = "Columbus Blue Jackets"
What was the final score when the Maple Leafs played the Columbus Blue Jackets?
CREATE TABLE table_16864968_7 (score VARCHAR, opponent VARCHAR)
SELECT points FROM table_name_67 WHERE drawn = "1" AND lost = "5"
What is Points, when Drawn is "1", and when Lost is "5"?
CREATE TABLE table_name_67 (points VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan"
Which text has Wade-Giles translation of ai-ma … hsin-yüan?
CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR)
SELECT no_3 FROM table_name_24 WHERE no_7 = "abigail" AND no_2 = "olivia"
What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?
CREATE TABLE table_name_24 (no_3 VARCHAR, no_7 VARCHAR, no_2 VARCHAR)
SELECT competition FROM table_name_82 WHERE date = "november 19, 2008"
Name the competition for november 19, 2008
CREATE TABLE table_name_82 (competition VARCHAR, date VARCHAR)
SELECT bulletins_to_all_contacts FROM table_name_69 WHERE creator = "gg network"
Were there Bulletins to all contacts of the license created by GG Network?
CREATE TABLE table_name_69 (bulletins_to_all_contacts VARCHAR, creator VARCHAR)
SELECT Name FROM People ORDER BY Height
What are the names of people in ascending order of height?
CREATE TABLE People (Name VARCHAR, Height VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "october 16, 1996"
What was the venue on October 16, 1996?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT pick__number FROM table_29836557_2 WHERE player = "Kevan George"
What pick number is Kevan George?
CREATE TABLE table_29836557_2 (pick__number VARCHAR, player VARCHAR)
SELECT chassis FROM table_name_39 WHERE year < 1954 AND points = 0
What chassis had fewer than 0 points in a year before 1954?
CREATE TABLE table_name_39 (chassis VARCHAR, year VARCHAR, points VARCHAR)
SELECT title FROM table_12451376_3 WHERE season_3_ep__number = 12
What is the title of season 3 ep# 12?
CREATE TABLE table_12451376_3 (title VARCHAR, season_3_ep__number VARCHAR)
SELECT COUNT(losses) FROM table_name_77 WHERE against = 2195 AND draws > 0
How many total losses does the team have with an against of 2195 and the draws were greater than 0?
CREATE TABLE table_name_77 (losses VARCHAR, against VARCHAR, draws VARCHAR)
SELECT driver FROM table_name_21 WHERE constructor = "ferrari" AND laps = 57
Who drove the ferrari that went 57 laps?
CREATE TABLE table_name_21 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT athlete FROM table_name_79 WHERE react = 0.185
Who was the athlete with react of 0.185?
CREATE TABLE table_name_79 (athlete VARCHAR, react VARCHAR)
SELECT movements FROM table_29697744_1 WHERE position = "7th"
what is the name of the movement in the 7th position
CREATE TABLE table_29697744_1 (movements VARCHAR, position VARCHAR)
SELECT date_in_service FROM table_24837750_1 WHERE installed_capacity__mw_ = "135"
When did this wind farm started service with a capacity of 135 MW?
CREATE TABLE table_24837750_1 (date_in_service VARCHAR, installed_capacity__mw_ VARCHAR)
SELECT party FROM table_2668254_8 WHERE incumbent = "Thomas P. Moore"
What party did the incumbent Thomas P. Moore belong to?
CREATE TABLE table_2668254_8 (party VARCHAR, incumbent VARCHAR)
SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017
What are the names of races that were held after 2017 and the circuits were in the country of Spain?
CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
SELECT location_attendance FROM table_11964154_9 WHERE high_rebounds = "Nick Collison (14)"
what's the location attendance where high rebounds is nick collison (14)
CREATE TABLE table_11964154_9 (location_attendance VARCHAR, high_rebounds VARCHAR)
SELECT AVG(average) FROM table_name_54 WHERE evening_gown = 7.52 AND swimsuit > 7.78
I want the average for evening gown of 7.52 and swimsuit larger than 7.78
CREATE TABLE table_name_54 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR)
SELECT weight FROM table_name_54 WHERE date_of_birth = "1979-09-26"
What is the Weight of the Player with a Date of Birth of 1979-09-26?
CREATE TABLE table_name_54 (weight VARCHAR, date_of_birth VARCHAR)
SELECT team FROM table_name_50 WHERE game = 68
What team played the Jazz at game 68?
CREATE TABLE table_name_50 (team VARCHAR, game VARCHAR)
SELECT MIN(match_no) FROM table_19072602_1 WHERE team_usa = "Bill Hoffman"
What's the match number where Bill Hoffman plays for Team USA?
CREATE TABLE table_19072602_1 (match_no INTEGER, team_usa VARCHAR)
SELECT opponent FROM table_name_56 WHERE october > 28
What is the Opponent of the game after October 28?
CREATE TABLE table_name_56 (opponent VARCHAR, october INTEGER)
SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987
Under what label was the album with the catalog of 3645 and came out later than 1987?
CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium"
What's the attendance numbers for veterans stadium?
CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR)
SELECT liscumb FROM table_11447995_2 WHERE gauthier = "34"
What is the Liscumb when Gauthier is 34?
CREATE TABLE table_11447995_2 (liscumb VARCHAR, gauthier VARCHAR)
SELECT pick FROM table_name_95 WHERE round > 1 AND school_club_team = "south carolina"
What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?
CREATE TABLE table_name_95 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT cartridge FROM table_16010376_1 WHERE source = "Weatherby"
What type of cartridge is used by a Weatherby?
CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
SELECT candidates FROM table_1342013_10 WHERE incumbent = "Prince Hulon Preston, Jr."
Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr.
CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR)
SELECT original_air_date FROM table_22951088_3 WHERE no = 1
What was the original air date of episode number 1?
CREATE TABLE table_22951088_3 (original_air_date VARCHAR, no VARCHAR)
SELECT Team FROM player ORDER BY Age DESC LIMIT 1
Find the team of the player of the highest age.
CREATE TABLE player (Team VARCHAR, Age VARCHAR)