sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT Shape FROM table WHERE Metal = nickel AND Denomination = one rupee | CREATE TABLE INST, Here is a database schema( table schema); | What shape has nickel as the metal, and one rupee as the denomination?.It is not neccessary to use all the tables. |
SELECT "Date of vacancy" FROM table_2667 WHERE "Outgoing manager" = 'Manuel Pellegrini' | CREATE TABLE INST, Here is a database schema( table schema); | Name the date of vacancy for manuel pellegriniIt is not neccessary to use all the tables. |
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home DESC | CREATE TABLE INST, Here is a database schema( table schema); | Stack bar chart of team_id vs ACC_Home based on all home, could you order by the X-axis in desc?It is not neccessary to use all the tables. |
SELECT count(DISTINCT STAT_CAUSE_DESCR) FROM Fires | CREATE TABLE INST, Here is a database schema( fires); | How many distinct cause of the fire descriptions are there in the database?. It is not neccessary to use all the tables. |
SELECT MAX Points FROM table WHERE Class = 125cc AND Team = mv agusta AND Year > 1957 | CREATE TABLE INST, Here is a database schema( table schema); | Name the most points for class of 125cc and team of mv agusta with year more than 1957.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Decision = gerber AND Home = boston | CREATE TABLE INST, Here is a database schema( table schema); | What was the score for Boston's Home game that had Gerber as the decision?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_6 WHERE heat > 4 AND nationality = "germany" AND lane = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Who has more than 4 heat for Germany and 7 lanes?It is not neccessary to use all the tables. |
SELECT date FROM table_name_28 WHERE result = "draw" AND venue = "lord's" | CREATE TABLE INST, Here is a database schema( table schema); | What Date had a Result of draw and a Venue of lord's?It is not neccessary to use all the tables. |
SELECT brazil_scorers FROM table_name_41 WHERE score = "6-0" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Brazil scorer who scored 6-0?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Attendance = 63,546 | CREATE TABLE INST, Here is a database schema( table schema); | On what Date was the Attendance 63,546?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city" | CREATE TABLE INST, Here is a database schema( table schema); | Which date has an A venue with an Opponent of stoke city?It is not neccessary to use all the tables. |
SELECT AVG Events FROM table WHERE Top-25 < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the event average for a top-25 smaller than 0?.It is not neccessary to use all the tables. |
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell" | CREATE TABLE INST, Here is a database schema( table schema); | What is the class of the qb Josh Riddell?It is not neccessary to use all the tables. |
SELECT Yards Per Attempt FROM table WHERE Total Yards = 513 | CREATE TABLE INST, Here is a database schema( table schema); | How many yards per attempt were there when total yards were 513?.It is not neccessary to use all the tables. |
SELECT 1 AS st_party FROM table_name_20 WHERE year = "1865" | CREATE TABLE INST, Here is a database schema( table schema); | In 1865 what was the first party?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE ICAO = rjsn | CREATE TABLE INST, Here is a database schema( table schema); | In what city is RJSN located?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_76 WHERE date = "june 4, 2008" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the match on June 4 2008?It is not neccessary to use all the tables. |
SELECT Sport FROM table WHERE Age groups = 21 or younger AND Competition name = world youth netball championships | CREATE TABLE INST, Here is a database schema( table schema); | what is the sport when the age group is 21 or younger and the competition name is world youth netball championships?.It is not neccessary to use all the tables. |
SELECT COUNT Position FROM table WHERE Player = John Jakopin | CREATE TABLE INST, Here is a database schema( table schema); | For player is john jakopin mention the total number of position .It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Titles = Lineal Super lightweight (140) | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the match for the lineal super lightweight (140)?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_87 WHERE film = "dharma chakram" AND award = "nandi award for best actor" | CREATE TABLE INST, Here is a database schema( table schema); | What is Result when Film is "Dharma Chakram" and when Award is "Nandi Award for Best Actor"?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Date = October 25, 1970 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the team's opponent of October 25, 1970?.It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Surface = grass AND Opponent in the final = paul baccanello | CREATE TABLE INST, Here is a database schema( table schema); | Name the tournament for grass surface and opponent in the final being paul baccanello.It is not neccessary to use all the tables. |
SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest image with a 20w Harrison and less than 20 for Ashmolean?It is not neccessary to use all the tables. |
SELECT Third FROM table WHERE Skip = sandra peterson AND Second = joan mccusker AND Events = 1995 stoh | CREATE TABLE INST, Here is a database schema( table schema); | IN EVENTS 1995 STOH, WHO WAS THE THIRD WITH SKIP SANDRA PETERSON AND SECOND JOAN MCCUSKER?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807 | CREATE TABLE INST, Here is a database schema( table schema); | what is the name for seasons 1981 and an order more than 807?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Pick > 30 AND Position = c AND Round > 4 | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for pick more than 30 and position of c with round more than 4.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Date = 30 october 1977 | CREATE TABLE INST, Here is a database schema( table schema); | Which season was on 30 October 1977?.It is not neccessary to use all the tables. |
SELECT Free or pay FROM table WHERE Years = 2006– AND Provider = bt tv (formerly bt vision) | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?.It is not neccessary to use all the tables. |
SELECT circuit FROM table_name_25 WHERE round = 18 | CREATE TABLE INST, Here is a database schema( table schema); | Name the circuit for round 18It is not neccessary to use all the tables. |
SELECT date FROM table_name_25 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 result FROM table_name_64 WHERE date = "november 8, 2001" | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score of the November 8 2001 game?It is not neccessary to use all the tables. |
SELECT TV Time FROM table WHERE Date = june 9 | CREATE TABLE INST, Here is a database schema( table schema); | What was the TV time for the game on June 9?.It is not neccessary to use all the tables. |
SELECT Winning Team FROM table WHERE Date = May 21 | CREATE TABLE INST, Here is a database schema( table schema); | Who won the game on may 21?.It is not neccessary to use all the tables. |
SELECT event FROM table_name_56 WHERE winner = "john dibella" | CREATE TABLE INST, Here is a database schema( table schema); | What Event did John dibella win?It is not neccessary to use all the tables. |
SELECT District FROM table WHERE Incumbent = Carl Vinson | CREATE TABLE INST, Here is a database schema( table schema); | In which district is the incumbent Carl Vinson?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Time = +1'25.337 | CREATE TABLE INST, Here is a database schema( table schema); | what team has +1'25.337 for the time?.It is not neccessary to use all the tables. |
SELECT COUNT(league_cup) FROM table WHERE r = 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many times was the r 4?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Chordae tendinae rupture" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients whose diagnoses short title is chordae tendinae rupture?It is not neccessary to use all the tables. |
SELECT 2007 FROM table WHERE 2008 = 1r AND Tournament = wimbledon | CREATE TABLE INST, Here is a database schema( table schema); | Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?.It is not neccessary to use all the tables. |
SELECT COUNT Date FROM table WHERE Category = ladies AND Team = rothaus-cube | CREATE TABLE INST, Here is a database schema( table schema); | How many dates does the ladies category correspond to Rothaus-Cube?.It is not neccessary to use all the tables. |
SELECT AVG Pick FROM table WHERE Player = conor jackson | CREATE TABLE INST, Here is a database schema( table schema); | What was the pick number of Conor Jackson?.It is not neccessary to use all the tables. |
SELECT finished FROM table_name_41 WHERE entered = "day 1" AND exited = "day 15" | CREATE TABLE INST, Here is a database schema( table schema); | What position did the celebrity finish that entered on day 1 and exited on day 15?It is not neccessary to use all the tables. |
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111" | CREATE TABLE INST, Here is a database schema( table schema); | What number episode in the series had a production code of 111?It is not neccessary to use all the tables. |
SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011" | CREATE TABLE INST, Here is a database schema( table schema); | What is the final score for the game played on January 10 2011 with partner Mashona Washington?It is not neccessary to use all the tables. |
SELECT 2011 FROM table WHERE Tournament = french open | CREATE TABLE INST, Here is a database schema( table schema); | What shows for 2011 at the French open?.It is not neccessary to use all the tables. |
SELECT programming FROM table_name_89 WHERE channel < 26.5 AND video = "480i" AND psip_short_name = "jtv" | CREATE TABLE INST, Here is a database schema( table schema); | Which Programming is on a channel less than 26.5 has a Video of 480i and a PSIP Short Name of jtv?It is not neccessary to use all the tables. |
SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = "çevreci peri" | CREATE TABLE INST, Here is a database schema( table schema); | Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?It is not neccessary to use all the tables. |
SELECT MAX Bike No FROM table WHERE Position > 1 AND Points > 369 AND Equipment = zabel-wsp | CREATE TABLE INST, Here is a database schema( table schema); | What is the most noteworthy Bike No that has a Position bigger than 1, and a Points bigger than 369, and an Equipment of zabel-wsp?.It is not neccessary to use all the tables. |
SELECT Crowd FROM table WHERE Home team = north melbourne | CREATE TABLE INST, Here is a database schema( table schema); | What was the size of the crowd when North Melbourne was the home team?.It is not neccessary to use all the tables. |
SELECT Dates active FROM table WHERE Name = Kamba | CREATE TABLE INST, Here is a database schema( table schema); | When was Kamba active?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ac diastolic hrt failure" AND prescriptions.route = "TP" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients were diagnosed with acute diastolic heart failure and their drug route is tp?It is not neccessary to use all the tables. |
SELECT date_of_vacancy FROM table_19359427_6 WHERE team = "Plymouth Argyle" | CREATE TABLE INST, Here is a database schema( table schema); | When did the old manager vacate his position in Plymouth Argyle?It is not neccessary to use all the tables. |
SELECT "Opponent" FROM table_63541 WHERE "Location" = 'sec tournament' | CREATE TABLE INST, Here is a database schema( table schema); | Who did they play at sec tournament?It is not neccessary to use all the tables. |
SELECT COUNT No. in series FROM table WHERE U.S. viewers (millions) = 16.03 | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes had 16.03 million viewers?.It is not neccessary to use all the tables. |
SELECT Coding FROM table WHERE 3’UTR sequence = 1a 0 AND 5’UTR splice = abd | CREATE TABLE INST, Here is a database schema( table schema); | Which coding entry has a 3'utr sequence of 1a 0 and a 5'utr splice that is abd?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_9 WHERE money__$_ = "5,000" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the player who earned $5000?It is not neccessary to use all the tables. |
SELECT team FROM table_name_8 WHERE driver_s_ = "tom sneva" AND rounds = "1-9" | CREATE TABLE INST, Here is a database schema( table schema); | What team was Tom Sneva on in rounds 1-9?It is not neccessary to use all the tables. |
SELECT SUM(bronze) FROM table_name_35 WHERE gold = 27 AND silver > 30 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the sum of bronze for gold being 27 and silver more than 30It is not neccessary to use all the tables. |
SELECT championship FROM table_name_8 WHERE opponent = "richard fromberg" | CREATE TABLE INST, Here is a database schema( table schema); | What was the championship during the match with the opponent of richard fromberg?It is not neccessary to use all the tables. |
SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = "$3.80" | CREATE TABLE INST, Here is a database schema( table schema); | How many distance places have brisbane at $3.80?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 Time FROM table WHERE Manufacturer = aprilia AND Grid < 16 AND Rider = sandro cortese | CREATE TABLE INST, Here is a database schema( table schema); | Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?.It is not neccessary to use all the tables. |
SELECT geez FROM table_26919_7 WHERE proto_semitic = "*bayt-" | CREATE TABLE INST, Here is a database schema( table schema); | If the proto-semitic is *bayt- what are the geez?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Category = best musical revival | CREATE TABLE INST, Here is a database schema( table schema); | What was the result for the best musical revival category?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Date = 12/21/1973 | CREATE TABLE INST, Here is a database schema( table schema); | Who did the Hawks play on 12/21/1973?.It is not neccessary to use all the tables. |
SELECT survivor_count FROM table_21304131_2 WHERE directed_by = "Gwyneth Horder-Payton" | CREATE TABLE INST, Here is a database schema( table schema); | What was the survivor count for the episode directed by Gwyneth Horder-Payton?It is not neccessary to use all the tables. |
SELECT SUM Goals For FROM table WHERE Wins < 4 AND Losses > 6 | CREATE TABLE INST, Here is a database schema( table schema); | How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?.It is not neccessary to use all the tables. |
SELECT MIN Played FROM table | CREATE TABLE INST, Here is a database schema( table schema); | Name the least played.It is not neccessary to use all the tables. |
SELECT player FROM table_2508633_3 WHERE college = "Tennessee" | CREATE TABLE INST, Here is a database schema( table schema); | Which player went to college at Tennessee?It is not neccessary to use all the tables. |
SELECT COUNT(captain) FROM table_27631756_2 WHERE kitmaker = "N/A" | CREATE TABLE INST, Here is a database schema( table schema); | How many captains have the kitmaker as n/a?It is not neccessary to use all the tables. |
SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14 | CREATE TABLE INST, Here is a database schema( table schema); | Which Oilers points have a Record of 10 6, and Oilers first downs larger than 14?It is not neccessary to use all the tables. |
SELECT res FROM table_name_62 WHERE opponent = "ryo takigawa" | CREATE TABLE INST, Here is a database schema( table schema); | Did the fighter beat Ryo Takigawa?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_22 WHERE result = "3–0" AND competition = "2006 fifa world cup qualifier" AND score = "3–0" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Venue with a Result of 3–0 and a Competition with 2006 fifa world cup qualifier and with a Score of 3–0?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_69 WHERE away_team = "essendon" | CREATE TABLE INST, Here is a database schema( table schema); | Where did Essendon play as the away team?It is not neccessary to use all the tables. |
SELECT director FROM table_name_47 WHERE title = "transylvania 6-5000" | CREATE TABLE INST, Here is a database schema( table schema); | Name the director who has title of transylvania 6-5000It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_8 WHERE home_team = "bristol rovers" | CREATE TABLE INST, Here is a database schema( table schema); | What is listed as the Away team for the Home team of the Bristol Rovers?It is not neccessary to use all the tables. |
SELECT method FROM table_name_19 WHERE race = "native american" AND name = "wau-bau-ne-me-mee" | CREATE TABLE INST, Here is a database schema( table schema); | How was the native american Wau-Bau-Ne-Me-Mee executed?It is not neccessary to use all the tables. |
SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player with a 76-67-71=214 score?It is not neccessary to use all the tables. |
SELECT COUNT ΔS ‡ /cal mol −1 K −1 FROM table WHERE -Butadiene = 1,2-dimethylene-cyclohexane | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of δs ‡ /cal mol −1 k −1 for butadiene being 1,2-dimethylene-cyclohexane.It is not neccessary to use all the tables. |
SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show" | CREATE TABLE INST, Here is a database schema( table schema); | Show the names of festivals that have nominated artworks of type "Program Talent Show".It is not neccessary to use all the tables. |
SELECT loss FROM table_name_19 WHERE record = "16–15" | CREATE TABLE INST, Here is a database schema( table schema); | What was the loss of the game when the record was 16–15?It is not neccessary to use all the tables. |
SELECT AVG Jersey number FROM table WHERE 1995-96 team = calgary flames AND Weight (kg) > 84 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84?.It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE City = loutraki | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Winner for the City of Loutraki?.It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Points < 36 AND Team = greenfield mowers racing | CREATE TABLE INST, Here is a database schema( table schema); | Which driver for Greenfield Mowers Racing has fewer than 36 points?.It is not neccessary to use all the tables. |
SELECT MAX(poles) FROM table_26794530_1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of poles?It is not neccessary to use all the tables. |
SELECT Fname FROM STUDENT WHERE NOT StuID IN (SELECT StuID FROM ENROLLED_IN) | CREATE TABLE INST, Here is a database schema( table schema); | Find the first name of students not enrolled in any course.It is not neccessary to use all the tables. |
SELECT "Record" FROM table_12602 WHERE "Attendance" > '15,643' AND "Decision" = 'budaj' AND "Opponent" = '@ dallas stars' | CREATE TABLE INST, Here is a database schema( table schema); | What was the record for the game played @ Dallas stars, with an attendance larger than 15,643, and a decision of Budaj?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_33 WHERE date = "27 april 1964" | CREATE TABLE INST, Here is a database schema( table schema); | What was the venue of the game on 27 April 1964?It is not neccessary to use all the tables. |
SELECT COUNT(*), T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id | CREATE TABLE INST, Here is a database schema( table schema); | How many assets does each third party company supply? List the count and the company id.It is not neccessary to use all the tables. |
SELECT COUNT(cfl_team) FROM table_15817998_5 WHERE college = "Wilfrid Laurier" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of CFL teams in the college Wilfrid LaurierIt is not neccessary to use all the tables. |
SELECT MIN Laps FROM table WHERE Driver = gerhard berger AND Grid > 6 | CREATE TABLE INST, Here is a database schema( table schema); | what is the least laps for driver gerhard berger with a grid more than 6?.It is not neccessary to use all the tables. |
SELECT "Population (2005 est)" FROM table_2394 WHERE "3-letter abbreviation" = 'CYO' | CREATE TABLE INST, Here is a database schema( table schema); | What was the established 2005 population in CYO?It is not neccessary to use all the tables. |
SELECT MAX Obama# FROM table WHERE McCain# = 29266 | CREATE TABLE INST, Here is a database schema( table schema); | Name the most abama number for mccain being 29266.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Attendance = postponed | CREATE TABLE INST, Here is a database schema( table schema); | Name the date for postponed attendance.It is not neccessary to use all the tables. |
SELECT AVG Pop. ¹ FROM table WHERE Region = chūgoku AND Prefecture = okayama | CREATE TABLE INST, Here is a database schema( table schema); | Name the average pop for chūgoku and prefecture of okayama.It is not neccessary to use all the tables. |
SELECT origin FROM table_name_66 WHERE number > 161 | CREATE TABLE INST, Here is a database schema( table schema); | What is the origin of the one with a number larger than 161?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Written by = Liz Feldman | CREATE TABLE INST, Here is a database schema( table schema); | What is the original air date of the episode written by Liz Feldman?.It is not neccessary to use all the tables. |
SELECT age_1 FROM table_name_55 WHERE hometown = "reno, nv" | CREATE TABLE INST, Here is a database schema( table schema); | What is the age of the contestant from Reno NV?It is not neccessary to use all the tables. |
SELECT urban_sub_area FROM table_name_58 WHERE population = "16,140" | CREATE TABLE INST, Here is a database schema( table schema); | Which urban sub-area has a population of 16140?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.