sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT game FROM table_name_62 WHERE team = "kansas city kings" | CREATE TABLE INST, Here is a database schema( table schema); | What game number is the Kansas City Kings team?It is not neccessary to use all the tables. |
SELECT score FROM table_name_65 WHERE opponent = "at los angeles rams" | CREATE TABLE INST, Here is a database schema( table schema); | For the game where the opponent is listed as At Los Angeles Rams what was the final score?It is not neccessary to use all the tables. |
SELECT enrollment FROM table_261927_1 WHERE colors = "Green & Black" | CREATE TABLE INST, Here is a database schema( table schema); | What is the enrollment for the colors green & black?It is not neccessary to use all the tables. |
SELECT Winning score FROM table WHERE Date = jul 4, 1982 | CREATE TABLE INST, Here is a database schema( table schema); | For the tournament played on Jul 4, 1982, what was the winning score?.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 Score in final FROM table WHERE Opponents in final = Alexandra Fusai Nathalie Tauziat | CREATE TABLE INST, Here is a database schema( table schema); | as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat.It is not neccessary to use all the tables. |
SELECT Run 3 FROM table WHERE Run 1 = 2:20.10 | CREATE TABLE INST, Here is a database schema( table schema); | Which Run 3 has a Run 1 of 2:20.10?.It is not neccessary to use all the tables. |
SELECT Womens Doubles FROM table WHERE Mens Singles = Werner Schlager | CREATE TABLE INST, Here is a database schema( table schema); | Name the womens doubles for werner schlager.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Losses > 5 AND Position = 12 | CREATE TABLE INST, Here is a database schema( table schema); | Which Team has Losses larger than 5, and a Position of 12?.It is not neccessary to use all the tables. |
SELECT 2nd leg FROM table WHERE Team 1 = internacional | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2nd leg of the Internacional Team 1?.It is not neccessary to use all the tables. |
SELECT AVG CR no. FROM table WHERE Works = hawthorn leslie 3100 AND LMS no. < 14761 | CREATE TABLE INST, Here is a database schema( table schema); | What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?.It is not neccessary to use all the tables. |
SELECT Number(s) FROM table WHERE Quantity = 1 AND Year(s) of Manufacture = 1841 | CREATE TABLE INST, Here is a database schema( table schema); | What number was manufactured 1 in 1841?.It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE FIS Nordic World Ski Championships = 1980 | CREATE TABLE INST, Here is a database schema( table schema); | Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980?.It is not neccessary to use all the tables. |
SELECT COUNT("song") FROM table_204_420 WHERE "aggregate points" > 150000000 | CREATE TABLE INST, Here is a database schema( table schema); | how many songs have aggregate points of more than 150,000,000 ?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998" | CREATE TABLE INST, Here is a database schema( table schema); | Which tournament has hard as the surface and apr. 12 1998 as the date?It is not neccessary to use all the tables. |
SELECT AVG(round) FROM table_name_16 WHERE position = "wide receiver" AND name = "r. jay soward" AND overall < 29 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Round for wide receiver r. jay soward and Overall smaller than 29?It is not neccessary to use all the tables. |
SELECT team_1 FROM table_name_11 WHERE season > 2005 AND score = "4-2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of team 1 that was after the 2005 season and with a 4-2 score?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Theme = Top 12 Men | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the Top 12 Men theme?.It is not neccessary to use all the tables. |
SELECT Born – Died FROM table WHERE Connection with Australia = born in sydney | CREATE TABLE INST, Here is a database schema( table schema); | The person that was born in Sydney died in what year?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Opponent in the final = ana ivanovic | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score of the game against opponent Ana Ivanovic?.It is not neccessary to use all the tables. |
SELECT Young Classification FROM table WHERE Aggressive Rider = tim johnson | CREATE TABLE INST, Here is a database schema( table schema); | Which young classification has an aggressive rider of Tim Johnson?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1342393_16 WHERE first_elected = 1914 | CREATE TABLE INST, Here is a database schema( table schema); | What is the candidates for first elected 1914It is not neccessary to use all the tables. |
SELECT MAX Population (Glengallan) FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum population size in the town of Glengallen?.It is not neccessary to use all the tables. |
SELECT COUNT Total FROM table WHERE Player = jim furyk | CREATE TABLE INST, Here is a database schema( table schema); | how many times is the player jim furyk?.It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE District = Massachusetts 3 | CREATE TABLE INST, Here is a database schema( table schema); | what's the party with dbeingtrict being massachusetts 3.It is not neccessary to use all the tables. |
SELECT Austria FROM table WHERE Croatia = ireland | CREATE TABLE INST, Here is a database schema( table schema); | What is shown for Austria when Croatia shows Ireland?.It is not neccessary to use all the tables. |
SELECT wheel_arrangement FROM table_name_78 WHERE year_made = "1881" | CREATE TABLE INST, Here is a database schema( table schema); | what is the wheel arrangement when the year made is 1881?It is not neccessary to use all the tables. |
SELECT COUNT Incumbent FROM table WHERE Candidates = Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4% | CREATE TABLE INST, Here is a database schema( table schema); | How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?.It is not neccessary to use all the tables. |
SELECT AVG(bronze) FROM table_name_58 WHERE total < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of bronze when the total is smaller than 1?It is not neccessary to use all the tables. |
SELECT score_in_the_final FROM table_name_92 WHERE date = 1974 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the tournament that was held in 1974?It is not neccessary to use all the tables. |
SELECT Segment D FROM table WHERE Segment A = Combination Locks | CREATE TABLE INST, Here is a database schema( table schema); | Name the segment d for combination locks.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Venue = vfl park | CREATE TABLE INST, Here is a database schema( table schema); | What was the home team score at VFL Park?.It is not neccessary to use all the tables. |
SELECT Club FROM table WHERE Date of Birth = 1979-01-29 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Club of the Player with a Date of Birth of 1979-01-29?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score that has a Home of montreal canadiens on april 11?It is not neccessary to use all the tables. |
SELECT Mother FROM table WHERE Number = 12 | CREATE TABLE INST, Here is a database schema( table schema); | Who was number 12's mother?.It is not neccessary to use all the tables. |
SELECT MAX(long) FROM table_name_72 WHERE player = "kevin clemens" AND yards < 31 | CREATE TABLE INST, Here is a database schema( table schema); | What was the longest carry for kevin clemens with under 31 yards total?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Production code = ad1d09 | CREATE TABLE INST, Here is a database schema( table schema); | tell me the writer of production code ad1d09..It is not neccessary to use all the tables. |
SELECT MAX Top-5 FROM table WHERE Wins > 1 | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest top-5 when wins is more than 1?.It is not neccessary to use all the tables. |
SELECT plural FROM table WHERE plural gender = n AND meaning = python | CREATE TABLE INST, Here is a database schema( table schema); | What is the plural if the meaning is python and the plural gender is n?.It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Score = 68 AND Player = tom kite | CREATE TABLE INST, Here is a database schema( table schema); | What is Tom Kite with a Score of 68's To Par?.It is not neccessary to use all the tables. |
SELECT League FROM table WHERE Sport = baseball | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of a league in the sport of baseball?.It is not neccessary to use all the tables. |
SELECT "Regular Season Winner" FROM table_73438 WHERE "Tournament Winner" = 'Maryland' | CREATE TABLE INST, Here is a database schema( table schema); | Who won the regular season when Maryland won the tournament?It is not neccessary to use all the tables. |
SELECT name, address_road, city FROM branch ORDER BY open_year | CREATE TABLE INST, Here is a database schema( table schema); | Show name address road and city for all branches sorted by open year.It is not neccessary to use all the tables. |
SELECT case_suffix__case_ FROM table_name_54 WHERE english_meaning = "to georgia, in georgia" | CREATE TABLE INST, Here is a database schema( table schema); | What is Case Suffix (Case), when English Meaning is 'to Georgia, in Georgia'?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Date = 8 june 1931 AND Away team = st kilda | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the venue for 8 june 1931 for st kilda away team.It is not neccessary to use all the tables. |
SELECT AVG(appearances) FROM table_name_50 WHERE club = "fc igea virtus" AND goals = 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many appearances with fc igea virtus and 1 goal?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Score = 75-68=143 | CREATE TABLE INST, Here is a database schema( table schema); | What Country had a Score of 75-68=143?.It is not neccessary to use all the tables. |
SELECT Author FROM table WHERE Series Sorted = 6Y/AE | CREATE TABLE INST, Here is a database schema( table schema); | Name the author for 6y/ae.It is not neccessary to use all the tables. |
SELECT MAX(founded) FROM table_262476_3 WHERE institution = "Alfred University" | CREATE TABLE INST, Here is a database schema( table schema); | When was alfred university founded?It is not neccessary to use all the tables. |
SELECT source_version FROM table_name_10 WHERE target_version = "java 7, 6, 5" | CREATE TABLE INST, Here is a database schema( table schema); | What is Source Version when Target Version is Java 7 6 5?It is not neccessary to use all the tables. |
SELECT fa_cup FROM table_name_36 WHERE other_[c_] = "0 12 0 (0)" | CREATE TABLE INST, Here is a database schema( table schema); | The other [C] of 0 12 0 (0) belongs to what FA Cup?It is not neccessary to use all the tables. |
SELECT Engine FROM table WHERE Chassis = lotus 49c | CREATE TABLE INST, Here is a database schema( table schema); | Which engine has a Lotus 49c chassis?.It is not neccessary to use all the tables. |
SELECT republican FROM table_27003223_4 WHERE d_r_spread = "-14.1%" | CREATE TABLE INST, Here is a database schema( table schema); | What is the percentage of republican voters in which the d-r spread is -14.1%?It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What was the North Melbourne's score when they played as the home team?It is not neccessary to use all the tables. |
SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = "brig" AND location = "english channel" | CREATE TABLE INST, Here is a database schema( table schema); | For the ship that was a brig and located in the English Channel what was the disposition of ship?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = october 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the score on october 7?.It is not neccessary to use all the tables. |
SELECT MIN Elected FROM table WHERE Incumbent = Gregory W. Meeks | CREATE TABLE INST, Here is a database schema( table schema); | what was the lowest numbers for the winner gregory w. meeks.It is not neccessary to use all the tables. |
SELECT COUNT("Cores") FROM table_62652 WHERE "Clock Speed" = '1.3ghz' | CREATE TABLE INST, Here is a database schema( table schema); | What is the total Cores with a Clock Speed of 1.3ghz?It is not neccessary to use all the tables. |
SELECT OwnerUserId AS "user_link", Id AS "post_link", LENGTH(Body) AS "length_of_post" FROM Posts WHERE NOT ParentId IS NULL AND OwnerUserId = '##UserId##' ORDER BY 'length_of_post' | CREATE TABLE INST, Here is a database schema( table schema); | Finding my Low Quality Answers. This will rank your Questions by the length of the post.It is not neccessary to use all the tables. |
SELECT Runner-up FROM table WHERE Season > 2 AND Total prize money = $108,000 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the runner-up after season 2 when the total prize money was $108,000?.It is not neccessary to use all the tables. |
SELECT Date of vacancy FROM table WHERE Team = fc bayern munich AND Date of appointment = 27 april 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Date = 23 january 2009 | CREATE TABLE INST, Here is a database schema( table schema); | Name the venue for 23 january 2009.It is not neccessary to use all the tables. |
SELECT MAX Grid FROM table WHERE Manufacturer = suzuki AND Time/Retired = +1:01.894 | CREATE TABLE INST, Here is a database schema( table schema); | What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?.It is not neccessary to use all the tables. |
SELECT Rider FROM table WHERE Time = retirement AND Grid > 5 | CREATE TABLE INST, Here is a database schema( table schema); | Which Rider has a Time of retirement, and a Grid larger than 5?.It is not neccessary to use all the tables. |
SELECT 2007–08 FROM table WHERE Event = autumn gold | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2007–08 when the event was autumn gold?.It is not neccessary to use all the tables. |
SELECT cole FROM table_name_94 WHERE year < 2009 AND dylan = "nominated" AND work = "big daddy" AND award = "mtv movie awards" | CREATE TABLE INST, Here is a database schema( table schema); | Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awardsIt is not neccessary to use all the tables. |
SELECT friend, age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person) ORDER BY friend DESC | CREATE TABLE INST, Here is a database schema( table schema); | Please return me a histogram to show the friends, and ages of all people who are older than the average age of a person?, list in desc by the x-axis.It is not neccessary to use all the tables. |
SELECT COUNT("London") FROM table_16090 WHERE "Character" = 'Frank' | CREATE TABLE INST, Here is a database schema( table schema); | How many people play Frank in London?It is not neccessary to use all the tables. |
SELECT MAX Laps FROM table WHERE Time/Retired = wheel | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Laps with a Time/Retired Wheel?.It is not neccessary to use all the tables. |
SELECT television_service FROM table_name_90 WHERE content = "presentazione" | CREATE TABLE INST, Here is a database schema( table schema); | What is Television Service when Content is Presentazione?It is not neccessary to use all the tables. |
SELECT "Player" FROM table_45397 WHERE "Year(s) won" = '2003' | CREATE TABLE INST, Here is a database schema( table schema); | Player than won in 2003?It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_61 WHERE away_team = "hawthorn" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team when Hawthorn was the away team?It is not neccessary to use all the tables. |
SELECT District FROM table WHERE Incumbent = Henry Hyde | CREATE TABLE INST, Here is a database schema( table schema); | What district is Henry Hyde in.It is not neccessary to use all the tables. |
SELECT stadium FROM table_name_45 WHERE date = "november 13" | CREATE TABLE INST, Here is a database schema( table schema); | What stadium was used on November 13?It is not neccessary to use all the tables. |
SELECT MAX(points) FROM table_name_92 WHERE grade = "a" | CREATE TABLE INST, Here is a database schema( table schema); | How many points are there, when the grade is A?It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)" | CREATE TABLE INST, Here is a database schema( table schema); | What nationality is Northwood School (N.Y.)?It is not neccessary to use all the tables. |
SELECT Engine FROM table WHERE Chassis = lola b02/00 AND Rank = 1st | CREATE TABLE INST, Here is a database schema( table schema); | What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?.It is not neccessary to use all the tables. |
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31510)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab... | CREATE TABLE INST, Here is a database schema( table schema); | get the total amount of .9% normal saline that patient 31510 has received on 05/31/this year.It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Visitor = chicago | CREATE TABLE INST, Here is a database schema( table schema); | Where was the home team in the game played against Chicago?.It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Yards = 2,242 | CREATE TABLE INST, Here is a database schema( table schema); | What year was 2,242 yards achieved?.It is not neccessary to use all the tables. |
SELECT MIN(matches) FROM table_27922491_8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the least amount of matches?It is not neccessary to use all the tables. |
SELECT COUNT(tied) FROM table_name_98 WHERE total_games < 1183 AND years = 121 AND lost > 541 | CREATE TABLE INST, Here is a database schema( table schema); | How many total ties had less than 1183 total games 121 years and more than 541 losses?It is not neccessary to use all the tables. |
SELECT imap_shared FROM table_name_93 WHERE web_ui = "web ui" | CREATE TABLE INST, Here is a database schema( table schema); | What IMAP sharing options exist for software with a web UI?It is not neccessary to use all the tables. |
SELECT division_record FROM table_name_41 WHERE school = "sussex central" | CREATE TABLE INST, Here is a database schema( table schema); | What is the division record of Sussex Central?It is not neccessary to use all the tables. |
SELECT team FROM table_15872814_7 WHERE high_assists = "Rafer Alston (5)" | CREATE TABLE INST, Here is a database schema( table schema); | What team had high assists Rafer Alston (5)?It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Notes = 1.90 m | CREATE TABLE INST, Here is a database schema( table schema); | In which competition(s) did Iljuštšenko jump 1.90 m?.It is not neccessary to use all the tables. |
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping" | CREATE TABLE INST, Here is a database schema( table schema); | Name the vessel type for beluga shippingIt is not neccessary to use all the tables. |
SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Patient AS T2 ON T1.Patient = T2.SSN GROUP BY Name | CREATE TABLE INST, Here is a database schema( table schema); | What are the number of names of patients who made an appointment?It is not neccessary to use all the tables. |
SELECT results FROM table_name_32 WHERE category = "best new actor in lead role(female)" | CREATE TABLE INST, Here is a database schema( table schema); | Which Results have a Category of the best new actor in lead role(female)?It is not neccessary to use all the tables. |
SELECT record FROM table_name_21 WHERE opponent = "julio paulino" | CREATE TABLE INST, Here is a database schema( table schema); | What is terry's record when he fights julio paulino?It is not neccessary to use all the tables. |
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING COUNT(*) >= 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find the names and number of works of all artists who have at least one English songs.It is not neccessary to use all the tables. |
SELECT date FROM table_name_86 WHERE result = "lost" AND competition = "friendly" AND score = "1-2" | CREATE TABLE INST, Here is a database schema( table schema); | What date has lost as the result and a competition of friendly with 1-2 as the score?It is not neccessary to use all the tables. |
SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup" | CREATE TABLE INST, Here is a database schema( table schema); | What is the position for the austria formel 3 cup series?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Value ($M) < 377 AND Country = germany AND Rank = 17 | CREATE TABLE INST, Here is a database schema( table schema); | Which team has a value less than 377 million in Germany with a rank of 17?.It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Time ( h : m : s ) = 7:44.15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Place with Time 7:44.15?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "BASE" AND lab.label = "Folate" | CREATE TABLE INST, Here is a database schema( table schema); | among patients tested for folate, how many of them were treated with base drug?It is not neccessary to use all the tables. |
SELECT Inf. Stem FROM table WHERE Subj. Pres. = ou | CREATE TABLE INST, Here is a database schema( table schema); | What is the infinitive stem that has a subjunctive present of ou?.It is not neccessary to use all the tables. |
SELECT MIN Winners share ($) FROM table WHERE Year = 2004 | CREATE TABLE INST, Here is a database schema( table schema); | What is the winners Share ($) in the year 2004?.It is not neccessary to use all the tables. |
SELECT Group A FROM table WHERE Group D = Indiana | CREATE TABLE INST, Here is a database schema( table schema); | Who is in group a when indiana is in group d?.It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_7 WHERE away_team = "york city" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the game that was played against the away team of York City?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.