sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT week FROM table_17781886_1 WHERE opponent = "New York Jets"
CREATE TABLE INST, Here is a database schema( table schema);
The opponent was the New York Jets on what week?It is not neccessary to use all the tables.
SELECT DISTINCT T2.director FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid JOIN reviewer AS T3 ON T1.rid = T3.rid WHERE T3.name = 'Sarah Martinez'
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of all directors whose movies are rated by Sarah Martinez.It is not neccessary to use all the tables.
SELECT season AS finale FROM table_10819266_8 WHERE season = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the season finale for season 4?It is not neccessary to use all the tables.
SELECT MIN Pick # FROM table WHERE College = McGill
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest pick number for McGill?.It is not neccessary to use all the tables.
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 GROUP BY date ORDER BY date
CREATE TABLE INST, Here is a database schema( table schema);
For those dates with a max temperature greater than or equal to 80, I would like a line chart to show the tendency, display by the X in asc.It is not neccessary to use all the tables.
SELECT region FROM table_25042332_27 WHERE automatic_washing_machine = "60.9%"
CREATE TABLE INST, Here is a database schema( table schema);
Name the region for automatic washing machine being 60.9%It is not neccessary to use all the tables.
SELECT result FROM table_21091145_1 WHERE black_knights_points = 19
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for 19 black knights pointsIt is not neccessary to use all the tables.
SELECT Posts.Id AS "post_link", Posts.ViewCount AS "views", Posts.AnswerCount AS "#_answers" FROM Posts WHERE PostTypeId = 1 AND NOT Posts.AcceptedAnswerId IS NULL ORDER BY Posts.AnswerCount DESC
CREATE TABLE INST, Here is a database schema( table schema);
Number of answers for questions with an accepted answer.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Nationality = ukraine
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player from the Ukraine?.It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Second = oliver dupont
CREATE TABLE INST, Here is a database schema( table schema);
Which skip has Oliver Dupont as a second?.It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE Member = john armitage
CREATE TABLE INST, Here is a database schema( table schema);
What is the year First elected when the Member is John Armitage?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Losses < 10 AND Goals for < 55 AND Wins = 13
CREATE TABLE INST, Here is a database schema( table schema);
What club has less than 10 losses, less than 55 goals, and 13 wins?.It is not neccessary to use all the tables.
SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = "rasmussen reports"
CREATE TABLE INST, Here is a database schema( table schema);
What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Venue = melbourne cricket ground
CREATE TABLE INST, Here is a database schema( table schema);
What is the final score at Melbourne Cricket Ground?.It is not neccessary to use all the tables.
SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.0
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes have a share bigger than 7.0?It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE Team 2 = cementarnica
CREATE TABLE INST, Here is a database schema( table schema);
What is the team 1 with cementarnica as team 2?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_5 WHERE away_team = "melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue where the game played had an away team of Melbourne?It is not neccessary to use all the tables.
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(MANAGER_ID) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the sum of manager_id bin hire_date by weekday in a bar chart, and list in desc by the total number of manager id please.It is not neccessary to use all the tables.
SELECT scheduled FROM table_name_96 WHERE turbines = 17
CREATE TABLE INST, Here is a database schema( table schema);
When is the scheduled date for the farm having 17 turbines?It is not neccessary to use all the tables.
SELECT result FROM table_name_36 WHERE year = 1994
CREATE TABLE INST, Here is a database schema( table schema);
What is the result in 1994?It is not neccessary to use all the tables.
SELECT Per Capita Income FROM table WHERE Median House- hold Income = $57,407
CREATE TABLE INST, Here is a database schema( table schema);
If the median income is $57,407, what is the per capita income?.It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table WHERE Written by = Neil Thompson
CREATE TABLE INST, Here is a database schema( table schema);
What season episode is written by neil thompson?.It is not neccessary to use all the tables.
SELECT route FROM table_name_12 WHERE date = "2 july"
CREATE TABLE INST, Here is a database schema( table schema);
Which route has a Date of 2 july?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Decision = hasek AND Date = january 5
CREATE TABLE INST, Here is a database schema( table schema);
What's the score on january 5 with a hasek decision?.It is not neccessary to use all the tables.
SELECT Network FROM table WHERE Service = dish AND Language = hindi AND Origin of Programming = india AND Genre = general
CREATE TABLE INST, Here is a database schema( table schema);
Which Hindi network is based in India and uses dish service and shows general programming?.It is not neccessary to use all the tables.
SELECT COUNT Matches FROM table WHERE 100s < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many matches have a 100s category less than 0?.It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_70 WHERE result = "l 34–24"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average week for result of l 34–24It is not neccessary to use all the tables.
SELECT driver FROM table_name_77 WHERE points = "35+3"
CREATE TABLE INST, Here is a database schema( table schema);
Which driver had 35+3 points?It is not neccessary to use all the tables.
SELECT AVG(loses) FROM table_name_38 WHERE points < 6
CREATE TABLE INST, Here is a database schema( table schema);
Which Loses has Points smaller than 6?It is not neccessary to use all the tables.
SELECT COUNT(candidates) FROM table_2668347_17 WHERE incumbent = "Samuel D. Ingham"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of candidates for samuel d. inghamIt is not neccessary to use all the tables.
SELECT Team FROM table WHERE Races = 4 AND Points = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the Team that has a Races of 4, and a Points of 0?.It is not neccessary to use all the tables.
SELECT SUM Lane FROM table WHERE React > 0.217 AND Name = yoel hernández
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Land, when React is greater than 0.217, and when Name is Yoel Hernández?.It is not neccessary to use all the tables.
SELECT October 20, 2008 FROM table WHERE Mexico = Romania
CREATE TABLE INST, Here is a database schema( table schema);
what is the october 20, 2008 stat where mexico stat is romania.It is not neccessary to use all the tables.
SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id
CREATE TABLE INST, Here is a database schema( table schema);
Find the last name of the individuals that have been contact individuals of an organization.It is not neccessary to use all the tables.
SELECT COUNT Amman FROM table WHERE Wehdat = 0-1
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of teams where the record is 0-1.It is not neccessary to use all the tables.
SELECT county FROM table_20350118_1 WHERE mccain_number = 20226
CREATE TABLE INST, Here is a database schema( table schema);
Where did McCain get 20226 votes?It is not neccessary to use all the tables.
SELECT entrant FROM table_name_23 WHERE driver = "kenneth mcalpine"
CREATE TABLE INST, Here is a database schema( table schema);
kenneth mcalpine drove from which entrant?It is not neccessary to use all the tables.
SELECT IHSAA Football Class FROM table WHERE Enrollment = 406
CREATE TABLE INST, Here is a database schema( table schema);
Which IHSAA Football Class has an Enrollment of 406?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College/junior/club team = Kitchener Rangers (OHA)
CREATE TABLE INST, Here is a database schema( table schema);
When kitchener rangers (oha) is the college, junior, or club team team who is the player?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_3 WHERE home_team = "minehead"
CREATE TABLE INST, Here is a database schema( table schema);
minehead has what tie number?It is not neccessary to use all the tables.
SELECT contract_length FROM table_name_55 WHERE status = "rejected"
CREATE TABLE INST, Here is a database schema( table schema);
What is the contract length when rejected is the status?It is not neccessary to use all the tables.
SELECT no_2 FROM table_name_66 WHERE no_3 = "jacob" AND no_10 = "wyatt" AND no_6 = "ethan"
CREATE TABLE INST, Here is a database schema( table schema);
Name the No. 2 which has a No. 3 of jacob and a No. 10 of wyatt and a No. 6 of ethan?It is not neccessary to use all the tables.
SELECT MIN Utility PV FROM table WHERE Hydro > 289.25 AND Renewable Total > 520.07
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest utility PV with hydro great than 289.25 and renweable total larger than 520.07?.It is not neccessary to use all the tables.
SELECT music FROM table_name_57 WHERE results = "safe" AND choreographer_s_ = "jason gilkison"
CREATE TABLE INST, Here is a database schema( table schema);
Which music led to a safe result and was choreographed by Jason Gilkison?It is not neccessary to use all the tables.
SELECT MAX(age) FROM table_197638_6 WHERE player = "Roy Emerson"
CREATE TABLE INST, Here is a database schema( table schema);
At what age did Roy Emerson complete the Grand Slam?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Season = 2001/02
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent played in 2001/02?.It is not neccessary to use all the tables.
SELECT date FROM table_name_70 WHERE home_team = "west ham united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date for the Home team West Ham UnitedIt is not neccessary to use all the tables.
SELECT result FROM table_name_89 WHERE opponent = "greensboro prowlers" AND date = "april 6, 2002"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the april 6 2002 game against the greensboro prowlers?It is not neccessary to use all the tables.
SELECT AVG(CAST(a.Score AS FLOAT)) FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE CAST((JULIANDAY(CreationDate) - JULIANDAY(q.CreationDate)) * 1440.0 AS INT) < 1 AND LENGTH(a.Body) > 500 AND CAST((JULIANDAY(CreationDate) - JULIANDAY(q.CreationDate)) * 86400.0 AS INT) > 0 AND a.OwnerUserId != q.OwnerUserId
CREATE TABLE INST, Here is a database schema( table schema);
Posting users and posts by hour of day, Friday and Saturday, GMT.It is not neccessary to use all the tables.
SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
What states have at least two representatives?It is not neccessary to use all the tables.
SELECT Goals FROM table WHERE Ratio = 0.29
CREATE TABLE INST, Here is a database schema( table schema);
Which Goals have a Ratio of 0.29?.It is not neccessary to use all the tables.
SELECT date FROM table_name_64 WHERE surface = "hard" AND partner = "marc gicquel"
CREATE TABLE INST, Here is a database schema( table schema);
What day was there a hard surface when the partner was Marc Gicquel?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Date = 11/08/1975*
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location of the game on 11/08/1975*?.It is not neccessary to use all the tables.
SELECT COUNT(rnd) FROM table_22670216_1 WHERE location = "Brooklyn, Michigan" AND pole_position = "Bobby Unser"
CREATE TABLE INST, Here is a database schema( table schema);
If the location is Brooklyn, Michigan and the pole position is Bobby Unser, what is the RND total number?It is not neccessary to use all the tables.
SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.4
CREATE TABLE INST, Here is a database schema( table schema);
Which B Score has a Total larger than 15.325 and an A Score smaller than 6.4?It is not neccessary to use all the tables.
SELECT region FROM table_name_88 WHERE catalog = "alca-272"
CREATE TABLE INST, Here is a database schema( table schema);
What region is the ALCA-272 Catalog?It is not neccessary to use all the tables.
SELECT results FROM table_1341453_11 WHERE incumbent = "Peter Deutsch"
CREATE TABLE INST, Here is a database schema( table schema);
What are the results in the county with Peter Deutsch as a candidate?It is not neccessary to use all the tables.
SELECT MAX(lane) FROM table_name_67 WHERE nationality = "malta"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Lane used by a racer from Malta?It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE High points = D. Wilkins (29)
CREATE TABLE INST, Here is a database schema( table schema);
What was the location and attendance when d. wilkins (29) had the high points?.It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Result = w 23–22
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has a Result of w 23–22?.It is not neccessary to use all the tables.
SELECT AVG Lane FROM table WHERE Time = 1:00.66
CREATE TABLE INST, Here is a database schema( table schema);
What's the lane with a time of 1:00.66?.It is not neccessary to use all the tables.
SELECT player FROM table_name_8 WHERE year > 1885 AND hits = 238
CREATE TABLE INST, Here is a database schema( table schema);
Name the player with 238 hits and years after 1885It is not neccessary to use all the tables.
SELECT MIN(score_final) FROM table_name_15 WHERE competition_description = "american cup" AND year < 2009
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest final score of the American Cup competition before 2009?It is not neccessary to use all the tables.
SELECT rider FROM table_name_67 WHERE laps < 20 AND grid > 23
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rider who did less than 20 laps on a grid number greater than 23?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
If the Home team was st kilda, what was the score of the Away team they played?.It is not neccessary to use all the tables.
SELECT Home Town FROM table WHERE Weight = 201
CREATE TABLE INST, Here is a database schema( table schema);
Which Home Town had the weight of 201?.It is not neccessary to use all the tables.
SELECT * FROM body_builder
CREATE TABLE INST, Here is a database schema( table schema);
Show all information about each body builder.It is not neccessary to use all the tables.
SELECT visa_3 FROM table_name_70 WHERE visa_4 = "youssouf hersi"
CREATE TABLE INST, Here is a database schema( table schema);
Which Visa 3 has a Visa 4 of youssouf hersi?It is not neccessary to use all the tables.
SELECT time FROM table_name_52 WHERE laps = 18 AND grid = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the time for 18 laps and 5 grids?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Court surface = clay AND Began = 1892
CREATE TABLE INST, Here is a database schema( table schema);
what is the tournament when the court surface is clay and began in 1892?.It is not neccessary to use all the tables.
SELECT stable FROM table_name_59 WHERE current_rank = "f1 jūryō 14 west"
CREATE TABLE INST, Here is a database schema( table schema);
What is Stable when Current Rank is F1 Jūryō 14 West?It is not neccessary to use all the tables.
SELECT distance FROM table_2581397_4 WHERE weight__kg_ = "56" AND winner_2nd = "2nd - Fritz"
CREATE TABLE INST, Here is a database schema( table schema);
What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?It is not neccessary to use all the tables.
SELECT date FROM table_name_48 WHERE record = "33.952"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date that has a Record of 33.952?It is not neccessary to use all the tables.
SELECT COUNT(weight) FROM table_name_26 WHERE block = 300
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Weight(s) when Block is 300?It is not neccessary to use all the tables.
SELECT Decision FROM table WHERE Date = november 26
CREATE TABLE INST, Here is a database schema( table schema);
What was the decision on November 26?.It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Team = Alloa Athletic
CREATE TABLE INST, Here is a database schema( table schema);
What is the stadium for alloa athletic?.It is not neccessary to use all the tables.
SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC
CREATE TABLE INST, Here is a database schema( table schema);
Find the name checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_58 WHERE time = "1:16"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent with a time of 1:16?It is not neccessary to use all the tables.
SELECT language FROM table_2534578_1 WHERE reading = "94.47"
CREATE TABLE INST, Here is a database schema( table schema);
What was the language score when the reading score was 94.47?It is not neccessary to use all the tables.
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most high assists from Milwaukee?It is not neccessary to use all the tables.
SELECT SUM Game FROM table WHERE Date = october 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the game that was played on October 4?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_37 WHERE tuner = "n. leelakrishnan" AND governing_body = "mai" AND season = 2003
CREATE TABLE INST, Here is a database schema( table schema);
Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?It is not neccessary to use all the tables.
SELECT SUM Purse (¥) FROM table WHERE Year > 2012
CREATE TABLE INST, Here is a database schema( table schema);
How much is the purse worth (¥) after 2012?.It is not neccessary to use all the tables.
SELECT "Venue" FROM table_56616 WHERE "Away team score" = '14.15 (99)'
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played when the away team scored 14.15 (99)?It is not neccessary to use all the tables.
SELECT SUM(_number_of_episodes) FROM table_name_91 WHERE character = "nick lucas"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes had the character of Nick Lucas?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = tom purtzer
CREATE TABLE INST, Here is a database schema( table schema);
What country is Tom Purtzer from?.It is not neccessary to use all the tables.
SELECT Name FROM pilot WHERE Age >= 25
CREATE TABLE INST, Here is a database schema( table schema);
What are the name of pilots aged 25 or older?It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE Player = Wallace, Mike Mike Wallace
CREATE TABLE INST, Here is a database schema( table schema);
howe many positions did wallace, mike mike wallace play for .It is not neccessary to use all the tables.
SELECT SUM Pages FROM table WHERE Translated title = thistle among roses
CREATE TABLE INST, Here is a database schema( table schema);
I want the sum of pages for thistle among roses.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Crowd > 19,491 AND Home team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What is Essendon's home team that has an away crowd size larger than 19,491?.It is not neccessary to use all the tables.
SELECT Second FROM table WHERE Lead = ben hebert
CREATE TABLE INST, Here is a database schema( table schema);
Which Second has a Lead of ben hebert?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 9–8
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Record of 9–8?.It is not neccessary to use all the tables.
SELECT MAX Score FROM table WHERE Country = france AND Venue = bokskogens
CREATE TABLE INST, Here is a database schema( table schema);
What was France's highest score when the venue was Bokskogens?.It is not neccessary to use all the tables.
SELECT written_by FROM table_21831229_3 WHERE no_in_series = 31
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote episode 31 in the series?It is not neccessary to use all the tables.
SELECT vitalperiodic.systemicsystolic FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691')) AND NOT vitalperiodic.systemicsystolic IS NULL AND STRFTIME('%y-%m-%d', vitalperiodic.observationtime) >= '2103-12-01' ORDER BY vitalperiodic.observationtime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the last value of the systemicsystolic for patient 017-88691 since 12/01/2103?It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE U.S. viewers (millions) = 4.32
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for the movie with 4.32 million U.S. viewers?.It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Run time = 23:38
CREATE TABLE INST, Here is a database schema( table schema);
What episode had a run time of 23:38?.It is not neccessary to use all the tables.
SELECT date FROM table_name_25 WHERE course = "vasto to campitello matese"
CREATE TABLE INST, Here is a database schema( table schema);
When did the course Vasto to Campitello Matese took place?It is not neccessary to use all the tables.
SELECT player FROM table_name_24 WHERE country = "scotland"
CREATE TABLE INST, Here is a database schema( table schema);
Which player is from scotland?It is not neccessary to use all the tables.
SELECT MAX(appearances) FROM table_24807406_1 WHERE starts = 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the appearance maximum if the starts is 18?It is not neccessary to use all the tables.