sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Nickname FROM table WHERE Colors = blue and gold | CREATE TABLE INST, Here is a database schema( table schema); | What is the nickname of the team that has the colors blue and gold?.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 lab.itemid = "50915" | CREATE TABLE INST, Here is a database schema( table schema); | which patients have lab test item id 50915?It is not neccessary to use all the tables. |
SELECT game FROM table_name_96 WHERE decision = "valiquette" AND opponent = "@ los angeles kings" | CREATE TABLE INST, Here is a database schema( table schema); | What game has valiquette as the decision with @ los angeles kings as the opponent?It is not neccessary to use all the tables. |
SELECT score FROM table_name_90 WHERE home = "real espana" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the game where real espana was the home team?It is not neccessary to use all the tables. |
SELECT MIN(attendance) FROM table_name_47 WHERE h___a = "h" AND date = "7 march 1903" | CREATE TABLE INST, Here is a database schema( table schema); | How many Attendances have a H / A of h on 7 march 1903?It is not neccessary to use all the tables. |
SELECT Led team in rebounding FROM table WHERE 5 blocks = 10 | CREATE TABLE INST, Here is a database schema( table schema); | How many games did he lead team in rebounding in the season when his 5 blocks stat is 10?.It is not neccessary to use all the tables. |
SELECT total_casualties FROM table_name_47 WHERE total_deaths = 12 AND military_deaths > 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of casualties when there are 12 total deaths and more than 1 military death?It is not neccessary to use all the tables. |
SELECT ergative FROM table_name_85 WHERE dative = "chem-s" | CREATE TABLE INST, Here is a database schema( table schema); | With chem-s as the dative what is the ergative?It is not neccessary to use all the tables. |
SELECT MIN(snatch) FROM table_name_25 WHERE clean_ & _jerk = 180 AND bodyweight < 69.83 | CREATE TABLE INST, Here is a database schema( table schema); | Which Snatch has a Clean & Jerk of 180 and a Bodyweight smaller than 69.83?It is not neccessary to use all the tables. |
SELECT COUNT(batting_team) FROM table_1670921_1 WHERE wicket = "3rd" | CREATE TABLE INST, Here is a database schema( table schema); | How many teams are listed for 3rd wickets?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Record = 1-1 | CREATE TABLE INST, Here is a database schema( table schema); | What is Date, when Record is "1-1"?.It is not neccessary to use all the tables. |
SELECT Masculine u-stems FROM table WHERE Neuter a-stems = skipum | CREATE TABLE INST, Here is a database schema( table schema); | What is the masculine u form for the old Swedish word with a neuter a form of skipum?.It is not neccessary to use all the tables. |
SELECT AVG Lost FROM table WHERE Matches = 6 | CREATE TABLE INST, Here is a database schema( table schema); | Name the average lost for matches of 6.It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado" | CREATE TABLE INST, Here is a database schema( table schema); | Name the lowest Round with Opponent of rolando delgado?It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Clubs involved = 32 | CREATE TABLE INST, Here is a database schema( table schema); | Which rounds had 32 clubs involved?.It is not neccessary to use all the tables. |
SELECT General classification FROM table WHERE Young rider classification = roman kreuziger AND Points classification = fabian cancellara | CREATE TABLE INST, Here is a database schema( table schema); | Name the general classification with roman kreuziger and points classification of fabian cancellara.It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE Finish = t11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average of the total when t11 is the finish?.It is not neccessary to use all the tables. |
SELECT AVG Total Freshwater Withdrawal (km 3 /yr) FROM table WHERE Industrial Use (m 3 /p/yr)(in %) = 337(63%) AND Per Capita Withdrawal (m 3 /p/yr) > 535 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?.It is not neccessary to use all the tables. |
SELECT points FROM table_name_68 WHERE division = "ebl div1" AND played = "22" | CREATE TABLE INST, Here is a database schema( table schema); | What's the points when the division is ebl div1 with 22 played?It is not neccessary to use all the tables. |
SELECT COUNT(against) FROM table_name_30 WHERE draws > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What's the total against when the draws are more than 0?It is not neccessary to use all the tables. |
SELECT Machine FROM table WHERE Rank = 4th AND Wins = 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the machine that ranked 4th and has 2 wins?.It is not neccessary to use all the tables. |
SELECT "NOSAWA Rongai" FROM table_54896 WHERE "Block A" = 'petey williams' | CREATE TABLE INST, Here is a database schema( table schema); | Name the NOSAWA Rongai for petey williamsIt is not neccessary to use all the tables. |
SELECT appointed FROM table_24490665_1 WHERE name = "Jack Watson" | CREATE TABLE INST, Here is a database schema( table schema); | When was jack watson appointed?It is not neccessary to use all the tables. |
SELECT Province, Community FROM table WHERE Contestant = tatiana vargas rosales | CREATE TABLE INST, Here is a database schema( table schema); | What is the province with a contestant of tatiana vargas rosales?.It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE Date = July 26 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the most assist and how many on July 26?.It is not neccessary to use all the tables. |
SELECT COUNT Population density (per km²) FROM table WHERE Name = total northern villages AND Population (2006) > 11414 | CREATE TABLE INST, Here is a database schema( table schema); | How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?.It is not neccessary to use all the tables. |
SELECT programming FROM table_name_1 WHERE operator = "ivptc" | CREATE TABLE INST, Here is a database schema( table schema); | What channel has an operator of ivptc?It is not neccessary to use all the tables. |
SELECT no_6 FROM table_name_78 WHERE no_2 = "emma" AND no_3 = "sophia" | CREATE TABLE INST, Here is a database schema( table schema); | What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?It is not neccessary to use all the tables. |
SELECT member_senator FROM table_name_4 WHERE first_elected = 2002 AND district > 41 | CREATE TABLE INST, Here is a database schema( table schema); | Who was firest elected in 2002 in a district larger than 41?It is not neccessary to use all the tables. |
SELECT Side-chain polarity FROM table WHERE 1-Letter = v | CREATE TABLE INST, Here is a database schema( table schema); | what is the side-chain polarity for the amino acid with the 1-letter v?.It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Title = "Solo" | CREATE TABLE INST, Here is a database schema( table schema); | Who are the writers for the episode "solo"?.It is not neccessary to use all the tables. |
SELECT rounds FROM table_name_74 WHERE constructor = "gordini" | CREATE TABLE INST, Here is a database schema( table schema); | What rounds did Gordini participate in?It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park" | CREATE TABLE INST, Here is a database schema( table schema); | What is the home team score when they played at Victoria Park?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 WHERE demographic.age < "68" AND prescriptions.drug = "Syringe (Neonatal) *SW*" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of patients whose age is less than 68 and drug name is syringe (neonatal) *sw*?It is not neccessary to use all the tables. |
SELECT COUNT(result) FROM table_17782308_1 WHERE week = 13 | CREATE TABLE INST, Here is a database schema( table schema); | How many results are listed for week 13?It is not neccessary to use all the tables. |
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg" | CREATE TABLE INST, Here is a database schema( table schema); | Name the landesliga nord for freier tus regensburgIt is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Record = 21–17–13 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Visitor of the game with a Record of 21–17–13?.It is not neccessary to use all the tables. |
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episode that originally aired on March 1 1998?It is not neccessary to use all the tables. |
SELECT position FROM table_2597876_1 WHERE year = 1992 | CREATE TABLE INST, Here is a database schema( table schema); | What position was Parsons in for 1992?It is not neccessary to use all the tables. |
SELECT 2006 FROM table WHERE 2009 = a AND 2011 = a AND 2007 = a | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2006 value of the 2009 A value, 2011 A value, and A as the 2007 value?.It is not neccessary to use all the tables. |
SELECT MIN Attendance FROM table WHERE Date = may 17 | CREATE TABLE INST, Here is a database schema( table schema); | How many people were in attendance on may 17?.It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Settlement = Jazak | CREATE TABLE INST, Here is a database schema( table schema); | What type of settlement is Jazak?.It is not neccessary to use all the tables. |
SELECT "Class" FROM table_70115 WHERE "Frequency" = '560 am' | CREATE TABLE INST, Here is a database schema( table schema); | What is the class when the frequency is 560 AM?It is not neccessary to use all the tables. |
SELECT SUM Apps FROM table WHERE Club = flamengo AND Season = 2009 AND Goals > 0 | CREATE TABLE INST, Here is a database schema( table schema); | When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?.It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Outcome = runner-up AND Score = 6–4, 6–3 | CREATE TABLE INST, Here is a database schema( table schema); | On what Surface was the match with a Score of 6–4, 6–3 and Runner-up Outcome played?.It is not neccessary to use all the tables. |
SELECT MIN Crowd FROM table WHERE Venue = glenferrie oval | CREATE TABLE INST, Here is a database schema( table schema); | How many people were in attendance at Glenferrie Oval?.It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE Date = January 27 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the high assist total on january 27?.It is not neccessary to use all the tables. |
SELECT COUNT("Series #") FROM table_21386 WHERE "Season #" = '1' | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes have the season number of 1?It is not neccessary to use all the tables. |
SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211 | CREATE TABLE INST, Here is a database schema( table schema); | What was the place for the score 70-72-69=211?It is not neccessary to use all the tables. |
SELECT COUNT Deaths FROM table WHERE Fate = damaged AND Tonnage ( GRT ) < 4,917 | CREATE TABLE INST, Here is a database schema( table schema); | How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917?.It is not neccessary to use all the tables. |
SELECT AVG Position FROM table WHERE Drawn = 9 AND Points > 25 | CREATE TABLE INST, Here is a database schema( table schema); | At what average position is the drawn 9 and the points greater than 25?.It is not neccessary to use all the tables. |
SELECT q1 + q2_time FROM table_name_51 WHERE q1_time = "1:14.819" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Q1+Q2 time for the driver whose Q1 time was 1:14.819 ?It is not neccessary to use all the tables. |
SELECT L3 cache FROM table WHERE Part number(s) = low power | CREATE TABLE INST, Here is a database schema( table schema); | What's the L3 cache that has a low power part number?.It is not neccessary to use all the tables. |
SELECT Location Attendance FROM table WHERE High assists = rafer alston (7) AND High rebounds = yao ming (13) | CREATE TABLE INST, Here is a database schema( table schema); | What is Location Attendance, when High Assists is "Rafer Alston (7)", and when High Rebounds is "Yao Ming (13)"?.It is not neccessary to use all the tables. |
SELECT Local AS mission FROM table_name_41 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 second_place_s_ FROM table_20823568_2 WHERE sporting_profession = "Snooker" | CREATE TABLE INST, Here is a database schema( table schema); | How many second place showings does snooker have?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = october 22, 1976 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game that took place on october 22, 1976?.It is not neccessary to use all the tables. |
SELECT 2005–06 FROM table WHERE 2007–08 = rivaldo | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2005-06 that has Rivaldo for 2007-08?.It is not neccessary to use all the tables. |
SELECT MIN TD's FROM table WHERE Long = 49 AND Yards < 1436 | CREATE TABLE INST, Here is a database schema( table schema); | What is the low TD for 49 longs and 1436 less yards?.It is not neccessary to use all the tables. |
SELECT MIN Year FROM table WHERE Expenditure = 55 AND Income < 36.2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Year has an Expenditure of 55, and an Income smaller than 36.2?.It is not neccessary to use all the tables. |
SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING COUNT(*) > 1 | CREATE TABLE INST, Here is a database schema( table schema); | What are the names of students who have more than one advisor?It is not neccessary to use all the tables. |
SELECT language FROM table_1930857_1 WHERE year_founded = "1874" | CREATE TABLE INST, Here is a database schema( table schema); | What's the language of classes in the school founded in 1874?It is not neccessary to use all the tables. |
SELECT AVG Rank FROM table WHERE Points < 274.4 AND Name = roman koudelka | CREATE TABLE INST, Here is a database schema( table schema); | What is the average rank of Roman Koudelka, who has less than 274.4 points?.It is not neccessary to use all the tables. |
SELECT season FROM table_name_52 WHERE ufl_cup = "tbd" | CREATE TABLE INST, Here is a database schema( table schema); | Which Season has a UFL Cup of tbd?It is not neccessary to use all the tables. |
SELECT ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support" | CREATE TABLE INST, Here is a database schema( table schema); | Is the drawing tablet support part of the DDM class?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Team = Minnesota | CREATE TABLE INST, Here is a database schema( table schema); | On what date did the Team Minnesota play?.It is not neccessary to use all the tables. |
SELECT MAX(season) FROM table_13665809_2 WHERE byu_usu_score = "29–7" | CREATE TABLE INST, Here is a database schema( table schema); | what is the maximum season with byu-usu score being 29–7It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Outcome = Runner-up | CREATE TABLE INST, Here is a database schema( table schema); | what is the name of the tournament where outcome is runner-up.It is not neccessary to use all the tables. |
SELECT COUNT Event 4 Carwalk FROM table WHERE Nationality = Ukraine | CREATE TABLE INST, Here is a database schema( table schema); | How many men from the Ukraine?.It is not neccessary to use all the tables. |
SELECT COUNT("Silver") FROM table_63104 WHERE "Total" > '2' AND "Bronze" < '3' AND "Rank" = '7' | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7?It is not neccessary to use all the tables. |
SELECT Birth Name FROM table WHERE Start of Reign < 1986 AND Name = angelarios angelarij | CREATE TABLE INST, Here is a database schema( table schema); | What is Angelarios Angelarij with a Start of Reign date before 1986 Birth Name?.It is not neccessary to use all the tables. |
SELECT c__nf_km_ FROM table_261642_3 WHERE l__mh_km_ = "0.6099" | CREATE TABLE INST, Here is a database schema( table schema); | what is the c (nf/km) when the l (mh/km) is 0.6099?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT city) FROM Person | CREATE TABLE INST, Here is a database schema( table schema); | How many different cities are they from?It is not neccessary to use all the tables. |
SELECT gender FROM table_name_24 WHERE roll < 141 AND name = "makarora primary school" | CREATE TABLE INST, Here is a database schema( table schema); | Makarora primary school has a roll less than 141 and what gender?It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_82 WHERE co_drivers = "jérôme policand christopher campbell" | CREATE TABLE INST, Here is a database schema( table schema); | In what year Year has a Co-Drivers of jérôme policand christopher campbell?It is not neccessary to use all the tables. |
SELECT country FROM table_11690135_1 WHERE evening_gown = "9.82" | CREATE TABLE INST, Here is a database schema( table schema); | Who had evening gown score of 9.82?It is not neccessary to use all the tables. |
SELECT MAX("Draws") FROM table_22503 | CREATE TABLE INST, Here is a database schema( table schema); | Name the most drawsIt is not neccessary to use all the tables. |
SELECT position FROM table_23963781_3 WHERE nationality = "United States" AND minutes = 30 | CREATE TABLE INST, Here is a database schema( table schema); | What is the position of the player who is from the United States and has 30 minutes?It is not neccessary to use all the tables. |
SELECT MIN(year) FROM table_name_53 WHERE category = "top 10 selling mandarin albums of the year" | CREATE TABLE INST, Here is a database schema( table schema); | What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year?It is not neccessary to use all the tables. |
SELECT city FROM table_name_33 WHERE floors > 57 | CREATE TABLE INST, Here is a database schema( table schema); | What city has a building with over 57 floors?It is not neccessary to use all the tables. |
SELECT MIN(events) FROM table_24108789_6 WHERE _number = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least events for number 7It is not neccessary to use all the tables. |
SELECT gorham_principal FROM table_25037577_1 WHERE year = "2010-2011" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the gorham principal in 2010-2011?It is not neccessary to use all the tables. |
SELECT SUM(wins) FROM table_name_52 WHERE draws < 0 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins are there when the draws are less than 0?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Away team = bury | CREATE TABLE INST, Here is a database schema( table schema); | What date was Bury the home team?.It is not neccessary to use all the tables. |
SELECT captaincy FROM table_name_89 WHERE appearances < 212 AND goals = 12 AND position_[a_] = "defender" | CREATE TABLE INST, Here is a database schema( table schema); | What is the captaincy for Defender that has less than 212 appearances and 12 goals?It is not neccessary to use all the tables. |
SELECT record FROM table_name_53 WHERE date = "april 8" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record on April 8?It is not neccessary to use all the tables. |
SELECT AVG(gold) FROM table_name_47 WHERE nation = "sweden" AND silver > 1 | CREATE TABLE INST, Here is a database schema( table schema); | Count the average Gold which has a Nation of sweden and a Silver larger than 1?It is not neccessary to use all the tables. |
SELECT "Place" FROM table_76216 WHERE "Player" = 'claude harmon' | CREATE TABLE INST, Here is a database schema( table schema); | What is Claude Harmon's Place?It is not neccessary to use all the tables. |
SELECT Voltage FROM table WHERE Frequency = 2000mhz AND Release date = q3 2008 | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008?.It is not neccessary to use all the tables. |
SELECT event FROM table_name_77 WHERE competition = "world championships" | CREATE TABLE INST, Here is a database schema( table schema); | What Event has a Competition of world championships?It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Crowd > 12,000 AND Venue = brunswick street oval | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_23 WHERE venue = "western oval" | CREATE TABLE INST, Here is a database schema( table schema); | When was the game played at the Western Oval venue?It is not neccessary to use all the tables. |
SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w" | CREATE TABLE INST, Here is a database schema( table schema); | What color is model # pd-kb400w?It is not neccessary to use all the tables. |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AN... | CREATE TABLE INST, Here is a database schema( table schema); | what are the most expensive FIRST class tickets between ATLANTA and DALLASIt is not neccessary to use all the tables. |
SELECT MIN Rd # FROM table WHERE Pl GP > 0 AND Pick # > 51 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least RD number that has PI GP more than 0 and pick # more than 51.It is not neccessary to use all the tables. |
SELECT runner_s__up FROM table_name_49 WHERE margin = "3 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | Who are the Runner(s)-up with a Margin of 3 strokes?It is not neccessary to use all the tables. |
SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code | CREATE TABLE INST, Here is a database schema( table schema); | Show the average transaction amount for different transaction types.It is not neccessary to use all the tables. |
SELECT Perfect fifth FROM table WHERE Minor seventh = d | CREATE TABLE INST, Here is a database schema( table schema); | What is the Perfect fifth with a Minor that is seventh of d?.It is not neccessary to use all the tables. |
SELECT Races FROM table WHERE Points > 123 AND Driver = fernando alonso AND Percentage of possible points = 74.44% | CREATE TABLE INST, Here is a database schema( table schema); | Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?.It is not neccessary to use all the tables. |
SELECT IHSAA Class FROM table WHERE School = taylor | CREATE TABLE INST, Here is a database schema( table schema); | Which IHSAA Class has a School of taylor?.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.