question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total attendance in a week less than 5 when the result was l 24-20?
CREATE TABLE table_name_16 (attendance VARCHAR, result VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_16 WHERE result = "l 24-20" AND week < 5
Who was the successor for the reason for change being "died January 16, 1944?
CREATE TABLE table_2159537_3 (successor VARCHAR, reason_for_change VARCHAR)
SELECT successor FROM table_2159537_3 WHERE reason_for_change = "Died January 16, 1944"
Name the original air date for prod code 201
CREATE TABLE table_2322716_2 (original_air_dates VARCHAR, prod_code VARCHAR)
SELECT original_air_dates FROM table_2322716_2 WHERE prod_code = 201
What is the Retail name with a Digital/analog signal with analog, and a Chipset based on with radeon 9600?
CREATE TABLE table_name_15 (retail_name VARCHAR, digital_analog_signal VARCHAR, chipset_based_on VARCHAR)
SELECT retail_name FROM table_name_15 WHERE digital_analog_signal = "analog" AND chipset_based_on = "radeon 9600"
What is the no party preference when the city is murrieta?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, city VARCHAR)
SELECT no_party_preference FROM table_27003186_3 WHERE city = "Murrieta"
Find the name of dorms only for female (F gender).
CREATE TABLE dorm (dorm_name VARCHAR, gender VARCHAR)
SELECT dorm_name FROM dorm WHERE gender = 'F'
with games more than 22 what is the rebound total?
CREATE TABLE table_name_12 (rebounds INTEGER, games INTEGER)
SELECT SUM(rebounds) FROM table_name_12 WHERE games > 22
Name the surface when the partner is carlos berlocq
CREATE TABLE table_name_13 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_13 WHERE partner = "carlos berlocq"
What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver?
CREATE TABLE table_name_29 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1
What was the original air date of this episode that was written by Debbie Sarjeant?
CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant"
Tell me the role of festival theatre
CREATE TABLE table_name_35 (role VARCHAR, theatre VARCHAR)
SELECT role FROM table_name_35 WHERE theatre = "festival theatre"
What is the average Gold when the rank is less than 3 and the bronze is less than 1?
CREATE TABLE table_name_79 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_79 WHERE rank < 3 AND bronze < 1
what is the km from wellington where the metlink code is mast?
CREATE TABLE table_3005450_1 (km_from_wellington VARCHAR, metlink_code VARCHAR)
SELECT km_from_wellington FROM table_3005450_1 WHERE metlink_code = "MAST"
What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?
CREATE TABLE table_name_15 (date INTEGER, surface VARCHAR, championship VARCHAR)
SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria"
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)
SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania"
What are the ids, names and genders of the architects who built two bridges or one mill?
CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1
Name the guest for 1.64m ratings
CREATE TABLE table_29135051_2 (guest_s_ VARCHAR, ratings VARCHAR)
SELECT guest_s_ FROM table_29135051_2 WHERE ratings = "1.64m"
What area was damaged when King Khalid Military City was targeted?
CREATE TABLE table_23014685_1 (area_damaged VARCHAR, target VARCHAR)
SELECT area_damaged FROM table_23014685_1 WHERE target = "King Khalid Military City"
Which fuel system has a displacement of 1490cc?
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc"
When parnell dickinson was the player and the rounds were under 7, what's the highest pick?
CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 7
Who direcred the episode with production code 7d03?
CREATE TABLE table_25604014_5 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_25604014_5 WHERE production_code = "7D03"
What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR)
SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers"
Which frequency is station wlfv-fm?
CREATE TABLE table_19131921_1 (frequency VARCHAR, station VARCHAR)
SELECT frequency FROM table_19131921_1 WHERE station = "WLFV-FM"
How many players attended Hillcrest High School?
CREATE TABLE table_11677691_1 (college VARCHAR, school VARCHAR)
SELECT COUNT(college) FROM table_11677691_1 WHERE school = "Hillcrest High school"
Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?
CREATE TABLE table_name_67 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_67 WHERE type = "tko" AND round = "2 (6)" AND date = "2006-09-20"
What is the total played games of a 22 G.A.?
CREATE TABLE table_name_24 (played VARCHAR, ga VARCHAR)
SELECT COUNT(played) FROM table_name_24 WHERE ga = "22"
what's the transmbeingsion with trim being xe (2009)
CREATE TABLE table_1373768_1 (transmission VARCHAR, trim VARCHAR)
SELECT transmission FROM table_1373768_1 WHERE trim = "XE (2009)"
Who is the player with a t7 place?
CREATE TABLE table_name_56 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_56 WHERE place = "t7"
Which teams won when Bobby Rahal was their winning driver?
CREATE TABLE table_10706961_2 (winning_team VARCHAR, winning_driver VARCHAR)
SELECT winning_team FROM table_10706961_2 WHERE winning_driver = "Bobby Rahal"
What is the name of the capital, in Arabic, that is called n'djamena in English?
CREATE TABLE table_name_7 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)
SELECT arabic_capital_name FROM table_name_7 WHERE english_capital_name = "n'djamena"
What was the highest pick for Penn State?
CREATE TABLE table_name_57 (pick__number INTEGER, college VARCHAR)
SELECT MAX(pick__number) FROM table_name_57 WHERE college = "penn state"
Name the coverage area for licesne of hillsboro, west virginia
CREATE TABLE table_name_25 (coverage_area VARCHAR, city_of_license VARCHAR)
SELECT coverage_area FROM table_name_25 WHERE city_of_license = "hillsboro, west virginia"
What is the transfer window in esp with promoted type and more than 2010 ends?
CREATE TABLE table_name_85 (transfer_window VARCHAR, ends VARCHAR, country VARCHAR, type VARCHAR)
SELECT transfer_window FROM table_name_85 WHERE country = "esp" AND type = "promoted" AND ends > 2010
Name the number of womens singles for 1999 rio de janeiro
CREATE TABLE table_28138035_4 (womens_singles VARCHAR, year_location VARCHAR)
SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = "1999 Rio de Janeiro"
What is the % identity to C7orf38 of the animal whose common name is rat?
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, common_name VARCHAR)
SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat"
What is the entrant earlier than 1956 with a Vanwall Special chassis?
CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = "vanwall special"
What is the date of the match where vampiro was the winner in Mexico City?
CREATE TABLE table_name_40 (date VARCHAR, location VARCHAR, winner VARCHAR)
SELECT date FROM table_name_40 WHERE location = "mexico city" AND winner = "vampiro"
How many providers are there where the resale category is yes and bandwith is up is 1024?
CREATE TABLE table_1773908_3 (provider VARCHAR, resale VARCHAR, up__up_to_kbit_s_ VARCHAR)
SELECT COUNT(provider) FROM table_1773908_3 WHERE resale = "yes" AND up__up_to_kbit_s_ = 1024
How many vehicle theft data were recorded for a year with a population of 4465430?
CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, population VARCHAR)
SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430
Which Derivative has a Launch Date of july 15, 1970; 15:05 gmt?
CREATE TABLE table_name_57 (derivatives VARCHAR, launch_date VARCHAR)
SELECT derivatives FROM table_name_57 WHERE launch_date = "july 15, 1970; 15:05 gmt"
What kind of Crowd has a Ground of subiaco oval?
CREATE TABLE table_name_41 (crowd INTEGER, ground VARCHAR)
SELECT SUM(crowd) FROM table_name_41 WHERE ground = "subiaco oval"
How many average speeds are listed in the year 2003?
CREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)
SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = "2003"
What's the year inducted for the label of label?
CREATE TABLE table_name_59 (year_inducted VARCHAR)
SELECT year_inducted FROM table_name_59 WHERE "label" = "label"
How low was the San Juan income?
CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, district VARCHAR)
SELECT income_poverty_f FROM table_13618358_1 WHERE district = "San Juan"
What is the Round of the event with a Record of 5-4?
CREATE TABLE table_name_61 (round VARCHAR, record VARCHAR)
SELECT round FROM table_name_61 WHERE record = "5-4"
What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team?
CREATE TABLE table_name_24 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_24 WHERE visitor = "chicago black hawks" AND date = "november 12"
Which cfl team is manitoba college?
CREATE TABLE table_21321804_1 (cfl_team VARCHAR, college VARCHAR)
SELECT cfl_team FROM table_21321804_1 WHERE college = "Manitoba"
How many season had Melgar as a champion?
CREATE TABLE table_23647668_2 (season VARCHAR, champion VARCHAR)
SELECT COUNT(season) FROM table_23647668_2 WHERE champion = "Melgar"
How many division title teams were in the division championships 9 times?
CREATE TABLE table_1952065_4 (teams_with_division_titles VARCHAR, division_championships VARCHAR)
SELECT COUNT(teams_with_division_titles) FROM table_1952065_4 WHERE division_championships = 9
How many courses are offered by the Computer Info. Systems department?
CREATE TABLE course (dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR)
SELECT COUNT(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = "Computer Info. Systems"
WHich kind of Aprende has a Centennial of 1988?
CREATE TABLE table_name_35 (aprende VARCHAR, centennial VARCHAR)
SELECT aprende FROM table_name_35 WHERE centennial = "1988"
How many pf catagories are listed for the skip that had 3 for l
CREATE TABLE table_25714995_2 (pf VARCHAR, l VARCHAR)
SELECT COUNT(pf) FROM table_25714995_2 WHERE l = 3
What is the Score with a Home with hornets?
CREATE TABLE table_name_54 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_54 WHERE home = "hornets"
Which driver had a year under 1905?
CREATE TABLE table_name_51 (driver VARCHAR, year INTEGER)
SELECT driver FROM table_name_51 WHERE year < 1905
What is the Date of the game against Christo Van Rensburg?
CREATE TABLE table_name_5 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_5 WHERE opponent = "christo van rensburg"
What was the name of the epiode written by Gary M. Goodrich?
CREATE TABLE table_2409041_9 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_2409041_9 WHERE written_by = "Gary M. Goodrich"
What is the highest points with g Tyres and Minardi m187?
CREATE TABLE table_name_30 (points INTEGER, tyres VARCHAR, chassis VARCHAR)
SELECT MAX(points) FROM table_name_30 WHERE tyres = "g" AND chassis = "minardi m187"
Which Record has a Time of n/a?
CREATE TABLE table_name_23 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_23 WHERE time = "n/a"
Which Player has a Date of 13 july 2007?
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR)
SELECT player FROM table_name_41 WHERE date = "13 july 2007"
Which Time has Laps smaller than 28, and a Rider of nicky hayden?
CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"
What is the Country of the Play Electra?
CREATE TABLE table_name_60 (country VARCHAR, play VARCHAR)
SELECT country FROM table_name_60 WHERE play = "electra"
Name the least area
CREATE TABLE table_24574438_1 (area__km_2__ INTEGER)
SELECT MIN(area__km_2__) FROM table_24574438_1
Tell me the date of goal 5
CREATE TABLE table_name_5 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_5 WHERE goal = 5
What is Label, when Format is Double CD?
CREATE TABLE table_name_33 (label VARCHAR, format VARCHAR)
SELECT label FROM table_name_33 WHERE format = "double cd"
Wh owas the captian of the north east stars?
CREATE TABLE table_25794138_1 (captain VARCHAR, team VARCHAR)
SELECT captain FROM table_25794138_1 WHERE team = "North East Stars"
What are the miles when February 25 is the date?
CREATE TABLE table_2226343_1 (miles__km_ VARCHAR, date VARCHAR)
SELECT miles__km_ FROM table_2226343_1 WHERE date = "February 25"
What driver won the VII Rand Grand Prix?
CREATE TABLE table_name_26 (winning_driver VARCHAR, race_name VARCHAR)
SELECT winning_driver FROM table_name_26 WHERE race_name = "vii rand grand prix"
What is title of episode 06-02-407?
CREATE TABLE table_1876825_5 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_1876825_5 WHERE production_code = "06-02-407"
Find the names of all races held in 2017.
CREATE TABLE races (name VARCHAR, YEAR VARCHAR)
SELECT name FROM races WHERE YEAR = 2017
Which student visited restaurant most often? List student's first name and last name.
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)
SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1
How many losses did the Michigan State Spartans have?
CREATE TABLE table_1672976_2 (loss INTEGER, institution VARCHAR)
SELECT MAX(loss) FROM table_1672976_2 WHERE institution = "Michigan State Spartans"
What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?
CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)
SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29"
After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins?
CREATE TABLE table_name_61 (attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = "rich stadium" AND opponent = "miami dolphins" AND week > 2
Name the sanskrit word and meaning for aquarius
CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)
SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
Which Tournament was on the Date 6 Sep 2009?
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "6 sep 2009"
Which Position has a Years in Orlando of 2003–2004?
CREATE TABLE table_name_55 (position VARCHAR, years_in_orlando VARCHAR)
SELECT position FROM table_name_55 WHERE years_in_orlando = "2003–2004"
what is the name of the institution of the sparta, wi location?
CREATE TABLE table_20887670_1 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_20887670_1 WHERE location = "Sparta, WI"
Name the title with presentation of credentials of april 10, 1907
CREATE TABLE table_name_62 (title VARCHAR, presentation_of_credentials VARCHAR)
SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907"
What is the stadium in Kuopio?
CREATE TABLE table_25129482_1 (stadium VARCHAR, location VARCHAR)
SELECT stadium FROM table_25129482_1 WHERE location = "Kuopio"
How many on the list are called the Austrian Grand Prix?
CREATE TABLE table_1132568_3 (rd VARCHAR, grand_prix VARCHAR)
SELECT COUNT(rd) FROM table_1132568_3 WHERE grand_prix = "Austrian grand_prix"
What episoe number in the season originally aired on February 11, 1988?
CREATE TABLE table_2818164_5 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = "February 11, 1988"
What is the location and attendance total from the game on December 1?
CREATE TABLE table_27539808_5 (location_attendance VARCHAR, december VARCHAR)
SELECT location_attendance FROM table_27539808_5 WHERE december = 1
Name the circuit with class of gts
CREATE TABLE table_name_78 (circuit VARCHAR, class VARCHAR)
SELECT circuit FROM table_name_78 WHERE class = "gts"
What is Bronze, when Silver is less than 89, and when Total is "4"?
CREATE TABLE table_name_6 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT bronze FROM table_name_6 WHERE silver < 89 AND total = 4
name the total number of top 10 also where the position is 51st
CREATE TABLE table_1671401_3 (top_10 VARCHAR, position VARCHAR)
SELECT COUNT(top_10) FROM table_1671401_3 WHERE position = "51st"
What is the average home team score for Footscray?
CREATE TABLE table_name_36 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_36 WHERE home_team = "footscray"
What source of wealth has a value of £5726m?
CREATE TABLE table_name_51 (source_of_wealth VARCHAR, value VARCHAR)
SELECT source_of_wealth FROM table_name_51 WHERE value = "£5726m"
What college did the player from Ames High School attend?
CREATE TABLE table_name_56 (college VARCHAR, school VARCHAR)
SELECT college FROM table_name_56 WHERE school = "ames high school"
Name the total number of platforms that waddon railway station has
CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR)
SELECT COUNT(platforms) FROM table_name_41 WHERE stations = "waddon railway station"
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
CREATE TABLE table_name_80 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR)
SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7
Return the cell phone number and email address for all students.
CREATE TABLE STUDENTS (cell_mobile_number VARCHAR, email_address VARCHAR)
SELECT cell_mobile_number, email_address FROM STUDENTS
Which school did Herb Williams go to?
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_10015132_21 WHERE player = "Herb Williams"
Show all opening years and the number of churches that opened in that year.
CREATE TABLE church (open_date VARCHAR)
SELECT open_date, COUNT(*) FROM church GROUP BY open_date
What are the colours of the team with benedikt guðmundsson as head coach?
CREATE TABLE table_name_26 (colours VARCHAR, head_coach VARCHAR)
SELECT colours FROM table_name_26 WHERE head_coach = "benedikt guðmundsson"
Name the height for demetrius jemison
CREATE TABLE table_25360865_1 (height VARCHAR, name VARCHAR)
SELECT height FROM table_25360865_1 WHERE name = "Demetrius Jemison"
What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?
CREATE TABLE table_name_39 (categorie VARCHAR, year VARCHAR, awards VARCHAR)
SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = "berlin international film festival"
Score of 2 – 3 has what attendance?
CREATE TABLE table_name_61 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_61 WHERE score = "2 – 3"
What was Richmond's score when it was the away team?
CREATE TABLE table_name_83 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond"
What was the surface played on when they were a runner-up in 2007?
CREATE TABLE table_name_5 (surface VARCHAR, outcome VARCHAR, year VARCHAR)
SELECT surface FROM table_name_5 WHERE outcome = "runner-up" AND year = 2007
Which country does customer with first name as Carole and last name as Bernhard lived in?
CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"