answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT current_version FROM table_name_14 WHERE rtm_build = "9200" AND name = "windows 8"
What is the current version of windows 8 with an RTM build of 9200?
CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR)
SELECT tie_no FROM table_name_71 WHERE away_team = "millwall"
What is Tie No, when Away Team is "Millwall"?
CREATE TABLE table_name_71 (tie_no VARCHAR, away_team VARCHAR)
SELECT city FROM table_name_42 WHERE iata = "auh"
Which city has an IATA of AUH?
CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR)
SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912"
What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT no_in_season FROM table_17482534_1 WHERE directed_by = "Gene Stupnitsky"
What number in season is the episode directed by Gene Stupnitsky?
CREATE TABLE table_17482534_1 (no_in_season VARCHAR, directed_by VARCHAR)
SELECT date FROM table_name_38 WHERE score = "1-5"
Name the date for score of 1-5
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971
Who was the loser on December 12, 1971?
CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR)
SELECT network FROM table_name_26 WHERE vidéotron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = "cjoh-dt"
Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?
CREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidéotron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR)
SELECT cName FROM College WHERE enr > 18000 ORDER BY cName
List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.
CREATE TABLE College (cName VARCHAR, enr INTEGER)
SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "The New Land"
What's the original title of The New Land?
CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(*) FROM inst
How many institutions are there?
CREATE TABLE inst (Id VARCHAR)
SELECT division FROM table_name_39 WHERE open_cup = "2nd round"
Which division was the Rampage in when they were in the 2nd round in the Open Cup?
CREATE TABLE table_name_39 (division VARCHAR, open_cup VARCHAR)
SELECT completed FROM table_name_28 WHERE launched = "12 april 1934"
Name what was completed on 12 april 1934
CREATE TABLE table_name_28 (completed VARCHAR, launched VARCHAR)
SELECT AVG(crowd) FROM table_name_32 WHERE venue = "brunswick street oval"
What is the average crowd size for Brunswick street oval?
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
SELECT score FROM table_name_94 WHERE to_par = "−3" AND player = "branden grace"
What was the score that has a To par of −3, for Branden Grace?
CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT state FROM table_name_35 WHERE name = "yi"
What is the state Yi?
CREATE TABLE table_name_35 (state VARCHAR, name VARCHAR)
SELECT AVG(total) FROM table_name_99 WHERE championship > 13
Which Championship total is over 13?
CREATE TABLE table_name_99 (total INTEGER, championship INTEGER)
SELECT date FROM table_name_17 WHERE school = "ferris high school"
What is the Date of the Athlete from Ferris High School?
CREATE TABLE table_name_17 (date VARCHAR, school VARCHAR)
SELECT place FROM table_name_57 WHERE player = "corey pavin"
What place was Corey Pavin in?
CREATE TABLE table_name_57 (place VARCHAR, player VARCHAR)
SELECT position FROM table_name_68 WHERE round < 2
What is the position when the round is less than 2?
CREATE TABLE table_name_68 (position VARCHAR, round INTEGER)
SELECT language FROM table_name_64 WHERE number = "553 633"
Which Language has a Number of 553 633?
CREATE TABLE table_name_64 (language VARCHAR, number VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry'
Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
SELECT record FROM table_14941284_1 WHERE week = 2
When it is week 2 what is the record?
CREATE TABLE table_14941284_1 (record VARCHAR, week VARCHAR)
SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = "Fanny"
Find the dates of assessment notes for students with first name "Fanny".
CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR); CREATE TABLE Assessment_Notes (date_of_notes VARCHAR, student_id VARCHAR)
SELECT MAX(place) FROM table_name_3 WHERE best_score > 10
WHAT IS THE HIGHEST PLACE AND BEST SCORE BIGGER THAN 10?
CREATE TABLE table_name_3 (place INTEGER, best_score INTEGER)
SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19
What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19?
CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR)
SELECT grüne FROM table_name_14 WHERE rettö = "0.6%" AND state = "tyrol"
What percent did GRÜNE get in Tyrol where RETTÖ got 0.6%?
CREATE TABLE table_name_14 (grüne VARCHAR, rettö VARCHAR, state VARCHAR)
SELECT MIN(week) FROM table_name_21 WHERE game_site = "mile high stadium" AND attendance > 75 OFFSET 007
What was the first week when there was an attendance over 75,007 at Mile High Stadium?
CREATE TABLE table_name_21 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
SELECT result FROM table_22073745_1 WHERE year__ceremony_ = "2005 (78th)"
What is the result of the 2005 (78th) year ceremony?
CREATE TABLE table_22073745_1 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT launched FROM table_name_64 WHERE ship = "fearless"
What launch has a Ship of fearless?
CREATE TABLE table_name_64 (launched VARCHAR, ship VARCHAR)
SELECT region FROM table_name_19 WHERE catalog = "magik muzik 806-5"
Which Region has a Catalog of magik muzik 806-5?
CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR)
SELECT monday_mona__máni FROM table_name_84 WHERE thursday_thunor___thor = "tongersdei"
Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?
CREATE TABLE table_name_84 (monday_mona__máni VARCHAR, thursday_thunor___thor VARCHAR)
SELECT winner FROM table_name_98 WHERE course = "rest day" AND date = "13 july"
Name the winner for rest day for 13 july
CREATE TABLE table_name_98 (winner VARCHAR, course VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_65 WHERE player = "greg norman"
What is To Par, when Player is Greg Norman?
CREATE TABLE table_name_65 (to_par VARCHAR, player VARCHAR)
SELECT year FROM table_name_59 WHERE class = "car" AND stages_won = "0"
What year did he compete in the car class and win 0 stages?
CREATE TABLE table_name_59 (year VARCHAR, class VARCHAR, stages_won VARCHAR)
SELECT COUNT(election) FROM table_123462_2 WHERE _number_of_candidates_nominated = 262
What is the election year when the # of candidates nominated was 262?
CREATE TABLE table_123462_2 (election VARCHAR, _number_of_candidates_nominated VARCHAR)
SELECT date FROM table_name_70 WHERE week = 13
What was the date during week 13?
CREATE TABLE table_name_70 (date VARCHAR, week VARCHAR)
SELECT staffel_d FROM table_name_51 WHERE staffel_e = "motor suhl" AND season = "1983-84"
What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?
CREATE TABLE table_name_51 (staffel_d VARCHAR, staffel_e VARCHAR, season VARCHAR)
SELECT MAX(assists) FROM table_name_71 WHERE rank = 2 AND games < 2
What is the largest number of assists for the second rank when there were less than 2 games?
CREATE TABLE table_name_71 (assists INTEGER, rank VARCHAR, games VARCHAR)
SELECT captain FROM table_1165048_1 WHERE coach = "Geoff Miles"
who is the captain where coach is geoff miles
CREATE TABLE table_1165048_1 (captain VARCHAR, coach VARCHAR)
SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)"
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?
CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR)
SELECT nat FROM table_name_15 WHERE transfer_window = "summer" AND type = "transfer" AND name = "marcell jansen"
Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?
CREATE TABLE table_name_15 (nat VARCHAR, name VARCHAR, transfer_window VARCHAR, type VARCHAR)
SELECT country FROM table_name_26 WHERE career = "1989–2004"
What Country has a Career of 1989–2004?
CREATE TABLE table_name_26 (country VARCHAR, career VARCHAR)
SELECT date FROM table_name_36 WHERE away_team = "essendon"
What is the date of the game where Essendon is the away team?
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR)
SELECT score FROM table_27756014_1 WHERE game = 4
What is the score of game 4?
CREATE TABLE table_27756014_1 (score VARCHAR, game VARCHAR)
SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = "#99 GAINSCO/Bob Stallings Racing"
How many races had #99 gainsco/bob stallings racing in round 10?
CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR)
SELECT away_team AS score FROM table_name_65 WHERE away_team = "carlton"
What did carlton score while away?
CREATE TABLE table_name_65 (away_team VARCHAR)
SELECT jockey FROM table_name_53 WHERE post = 12
What is Jockey, when Post is 12?
CREATE TABLE table_name_53 (jockey VARCHAR, post VARCHAR)
SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari"
What kind of engine is in the car for Scuderia Ferrari that went all rounds?
CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13
When there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?
CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421
What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?
CREATE TABLE table_name_36 (matches INTEGER, bonus_pts VARCHAR, total_points VARCHAR)
SELECT age_on_leaving FROM table_name_43 WHERE political_party = "conservative" AND left_house = "2001"
How old was the conservative party member that left the house in 2001?
CREATE TABLE table_name_43 (age_on_leaving VARCHAR, political_party VARCHAR, left_house VARCHAR)
SELECT COUNT(performed_by) FROM table_191105_2 WHERE subject = "interjection"
When interjection is the subject how many performers are there?
CREATE TABLE table_191105_2 (performed_by VARCHAR, subject VARCHAR)
SELECT MAX(game) FROM table_11959669_6 WHERE location_attendance = "Pepsi Center 19,894"
What is the game that the location attendance is pepsi center 19,894?
CREATE TABLE table_11959669_6 (game INTEGER, location_attendance VARCHAR)
SELECT whenbuilt FROM table_name_32 WHERE name = "moray firth"
When was moray firth built?
CREATE TABLE table_name_32 (whenbuilt VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_49 WHERE attendance = "53,899"
Tell me the opponent for attendance of 53,899
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
SELECT final_placing FROM table_name_17 WHERE season = 2009
What was the 2009 final placing?
CREATE TABLE table_name_17 (final_placing VARCHAR, season VARCHAR)
SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28"
What was the Attendance on April 28?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_27 WHERE attendance = 38 OFFSET 624
What is the lowest Week, when Attendance is 38,624?
CREATE TABLE table_name_27 (week INTEGER, attendance VARCHAR)
SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-fm"
what is the class when the identifier is cjbc-1-fm?
CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR)
SELECT points_against FROM table_name_96 WHERE "drawn" = "drawn"
what is the points against when drawn is drawn?
CREATE TABLE table_name_96 (points_against VARCHAR)
SELECT MAX(assists) FROM table_22875514_3 WHERE points = "129-3.9"
What is the most assists for points 129-3.9?
CREATE TABLE table_22875514_3 (assists INTEGER, points VARCHAR)
SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "19%"
Which European election (UK) has a Share of votes of 19%?
CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)
SELECT date FROM table_name_39 WHERE name = "granville"
What is the date for the name of Granville?
CREATE TABLE table_name_39 (date VARCHAR, name VARCHAR)
SELECT programming FROM table_name_16 WHERE channel < 63.2
For the channel smaller than 63.2, what was the programming?
CREATE TABLE table_name_16 (programming VARCHAR, channel INTEGER)
SELECT directed_by FROM table_name_27 WHERE original_air_date = "april 29, 2000"
Which Directed by has an Original air date of april 29, 2000?
CREATE TABLE table_name_27 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT ihsaa_class FROM table_name_24 WHERE location = "charlottesville"
Which IHSAA Class is located in charlottesville?
CREATE TABLE table_name_24 (ihsaa_class VARCHAR, location VARCHAR)
SELECT MAX(contestants) FROM table_25214321_1 WHERE runner_up = "Monique Evans"
How many contestants were there when the runner-up was Monique Evans?
CREATE TABLE table_25214321_1 (contestants INTEGER, runner_up VARCHAR)
SELECT category FROM table_name_64 WHERE result = "nominated" AND year = 2006 AND title = "pierrepoint"
What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?
CREATE TABLE table_name_64 (category VARCHAR, title VARCHAR, result VARCHAR, year VARCHAR)
SELECT record FROM table_name_23 WHERE date = "august 18"
What is the record on august 18?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR)
SELECT MAX(pick) FROM table_name_35 WHERE nationality = "united states" AND college = "new mexico state" AND round > 6
What is the highest Pick, when Nationality is "United States", when College is "New Mexico State", and when Round is greater than 6?
CREATE TABLE table_name_35 (pick INTEGER, round VARCHAR, nationality VARCHAR, college VARCHAR)
SELECT AVG(sio_2) FROM table_name_42 WHERE na_2_o = 7.53 AND al_2_o_3 < 2.13
What is average SiO 2, when Na 2 O is 7.53, and when Al 2 O 3 is less than 2.13?
CREATE TABLE table_name_42 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR)
SELECT goal FROM table_name_84 WHERE result = "2-0"
Can you tell me the Goal that has the Result of 2-0?
CREATE TABLE table_name_84 (goal VARCHAR, result VARCHAR)
SELECT verb_meaning FROM table_name_16 WHERE part_1 = "alan"
What is the Verb meaning when part 1 is alan?
CREATE TABLE table_name_16 (verb_meaning VARCHAR, part_1 VARCHAR)
SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 2"
What was the attendance on August 2?
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR)
SELECT aorist FROM table_27298240_26 WHERE present = "bude"
What aorist has bude in present tense?
CREATE TABLE table_27298240_26 (aorist VARCHAR, present VARCHAR)
SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_events)
How many customers did not have any event?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE customer_events (customer_id VARCHAR)
SELECT name FROM table_name_12 WHERE area = "hillcrest"
What is the name of the school in Hillcrest?
CREATE TABLE table_name_12 (name VARCHAR, area VARCHAR)
SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix"
Which Constructor won the Roussillon Grand Prix?
CREATE TABLE table_name_95 (winning_constructor VARCHAR, name VARCHAR)
SELECT MAX(lane) FROM table_name_24 WHERE rank = 8
What is the Lane of the swimmer with a Rank of 8?
CREATE TABLE table_name_24 (lane INTEGER, rank VARCHAR)
SELECT socket FROM table_name_34 WHERE release_date = "september 10, 2009" AND order_part_number = "amm300dbo22gq"
What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?
CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR)
SELECT hanzi FROM table_name_84 WHERE name = "nmtv mongolian satellite television"
Which hanzi's name is nmtv mongolian satellite television?
CREATE TABLE table_name_84 (hanzi VARCHAR, name VARCHAR)
SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece"
What is the total number of rank for the country of greece?
CREATE TABLE table_name_19 (rank VARCHAR, country VARCHAR)
SELECT director_s_ FROM table_name_81 WHERE recipient = "maya vision international ltd"
Name the director for maya vision international ltd
CREATE TABLE table_name_81 (director_s_ VARCHAR, recipient VARCHAR)
SELECT runner_s__up FROM table_name_48 WHERE winning_score = −5(72 - 71 - 68 = 211)
Who is the runner(s)-up with a winning score of −5 (72-71-68=211)?
CREATE TABLE table_name_48 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT COUNT(seats_won) FROM table_149330_1 WHERE _percentage_of_votes = "20.29"
What was the total number of seats won where the % of votes is equal to 20.29?
CREATE TABLE table_149330_1 (seats_won VARCHAR, _percentage_of_votes VARCHAR)
SELECT week FROM table_name_47 WHERE opponent = "minnesota vikings"
What game week did the Buccaneers play against the Minnesota Vikings?
CREATE TABLE table_name_47 (week VARCHAR, opponent VARCHAR)
SELECT AVG(against) FROM table_name_49 WHERE date = "28 january 1950"
Which Against has a Date of 28 january 1950?
CREATE TABLE table_name_49 (against INTEGER, date VARCHAR)
SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = "3, 15"
What is the highest Quantity for PTRD Nos. 3, 15?
CREATE TABLE table_name_84 (quantity INTEGER, ptrd_nos VARCHAR)
SELECT COUNT(against) FROM table_name_6 WHERE status = "five nations" AND venue = "twickenham, london" AND opposing_teams = "scotland"
What's the total against for opposing team scotland at twickenham, london venue with a status of five nations?
CREATE TABLE table_name_6 (against VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)
SELECT director FROM table_name_97 WHERE year > 1949 AND role = "eula goodnight"
Who directed the eula goodnight movie after 1949?
CREATE TABLE table_name_97 (director VARCHAR, year VARCHAR, role VARCHAR)
SELECT player FROM table_name_8 WHERE school_club_team = "stanford"
Who is the player who went to Stanford?
CREATE TABLE table_name_8 (player VARCHAR, school_club_team VARCHAR)
SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
Please show the most common age of editors.
CREATE TABLE editor (Age VARCHAR)
SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010
Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.
CREATE TABLE teaches (id VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT runner_up FROM table_name_53 WHERE venue = "tartu, estonia"
Who was the runner-up at the event held in Tartu, Estonia?
CREATE TABLE table_name_53 (runner_up VARCHAR, venue VARCHAR)
SELECT sport FROM table_name_76 WHERE city = "huntsville" AND venue = "von braun center" AND league = "southern indoor football league"
Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?
CREATE TABLE table_name_76 (sport VARCHAR, league VARCHAR, city VARCHAR, venue VARCHAR)
SELECT team FROM table_17693171_1 WHERE points = "20"
If the points is 20, what was the team name?
CREATE TABLE table_17693171_1 (team VARCHAR, points VARCHAR)
SELECT STATEMENT_ID, COUNT(*) FROM Accounts GROUP BY STATEMENT_ID
Show all statement id and the number of accounts for each statement.
CREATE TABLE Accounts (STATEMENT_ID VARCHAR)
SELECT high_rebounds FROM table_name_36 WHERE date = "february 24"
Who had the high rebounds on February 24?
CREATE TABLE table_name_36 (high_rebounds VARCHAR, date VARCHAR)
SELECT region FROM table_name_58 WHERE year < 2008 AND name = "best 1200"
Name the region before 2008 when name of best 1200
CREATE TABLE table_name_58 (region VARCHAR, year VARCHAR, name VARCHAR)