question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Position, when Pick is 7?
CREATE TABLE table_name_80 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_80 WHERE pick = "7"
Who scored a 9.72 in the swimsuit?
CREATE TABLE table_11690135_1 (interview VARCHAR, swimsuit VARCHAR)
SELECT interview FROM table_11690135_1 WHERE swimsuit = "9.72"
How many entries for prothrombin time are there where platelet count is "decreased or unaffected"?
CREATE TABLE table_1555308_1 (prothrombin_time VARCHAR, platelet_count VARCHAR)
SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected"
what college has nhl team chicago black hawks?
CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_1213511_5 WHERE nhl_team = "Chicago Black Hawks"
How many wins or losses were there when the record was 3-0?
CREATE TABLE table_20850527_1 (result VARCHAR, record VARCHAR)
SELECT COUNT(result) FROM table_20850527_1 WHERE record = "3-0"
How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?
CREATE TABLE table_name_84 (laps INTEGER, grid VARCHAR, time VARCHAR, rider VARCHAR)
SELECT SUM(laps) FROM table_name_84 WHERE time = "accident" AND rider = "carmelo morales" AND grid > 25
If the position is 9th, what is the total podiums number?
CREATE TABLE table_21795846_1 (podiums VARCHAR, position VARCHAR)
SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = "9th"
What is the name of the team that had 1 win and a rating of +85?
CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR)
SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85"
Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?
CREATE TABLE table_name_93 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_93 WHERE silver > 8 AND bronze = 20 AND gold < 20
How many drivers are there?
CREATE TABLE driver (Id VARCHAR)
SELECT COUNT(*) FROM driver
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?
CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
SELECT stage FROM table_name_67 WHERE points_classification = "danilo di luca" AND mountains_classification = "josé rujano" AND general_classification = "danilo di luca"
How many tries were there for club cwmtwrch rfc?
CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc"
If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT MAX(3 AS rd_throw) FROM table_17265535_7 WHERE equation = "6 × 9² + 6 × 9 + 6"
What kilometer (Layac-basis) has a Barangay of general lim (capot)?
CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR)
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)"
What is the traditional form for 宁陵县?
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR)
SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县"
what are the tries where the game was lost by 4?
CREATE TABLE table_13564637_3 (tries_against VARCHAR, lost VARCHAR)
SELECT tries_against FROM table_13564637_3 WHERE lost = "4"
How many 2nd legs are there where home (1st leg) is Independiente?
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Independiente"
What was Home team Footscray's score?
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"
who is the player when the place is t5 and the score is 69-66-71=206?
CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206
What was the score when the couple was shannon & derek?
CREATE TABLE table_name_72 (score VARCHAR, couple VARCHAR)
SELECT score FROM table_name_72 WHERE couple = "shannon & derek"
Which Seats have a Share of votes of 18%, and a Share of seats of 3%, and a General election larger than 1992?
CREATE TABLE table_name_62 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR)
SELECT MAX(seats) FROM table_name_62 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election > 1992
What batting team played in Karachi?
CREATE TABLE table_name_55 (batting_team VARCHAR, venue VARCHAR)
SELECT batting_team FROM table_name_55 WHERE venue = "karachi"
What album had a peak position of 6 and a certification of 3x platinum?
CREATE TABLE table_name_25 (album VARCHAR, certification VARCHAR, peak_position VARCHAR)
SELECT album FROM table_name_25 WHERE certification = "3x platinum" AND peak_position = 6
What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
SELECT score FROM table_name_58 WHERE result = "win" AND competition = "1998 fifa world cup qualification" AND date = "october 30, 1996"
Which catalog has a date of 24 march 2006?
CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_44 WHERE date = "24 march 2006"
What is the most silver won by the country with more than 1 gold, 3 bronze, ranked 1, and less than 12 as the total?
CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_54 WHERE gold > "1" AND bronze = 3 AND rank = "1" AND total < 12
Which skip's third is Steffen Walstad?
CREATE TABLE table_name_1 (skip VARCHAR, third VARCHAR)
SELECT skip FROM table_name_1 WHERE third = "steffen walstad"
What were the notes of the All-Africa Games before 2007?
CREATE TABLE table_name_41 (notes VARCHAR, competition VARCHAR, year VARCHAR)
SELECT notes FROM table_name_41 WHERE competition = "all-africa games" AND year < 2007
What is 2008, when 2006 is "Grand Slam Tournaments"?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT 2008 FROM table_name_18 WHERE 2006 = "grand slam tournaments"
What is the Birthdate for the person with a height less than 191, and weight of 84 kg?
CREATE TABLE table_name_23 (birthdate VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR)
SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84
What was the result from the 2000 asian cup qualification?
CREATE TABLE table_name_58 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_58 WHERE competition = "2000 asian cup qualification"
What is the name of the father who was born in 1204 and married ottokar ii?
CREATE TABLE table_name_89 (father VARCHAR, spouse VARCHAR, birth VARCHAR)
SELECT father FROM table_name_89 WHERE spouse = "ottokar ii" AND birth = "1204"
Which Cuts made is the highest one that has a Top-5 of 1, and a Top-25 larger than 16?
CREATE TABLE table_name_89 (cuts_made INTEGER, top_5 VARCHAR, top_25 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_89 WHERE top_5 = 1 AND top_25 > 16
What was the result on july 16, 1992?
CREATE TABLE table_name_4 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_4 WHERE date = "july 16, 1992"
What is the location of the kanyakumari government medical college?
CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR)
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college"
How many cars does Gregg Mixon own?
CREATE TABLE table_2182170_1 (car_s_ VARCHAR, listed_owner_s_ VARCHAR)
SELECT COUNT(car_s_) FROM table_2182170_1 WHERE listed_owner_s_ = "Gregg Mixon"
who is the champion when the year is earlier than 2012, the runner-up (average in final) is steve beaton (97.16)?
CREATE TABLE table_name_25 (champion VARCHAR, year VARCHAR, runner_up__average_in_final_ VARCHAR)
SELECT champion FROM table_name_25 WHERE year < 2012 AND runner_up__average_in_final_ = "steve beaton (97.16)"
Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522"
What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?
CREATE TABLE table_name_25 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, order VARCHAR)
SELECT elevator FROM table_name_25 WHERE elevated = "1378, september 18" AND order = "cardinal-priest" AND elector = "poncello orsini"
What country is Paul Lawrie from?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_39 WHERE player = "paul lawrie"
Find the first name and last name of the instructor of course that has course name
CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR); CREATE TABLE COURSE (Instructor VARCHAR, CName VARCHAR)
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY"
Name the total number of rank for lane 7
CREATE TABLE table_name_69 (rank VARCHAR, lane VARCHAR)
SELECT COUNT(rank) FROM table_name_69 WHERE lane = 7
Who is the opponent before game 5 with a 0-1-0 record?
CREATE TABLE table_name_31 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_31 WHERE game < 5 AND record = "0-1-0"
On what date was the opponent the Miami Dolphins?
CREATE TABLE table_name_30 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_30 WHERE opponent = "miami dolphins"
What is the lowest number of bronze medals for a nation with fewer than 1 total medal?
CREATE TABLE table_name_87 (bronze INTEGER, total INTEGER)
SELECT MIN(bronze) FROM table_name_87 WHERE total < 1
What is the protein name when aa length is 202 aa?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, aa_length VARCHAR)
SELECT protein_name FROM table_26708105_5 WHERE aa_length = "202 aa"
Which entrant had a Brabham BT10 chassis before 1965?
CREATE TABLE table_name_12 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_12 WHERE year < 1965 AND chassis = "brabham bt10"
Name the most top 10s for 2 best finish
CREATE TABLE table_2112220_6 (top_10s INTEGER, best_finish VARCHAR)
SELECT MAX(top_10s) FROM table_2112220_6 WHERE best_finish = "2"
How many picks are there with an affiliation is the University of California Norcal Lamorinda United?
CREATE TABLE table_25518547_2 (pick__number VARCHAR, affiliation VARCHAR)
SELECT COUNT(pick__number) FROM table_25518547_2 WHERE affiliation = "University of California NorCal Lamorinda United"
What is the fewest number of attendees at Kardinia Park?
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_36 WHERE venue = "kardinia park"
What date did episode 4 in the season originally air?
CREATE TABLE table_29436238_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT original_air_date FROM table_29436238_1 WHERE no_in_season = 4
Which is the smallest First year when the population is 32,645?
CREATE TABLE table_name_33 (first_year INTEGER, population VARCHAR)
SELECT MIN(first_year) FROM table_name_33 WHERE population = 32 OFFSET 645
What type of environment is the venue that was built in 2003?
CREATE TABLE table_name_11 (environment VARCHAR, year_built VARCHAR)
SELECT environment FROM table_name_11 WHERE year_built = "2003"
Who is the constituency when the runner-up was d. Venugopal?
CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR)
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal"
WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r"
What are different nationalities of people and the corresponding number of people from each nation?
CREATE TABLE people (Nationality VARCHAR)
SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality
Which school did the player then go to Auburn?
CREATE TABLE table_11677691_7 (school VARCHAR, college VARCHAR)
SELECT school FROM table_11677691_7 WHERE college = "Auburn"
Who is the player from Denmark who plays position c?
CREATE TABLE table_name_68 (player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT player FROM table_name_68 WHERE position = "c" AND nationality = "denmark"
What is the lowest pick from the Furman School that is a round smaller than 8?
CREATE TABLE table_name_83 (pick INTEGER, school VARCHAR, round VARCHAR)
SELECT MIN(pick) FROM table_name_83 WHERE school = "furman" AND round < 8
What's the 1851 when 1881 had 764?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 1851 FROM table_name_67 WHERE 1881 = "764"
What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975?
CREATE TABLE table_name_66 (height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR)
SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975"
Can you tell me the Country that has the Score of 69-72-67-71=279?
CREATE TABLE table_name_94 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279
When was Chaka Fattah first elected in the Pennsylvania 2 district?
CREATE TABLE table_1341453_40 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341453_40 WHERE district = "Pennsylvania 2"
What is the Airport when France was the country, and Montpellier was the city?
CREATE TABLE table_name_82 (airport VARCHAR, country VARCHAR, city VARCHAR)
SELECT airport FROM table_name_82 WHERE country = "france" AND city = "montpellier"
How much Enrollment has a School of shakamak?
CREATE TABLE table_name_56 (enrollment VARCHAR, school VARCHAR)
SELECT COUNT(enrollment) FROM table_name_56 WHERE school = "shakamak"
Which game number was located in Prudential Center 15,086?
CREATE TABLE table_27700375_6 (game INTEGER, location_attendance VARCHAR)
SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = "Prudential Center 15,086"
Which nationality is associated with Temple?
CREATE TABLE table_name_72 (nationality VARCHAR, school_country VARCHAR)
SELECT nationality FROM table_name_72 WHERE school_country = "temple"
What is the total number of brunos vote when willie and erin are eliminated?
CREATE TABLE table_12305325_4 (brunos_vote VARCHAR, eliminated VARCHAR)
SELECT COUNT(brunos_vote) FROM table_12305325_4 WHERE eliminated = "Willie and Erin"
Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?
CREATE TABLE table_1342013_41 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_1342013_41 WHERE candidates = "Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%"
What district did Joe Waggonner belong to?
CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner"
What average week has shea stadium as the game site, and 1979-12-09 as the date?
CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09"
Who was the Runner-up in Hossegor?
CREATE TABLE table_name_68 (runner_up VARCHAR, location VARCHAR)
SELECT runner_up FROM table_name_68 WHERE location = "hossegor"
Name the production code for viewers for 1.69
CREATE TABLE table_19229713_4 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
How many floors are in little Italy?
CREATE TABLE table_name_42 (floors VARCHAR, location VARCHAR)
SELECT COUNT(floors) FROM table_name_42 WHERE location = "little italy"
Who was the opponent at the game that had a loss of Stieb (5-7)?
CREATE TABLE table_name_64 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_64 WHERE loss = "stieb (5-7)"
What is Distance, when Venue is "Belgrade"?
CREATE TABLE table_name_39 (distance VARCHAR, venue VARCHAR)
SELECT distance FROM table_name_39 WHERE venue = "belgrade"
What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points?
CREATE TABLE table_name_49 (location_attendance VARCHAR, high_rebounds VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_name_49 WHERE high_rebounds = "a. horford (10)" AND high_points = "j. johnson (21)"
How many races did the German racer that won less than 10 races ride?
CREATE TABLE table_name_94 (races_ridden VARCHAR, nationality VARCHAR, races_won VARCHAR)
SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = "german" AND races_won < 10
How many total points were in 1992?
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR)
SELECT COUNT(points) FROM table_name_74 WHERE year = 1992
What were the results in the bryant-denny stadium • tuscaloosa, al?
CREATE TABLE table_26842217_4 (result VARCHAR, site VARCHAR)
SELECT result FROM table_26842217_4 WHERE site = "Bryant-Denny Stadium • Tuscaloosa, AL"
How many scores were at the Northville Long Island Classic?
CREATE TABLE table_11621873_1 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic"
What is the total for the team with 0 bronze and 3 silver?
CREATE TABLE table_name_41 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT SUM(total) FROM table_name_41 WHERE bronze = 0 AND silver = 3
Which Date has a Score of 6–3, 7–6?
CREATE TABLE table_name_3 (date INTEGER, score VARCHAR)
SELECT SUM(date) FROM table_name_3 WHERE score = "6–3, 7–6"
I want the total number of points for against of 753 and points diff more than -114
CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR)
SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114
The plural abbreviation of ll. uses what plural word?
CREATE TABLE table_name_94 (plural_word VARCHAR, plural_abbreviation VARCHAR)
SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll."
Which Operator has a Width of 2.65 m, and a Type designation of m5000?
CREATE TABLE table_name_13 (operator VARCHAR, width VARCHAR, type_designation VARCHAR)
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000"
When was the ensemble closed that went on air in June 2003?
CREATE TABLE table_name_96 (closure_date VARCHAR, on_air_date VARCHAR)
SELECT closure_date FROM table_name_96 WHERE on_air_date = "june 2003"
What was the date of the home game for Hartford?
CREATE TABLE table_name_87 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_87 WHERE home = "hartford"
Who is the opponent in the final of the tournament on May 22, 2006?
CREATE TABLE table_name_88 (opponent_in_final VARCHAR, date VARCHAR)
SELECT opponent_in_final FROM table_name_88 WHERE date = "may 22, 2006"
Which team has less than 73 laps and a gearbox time?
CREATE TABLE table_name_56 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_56 WHERE laps < 73 AND time_retired = "gearbox"
What is the total number of bronze medals of the nation with 4 total medals and 1 silver?
CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1
How many home losses occured when PF 13?
CREATE TABLE table_1409106_2 (home_losses VARCHAR, pf VARCHAR)
SELECT COUNT(home_losses) FROM table_1409106_2 WHERE pf = 13
What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488?
CREATE TABLE table_name_60 (long INTEGER, gain VARCHAR, avg_g VARCHAR, name VARCHAR)
SELECT MIN(long) FROM table_name_60 WHERE avg_g > -2.2 AND name = "total" AND gain > 2 OFFSET 488
Yumie Hayashi was third for which club?
CREATE TABLE table_name_23 (club VARCHAR, third VARCHAR)
SELECT club FROM table_name_23 WHERE third = "yumie hayashi"
What is the average round of the rw position player from the United States?
CREATE TABLE table_name_18 (round INTEGER, nationality VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE nationality = "united states" AND position = "rw"
Name the country for hideki noda category:articles with hcards
CREATE TABLE table_19001175_1 (country VARCHAR, name VARCHAR)
SELECT country FROM table_19001175_1 WHERE name = "Hideki Noda Category:Articles with hCards"
What is Stable, when Current Rank is F1 Jūryō 14 West?
CREATE TABLE table_name_59 (stable VARCHAR, current_rank VARCHAR)
SELECT stable FROM table_name_59 WHERE current_rank = "f1 jūryō 14 west"
What type is the settlement of Lok?
CREATE TABLE table_2562572_19 (type VARCHAR, settlement VARCHAR)
SELECT type FROM table_2562572_19 WHERE settlement = "Lok"
Name the opponent for record 10-13-3
CREATE TABLE table_27537870_5 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_27537870_5 WHERE record = "10-13-3"
What date was Rodger Ward the winning driver?
CREATE TABLE table_name_48 (date VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_48 WHERE winning_driver = "rodger ward"