answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT serial_numbers FROM table_2351952_1 WHERE order_number = "713726-713735"
The order number 713726-713735 has what serial number?
CREATE TABLE table_2351952_1 (serial_numbers VARCHAR, order_number VARCHAR)
SELECT place FROM table_name_17 WHERE country = "united states" AND score = 67 - 71 = 138
Name the Place which has a Score of 67-71=138, united states?
CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT name, LOCATION FROM station ORDER BY Annual_entry_exit, Annual_interchanges
List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.
CREATE TABLE station (name VARCHAR, LOCATION VARCHAR, Annual_entry_exit VARCHAR, Annual_interchanges VARCHAR)
SELECT COUNT(*) FROM budget WHERE budgeted < invested
How many budget record has a budget amount smaller than the invested amount?
CREATE TABLE budget (budgeted INTEGER, invested VARCHAR)
SELECT Join_Year FROM pilot ORDER BY Rank LIMIT 1
What is the joined year of the pilot of the highest rank?
CREATE TABLE pilot (Join_Year VARCHAR, Rank VARCHAR)
SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75
What is the sum of the all around with a 37.75 total?
CREATE TABLE table_name_68 (all_around INTEGER, total VARCHAR)
SELECT score FROM table_name_63 WHERE player = "leo diegel"
What was the score for Leo Diegel?
CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR)
SELECT party FROM table_1341897_23 WHERE district = "Massachusetts 3"
Name the party for massachusetts 3
CREATE TABLE table_1341897_23 (party VARCHAR, district VARCHAR)
SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = "longview"
What is the smallest frequency (kHz) that is in the location of Longview?
CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)
SELECT name FROM table_29871617_1 WHERE property = "Unknown"
Which chromosomes have an unknown property?
CREATE TABLE table_29871617_1 (name VARCHAR, property VARCHAR)
SELECT COUNT(grid) FROM table_name_26 WHERE time_retired = "+44.831"
What's the total grid for someone with a time/retire of +44.831
CREATE TABLE table_name_26 (grid VARCHAR, time_retired VARCHAR)
SELECT download FROM table_name_45 WHERE week = 44
What's the Download information for the song from Week 44?
CREATE TABLE table_name_45 (download VARCHAR, week VARCHAR)
SELECT team FROM table_name_91 WHERE rank > 4 AND speed = "104.574mph"
What teams rank is higher than 4 with a speed of 104.574mph?
CREATE TABLE table_name_91 (team VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT COUNT(place) FROM table_name_21 WHERE artist = "big hit" AND votes < 2934
How many places did the artist Big Hit have with less than 2934 votes?
CREATE TABLE table_name_21 (place VARCHAR, artist VARCHAR, votes VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Maryland"
What was the preliminary average for Miss Maryland?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR)
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9ABX02"
The episode with production code 9abx02 was originally aired on what date?
CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT AVG(rank) FROM table_name_38 WHERE matches < 3
What is the average rank of a player with fewer than 3 matches?
CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER)
SELECT result FROM table_26375386_23 WHERE total = 12
What was the result for the total of 12?
CREATE TABLE table_26375386_23 (result VARCHAR, total VARCHAR)
SELECT home_team FROM table_name_83 WHERE tie_no = "16"
What home team has 16 as the tie no.?
CREATE TABLE table_name_83 (home_team VARCHAR, tie_no VARCHAR)
SELECT grid FROM table_name_84 WHERE team = "racing professionals"
What grid did the team racing professionals race on?
CREATE TABLE table_name_84 (grid VARCHAR, team VARCHAR)
SELECT AVG(grid) FROM table_name_78 WHERE laps > 23
What is the average grid with more than 23 laps?
CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT country FROM table_name_83 WHERE hanja = "平安北道"
Which country has a city with a Hanja of 平安北道?
CREATE TABLE table_name_83 (country VARCHAR, hanja VARCHAR)
SELECT location FROM table_name_31 WHERE record = "5–2–1"
Which Location has a Record of 5–2–1?
CREATE TABLE table_name_31 (location VARCHAR, record VARCHAR)
SELECT site_stadium FROM table_28001186_8 WHERE score = "11-4"
What was the site of the game that had an 11-4 score?
CREATE TABLE table_28001186_8 (site_stadium VARCHAR, score VARCHAR)
SELECT d_43 FROM table_name_70 WHERE d_48 = "d 9"
Name the D 43 with D 48 of d 9
CREATE TABLE table_name_70 (d_43 VARCHAR, d_48 VARCHAR)
SELECT away_captain FROM table_name_60 WHERE venue = "waca ground"
Who was the away captain at Waca Ground?
CREATE TABLE table_name_60 (away_captain VARCHAR, venue VARCHAR)
SELECT us_senate FROM table_name_80 WHERE year > 2002 AND party = "working families"
what is the U.S. senate when the year is after 2002 and the party is working families?
CREATE TABLE table_name_80 (us_senate VARCHAR, year VARCHAR, party VARCHAR)
SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = "Scott Oelslager"
How many times was Scott Oelslager a representative?
CREATE TABLE table_26131768_4 (residence VARCHAR, representative VARCHAR)
SELECT result FROM table_name_60 WHERE week > 7 AND opponent = "houston oilers"
What is the result when the week is greater than 7 and the Houston Oilers were the opponent?
CREATE TABLE table_name_60 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation"
List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics."
CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
SELECT starts FROM table_2181798_1 WHERE avg_start = "23.7"
Name the starts for 23.7
CREATE TABLE table_2181798_1 (starts VARCHAR, avg_start VARCHAR)
SELECT date FROM table_1121352_2 WHERE runner_s__up = "Pat Hurst Juli Inkster"
What date were the runner ups pat hurst juli inkster?
CREATE TABLE table_1121352_2 (date VARCHAR, runner_s__up VARCHAR)
SELECT location FROM table_name_69 WHERE date = "28 dec 2010"
Where was the race on 28 dec 2010 held?
CREATE TABLE table_name_69 (location VARCHAR, date VARCHAR)
SELECT winner FROM table_name_19 WHERE city = "berlin"
Who is the Winner, when the City is Berlin?
CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR)
SELECT episode FROM table_name_65 WHERE viewers__in_millions_ = "9.1"
Which Episode had 9.1 million viewers?
CREATE TABLE table_name_65 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT website FROM table_name_76 WHERE founded = 1921
Which website has 1921 as the year founded?
CREATE TABLE table_name_76 (website VARCHAR, founded VARCHAR)
SELECT COUNT(elected) FROM table_16185956_1 WHERE district = "Washington 4"
How many times was the incumbent elected in Washington 4 district?
CREATE TABLE table_16185956_1 (elected VARCHAR, district VARCHAR)
SELECT league_from FROM table_name_69 WHERE nhl_team = "atlanta thrashers (from dallas) 6"
From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?
CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR)
SELECT time FROM table_name_54 WHERE nationality = "russia"
What is the time for Russia?
CREATE TABLE table_name_54 (time VARCHAR, nationality VARCHAR)
SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = "bent christensen"
Prior to 1978, what is the Danish of the Film directed by Bent Christensen?
CREATE TABLE table_name_16 (danish_title VARCHAR, year VARCHAR, director VARCHAR)
SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008"
Where did the player loaned out on 27 november 2008 move to ?
CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR)
SELECT high_assists FROM table_name_50 WHERE date = "march 5"
Who had the highest assists of the game on March 5?
CREATE TABLE table_name_50 (high_assists VARCHAR, date VARCHAR)
SELECT gender FROM table_name_68 WHERE name = "lynmore primary school"
What genders did Lynmore Primary School take?
CREATE TABLE table_name_68 (gender VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_63 WHERE venue = "junction oval"
Who was the away team at Junction Oval?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march"
Name the Away team which have a Ground of colonial stadium on friday, 2 march?
CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR)
SELECT score FROM table_name_49 WHERE game = 4
what is the score for game 4?
CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR)
SELECT COUNT(scm_system) FROM table_22903426_1 WHERE windows_builders = "NAnt, Visual Studio"
Name the number of scm system for nant, visual studio
CREATE TABLE table_22903426_1 (scm_system VARCHAR, windows_builders VARCHAR)
SELECT head_s__of_government FROM table_name_77 WHERE name = "don stephen senanayake"
What is the head of government for Don Stephen Senanayake?
CREATE TABLE table_name_77 (head_s__of_government VARCHAR, name VARCHAR)
SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0
How much is the highest number in 2006 with fewer than 0 in 2002?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT SUM(intake) FROM table_name_54 WHERE faith = "rc" AND dcsf_number > 2428
Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?
CREATE TABLE table_name_54 (intake INTEGER, faith VARCHAR, dcsf_number VARCHAR)
SELECT COUNT(established) FROM table_name_14 WHERE nickname = "pride"
What year was the team with the nickname pride established?
CREATE TABLE table_name_14 (established VARCHAR, nickname VARCHAR)
SELECT season FROM table_name_47 WHERE third = "colin hodgson"
Which Season has a Third of colin hodgson?
CREATE TABLE table_name_47 (season VARCHAR, third VARCHAR)
SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63
How many regions had an incarceration rate for females of 63?
CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)
SELECT method FROM table_name_19 WHERE race = "native american" AND name = "wau-bau-ne-me-mee"
How was the native american, Wau-Bau-Ne-Me-Mee, executed?
CREATE TABLE table_name_19 (method VARCHAR, race VARCHAR, name VARCHAR)
SELECT date FROM table_22648285_1 WHERE year = 1968
What date was the race in 1968 run on?
CREATE TABLE table_22648285_1 (date VARCHAR, year VARCHAR)
SELECT owner_s_ FROM table_name_60 WHERE date < 1940 AND number_ & _name = "no. 1222"
Who is the owner before 1940, who had a number and name of no. 1222?
CREATE TABLE table_name_60 (owner_s_ VARCHAR, date VARCHAR, number_ VARCHAR, _name VARCHAR)
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
SELECT canadian_championship FROM table_name_45 WHERE name = "ashtone morgan category:articles with hcards"
What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?
CREATE TABLE table_name_45 (canadian_championship VARCHAR, name VARCHAR)
SELECT team FROM table_name_14 WHERE year = "2011"
What is the Team, when the Year is 2011?
CREATE TABLE table_name_14 (team VARCHAR, year VARCHAR)
SELECT MIN(pick) FROM table_name_91 WHERE round > 7 AND nationality = "united states"
What was the lowest pick number for a united states player picked before round 7?
CREATE TABLE table_name_91 (pick INTEGER, round VARCHAR, nationality VARCHAR)
SELECT previous_conference FROM table_name_93 WHERE year_joined = 2000 AND mascot = "millers"
What was the previous conference for the school that joined in 2000 with a millers mascot?
CREATE TABLE table_name_93 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR)
SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Find the id of routes whose source and destination airports are in the United States.
CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 25
Who was teh rider with 18 laps and a grid of 25?
CREATE TABLE table_name_43 (rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT lead FROM table_name_22 WHERE skip = "kirsty balfour"
Which lead has Kirsty Balfour as second?
CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)
SELECT COUNT(written_by) FROM table_30030227_1 WHERE directed_by = "Arvin Brown"
How many people wrote the episode directed by Arvin Brown?
CREATE TABLE table_30030227_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT MIN(attendance) FROM table_name_13 WHERE round = "r1" AND venue = "h"
What was the lowest attendance in round r1 at H venue?
CREATE TABLE table_name_13 (attendance INTEGER, round VARCHAR, venue VARCHAR)
SELECT COUNT(pick) FROM table_name_41 WHERE position = "linebacker" AND round < 3
How many picks were taken before round 3 and played Linebacker?
CREATE TABLE table_name_41 (pick VARCHAR, position VARCHAR, round VARCHAR)
SELECT MAX(points) FROM table_14342592_7 WHERE position = "Left tackle" AND extra_points = 5
How many maximum points were there when the left tackle was played and there were 5 extra points?
CREATE TABLE table_14342592_7 (points INTEGER, position VARCHAR, extra_points VARCHAR)
SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn
Find the name of scientists who are assigned to some project.
CREATE TABLE assignedto (scientist VARCHAR); CREATE TABLE scientists (name VARCHAR, ssn VARCHAR)
SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = "12.4%"
What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese?
CREATE TABLE table_18958648_1 (overweight__incl_obese__adults VARCHAR, obese_children_and_adolescents VARCHAR)
SELECT result FROM table_name_57 WHERE rank__number = "1" AND attendance = "22,555"
What is the result of the game played when 22,555 were in attendance and the Buckeyes were ranked #1?
CREATE TABLE table_name_57 (result VARCHAR, rank__number VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_54 WHERE result = "win" AND type = "w pts 12"
Who did Tony Oakey win against when he had type of w pts 12?
CREATE TABLE table_name_54 (opponent VARCHAR, result VARCHAR, type VARCHAR)
SELECT molecular_target FROM table_12715053_1 WHERE trademark = "Irvalec ®"
What is the molecular target listed under the trademark of irvalec ®
CREATE TABLE table_12715053_1 (molecular_target VARCHAR, trademark VARCHAR)
SELECT Name FROM WINE WHERE Price > (SELECT MAX(Price) FROM WINE WHERE YEAR = 2006)
What are the names of wines that are more expensive then all wines made in the year 2006?
CREATE TABLE WINE (Name VARCHAR, Price INTEGER, YEAR VARCHAR)
SELECT SUM(points) FROM table_name_88 WHERE chassis = "reynard 92d"
What is the total sum of points of entrants with a reynard 92d chassis?
CREATE TABLE table_name_88 (points INTEGER, chassis VARCHAR)
SELECT championship FROM table_name_55 WHERE outcome = "runner-up" AND opponents_in_final = "gigi fernández natalia zvereva"
What is Championship, when Outcome is "runner-up", and when Opponents In Final is "Gigi Fernández Natalia Zvereva"?
CREATE TABLE table_name_55 (championship VARCHAR, outcome VARCHAR, opponents_in_final VARCHAR)
SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = "220.0"
What is the name origin with a diameter of 220.0 kilometers?
CREATE TABLE table_16799784_14 (name VARCHAR, diameter__km_ VARCHAR)
SELECT AVG(area__km²_) FROM table_name_21 WHERE population__2011_ = 8574 AND population_density > 381.4
What was the Area (km²) when the Population (2011) was 8574, and the Population density was larger than 381.4?
CREATE TABLE table_name_21 (area__km²_ INTEGER, population__2011_ VARCHAR, population_density VARCHAR)
SELECT date_sent FROM table_name_71 WHERE constellation = "delphinus"
What is Date, when Constellation is "Delphinus"?
CREATE TABLE table_name_71 (date_sent VARCHAR, constellation VARCHAR)
SELECT MAX(_number) FROM table_25118909_3 WHERE former_school = "Notre Dame Prep"
Name the most number for notre dame prep
CREATE TABLE table_25118909_3 (_number INTEGER, former_school VARCHAR)
SELECT loss FROM table_name_74 WHERE time = "3:16" AND record = "15–15"
What is the loss when the time was 3:16, and a Record of 15–15?
CREATE TABLE table_name_74 (loss VARCHAR, time VARCHAR, record VARCHAR)
SELECT position FROM table_name_92 WHERE round > 7 AND name = "wayne asberry"
Which Position has a Round larger than 7, and a Name of wayne asberry?
CREATE TABLE table_name_92 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT SUM(tries) FROM table_name_81 WHERE played > 16
What is the number of tries for the player who is larger than 16?
CREATE TABLE table_name_81 (tries INTEGER, played INTEGER)
SELECT bowling_style FROM table_name_52 WHERE first_class_team = "griqualand west"
What bowling style does First Class Team, Griqualand West have?
CREATE TABLE table_name_52 (bowling_style VARCHAR, first_class_team VARCHAR)
SELECT COUNT(snatch) FROM table_name_73 WHERE total < 267.5
How many snatches were there with a total of 267.5?
CREATE TABLE table_name_73 (snatch VARCHAR, total INTEGER)
SELECT mark FROM table_name_51 WHERE points > 813 AND country = "united states" AND react > 0.152
What mark has over 813 points in the United States, and a 0.152 react?
CREATE TABLE table_name_51 (mark VARCHAR, react VARCHAR, points VARCHAR, country VARCHAR)
SELECT us_viewers__millions_ FROM table_20046379_3 WHERE production_code = "214"
How many millions of people in the US saw the episode with production code 214?
CREATE TABLE table_20046379_3 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT category FROM table_name_67 WHERE character = "jacqui mcqueen" AND year < 2011
In what category was character Jacqui Mcqueen nominated before 2011?
CREATE TABLE table_name_67 (category VARCHAR, character VARCHAR, year VARCHAR)
SELECT party FROM table_1342013_37 WHERE district = "Pennsylvania 25"
Name the party for the pennsylvania 25
CREATE TABLE table_1342013_37 (party VARCHAR, district VARCHAR)
SELECT AVG(field_goals) FROM table_name_65 WHERE points > 60
What is the average number of field goals for players with more than 60 points?
CREATE TABLE table_name_65 (field_goals INTEGER, points INTEGER)
SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
How many gold medals has the club with the most coaches won?
CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)
SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = "#1 Patrón Highcroft Racing" AND gtc_winning_team = "#81 Alex Job Racing"
How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?
CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR)
SELECT high_points FROM table_23285849_8 WHERE location_attendance = "Staples Center 18,997"
Name the high points for the staples center 18,997
CREATE TABLE table_23285849_8 (high_points VARCHAR, location_attendance VARCHAR)
SELECT location FROM table_name_22 WHERE frequency = "1197khz"
What's the location of the 1197khz frequency?
CREATE TABLE table_name_22 (location VARCHAR, frequency VARCHAR)
SELECT AVG(year) FROM table_name_16 WHERE project = "the untouchables"
What is the average Year for the project The Untouchables?
CREATE TABLE table_name_16 (year INTEGER, project VARCHAR)
SELECT category FROM table_name_33 WHERE year > 2004
What category has a year after 2004?
CREATE TABLE table_name_33 (category VARCHAR, year INTEGER)
SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71"
Which competition did not qualify for UEFA competitions in the 1970-71 season?
CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR)
SELECT 1997 FROM table_name_46 WHERE 1987 = "2r"
What shows for 1997 when 1987 is 2r?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT chassis FROM table_name_92 WHERE engine = "brm v8"
What chassis did the BRM V8 engine have?
CREATE TABLE table_name_92 (chassis VARCHAR, engine VARCHAR)
SELECT leg FROM table_13050822_2 WHERE rally_leader = "C. Atkinson"
What is the leg for c. atkinson
CREATE TABLE table_13050822_2 (leg VARCHAR, rally_leader VARCHAR)