sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT MIN Decile FROM table WHERE Roll = 651 | CREATE TABLE INST, Here is a database schema( table schema); | For the roll of 651, what was the lowest Decile?.It is not neccessary to use all the tables. |
SELECT Losses FROM table WHERE Year = 2012 | CREATE TABLE INST, Here is a database schema( table schema); | What is the losses for the year 2012?.It is not neccessary to use all the tables. |
SELECT Thirds (Under 17's) FROM table WHERE Reserves = barnawartha | CREATE TABLE INST, Here is a database schema( table schema); | Which Thirds (Under 17's) have a Reserve of barnawartha?.It is not neccessary to use all the tables. |
SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the amount of assists for richmond kickers and points larger than 24It is not neccessary to use all the tables. |
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN area ON course_offering.course_id = area.course_id WHERE area.area LIKE '%... | CREATE TABLE INST, Here is a database schema( table schema); | Who will be teaching computing infrastructure courses ?It is not neccessary to use all the tables. |
SELECT Games FROM table WHERE Bronze = 8 AND Gold = 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which game had 8 bronze and 4 gold?.It is not neccessary to use all the tables. |
SELECT _number___county FROM table_name_13 WHERE year_joined > 1926 AND previous_conference = "olympic" | CREATE TABLE INST, Here is a database schema( table schema); | Which #/ County has a Year Joined larger than 1926 and a Previous Conference of olympic?It is not neccessary to use all the tables. |
SELECT Total Time FROM table WHERE Margin = 04:02 AND Driver = coad | CREATE TABLE INST, Here is a database schema( table schema); | How much time did Coad make when the margin was 04:02?.It is not neccessary to use all the tables. |
SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards" | CREATE TABLE INST, Here is a database schema( table schema); | Who's the captain of the team whose head coach is Alistair Edwards?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_28 WHERE away_team = "geelong" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the game when Geelong was the away team?It is not neccessary to use all the tables. |
SELECT MAX(consecutive_starts) FROM table_28606933_7 WHERE player = "Jason Gildon" | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest number of consecutive starts for jason gildon?It is not neccessary to use all the tables. |
SELECT party FROM table_1341453_20 WHERE incumbent = "William J. Jefferson" | CREATE TABLE INST, Here is a database schema( table schema); | What party does William J. Jefferson?It is not neccessary to use all the tables. |
SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = "north carolina" AND evening_gown > 9.5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest interview for a contestant from North Carolina with a swimsuit larger than 9.021 an average smaller than 9.513 and an evening gown larger than 9.5?It is not neccessary to use all the tables. |
SELECT Pos. FROM table WHERE Points = 86 | CREATE TABLE INST, Here is a database schema( table schema); | When 86 is the amount of points what is the position?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Country = esp AND Transfer fee = € 7m | CREATE TABLE INST, Here is a database schema( table schema); | What is the name when the country is ESP and the transfer fee is € 7m?.It is not neccessary to use all the tables. |
SELECT other_local_sources FROM table_11608735_3 WHERE property_taxes = "11,631,227" | CREATE TABLE INST, Here is a database schema( table schema); | What is the local sources for property taxes of 11631227?It is not neccessary to use all the tables. |
SELECT AVG Gold FROM table WHERE Bronze < 5 AND Rank = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average gold with a bronze smaller than 5 with a rank of 8?.It is not neccessary to use all the tables. |
SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 | CREATE TABLE INST, Here is a database schema( table schema); | Show the member names which are in both the party with id 3 and the party with id 1.It is not neccessary to use all the tables. |
SELECT La Cañada Flintridge FROM table WHERE Tujunga = 7% | CREATE TABLE INST, Here is a database schema( table schema); | What is the percentage of La Canada Flintridge when Tujunga is 7%?.It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_98 WHERE score < 67 AND place = "t1" AND player = "tiger woods" | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par of Tiger Woods where his score was less than 67 and he was in t1 place?It is not neccessary to use all the tables. |
SELECT COUNT model FROM table WHERE engine type = B5234 T3 | CREATE TABLE INST, Here is a database schema( table schema); | How many engine b5234 t3?.It is not neccessary to use all the tables. |
SELECT Release price ( USD ) FROM table WHERE Model number = pentium dual-core t2330 | CREATE TABLE INST, Here is a database schema( table schema); | What is the release price (USD) of the microprocessor with a model number pentium dual-core t2330?.It is not neccessary to use all the tables. |
SELECT qual_2 FROM table_name_15 WHERE team = "american spirit team johansson" AND best = "59.073" | CREATE TABLE INST, Here is a database schema( table schema); | Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073?It is not neccessary to use all the tables. |
SELECT date FROM table_name_71 WHERE record = "4-5" | CREATE TABLE INST, Here is a database schema( table schema); | Which date has a Record of 4-5?It is not neccessary to use all the tables. |
SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23" | CREATE TABLE INST, Here is a database schema( table schema); | When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15 what is its Tyre?It is not neccessary to use all the tables. |
SELECT "Constructor" FROM table_56070 WHERE "Time/Retired" = 'handling' | CREATE TABLE INST, Here is a database schema( table schema); | What is the constructor for time/retired of handling?It is not neccessary to use all the tables. |
SELECT COUNT GDP (nominal) per capita, USD (2012) FROM table WHERE Capital = Phnom Penh | CREATE TABLE INST, Here is a database schema( table schema); | What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital?.It is not neccessary to use all the tables. |
SELECT Club/province FROM table WHERE Caps < 2 AND Player = jonathan sexton | CREATE TABLE INST, Here is a database schema( table schema); | What Club/province have caps less than 2 and Jonathan Sexton as player?.It is not neccessary to use all the tables. |
SELECT Required OS FROM table WHERE Developer(s) = stunlock studios | CREATE TABLE INST, Here is a database schema( table schema); | What was the minimum operating system required by Stunlock Studios' game?.It is not neccessary to use all the tables. |
SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16 | CREATE TABLE INST, Here is a database schema( table schema); | How many object dates does episode #16 have?It is not neccessary to use all the tables. |
SELECT Week FROM table WHERE Date = december 13 | CREATE TABLE INST, Here is a database schema( table schema); | What week of the season was December 13?.It is not neccessary to use all the tables. |
SELECT location_attendance FROM table_name_17 WHERE game > 54 AND date = "february 25" | CREATE TABLE INST, Here is a database schema( table schema); | Name the location attendance for game more than 54 on february 25It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_34 WHERE tie_no = "23" | CREATE TABLE INST, Here is a database schema( table schema); | What is the attendance of tie no. 23?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Position = goaltender AND NHL team = vancouver canucks | CREATE TABLE INST, Here is a database schema( table schema); | Who plays goaltender for the Vancouver Canucks?.It is not neccessary to use all the tables. |
SELECT AVG Year FROM table WHERE Position = 7th (heats) | CREATE TABLE INST, Here is a database schema( table schema); | What is the average year with 7th (heats) position?.It is not neccessary to use all the tables. |
SELECT demographic.admission_type, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "18372" | CREATE TABLE INST, Here is a database schema( table schema); | what is admission type and procedure short title of subject id 18372?It is not neccessary to use all the tables. |
SELECT MAX Adjusted Points FROM table WHERE Country = Great Britain | CREATE TABLE INST, Here is a database schema( table schema); | What is the most adjusted points for Great Britain?.It is not neccessary to use all the tables. |
SELECT "temple name" FROM table_204_465 WHERE "#" = (SELECT "#" FROM table_204_465 WHERE "temple name" = 'goi') + 1 | CREATE TABLE INST, Here is a database schema( table schema); | after goi , what was the next temple ?It is not neccessary to use all the tables. |
SELECT elena_băsescu FROM table_name_98 WHERE polling_firm = "gallup" | CREATE TABLE INST, Here is a database schema( table schema); | What is the elena basescu when the poling firm of gallup?It is not neccessary to use all the tables. |
SELECT COUNT(processor_speed__mhz_) FROM table_15261_1 WHERE part_number = "A80486DX4-75" | CREATE TABLE INST, Here is a database schema( table schema); | What is the processor speed (mhz) for part number a80486dx4-75?It is not neccessary to use all the tables. |
SELECT MAX(laps) FROM table_name_54 WHERE rider = "russell holland" AND grid < 10 | CREATE TABLE INST, Here is a database schema( table schema); | Which Laps have a Rider of russell holland and a Grid smaller than 10?It is not neccessary to use all the tables. |
SELECT directed_by FROM table_21726793_1 WHERE production_code = "2T5710" | CREATE TABLE INST, Here is a database schema( table schema); | who directed the production code 2t5710?It is not neccessary to use all the tables. |
SELECT MAX(week) FROM table_name_58 WHERE result = "bye" | CREATE TABLE INST, Here is a database schema( table schema); | What was the last week when the team had a bye week?It is not neccessary to use all the tables. |
SELECT builder FROM table_name_80 WHERE location = "govan , scotland" | CREATE TABLE INST, Here is a database schema( table schema); | What is Builder when Location is "Govan Scotland"?It is not neccessary to use all the tables. |
SELECT region FROM table_name_65 WHERE format = "vinyl record" | CREATE TABLE INST, Here is a database schema( table schema); | What region has vinyl record listed as its format?It is not neccessary to use all the tables. |
SELECT nationality FROM table_10015132_21 WHERE school_club_team = "Georgetown" | CREATE TABLE INST, Here is a database schema( table schema); | Which country is the player that went to Georgetown from?It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Winning driver = laurent aiello laurent aiello AND Round > 1 AND Circuit = wunstorf | CREATE TABLE INST, Here is a database schema( table schema); | What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = september 9 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game played on September 9?.It is not neccessary to use all the tables. |
SELECT result_games FROM table_21436373_11 WHERE attendance = 54741 | CREATE TABLE INST, Here is a database schema( table schema); | Name the result/games for 54741It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_11 WHERE player_name = "mark barron" | CREATE TABLE INST, Here is a database schema( table schema); | I want the sum of year for mark barronIt is not neccessary to use all the tables. |
SELECT date FROM table_name_38 WHERE record = "62–84" | CREATE TABLE INST, Here is a database schema( table schema); | On what date was the record 62 84?It is not neccessary to use all the tables. |
SELECT MIN Division FROM table WHERE Goals < 10 AND Team = dalian shide AND Apps < 17 AND Season = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?.It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Away team = north melbourne | CREATE TABLE INST, Here is a database schema( table schema); | What is the score for the away team of north melbourne?.It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table WHERE Week = 3 | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest attendance for week 3?.It is not neccessary to use all the tables. |
SELECT p.Id, p.Id AS "post_link", p.CreationDate, p.Score, COUNT(PostHistory.Id) AS HistCount FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts AS p ON p.Id = PostTags.PostId JOIN PostHistory ON PostHistory.PostId = p.Id WHERE Tags.TagName IN ('python') AND PostHistory.PostHistoryTypeId = 10 AND p.ClosedDa... | CREATE TABLE INST, Here is a database schema( table schema); | close votes for particular tags.It is not neccessary to use all the tables. |
SELECT Wavelength FROM table WHERE Frequency (MHz) = 14.050–14.150 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Wavelength of Frequency (MHz) 14.050–14.150?.It is not neccessary to use all the tables. |
SELECT pa FROM table_29565541_2 WHERE w = 6 | CREATE TABLE INST, Here is a database schema( table schema); | When 6 is the w what is the pa?It is not neccessary to use all the tables. |
SELECT Draws FROM table WHERE Year = 2006 | CREATE TABLE INST, Here is a database schema( table schema); | How many draws were there in 2006?.It is not neccessary to use all the tables. |
SELECT Build date FROM table WHERE PRR Class = brs24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the build date of the model with a PRR Class of brs24?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_86 WHERE tie_no = "2" | CREATE TABLE INST, Here is a database schema( table schema); | What home team had 2 ties?It is not neccessary to use all the tables. |
SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of students whose age is older than the average age for each gender.It is not neccessary to use all the tables. |
SELECT 1st leg FROM table WHERE Agg. = 4-3 | CREATE TABLE INST, Here is a database schema( table schema); | What was the 1st leg of the match that had an aggregate of 4-3?.It is not neccessary to use all the tables. |
SELECT COUNT Points FROM table WHERE Goals Conceded = 27 AND Lost = 5 AND Place > 2 | CREATE TABLE INST, Here is a database schema( table schema); | How many points were in a game that had a lost of 5, greater than place 2, and 27 goals conceded?.It is not neccessary to use all the tables. |
SELECT us_viewers__millions_ FROM table_26826304_1 WHERE directed_by = "Gordon C. Lonsdale" | CREATE TABLE INST, Here is a database schema( table schema); | How many were the US viewers (in millions) of the episode that was written by Gordon C. Lonsdale?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_61 WHERE outcome = "winner" AND surface = "clay" AND opponent = "aranza salut" | CREATE TABLE INST, Here is a database schema( table schema); | Name the tournament for outcome of winner and clay surface with opponent of aranza salutIt is not neccessary to use all the tables. |
SELECT episode FROM table_1723080_1 WHERE broadcast_date = "11July1964" | CREATE TABLE INST, Here is a database schema( table schema); | What episode aired on 11july1964?It is not neccessary to use all the tables. |
SELECT COUNT(player) FROM table_13312864_1 WHERE weight = 95 | CREATE TABLE INST, Here is a database schema( table schema); | How many players weight 95?It is not neccessary to use all the tables. |
SELECT COUNT Attendance FROM table WHERE Opponent = pittsburgh steelers AND Week < 4 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total attendance at a game against the Pittsburgh Steelers before week 4?.It is not neccessary to use all the tables. |
SELECT CFL Team FROM table WHERE College = manitoba | CREATE TABLE INST, Here is a database schema( table schema); | Which cfl team was associated with the college of manitoba?.It is not neccessary to use all the tables. |
SELECT Seasons FROM table WHERE Entries < 215 AND Driver = jackie stewart | CREATE TABLE INST, Here is a database schema( table schema); | Which season did jackie stewart enter with entries less than 215?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_20 WHERE year = 1967 | CREATE TABLE INST, Here is a database schema( table schema); | Which venue hosted a race in 1967?It is not neccessary to use all the tables. |
SELECT height_in_ft FROM table_name_44 WHERE years_for_rockets = "2005-06" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Height for Years of Rockets of 2005-06?It is not neccessary to use all the tables. |
SELECT date FROM table_name_61 WHERE tyre = "d" AND winning_driver = "bruce mclaren" | CREATE TABLE INST, Here is a database schema( table schema); | What date was the Tyre d and Bruce Mclaren won?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'sicu') | CREATE TABLE INST, Here is a database schema( table schema); | tell me the total number of patients who stayed in careunit sicu?It is not neccessary to use all the tables. |
SELECT median_age__in_2006_ FROM table_1174162_1 WHERE area__km²_ = "1.7" | CREATE TABLE INST, Here is a database schema( table schema); | What is the median age where the area is 1.7?It is not neccessary to use all the tables. |
SELECT Sport FROM table WHERE Games = 1992 barcelona | CREATE TABLE INST, Here is a database schema( table schema); | Which sport was in the 1992 Barcelona games?.It is not neccessary to use all the tables. |
SELECT SUM(attendance) FROM table_name_49 WHERE location = "ebbets field" AND time = "2:56" AND game > 6 | CREATE TABLE INST, Here is a database schema( table schema); | Location of ebbets field and a Time of 2:56 and a Game larger than 6 has what sum of attendance?It is not neccessary to use all the tables. |
SELECT MAX Week FROM table WHERE Date = 1995-10-01 | CREATE TABLE INST, Here is a database schema( table schema); | Which week was the 1995-10-01 game on?.It is not neccessary to use all the tables. |
SELECT Total FROM table WHERE Stadium = Rugby Park | CREATE TABLE INST, Here is a database schema( table schema); | What was the total attendance at rugby park?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss" | CREATE TABLE INST, Here is a database schema( table schema); | Name the candidates for result of lost renomination democratic lossIt is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Date = January 18, 1997 | CREATE TABLE INST, Here is a database schema( table schema); | Name the record for january 18, 1997.It is not neccessary to use all the tables. |
SELECT Local Mission FROM table WHERE Local Location = none AND Local Position = high commissioner AND Resident Country = fiji AND Mission = tonga | CREATE TABLE INST, Here is a database schema( table schema); | What is the local mission that has none as a local location, high commissioner as a local position, fiji as a resident county, and a mission of tonga?.It is not neccessary to use all the tables. |
SELECT Team 2 FROM table WHERE Team 1 = africa sports | CREATE TABLE INST, Here is a database schema( table schema); | What is the second team that has first team of Africa sports?.It is not neccessary to use all the tables. |
SELECT seats_won FROM table_20728138_1 WHERE seats_contested = 48 | CREATE TABLE INST, Here is a database schema( table schema); | How many seats were won when the seats contested was 48?It is not neccessary to use all the tables. |
SELECT MIN Share FROM table WHERE Episode = "farmer picks a wife" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Share, when Episode is "Farmer Picks A Wife"?.It is not neccessary to use all the tables. |
SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "15%" | CREATE TABLE INST, Here is a database schema( table schema); | What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?It is not neccessary to use all the tables. |
SELECT "Elector" FROM table_5553 WHERE "Nationality" = 'hungarian' | CREATE TABLE INST, Here is a database schema( table schema); | Which Elector is hungarian?It is not neccessary to use all the tables. |
SELECT Game FROM table WHERE Team = Indiana | CREATE TABLE INST, Here is a database schema( table schema); | What is the game with the team indiana?.It is not neccessary to use all the tables. |
SELECT T1.aircraft FROM aircraft AS T1 JOIN match AS T2 ON T1.aircraft_id = T2.winning_aircraft GROUP BY T2.winning_aircraft HAVING COUNT(*) >= 2 | CREATE TABLE INST, Here is a database schema( table schema); | List the names of aircrafts and that won matches at least twice.It is not neccessary to use all the tables. |
SELECT "Director" FROM table_16141 WHERE "Writer" = 'Scott Peters' | CREATE TABLE INST, Here is a database schema( table schema); | Who is the director of the episode whom Scott Peters is the writer?It is not neccessary to use all the tables. |
SELECT Semi Final Television Commentator FROM table WHERE Spokesperson = unknown AND Year(s) = 1962 | CREATE TABLE INST, Here is a database schema( table schema); | What is the semi-final television commentator status in 1962 with an unknown spokesperson?.It is not neccessary to use all the tables. |
SELECT kinka_pre_release FROM table_name_45 WHERE kinka_developer = "no" | CREATE TABLE INST, Here is a database schema( table schema); | What is the pre-release when the developer is no?It is not neccessary to use all the tables. |
SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What position did the player play in the european cross country championships in 2008?It is not neccessary to use all the tables. |
SELECT Time elapsed FROM table WHERE Launched = 15 october 1997 AND Closest approach = 24 june 1999 | CREATE TABLE INST, Here is a database schema( table schema); | What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?.It is not neccessary to use all the tables. |
SELECT "rider" FROM table_203_244 ORDER BY "points" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | who has the most points ?It is not neccessary to use all the tables. |
SELECT score FROM table_name_60 WHERE tournament = "tokyo, japan" AND date = "october 24, 1982" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Score on October 24 1982 in Tokyo Japan?It is not neccessary to use all the tables. |
SELECT MAX(innings) FROM table_name_86 WHERE runs < 342 AND matches > 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest number of innings with less than 342 runs and more than 4 matches?It is not neccessary to use all the tables. |
SELECT longitude FROM table_name_98 WHERE latitude = "71°18′n" | CREATE TABLE INST, Here is a database schema( table schema); | If the latitude is 71°18′n what is the longitude?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Carries = 27 | CREATE TABLE INST, Here is a database schema( table schema); | Which team did the player have who had 27 total carries?.It is not neccessary to use all the tables. |
SELECT MIN(date) FROM table_name_14 WHERE score = "2-2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the earliest date of the game with a score of 2-2?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.