question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which manufacturer is grid 11?
CREATE TABLE table_name_93 (manufacturer VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_93 WHERE grid = "11"
What date was the game that resulted in L 30-27?
CREATE TABLE table_name_34 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_34 WHERE result = "l 30-27"
When ale is the main sponsor who is the secondary sponsor?
CREATE TABLE table_187239_1 (secondary_sponsor VARCHAR, main_sponsor VARCHAR)
SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Ale"
What are the losses of the playoffs season?
CREATE TABLE table_name_56 (losses VARCHAR, season VARCHAR)
SELECT losses FROM table_name_56 WHERE season = "playoffs"
List the number of viewers when the cable rank for Russell Howard's Good New was 5.
CREATE TABLE table_24399615_10 (viewers VARCHAR, cable_rank VARCHAR)
SELECT viewers FROM table_24399615_10 WHERE cable_rank = "5"
Where did Rick Mears win, after starting in Pole Position?
CREATE TABLE table_name_70 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears"
What is the ICAO of Nakashibetsu?
CREATE TABLE table_name_89 (icao VARCHAR, city VARCHAR)
SELECT icao FROM table_name_89 WHERE city = "nakashibetsu"
What was the score for alcobaça when the opponent was in the final of xinyun han?
CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_27 WHERE tournament = "alcobaça" AND opponent_in_the_final = "xinyun han"
What was the loss of the game attended by 29,704?
CREATE TABLE table_name_21 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_21 WHERE attendance = "29,704"
What is Gold, when Silver is 5, and when Nation is Belgium?
CREATE TABLE table_name_91 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium"
For team reggina please mention all the outgoing manager
CREATE TABLE table_27114708_2 (outgoing_manager VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_27114708_2 WHERE team = "Reggina"
Name the aspect ratio for smpte 259m and interlaced scanning
CREATE TABLE table_272313_2 (aspect_ratio VARCHAR, pixel_aspect_ratio VARCHAR, scanning VARCHAR)
SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M" AND scanning = "interlaced"
Which position has a Player of chad hutchinson?
CREATE TABLE table_name_61 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_61 WHERE player = "chad hutchinson"
What position did the player from Jersey City, New Jersey play?
CREATE TABLE table_11677691_1 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_11677691_1 WHERE hometown = "Jersey City, New Jersey"
When рука / ruka is the serbo-croatian what is the macedonian?
CREATE TABLE table_26757_4 (macedonian VARCHAR, serbo_croatian VARCHAR)
SELECT macedonian FROM table_26757_4 WHERE serbo_croatian = "рука / ruka"
On July 25 what is the lowest attendance with the Brewers as the opponent?
CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 25"
What building shows 2013 and has more than 20 floors?
CREATE TABLE table_name_54 (building VARCHAR, year VARCHAR, floors VARCHAR)
SELECT building FROM table_name_54 WHERE year = 2013 AND floors > 20
What are the total Goals against with 72 points and more than 37 losses?
CREATE TABLE table_name_10 (goals_against INTEGER, points VARCHAR, lost VARCHAR)
SELECT SUM(goals_against) FROM table_name_10 WHERE points = 72 AND lost > 37
What manufacturer made class b-2?
CREATE TABLE table_name_47 (manufacturer VARCHAR, class VARCHAR)
SELECT manufacturer FROM table_name_47 WHERE class = "b-2"
Find the codes of countries that have more than 50 players.
CREATE TABLE players (country_code VARCHAR)
SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50
what is the minimum kerry # with bush % being 78.40%
CREATE TABLE table_13606924_1 (kerry__number INTEGER, bush__percentage VARCHAR)
SELECT MIN(kerry__number) FROM table_13606924_1 WHERE bush__percentage = "78.40%"
What are the highest touchdowns that have net yards greater than 631, with attempts less than 145?
CREATE TABLE table_name_34 (touchdowns INTEGER, net_yards VARCHAR, attempts VARCHAR)
SELECT MAX(touchdowns) FROM table_name_34 WHERE net_yards > 631 AND attempts < 145
How many points are there with more losses than 16, more goals than 44, and a smaller position than 13?
CREATE TABLE table_name_99 (points VARCHAR, position VARCHAR, loses VARCHAR, goals_scored VARCHAR)
SELECT COUNT(points) FROM table_name_99 WHERE loses > 16 AND goals_scored > 44 AND position < 13
Which county has 438 (4%) listed under R. Bacon?
CREATE TABLE table_name_92 (county VARCHAR, r_bacon VARCHAR)
SELECT county FROM table_name_92 WHERE r_bacon = "438 (4%)"
Name the ground for essendon
CREATE TABLE table_16388047_1 (ground VARCHAR, home_team VARCHAR)
SELECT ground FROM table_16388047_1 WHERE home_team = "Essendon"
What is the Report on November 15, 2000?
CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_18 WHERE date = "november 15, 2000"
Name the number of rank for april 2013 for 2012 ran kbeing 225
CREATE TABLE table_24307126_3 (april_2013_cum_rank VARCHAR, rank_2012 VARCHAR)
SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225
Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.
CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'
What is Injured, when Date is "09.15 Sep. 15"?
CREATE TABLE table_name_98 (injured VARCHAR, date VARCHAR)
SELECT injured FROM table_name_98 WHERE date = "09.15 sep. 15"
What was the final score of the Friendly Competition in Manama, Bahrain?
CREATE TABLE table_name_48 (score VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT score FROM table_name_48 WHERE venue = "manama, bahrain" AND competition = "friendly"
How many extra points catagories are there for the na player?
CREATE TABLE table_25642873_2 (extra_points VARCHAR, player VARCHAR)
SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na"
What is the total number of languages used in Aruba?
CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba"
What was the time on September 1?
CREATE TABLE table_name_46 (local_time VARCHAR, date VARCHAR)
SELECT local_time FROM table_name_46 WHERE date = "september 1"
Find the average number of customers cross all banks.
CREATE TABLE bank (no_of_customers INTEGER)
SELECT AVG(no_of_customers) FROM bank
What is the modified torque (lb/ft) when the standard hp n/a?
CREATE TABLE table_19704392_1 (modified_torque__lb_ft_ VARCHAR, standard_hp VARCHAR)
SELECT COUNT(modified_torque__lb_ft_) FROM table_19704392_1 WHERE standard_hp = "n/a"
What year was the Commonwealth Games?
CREATE TABLE table_name_16 (year INTEGER, tournament VARCHAR)
SELECT SUM(year) FROM table_name_16 WHERE tournament = "commonwealth games"
What Tournament of the french open had 2004 that has a 1998 of 2r?
CREATE TABLE table_name_58 (tournament VARCHAR)
SELECT 2004 FROM table_name_58 WHERE 1998 = "2r" AND tournament = "french open"
The episode written by Rebecca Dameron aired on what date?
CREATE TABLE table_11111116_6 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_11111116_6 WHERE written_by = "Rebecca Dameron"
How many loses have points greater than 30, goals scored greater than 59, with a position greater than 5?
CREATE TABLE table_name_84 (loses INTEGER, position VARCHAR, points VARCHAR, goals_scored VARCHAR)
SELECT SUM(loses) FROM table_name_84 WHERE points > 30 AND goals_scored > 59 AND position > 5
What is the 1st leg of the team with a 2-1 agg.?
CREATE TABLE table_name_13 (agg VARCHAR)
SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1"
What Construction Start has a Design flow (LPM) of 1300?
CREATE TABLE table_name_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR)
SELECT construction_start FROM table_name_99 WHERE design_flow__lpm_ = 1300
What kind of Socket has a Order part number of tmrm72dam22gg?
CREATE TABLE table_name_44 (socket VARCHAR, order_part_number VARCHAR)
SELECT socket FROM table_name_44 WHERE order_part_number = "tmrm72dam22gg"
What was the percentage of safari when firefox was 24.66%
CREATE TABLE table_name_10 (safari VARCHAR, firefox VARCHAR)
SELECT safari FROM table_name_10 WHERE firefox = "24.66%"
What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?
CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR)
SELECT COUNT(stage_wins) FROM table_name_41 WHERE finishes > 1 AND podiums < 1 AND driver = "federico villagra" AND starts < 8
If the assembly is the sixth assembly, what is the maximum election year?
CREATE TABLE table_23512864_4 (election_year INTEGER, assembly VARCHAR)
SELECT MAX(election_year) FROM table_23512864_4 WHERE assembly = "Sixth assembly"
what is the name of the coloneo of the 35th regiment
CREATE TABLE table_29458735_5 (colonel VARCHAR, regiment VARCHAR)
SELECT colonel FROM table_29458735_5 WHERE regiment = "35th regiment"
How many cars has over 6 cylinders?
CREATE TABLE CARS_DATA (Cylinders INTEGER)
SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6
Who was everyone first elected when incumbent was John J. Hemphill?
CREATE TABLE table_1431467_4 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1431467_4 WHERE incumbent = "John J. Hemphill"
Which complex used the Soyuz (r) launcher to facilitate 14 orbital flights?
CREATE TABLE table_name_35 (launch_complex VARCHAR, launcher VARCHAR, flights VARCHAR)
SELECT launch_complex FROM table_name_35 WHERE launcher = "soyuz (r)" AND flights = "14 orbital"
What was the result of the election of incumbent john shelley?
CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341973_6 WHERE incumbent = "John Shelley"
If the language is Native and Spanish, what is the Vinto Municipality minimum?
CREATE TABLE table_2509113_2 (vinto_municipality INTEGER, language VARCHAR)
SELECT MIN(vinto_municipality) FROM table_2509113_2 WHERE language = "Native and Spanish"
What is the record as of July 22?
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_11 WHERE date = "july 22"
What is the description of the department whose name has the substring the computer?
CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'
What amount of earnings does Tiger Woods have?
CREATE TABLE table_name_40 (earnings___$__ VARCHAR, player VARCHAR)
SELECT earnings___$__ FROM table_name_40 WHERE player = "tiger woods"
Who was the opponent when Richmond played as the home team?
CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_56 WHERE home_team = "richmond"
How many candidates won the election of john n. sandlin?
CREATE TABLE table_1342426_18 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1342426_18 WHERE incumbent = "John N. Sandlin"
What was the music for the team who earned a score of 13 (5, 4, 4)?
CREATE TABLE table_name_99 (music VARCHAR, score VARCHAR)
SELECT music FROM table_name_99 WHERE score = "13 (5, 4, 4)"
What Surface has a Date of 1 september 2008?
CREATE TABLE table_name_18 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_18 WHERE date = "1 september 2008"
Name the maaidens where overs bowled is 13
CREATE TABLE table_15700367_2 (maidens VARCHAR, overs_bowled VARCHAR)
SELECT maidens FROM table_15700367_2 WHERE overs_bowled = "13"
What Developer has a Release date of 2010-12-16, and a Title of facebook?
CREATE TABLE table_name_12 (developer VARCHAR, release_date VARCHAR, title VARCHAR)
SELECT developer FROM table_name_12 WHERE release_date = "2010-12-16" AND title = "facebook"
Who is the home team for the stadium located in Berlin?
CREATE TABLE table_name_73 (home_team VARCHAR, state VARCHAR)
SELECT home_team FROM table_name_73 WHERE state = "berlin"
In which district is James O'Connor the incumbent?
CREATE TABLE table_1342370_17 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342370_17 WHERE incumbent = "James O'Connor"
Which date had an attendance of 76,518?
CREATE TABLE table_name_27 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_27 WHERE attendance = "76,518"
What is the highest percent of yes Alberta, which had less than 60.2 vote no, has?
CREATE TABLE table_name_29 (percent_yes INTEGER, jurisdiction VARCHAR, percent_no VARCHAR)
SELECT MAX(percent_yes) FROM table_name_29 WHERE jurisdiction = "alberta" AND percent_no < 60.2
Who was the girl of the week 2 weeks before terri lynn farrow in the same month?
CREATE TABLE table_name_47 (week_2 VARCHAR, week_4 VARCHAR)
SELECT week_2 FROM table_name_47 WHERE week_4 = "terri lynn farrow"
What is the designation for the m.tech (e.c.e) qualification?
CREATE TABLE table_name_86 (designation VARCHAR, qualification VARCHAR)
SELECT designation FROM table_name_86 WHERE qualification = "m.tech (e.c.e)"
Who is the away captain for the matches dated 7,8,10,11 feb 1908?
CREATE TABLE table_name_47 (away_captain VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_47 WHERE date = "7,8,10,11 feb 1908"
What is the highest Points in Position 2 with more than 3 Drawn games?
CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3
What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?
CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT T1.Name, T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" OR T2.Tourist_Details = "Vivian"
What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?
CREATE TABLE table_name_94 (location VARCHAR)
SELECT SUM(2000) FROM table_name_94 WHERE 1989 < 54.9 AND location = "arizona, new mexico, and utah"
WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?
CREATE TABLE table_name_86 (date VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT date FROM table_name_86 WHERE road_team = "boston" AND result = "126-105"
What was the date when the location was Zandvoort?
CREATE TABLE table_name_72 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_72 WHERE location = "zandvoort"
How many total silvers does Russia have?
CREATE TABLE table_name_51 (silver VARCHAR, nation VARCHAR)
SELECT COUNT(silver) FROM table_name_51 WHERE nation = "russia"
What is the best time for marcus marshall?
CREATE TABLE table_name_21 (best INTEGER, name VARCHAR)
SELECT AVG(best) FROM table_name_21 WHERE name = "marcus marshall"
How many times was the sabres record 2-5-1?
CREATE TABLE table_27537870_3 (location_attendance VARCHAR, record VARCHAR)
SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-1"
In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT finish FROM table_name_94 WHERE total > 284 AND to_par = "+5" AND player = "nick faldo"
Who did the high points in the game played on December 2?
CREATE TABLE table_22871316_6 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_22871316_6 WHERE date = "December 2"
How many grids had a Time/Retired of +4 laps?
CREATE TABLE table_name_72 (grid VARCHAR, time_retired VARCHAR)
SELECT COUNT(grid) FROM table_name_72 WHERE time_retired = "+4 laps"
Show all allergies and their types.
CREATE TABLE Allergy_type (allergy VARCHAR, allergytype VARCHAR)
SELECT allergy, allergytype FROM Allergy_type
Who was number 12's mother?
CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR)
SELECT mother FROM table_name_90 WHERE number = 12
What player is in the place of t1 and has the score of 67-70=137?
CREATE TABLE table_name_85 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_85 WHERE place = "t1" AND score = 67 - 70 = 137
WHich team had dave penney as an incoming manager
CREATE TABLE table_26914759_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT team FROM table_26914759_3 WHERE incoming_manager = "Dave Penney"
What record has a Score of 9–6?
CREATE TABLE table_name_15 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_15 WHERE score = "9–6"
What's the total number of picks of a team that had june longalong?
CREATE TABLE table_name_28 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_28 WHERE player = "june longalong"
What team was the player that received a penalty at time 32:17 playing for?
CREATE TABLE table_name_13 (team VARCHAR, time VARCHAR)
SELECT team FROM table_name_13 WHERE time = "32:17"
What was the event with leonardo chocolate in 2009?
CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
What is the number of finishes associated with an elimination of Adriana?
CREATE TABLE table_24122653_2 (finish VARCHAR, eliminated VARCHAR)
SELECT COUNT(finish) FROM table_24122653_2 WHERE eliminated = "Adriana"
What are the fewest ends with an App(L/C/E) of 51 (44/6/1)?
CREATE TABLE table_name_3 (ends INTEGER, app_l_c_e_ VARCHAR)
SELECT MIN(ends) FROM table_name_3 WHERE app_l_c_e_ = "51 (44/6/1)"
Who is the player from the United States and a place of t2?
CREATE TABLE table_name_10 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT player FROM table_name_10 WHERE country = "united states" AND place = "t2"
What model has a builder of zhuzhou, and a power output of 9600 (kw)?
CREATE TABLE table_name_20 (model VARCHAR, builder__family_ VARCHAR, power_output__kw_ VARCHAR)
SELECT model FROM table_name_20 WHERE builder__family_ = "zhuzhou" AND power_output__kw_ = "9600"
who is the the pole position with grand prix being italian grand prix
CREATE TABLE table_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT pole_position FROM table_12161822_5 WHERE grand_prix = "Italian grand_prix"
What is the maximum total in which the average is 28.5?
CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR)
SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5"
What home team played at the western oval?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "western oval"
What is the name of the player from NGA?
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR)
SELECT name FROM table_name_17 WHERE country = "nga"
What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?
CREATE TABLE table_name_96 (year INTEGER, hessen VARCHAR, saar VARCHAR, main VARCHAR, rhein VARCHAR)
SELECT MIN(year) FROM table_name_96 WHERE main = "eintracht frankfurt" AND rhein = "waldhof mannheim" AND saar = "fk pirmasens" AND hessen = "wormatia worms"
Where was the game with the result of 22-20 played?
CREATE TABLE table_name_81 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_81 WHERE result = "22-20"
What game has a score of 44-20?
CREATE TABLE table_name_78 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_78 WHERE score = "44-20"
What was the date of the game at Joe Robbie Stadium?
CREATE TABLE table_name_14 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_14 WHERE game_site = "joe robbie stadium"
What is name of the country that speaks the largest number of languages?
CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1
Which score has a competition of 1997 dunhill cup malaysia and february 23, 1997 as the date?
CREATE TABLE table_name_92 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_92 WHERE competition = "1997 dunhill cup malaysia" AND date = "february 23, 1997"