sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Score FROM table WHERE Away team = southport
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the away team southport?.It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6
CREATE TABLE INST, Here is a database schema( table schema);
How many golds for nations ranked below 4 over 5 medals and under 6 silvers?It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium"
CREATE TABLE INST, Here is a database schema( table schema);
How many weeks in total were games played at Cleveland Browns Stadium?It is not neccessary to use all the tables.
SELECT score FROM table_name_15 WHERE site_stadium = "sarge frye field"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the game played at Sarge Frye Field?It is not neccessary to use all the tables.
SELECT candidates FROM table_19753079_41 WHERE first_elected = 1984
CREATE TABLE INST, Here is a database schema( table schema);
When 1984 is the first elected who are the candidates?It is not neccessary to use all the tables.
SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = "Otsuka Pharmaceuticals"
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons did Otsuka Pharmaceuticals come in third?It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE Incumbent = Phil Crane
CREATE TABLE INST, Here is a database schema( table schema);
What year was incumbent phil crane first elected?.It is not neccessary to use all the tables.
SELECT Country/Territory FROM table WHERE Source = BBC AND Total footage remaining from missing episodes (mm:ss) = 01:18
CREATE TABLE INST, Here is a database schema( table schema);
When 01:18 is the total footage remaining from missing episodes (mm:ss) and bbc is the source what is the country/territory? .It is not neccessary to use all the tables.
SELECT MAX(_number) FROM table_21002034_7 WHERE air_date_netherlands_yyyy_mm_dd = "2009/12/29"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most number for air date 2009/12/29It is not neccessary to use all the tables.
SELECT player FROM table_14342210_2 WHERE position = "Fullback"
CREATE TABLE INST, Here is a database schema( table schema);
Name all the players for fullbackIt is not neccessary to use all the tables.
SELECT Dam or A[› ] Reservoir FROM table WHERE Borough or A[› ] Census area = valdez-cordova (ca) AND GNIS Feature ID # Link A[› ] B[› ] < 1417275 AND Name A[› ] = sandra lake dam
CREATE TABLE INST, Here is a database schema( table schema);
what is the Dam or A[› ] Reservoir when the Borough or A[› ] Census area is valdez-cordova (ca), the gnis feature id# Link A[› ] B[› ] is less than 1417275 and the name A[› ] is sandra lake dam?.It is not neccessary to use all the tables.
SELECT qual FROM table_name_5 WHERE rank = "20"
CREATE TABLE INST, Here is a database schema( table schema);
What is the qual for rank 20?It is not neccessary to use all the tables.
SELECT date FROM table_name_13 WHERE game_site = "shea stadium" AND week < 10 AND opponent = "baltimore colts"
CREATE TABLE INST, Here is a database schema( table schema);
Game site of shea stadium and a Week smaller than 10 and a Opponent of baltimore colts happened on what date?It is not neccessary to use all the tables.
SELECT MAX # of Home Games FROM table WHERE League Rank = 10th
CREATE TABLE INST, Here is a database schema( table schema);
In the year where the League Rank was 10th, what was the greatest number of Home Games?.It is not neccessary to use all the tables.
SELECT COUNT Team FROM table WHERE High assists = John Wall (9) AND Score = W 97–83 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score?.It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Date = october 12, 1975 AND Attendance > 44,043
CREATE TABLE INST, Here is a database schema( table schema);
In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?.It is not neccessary to use all the tables.
SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz"
CREATE TABLE INST, Here is a database schema( table schema);
what's the minimum production code written by jay sommers & dick chevillat and al schwartzIt is not neccessary to use all the tables.
SELECT 2012 FROM table_name_45 WHERE tournament = "hamburg masters"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2012 of the hamburg masters?It is not neccessary to use all the tables.
SELECT player FROM table_1965650_10 WHERE nhl_team = "California Golden Seals"
CREATE TABLE INST, Here is a database schema( table schema);
What player is from the California Golden Seals?It is not neccessary to use all the tables.
SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16"
CREATE TABLE INST, Here is a database schema( table schema);
What is the series score of the game with Vancouver as the visiting team on April 16?It is not neccessary to use all the tables.
SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
CREATE TABLE INST, Here is a database schema( table schema);
What is the format for the label Mightier than Sword on January 12 2010 in the United States?It is not neccessary to use all the tables.
SELECT "CBS airdate" FROM table_5258 WHERE "Episode" < '70' AND "Airdate (USA)" = '1 april 2005'
CREATE TABLE INST, Here is a database schema( table schema);
What is the CBS airdate of the episode with a number under 70 with a USA airdate of 1 April 2005?It is not neccessary to use all the tables.
SELECT record FROM table_name_31 WHERE result = "w 45–17"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game that has a result of w 45–17?It is not neccessary to use all the tables.
SELECT seat_no_6 FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "Donald S. Dutton"
CREATE TABLE INST, Here is a database schema( table schema);
Who was seat no 6 when seat no 1 and seat no 5 were jacques lachapelle and donald s. duttonIt is not neccessary to use all the tables.
SELECT DISTINCT groupName FROM torrents
CREATE TABLE INST, Here is a database schema( torrents);
what are titles for each unique entry?. It is not neccessary to use all the tables.
SELECT MAX(extra_points) FROM table_14342480_6 WHERE position = "Right tackle"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most extra points for right tackleIt is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tie no = replay AND Away team = crystal palace
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"?.It is not neccessary to use all the tables.
SELECT SUM Matches FROM table WHERE Goalkeeper = wilfredo caballero AND Average < 1.11
CREATE TABLE INST, Here is a database schema( table schema);
How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11?.It is not neccessary to use all the tables.
SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m"
CREATE TABLE INST, Here is a database schema( table schema);
Result of 1st and a Venue of melbourne australia and a Extra of 100 m happened in which year?It is not neccessary to use all the tables.
SELECT Weekly Rank for Living FROM table WHERE Episode = "Chapter Five: Dressed to Kill"
CREATE TABLE INST, Here is a database schema( table schema);
The episode "chapter five: dressed to kill" had a weekly ranking of what?.It is not neccessary to use all the tables.
SELECT club FROM table_name_95 WHERE captain = "john hutchinson"
CREATE TABLE INST, Here is a database schema( table schema);
What club captain is John Hutchinson in?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Round > 4 AND Overall < 338 AND Pick < 11 AND College = virginia tech
CREATE TABLE INST, Here is a database schema( table schema);
Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Manner of departure = end of tenure as caretaker
CREATE TABLE INST, Here is a database schema( table schema);
What team did the manager come from who departed due to an end of tenure as caretaker?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Avg/G = 13.7
CREATE TABLE INST, Here is a database schema( table schema);
what is the name when avg/g is 13.7?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Reign = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the location of reign 3.It is not neccessary to use all the tables.
SELECT crowd FROM table_name_99 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
What is the crowd size for Victoria park?It is not neccessary to use all the tables.
SELECT COUNT Series # FROM table WHERE U.S. viewers (millions) = 18.77
CREATE TABLE INST, Here is a database schema( table schema);
How many series had 18.77 million viewers?.It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Season = 1982
CREATE TABLE INST, Here is a database schema( table schema);
What was the winning car's chassis for the 1982 season?.It is not neccessary to use all the tables.
SELECT MIN(yes_votes) FROM table_256286_14 WHERE passed = "YES"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least yes votes for yes passedIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Team = Chicago Bulls
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for chicago bulls.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '028-40370' AND STRFTIME('%y', patient.hospitaladmittime) >= '2104'
CREATE TABLE INST, Here is a database schema( table schema);
had patient 028-40370 been admitted since 2104 in hospital?It is not neccessary to use all the tables.
SELECT candidate FROM table_name_50 WHERE election = "2012"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the candidate in the 2012 election?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Money ( $ ) = 800
CREATE TABLE INST, Here is a database schema( table schema);
Which to par has a prize less than $800?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND lab.label = "Calculated Total CO2"
CREATE TABLE INST, Here is a database schema( table schema);
show me the number of hispanic or latino ethnic background patients who had calculated total co2 lab test.It is not neccessary to use all the tables.
SELECT 1995 FROM table WHERE 1999 = 1r AND 1998 = 4r
CREATE TABLE INST, Here is a database schema( table schema);
What 1995 has 1r as the 1999, and a 1998 of 4r?.It is not neccessary to use all the tables.
SELECT owner FROM table_name_90 WHERE frequency = "0 101.5 fm"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the owner of the radio frequency of 0 101.5 fm?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_82 WHERE time = "3:00"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of people in attendance when the time is 3:00?It is not neccessary to use all the tables.
SELECT SUM Avg. Finish FROM table WHERE Starts = 9 AND Top 10 < 0
CREATE TABLE INST, Here is a database schema( table schema);
How much average Finish has Starts of 9, and a Top 10 smaller than 0?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Country = DR Congo
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of players from the dr congo?.It is not neccessary to use all the tables.
SELECT Jump 2 FROM table WHERE Jump 3 = 7.77
CREATE TABLE INST, Here is a database schema( table schema);
What is the Jump 2 of the person that has a Jump 3 of 7.77?.It is not neccessary to use all the tables.
SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = "gheorghe vitanidis"
CREATE TABLE INST, Here is a database schema( table schema);
What was the film title used in nomination for the film directed by Gheorghe Vitanidis?It is not neccessary to use all the tables.
SELECT Arena FROM table WHERE Date = september 21
CREATE TABLE INST, Here is a database schema( table schema);
At what arena was the September 21 game?.It is not neccessary to use all the tables.
SELECT coach FROM table_name_8 WHERE details = "2010 gold coast titans season"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the coach of the 2010 Gold Coast Titans season?It is not neccessary to use all the tables.
SELECT written_by FROM table_27714573_1 WHERE production_code_s_ = 225560
CREATE TABLE INST, Here is a database schema( table schema);
who are the writers of the episode whose production code(s) is 225560?It is not neccessary to use all the tables.
SELECT Nalchik FROM table WHERE Played = 4 AND Qual. = rl AND Jermuk = 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the nalchik with 4 played, a rl qual., and 100 jermuk?.It is not neccessary to use all the tables.
SELECT result FROM table_1341472_34 WHERE district = "New York 11"
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for New York 11It is not neccessary to use all the tables.
SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23
CREATE TABLE INST, Here is a database schema( table schema);
how many matches did the player that played 23 matches winIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = manama, bahrain AND Competition = friendly
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score of the Friendly Competition in Manama, Bahrain?.It is not neccessary to use all the tables.
SELECT City of license FROM table WHERE Call sign = kcmp
CREATE TABLE INST, Here is a database schema( table schema);
Name the city of license for call sign of kcmp.It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Time = 7:58.71
CREATE TABLE INST, Here is a database schema( table schema);
what is the notes when the time is 7:58.71?.It is not neccessary to use all the tables.
SELECT crowd FROM table_name_6 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
What was away team Geelong's crowd numbers?It is not neccessary to use all the tables.
SELECT U.S. viewers (millions) FROM table WHERE Production code = 6AKY07
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of U.S. viewers watched the episode with the production code of 6AKY07?.It is not neccessary to use all the tables.
SELECT Coreceptor FROM table WHERE Chromosomal location = 11q22.2-q22.3
CREATE TABLE INST, Here is a database schema( table schema);
What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = Brisbane Lions
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team score when Brisbane lions was the home team?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_10 WHERE date = "12 september 1998"
CREATE TABLE INST, Here is a database schema( table schema);
Which venue was used on 12 September 1998?It is not neccessary to use all the tables.
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?It is not neccessary to use all the tables.
SELECT 2012 FROM table WHERE 2007 = 1r AND 2008 = 1r AND 2013 = 2r
CREATE TABLE INST, Here is a database schema( table schema);
Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r?.It is not neccessary to use all the tables.
SELECT MAX(match_no) FROM table_name_92 WHERE date = "2008-03-21" AND time = "16:00"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Match No. when Date is 2008-03-21 and when Time is 16:00?It is not neccessary to use all the tables.
SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 162) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY transfers.intime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
the last year what is the first id of patient 162's ward?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_27756164_8 WHERE team = "Chicago"
CREATE TABLE INST, Here is a database schema( table schema);
When the team is chicago what is the location attendence?It is not neccessary to use all the tables.
SELECT completed FROM table_name_64 WHERE rank = "9"
CREATE TABLE INST, Here is a database schema( table schema);
When did the rank 9 building got completed?It is not neccessary to use all the tables.
SELECT Others% FROM table WHERE Bush% = 51.6%
CREATE TABLE INST, Here is a database schema( table schema);
What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_63 WHERE opponent_in_the_final = "nathalie dechy meilen tu"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface where the opponent was Nathalie Dechy Meilen Tu?It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Round < 5 AND Pick > 1 AND Player = reggie mckenzie
CREATE TABLE INST, Here is a database schema( table schema);
Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?.It is not neccessary to use all the tables.
SELECT AVG(play_offs) FROM table_name_9 WHERE fa_cup > 3
CREATE TABLE INST, Here is a database schema( table schema);
What are the average play-offs that have an FA Cup greater than 3?It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE District = Wisconsin 4
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates in district Wisconsin 4?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 0–1 AND Tie no = 3
CREATE TABLE INST, Here is a database schema( table schema);
When has a Score of 0–1, and a Tie no of 3?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?It is not neccessary to use all the tables.
SELECT Phase FROM table WHERE New entries this round = 12
CREATE TABLE INST, Here is a database schema( table schema);
The new entries this round was shown to be 12, in which phase would you find this?.It is not neccessary to use all the tables.
SELECT outgoing_manager FROM table_26593762_3 WHERE incoming_manager = "Dougie Freedman"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?It is not neccessary to use all the tables.
SELECT gold FROM table_name_65 WHERE year > 1970 AND place = "milan"
CREATE TABLE INST, Here is a database schema( table schema);
What gold has a year after 1970 with milan as the place?It is not neccessary to use all the tables.
SELECT name FROM table_name_6 WHERE longitude = "213.0e"
CREATE TABLE INST, Here is a database schema( table schema);
What name has a longitude of 213.0e?It is not neccessary to use all the tables.
SELECT deorbit_date FROM table_name_9 WHERE launch_date = "9 march 2008"
CREATE TABLE INST, Here is a database schema( table schema);
When did the ATV that launched on 9 March 2008 deorbit?It is not neccessary to use all the tables.
SELECT director FROM table_22265716_1 WHERE original_title = "Три летња дана"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the film with the original title of три летња дана?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Visitor = boston bruins AND Record = 4–0–1
CREATE TABLE INST, Here is a database schema( table schema);
What date was the visitor the Boston Bruins, and the record was 4–0–1?.It is not neccessary to use all the tables.
SELECT COUNT Time FROM table WHERE Nationality = slovenia AND Lane < 9
CREATE TABLE INST, Here is a database schema( table schema);
What was the 200-metre time for the swimmer from Slovenia in lane 9?.It is not neccessary to use all the tables.
SELECT "Catalogue" FROM table_70018 WHERE "Format" = 'cd remastered with 3 bonus tracks'
CREATE TABLE INST, Here is a database schema( table schema);
Which catalogue has a formate of 'CD Remastered with 3 bonus tracks'?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Conv = 0 AND Player = brian hightower
CREATE TABLE INST, Here is a database schema( table schema);
Where did Brian Hightower play when he has the Conv of 0?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Chassis = mp4-17d AND Points < 142
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year with a mp4-17d chassis and less than 142 points..It is not neccessary to use all the tables.
SELECT country FROM table_name_70 WHERE score = 68 - 71 - 76 = 215
CREATE TABLE INST, Here is a database schema( table schema);
From what country is the player with a score of 68-71-76=215?It is not neccessary to use all the tables.
SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = "Sargodha district"
CREATE TABLE INST, Here is a database schema( table schema);
What is the area of the city in the Sargodha district?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Member = sydney sampson
CREATE TABLE INST, Here is a database schema( table schema);
Which party is sydney sampson a member of?.It is not neccessary to use all the tables.
SELECT G27 Racing Wheel FROM table WHERE Driving Force EX = no AND Driving Force Pro = no AND G25 Racing Wheel = no
CREATE TABLE INST, Here is a database schema( table schema);
Driving Force EX of no, and a Driving Force Pro of no, and a G25 Racing Wheel of no involves which g27 racing wheel?.It is not neccessary to use all the tables.
SELECT COUNT Phillips FROM table WHERE Dance = Jive AND Week # = 10
CREATE TABLE INST, Here is a database schema( table schema);
How was times was the dance the jive and the week # was 10?.It is not neccessary to use all the tables.
SELECT vs_all FROM table_name_72 WHERE vs_terran = "159"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score vs. all when the score vs. Terran is 159?It is not neccessary to use all the tables.
SELECT MAX("Loss") FROM table_33192 WHERE "Game" < '14'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest loss before game 14?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Incumbent = Henry Hyde
CREATE TABLE INST, Here is a database schema( table schema);
Who was Henry Hyde's opponent in the race?.It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Position = 38th
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons did Ken Bouchard finish in 38th place?.It is not neccessary to use all the tables.
SELECT stage FROM table_name_85 WHERE time__eest_ = "08:46"
CREATE TABLE INST, Here is a database schema( table schema);
Name the stage for 08:46It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team = tottenham hotspur
CREATE TABLE INST, Here is a database schema( table schema);
What team was the home team when Tottenham Hotspur is the away team?.It is not neccessary to use all the tables.