answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT high_assists FROM table_11907963_6 WHERE game = 49
Who had the high assists for game 49?
CREATE TABLE table_11907963_6 (high_assists VARCHAR, game VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_99 WHERE player = "angela park"
What's the sum of money ($) that angela park has won?
CREATE TABLE table_name_99 (money___ INTEGER, player VARCHAR)
SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1
What is the first, last name, gpa of the youngest one among students whose GPA is above 3?
CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR)
SELECT pick__number FROM table_28059992_5 WHERE cfl_team = "Edmonton"
What pick number was the player that was picked by Edmonton?
CREATE TABLE table_28059992_5 (pick__number VARCHAR, cfl_team VARCHAR)
SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1
What is the total when the gold of 0, and a bronze larger than 1?
CREATE TABLE table_name_25 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MIN AS № FROM table_28195898_1 WHERE _number = 18
What is the series No when the season 4 # is 18?
CREATE TABLE table_28195898_1 (MIN VARCHAR, _number VARCHAR)
SELECT MIN(gain) FROM table_name_40 WHERE long = 18 AND loss < 191
What is the lowest gain with an 18 long, and a loss less than 191?
CREATE TABLE table_name_40 (gain INTEGER, long VARCHAR, loss VARCHAR)
SELECT surface FROM table_name_30 WHERE tournament = "canada f9, markham"
What type of surface did the tournament canada f9, markham have?
CREATE TABLE table_name_30 (surface VARCHAR, tournament VARCHAR)
SELECT record FROM table_20928649_1 WHERE cardinals_points = 7
What was the record for the game where the cardinals scored 7 points?
CREATE TABLE table_20928649_1 (record VARCHAR, cardinals_points VARCHAR)
SELECT MAX(year) FROM table_name_11 WHERE region = "southeast"
What's the highest Year with the Region of Southeast?
CREATE TABLE table_name_11 (year INTEGER, region VARCHAR)
SELECT event FROM table_name_20 WHERE method = "submission (brabo choke)"
What is the event name when the method is submission (brabo choke)?
CREATE TABLE table_name_20 (event VARCHAR, method VARCHAR)
SELECT branding FROM table_23915973_1 WHERE power_kw = "5kW"
What is the radio station branding when the power km is 5kw?
CREATE TABLE table_23915973_1 (branding VARCHAR, power_kw VARCHAR)
SELECT COUNT(starts) FROM table_name_18 WHERE wins > 2 AND money_list_rank > 1
Which total number of starts has more than 2 wins and a money list rank greater than 1?
CREATE TABLE table_name_18 (starts VARCHAR, wins VARCHAR, money_list_rank VARCHAR)
SELECT player FROM table_name_61 WHERE position = "ss" AND pick = 11
What is Player, when Position is "SS", and when Pick is "11"?
CREATE TABLE table_name_61 (player VARCHAR, position VARCHAR, pick VARCHAR)
SELECT date FROM table_27882867_9 WHERE score = "W 104-98"
What date was the game score w 104-98?
CREATE TABLE table_27882867_9 (date VARCHAR, score VARCHAR)
SELECT party FROM table_1342292_2 WHERE district = "Alabama 3"
what's the party with district being alabama 3
CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR)
SELECT szdsz FROM table_name_8 WHERE mszp = "25%" AND date = "25/2/2009"
What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?
CREATE TABLE table_name_8 (szdsz VARCHAR, mszp VARCHAR, date VARCHAR)
SELECT MAX(front_row_starts) FROM table_name_52 WHERE driver = "alain prost"
What was the highest front row starts for Alain Prost?
CREATE TABLE table_name_52 (front_row_starts INTEGER, driver VARCHAR)
SELECT SUM(fatalities) FROM table_name_62 WHERE aircraft_type = "lockheed l-1049g"
How many fatalities shows for the lockheed l-1049g?
CREATE TABLE table_name_62 (fatalities INTEGER, aircraft_type VARCHAR)
SELECT partner FROM table_name_23 WHERE year = "asian games"
What is the Partner during the Asian Games Year?
CREATE TABLE table_name_23 (partner VARCHAR, year VARCHAR)
SELECT date FROM table_name_6 WHERE record = "76-72"
On what date was there a record of 76-72?
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12
How many cop apps in the season with fewer than 12 league apps?
CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER)
SELECT surface FROM table_29163303_4 WHERE score = "6–1, 4–6, [12–10]"
On what surface was it the year when the score was 6–1, 4–6, [12–10]?
CREATE TABLE table_29163303_4 (surface VARCHAR, score VARCHAR)
SELECT COUNT(home_town) FROM table_25360865_1 WHERE _number = 32
Name the number of home town for number being 32
CREATE TABLE table_25360865_1 (home_town VARCHAR, _number VARCHAR)
SELECT driver FROM table_name_82 WHERE engine = "ford edb 3.0 v8"
Who was the driver of the Ford EDB 3.0 v8 engine?
CREATE TABLE table_name_82 (driver VARCHAR, engine VARCHAR)
SELECT arena FROM table_name_8 WHERE capacity = "1,100"
Which arena has a capactiy of 1,100?
CREATE TABLE table_name_8 (arena VARCHAR, capacity VARCHAR)
SELECT year FROM table_19643196_1 WHERE transmission = "Voith D863.4" AND engine = "Cummins ISM"
Which year had a transmission of Voith D863.4 and a Cummins ISM engine?
CREATE TABLE table_19643196_1 (year VARCHAR, transmission VARCHAR, engine VARCHAR)
SELECT result FROM table_23563375_11 WHERE opponent = "Loic Didavi"
What was the score against Loic Didavi?
CREATE TABLE table_23563375_11 (result VARCHAR, opponent VARCHAR)
SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*)
Please show the different statuses, ordered by the number of cities that have each.
CREATE TABLE city (Status VARCHAR)
SELECT death FROM table_name_96 WHERE birth = "2 august 1424"
WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?
CREATE TABLE table_name_96 (death VARCHAR, birth VARCHAR)
SELECT model FROM table_name_75 WHERE sail_area = "24.5 m²"
Which Model has a Sail Area of 24.5 m²?
CREATE TABLE table_name_75 (model VARCHAR, sail_area VARCHAR)
SELECT icao FROM table_name_34 WHERE iata = "ist"
What is the ICAO when the IATA is ist?
CREATE TABLE table_name_34 (icao VARCHAR, iata VARCHAR)
SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylvania"
Which year opened is located in west mifflin, pennsylvania?
CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR)
SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 4
What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?
CREATE TABLE table_name_11 (start INTEGER, lost VARCHAR, tries VARCHAR)
SELECT built FROM table_name_51 WHERE period = "1967-1987"
How many cabins were built in the time between 1967-1987?
CREATE TABLE table_name_51 (built VARCHAR, period VARCHAR)
SELECT constructor FROM table_name_47 WHERE laps = 16 AND grid = 9
What company was Constructor when there were 16 laps and grid was 9?
CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT bello FROM table_11447995_2 WHERE ben_tahir = "296"
What is the Bello when Ben-Tahir is 296?
CREATE TABLE table_11447995_2 (bello VARCHAR, ben_tahir VARCHAR)
SELECT score FROM table_name_88 WHERE away_team = "dartford"
What was the score fore the away team Dartford?
CREATE TABLE table_name_88 (score VARCHAR, away_team VARCHAR)
SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7
Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?
CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT date FROM table_name_34 WHERE status = "second test"
What is Date, when Status is Second Test?
CREATE TABLE table_name_34 (date VARCHAR, status VARCHAR)
SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "20.94"
What episode titles have 20.94 million U.S. viewers?
CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan"
Find the id of users who are followed by Mary and Susan.
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)
SELECT AVG(pick) FROM table_name_72 WHERE player = "conor jackson"
What was the pick number of Conor Jackson?
CREATE TABLE table_name_72 (pick INTEGER, player VARCHAR)
SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2
find id of the tv channels that from the countries where have more than two tv channels.
CREATE TABLE tv_channel (id VARCHAR, country VARCHAR)
SELECT SUM(number) FROM table_name_66 WHERE opponent = "fokker d.vii" AND time = 600
What number has the opponent Fokker d.vii with a time of 600?
CREATE TABLE table_name_66 (number INTEGER, opponent VARCHAR, time VARCHAR)
SELECT result FROM table_name_77 WHERE week = 14
What was the result in week 14?
CREATE TABLE table_name_77 (result VARCHAR, week VARCHAR)
SELECT party FROM table_10284385_1 WHERE date_of_birth = "November 10, 1880"
Which politican party has a birthday of November 10, 1880
CREATE TABLE table_10284385_1 (party VARCHAR, date_of_birth VARCHAR)
SELECT Customer_Phone, Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = "Harold"
What are the phone and email for customer Harold?
CREATE TABLE CUSTOMERS (Customer_Phone VARCHAR, Customer_Email_Address VARCHAR, Customer_Name VARCHAR)
SELECT COUNT(built) FROM table_142159_1 WHERE name = "River Esk"
How many are named River Esk
CREATE TABLE table_142159_1 (built VARCHAR, name VARCHAR)
SELECT date FROM table_name_41 WHERE opponent = "wales"
When did they play against Wales?
CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_93 WHERE road_team = "boston" AND game = "game 3"
On what Date is Game 3 with Boston Road Team?
CREATE TABLE table_name_93 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 8) + 4"
If the equation is (10 times 8) + 4, what would be the 2nd throw?
CREATE TABLE table_17265535_6 (equation VARCHAR)
SELECT partner FROM table_name_26 WHERE outcome = "runner-up" AND date = "april 6, 1992"
Who is the partner with a runner-up outcome on April 6, 1992?
CREATE TABLE table_name_26 (partner VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT MIN(tv_seasons) FROM table_name_58 WHERE tv_series = "yes" AND species = "human"
What is the smallest season for a tv series with a yes and human was the species?
CREATE TABLE table_name_58 (tv_seasons INTEGER, tv_series VARCHAR, species VARCHAR)
SELECT COUNT(qiangshu) FROM table_name_73 WHERE rank < 10 AND total = 18.97 AND jianshu > 9.51
What is the number of Qiangshu when rank is less than 10, with a total of 18.97, and Jianshu is larger than 9.51?
CREATE TABLE table_name_73 (qiangshu VARCHAR, jianshu VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = "tiger stadium" AND week > 7
What was the Attendance after Week 7 at Tiger Stadium?
CREATE TABLE table_name_27 (attendance VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT power_kw FROM table_24673888_1 WHERE station_type = "Relay" AND callsign = "DXCL-TV"
What is the power in KW that has a station type of relay and a callsign of DXCL-TV?
CREATE TABLE table_24673888_1 (power_kw VARCHAR, station_type VARCHAR, callsign VARCHAR)
SELECT score FROM table_name_85 WHERE date = "march 28"
WHAT IS THE SCORE OF MARCH 28?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT m1a1_abrams FROM table_name_8 WHERE m60a3_patton = "t (short tons)"
What is the M1A1 when the M60A3 was T (Short Tons)?
CREATE TABLE table_name_8 (m1a1_abrams VARCHAR, m60a3_patton VARCHAR)
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20
What is the lowest Points when against is 50, and there are less than 20 played?
CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul"
What is the result of the friendly match in Seoul?
CREATE TABLE table_name_47 (result VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT opponent FROM table_21063459_1 WHERE record = "3-1, #16"
Who did the team play against when a record of 3-1, #16 was achieved?
CREATE TABLE table_21063459_1 (opponent VARCHAR, record VARCHAR)
SELECT tries_for FROM table_14070062_3 WHERE points = "70"
What's the tries for count for the team with 70 points?
CREATE TABLE table_14070062_3 (tries_for VARCHAR, points VARCHAR)
SELECT country FROM airlines GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
Which countries has the most number of airlines?
CREATE TABLE airlines (country VARCHAR)
SELECT round FROM table_name_27 WHERE player = "michael hjalm"
What was the round number when Michael Hjalm played?
CREATE TABLE table_name_27 (round VARCHAR, player VARCHAR)
SELECT trainer FROM table_name_5 WHERE winner = "skylighter"
Who is the trainer of the winner skylighter?
CREATE TABLE table_name_5 (trainer VARCHAR, winner VARCHAR)
SELECT away_team FROM table_name_45 WHERE venue = "arden street oval"
What Away Team's venue is Arden Street Oval?
CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR)
SELECT prior_position FROM table_name_1 WHERE name = "wyman webb"
What was the prior position held by Wyman Webb?
CREATE TABLE table_name_1 (prior_position VARCHAR, name VARCHAR)
SELECT COUNT(record) FROM table_17340355_6 WHERE high_rebounds = "Amar'e Stoudemire (11)"
What are the records of games where high rebounds is amar'e stoudemire (11)
CREATE TABLE table_17340355_6 (record VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_39 WHERE tournament = "indian wells"
What date was the tournament in Indian Wells?
CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)
SELECT license FROM table_19495707_1 WHERE application = "E-on Vue"
Name the license for e-on vue
CREATE TABLE table_19495707_1 (license VARCHAR, application VARCHAR)
SELECT team FROM table_name_84 WHERE laps > 333 AND year < 2004
Name the team with laps more than 333 and year less than 2004
CREATE TABLE table_name_84 (team VARCHAR, laps VARCHAR, year VARCHAR)
SELECT MAX(champ_car_world_series__2004_2007_) FROM table_19524523_1 WHERE usac__1956_1995_ = 2
What is the most Champ Car wins for any driver with a USAC record of 2?
CREATE TABLE table_19524523_1 (champ_car_world_series__2004_2007_ INTEGER, usac__1956_1995_ VARCHAR)
SELECT date FROM table_name_34 WHERE winning_constructor = "delage"
What date did Delage win?
CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR)
SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
How many friends does the high school student Kyle have?
CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)
SELECT last_season FROM table_name_90 WHERE team = "scottish rocks"
What is the last season that the Scottish Rocks played?
CREATE TABLE table_name_90 (last_season VARCHAR, team VARCHAR)
SELECT original_air_date FROM table_10718192_2 WHERE no_in_series = 63
What's the date of the first airing of the episode with series number 63?
CREATE TABLE table_10718192_2 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9"
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?
CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)
SELECT COUNT(wins) FROM table_name_56 WHERE points > 51 AND goals_against > 23 AND losses = 5
How many wins when points are more than 51, goals against are more than 23 and losses are 5?
CREATE TABLE table_name_56 (wins VARCHAR, losses VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT third FROM table_name_23 WHERE second = "xu xiaoming"
Who is third to Xu Xiaoming at second?
CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR)
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
What years does Kakahi school, with a decile of 3, have?
CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
SELECT high_points FROM table_13619105_3 WHERE record = "1-4"
Who was the high scorer in the game when the team was 1-4?
CREATE TABLE table_13619105_3 (high_points VARCHAR, record VARCHAR)
SELECT location FROM table_name_62 WHERE enrollment > 543
Which Location has an Enrollment larger than 543?
CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER)
SELECT name, distance FROM Aircraft
Show name and distance for all aircrafts.
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR)
SELECT date FROM table_name_58 WHERE score = "199 (–17)"
What is the Date of the tournament with a score of 199 (–17)?
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR)
SELECT COUNT(DISTINCT Party) FROM representative
How many distinct parties are there for representatives?
CREATE TABLE representative (Party VARCHAR)
SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82"
What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82?
CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)
SELECT city FROM table_name_2 WHERE stadium = "gwang-yang stadium"
What city is Gwang-Yang stadium in?
CREATE TABLE table_name_2 (city VARCHAR, stadium VARCHAR)
SELECT opponent FROM table_name_77 WHERE record = "70-52"
Which opponent has a record of 70-52?
CREATE TABLE table_name_77 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(original_air_date) FROM table_27250813_1 WHERE production_code = 12003
How many times did an episode with a production code of 12003 was aired?
CREATE TABLE table_27250813_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07
What type of planet has a semimajor axis of 0.07 AU?
CREATE TABLE table_name_51 (planet VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT round_eliminated FROM table_16295365_2 WHERE conf_record = "12-6"
Name the round eliminated where conference record is 12-6
CREATE TABLE table_16295365_2 (round_eliminated VARCHAR, conf_record VARCHAR)
SELECT date FROM table_24949975_1 WHERE stadium = "Tallaght stadium" AND result = "0–1"
What is the date for the game at the tallaght stadium and result was 0–1?
CREATE TABLE table_24949975_1 (date VARCHAR, stadium VARCHAR, result VARCHAR)
SELECT MIN(weekly_rank) FROM table_11178271_1 WHERE air_date = "November 26, 2007"
What is the lowest weekly rank with an air date of november 26, 2007?
CREATE TABLE table_11178271_1 (weekly_rank INTEGER, air_date VARCHAR)
SELECT round FROM table_name_18 WHERE record = "5-0"
Which round has the record of 5-0?
CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR)
SELECT position FROM table_name_20 WHERE player = "robert nkemdiche"
Which position does Robert Nkemdiche play?
CREATE TABLE table_name_20 (position VARCHAR, player VARCHAR)
SELECT year_s__of_manufacture FROM table_name_49 WHERE quantity > 60 AND number_s_ = "7001–7165"
Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 7001–7165?
CREATE TABLE table_name_49 (year_s__of_manufacture VARCHAR, quantity VARCHAR, number_s_ VARCHAR)
SELECT unit FROM table_name_27 WHERE pennant_number = 82
Which unit has a Pennant Number of 82?
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR)
SELECT college FROM table_10812938_4 WHERE cfl_team = "Saskatchewan Roughriders"
Which college is aligned to the Saskatchewan Roughriders?
CREATE TABLE table_10812938_4 (college VARCHAR, cfl_team VARCHAR)
SELECT COUNT(field_goals) FROM table_25730209_2 WHERE player = "Donald Green"
How many field goals did Donald Green score?
CREATE TABLE table_25730209_2 (field_goals VARCHAR, player VARCHAR)