sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT MAX Tournament FROM table WHERE Total = 3 AND Team = iowa state | CREATE TABLE INST, Here is a database schema( table schema); | How many tournament titles for iowa state with 3 total titles?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_7 WHERE attendance = "45,795" | CREATE TABLE INST, Here is a database schema( table schema); | When has Attendances of 45795?It is not neccessary to use all the tables. |
SELECT Diameter (km) FROM table WHERE Name = kaiwan fluctus | CREATE TABLE INST, Here is a database schema( table schema); | What's the diameter of kaiwan fluctus?.It is not neccessary to use all the tables. |
SELECT Kickoff FROM table WHERE Game Site = bank of america stadium | CREATE TABLE INST, Here is a database schema( table schema); | Which Kickoff had a Game Site of bank of america stadium?.It is not neccessary to use all the tables. |
SELECT "Opponent" FROM table_71033 WHERE "Score" = '5–4 (11)' | CREATE TABLE INST, Here is a database schema( table schema); | What team was the opponent when there was a score of 5 4 (11)?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Batting team = west indies | CREATE TABLE INST, Here is a database schema( table schema); | Where did the west indies batting team play at?.It is not neccessary to use all the tables. |
SELECT AVG Points FROM table WHERE Year = 1964 | CREATE TABLE INST, Here is a database schema( table schema); | How many points did he average in 1964?.It is not neccessary to use all the tables. |
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'tachypnea' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'tachypnea' | CREATE TABLE INST, Here is a database schema( table schema); | what is the unabbreviated version of the tachypnea?It is not neccessary to use all the tables. |
SELECT MIN Pick FROM table WHERE Overall = 244 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest Pick with Overall of 244?.It is not neccessary to use all the tables. |
SELECT name, tonnage FROM ship ORDER BY name DESC | CREATE TABLE INST, Here is a database schema( table schema); | List the name and tonnage ordered by in descending alphaetical order for the names.It is not neccessary to use all the tables. |
SELECT score FROM table_name_61 WHERE to_par = "+2" AND player = "aaron baddeley" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score of the Round with Player Aaron Baddeley having a To par of +2?It is not neccessary to use all the tables. |
SELECT player FROM table_name_43 WHERE college = "virginia" | CREATE TABLE INST, Here is a database schema( table schema); | Which player is attending college at Virginia?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_54 WHERE type_of_game = "euro '84 qualifying" AND city = "split" | CREATE TABLE INST, Here is a database schema( table schema); | What opponent has euro '84 qualifying as the type and split as the city?It is not neccessary to use all the tables. |
SELECT status FROM table_name_86 WHERE against = 44 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Status of the 44 Against?It is not neccessary to use all the tables. |
SELECT COUNT(area__km²_) FROM table_name_13 WHERE population__2007_ = 6 OFFSET 176 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Area (km²) when Population (2007) is 6176?It is not neccessary to use all the tables. |
SELECT AVG Year FROM table WHERE Movie = thuppakki | CREATE TABLE INST, Here is a database schema( table schema); | What was the average year that Thuppakki movies came out?.It is not neccessary to use all the tables. |
SELECT MAX(week) FROM table_name_47 WHERE opponent = "cleveland browns" AND attendance > 54 OFFSET 205 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest week for Cleveland Browns with 54205 in attendance?It is not neccessary to use all the tables. |
SELECT shuttle_time__seconds_ FROM table_1751142_2 WHERE speed__km_h_ = "15.5" | CREATE TABLE INST, Here is a database schema( table schema); | What is the shuttle time for the level where the speed is 15.5 km/h?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Competition = challenge AND Result = 8-2 w | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent completed a challenge competition with a result of 8-2 w?.It is not neccessary to use all the tables. |
SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%" | CREATE TABLE INST, Here is a database schema( table schema); | What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Oberpfalz = SpVgg Vohenstrauß | CREATE TABLE INST, Here is a database schema( table schema); | When spvgg vohenstrauß is the oberpfalz what is the season?.It is not neccessary to use all the tables. |
SELECT birth FROM table_name_65 WHERE became_duchess = "17 april 1711 husband's ascension" | CREATE TABLE INST, Here is a database schema( table schema); | Which Birth has a Became Duchess of 17 april 1711 husband's ascension?It is not neccessary to use all the tables. |
SELECT studio FROM table_name_95 WHERE director = "david fincher" | CREATE TABLE INST, Here is a database schema( table schema); | What studio is director David Fincher from?It is not neccessary to use all the tables. |
SELECT AVG(lost) FROM table_name_49 WHERE tied > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of losses when there are more than 0 ties?It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE Game < 13 AND Score = w 75-66 | CREATE TABLE INST, Here is a database schema( table schema); | who had the high assists when the game was less than 13 and the score was w 75-66?.It is not neccessary to use all the tables. |
SELECT General election FROM table WHERE Result = PQ majority AND % of popular vote = 44.75% | CREATE TABLE INST, Here is a database schema( table schema); | Which general election had a pq majority and a 44.75% of the popular vote?.It is not neccessary to use all the tables. |
SELECT Opponents FROM table WHERE Tournament = sutton | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the opponent for the Sutton tournament?.It is not neccessary to use all the tables. |
SELECT COUNT(date) FROM table_23308178_6 WHERE location = "Wachovia Center" | CREATE TABLE INST, Here is a database schema( table schema); | How many dates were played at the wachovia center?It is not neccessary to use all the tables. |
SELECT College/Junior/Club Team FROM table WHERE Player = victor ignatjev | CREATE TABLE INST, Here is a database schema( table schema); | What college, junior, or club team did Victor Ignatjev play for?.It is not neccessary to use all the tables. |
SELECT county FROM table_name_36 WHERE year_left = "1998" | CREATE TABLE INST, Here is a database schema( table schema); | what is the county when the year left is 1998?It is not neccessary to use all the tables. |
SELECT "Round" FROM table_39718 WHERE "Position" = 'defensive back' AND "Pick #" = '101' | CREATE TABLE INST, Here is a database schema( table schema); | What round pick was pick number 101 who plays defensive back?It is not neccessary to use all the tables. |
SELECT Manager FROM table WHERE Shirt sponsor = arke | CREATE TABLE INST, Here is a database schema( table schema); | Which manager sponsor arke shirt?.It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Viewers (in millions) = 6.04 | CREATE TABLE INST, Here is a database schema( table schema); | Who directed the episode that had 6.04 million viewers? .It is not neccessary to use all the tables. |
SELECT position FROM table_name_71 WHERE venue = "lyon" | CREATE TABLE INST, Here is a database schema( table schema); | What was the position at the venue of lyon?It is not neccessary to use all the tables. |
SELECT COUNT Season FROM table WHERE National Trophy/Rookie = Simone Iaquinta | CREATE TABLE INST, Here is a database schema( table schema); | If the national trophy/rookie is Simone Iaquinta, what is the season total number?.It is not neccessary to use all the tables. |
SELECT try_bonus FROM table_name_80 WHERE tries_against = "55" | CREATE TABLE INST, Here is a database schema( table schema); | tries against is 55 what is the try bonus?It is not neccessary to use all the tables. |
SELECT Power (kW) FROM table WHERE Location = davao | CREATE TABLE INST, Here is a database schema( table schema); | What is the power (kW) of Davao?.It is not neccessary to use all the tables. |
SELECT COUNT Area FROM table WHERE Population = 703379 | CREATE TABLE INST, Here is a database schema( table schema); | How many areas have a population of 703379?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Year = 2004 | CREATE TABLE INST, Here is a database schema( table schema); | What is the score for 2004?.It is not neccessary to use all the tables. |
SELECT text FROM table_name_13 WHERE date__ce_ = "c. 1180" | CREATE TABLE INST, Here is a database schema( table schema); | Which text has a date of c. 1180?It is not neccessary to use all the tables. |
SELECT time FROM table_name_55 WHERE rank = 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Time of the Athlete with a Rank of 6?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte" | CREATE TABLE INST, Here is a database schema( table schema); | How many cards does customer Art Turcotte have?It is not neccessary to use all the tables. |
SELECT guanay_municipality FROM table_2509202_2 WHERE tacacoma_municipality = "4.321" | CREATE TABLE INST, Here is a database schema( table schema); | What is the guanay municipality when the tacacoma municipality is 4.321?It is not neccessary to use all the tables. |
SELECT Streak FROM table WHERE Date = march 27 | CREATE TABLE INST, Here is a database schema( table schema); | What was the streak on March 27?.It is not neccessary to use all the tables. |
SELECT Championship FROM table WHERE Year > 1997 AND Score = 1–6, 4–6, 7–5, 5–7 | CREATE TABLE INST, Here is a database schema( table schema); | What championship after 1997 was the score 1–6, 4–6, 7–5, 5–7?.It is not neccessary to use all the tables. |
SELECT part_1 FROM table_1745843_2 WHERE class = "3b" | CREATE TABLE INST, Here is a database schema( table schema); | What is listed under part 1 for class 3b?It is not neccessary to use all the tables. |
SELECT player FROM table_name_31 WHERE to_par = "+4" | CREATE TABLE INST, Here is a database schema( table schema); | Which player finished at +4?It is not neccessary to use all the tables. |
SELECT MAX GNIS Feature ID # Link A[› ] B[› ] FROM table WHERE Name A[› ] = upper dewey lake dam | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest gnis feature id# link a[›] b[›] when the name a[›] is upper dewey lake dam?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Record = 70-52 | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has a record of 70-52?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Position = full back AND Apps = 0 | CREATE TABLE INST, Here is a database schema( table schema); | What Full Back Player has 0 Apps?.It is not neccessary to use all the tables. |
SELECT date FROM table_23612439_2 WHERE location = "Taylor Field" | CREATE TABLE INST, Here is a database schema( table schema); | On which date is Taylor Field the location?It is not neccessary to use all the tables. |
SELECT fate FROM table_name_26 WHERE ship = "bremen" | CREATE TABLE INST, Here is a database schema( table schema); | What is the fate for the Bremen ship?It is not neccessary to use all the tables. |
SELECT "Home" FROM table_67694 WHERE "Record" = '20–13–3' | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team when there was a record of 20 13 3?It is not neccessary to use all the tables. |
SELECT club FROM table_17941032_2 WHERE drawn = "1" AND won = "2" | CREATE TABLE INST, Here is a database schema( table schema); | Which club had 2 wins and 1 draw?It is not neccessary to use all the tables. |
SELECT College FROM table WHERE Player = jordan phillips | CREATE TABLE INST, Here is a database schema( table schema); | Which college is Jordan Phillips playing for?.It is not neccessary to use all the tables. |
SELECT AVG 2007/08 FROM table WHERE 2002/03 > 3.8 AND 2003/04 > 8.9 AND 2001/02 < 34.4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average duration in 2007/08 with more than 3.8 in 2002/03, more than 8.9 in 2003/04, and less than 34.4 in 2001/02?.It is not neccessary to use all the tables. |
SELECT Serial numbers FROM table WHERE Order number = 713726-713735 | CREATE TABLE INST, Here is a database schema( table schema); | The order number 713726-713735 has what serial number?.It is not neccessary to use all the tables. |
SELECT Date in Service FROM table WHERE County = Musselshell | CREATE TABLE INST, Here is a database schema( table schema); | When did the wind farm in Musselshell started service?.It is not neccessary to use all the tables. |
SELECT MAX(attendance) FROM table_14984103_1 WHERE game_site = "Los Angeles Memorial Coliseum" | CREATE TABLE INST, Here is a database schema( table schema); | Name the most attendance for game site for los angeles memorial coliseumIt is not neccessary to use all the tables. |
SELECT Away FROM table WHERE Club = nk rijeka | CREATE TABLE INST, Here is a database schema( table schema); | What is NK Rijeka's away score?.It is not neccessary to use all the tables. |
SELECT All_Home, AVG(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | CREATE TABLE INST, Here is a database schema( table schema); | Visualize a bar chart about the distribution of All_Home and the average of School_ID , and group by attribute All_Home, display X from low to high order.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Money ( $ ) > 233,125 AND Player = tiger woods | CREATE TABLE INST, Here is a database schema( table schema); | What country has money ($) greater than 233,125 and Tiger Woods as the player?.It is not neccessary to use all the tables. |
SELECT AVG("Total") FROM table_43815 WHERE "FA Cup goals" = '1' AND "League goals" = '4 + 7' | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has an FA Cup goals of 1, and a League goals of 4 + 7?It is not neccessary to use all the tables. |
SELECT language FROM table_name_8 WHERE percentage___percentage_ = "2.54" | CREATE TABLE INST, Here is a database schema( table schema); | Which language has the percentage of 2.54?It is not neccessary to use all the tables. |
SELECT Left office FROM table WHERE Political party = ba'ath party ( syria region ) AND Took office = 7 march 1958 | CREATE TABLE INST, Here is a database schema( table schema); | What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 7 March 1958?.It is not neccessary to use all the tables. |
SELECT Authors FROM table WHERE Name = malasaurus | CREATE TABLE INST, Here is a database schema( table schema); | Who is the author for the malasaurus?.It is not neccessary to use all the tables. |
SELECT high_points FROM table_name_73 WHERE score = "l 64–94 (ot)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the High points with a Score that is l 64–94 (ot)?It is not neccessary to use all the tables. |
SELECT former_local_authority FROM table_name_96 WHERE name = "ecclesfield" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Former local authority for Ecclesfield?It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Date = 2007-08-22 | CREATE TABLE INST, Here is a database schema( table schema); | Which competition has a Date of 2007-08-22?.It is not neccessary to use all the tables. |
SELECT * FROM table_train_278 WHERE hemoglobin_a1c_hba1c >= 7 AND hemoglobin_a1c_hba1c <= 9 | CREATE TABLE INST, Here is a database schema( table schema); | hemoglobin a1c between 7 % and 9 % ( inclusive )It is not neccessary to use all the tables. |
SELECT appearances FROM table_name_18 WHERE position_[f_] = "defender" AND date_to_[h_] = "1938" | CREATE TABLE INST, Here is a database schema( table schema); | What is Appearances when Postion [F ] is "Defender" and when Date to [H ] is "1938"?It is not neccessary to use all the tables. |
SELECT Total Fertility Rate FROM table WHERE Deaths > 7.8 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total fertility rate that had a death rate larger than 7.8?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM classroom WHERE building <> 'Lamberton' | CREATE TABLE INST, Here is a database schema( table schema); | Count the number of rooms that are not in the Lamberton building.It is not neccessary to use all the tables. |
SELECT MIN To par FROM table WHERE Player = e.j. "dutch" harrison | CREATE TABLE INST, Here is a database schema( table schema); | What was E.J. "Dutch" Harrison's lowest To Par?.It is not neccessary to use all the tables. |
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry DESC | CREATE TABLE INST, Here is a database schema( table schema); | Plot the total number by grouped by industry as a bar graph, and rank from high to low by the bars.It is not neccessary to use all the tables. |
SELECT Adelaide FROM table WHERE Melbourne = yes AND Auckland = yes AND Perth = yes | CREATE TABLE INST, Here is a database schema( table schema); | Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?.It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Driver = Rusty Wallace | CREATE TABLE INST, Here is a database schema( table schema); | what's the points with driver rusty wallace.It is not neccessary to use all the tables. |
SELECT ICAO FROM table WHERE Country = france AND IATA = ory | CREATE TABLE INST, Here is a database schema( table schema); | What is the ICAO in France with an IATA of Ory?.It is not neccessary to use all the tables. |
SELECT COUNT(high_points) FROM table_22879323_9 WHERE location_attendance = "Ford Center" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of high points for ford centerIt is not neccessary to use all the tables. |
SELECT MAX(cuts_made) FROM table_name_99 WHERE top_5 < 3 AND top_10 > 4 | CREATE TABLE INST, Here is a database schema( table schema); | Name the highest cuts made when top 5 is less than 3 and top ten is more than 4It is not neccessary to use all the tables. |
SELECT MAX(enrollment) FROM table_1971074_1 | CREATE TABLE INST, Here is a database schema( table schema); | What's the highest enrollment among the schools?It is not neccessary to use all the tables. |
SELECT "College/junior/club team (league)" FROM table_43693 WHERE "Player" = 'joe colborne' | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?It is not neccessary to use all the tables. |
SELECT COUNT(record) FROM table_27722408_10 WHERE game = 61 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of record for 61It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_60 WHERE result = "w 14–6" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at the game with a result of w 14–6?It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Player = mark carnevale | CREATE TABLE INST, Here is a database schema( table schema); | What place was Mark Carnevale in?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Week = 2 | CREATE TABLE INST, Here is a database schema( table schema); | For the game that was played on week 2, what is the record?.It is not neccessary to use all the tables. |
SELECT Number range FROM table WHERE Quantity = 56 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number range for the 56 quantity?.It is not neccessary to use all the tables. |
SELECT Position in 2006 FROM table WHERE Team = dnepr | CREATE TABLE INST, Here is a database schema( table schema); | What was Team Dnepr's position in 2006?.It is not neccessary to use all the tables. |
SELECT week_9_oct_20 FROM table_name_99 WHERE week_17__final__jan_4 = "michigan (10-3)" | CREATE TABLE INST, Here is a database schema( table schema); | What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?It is not neccessary to use all the tables. |
SELECT Visitor FROM table WHERE Date = january 24 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the visitor on January 24?.It is not neccessary to use all the tables. |
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | CREATE TABLE INST, Here is a database schema( table schema); | For all employees who have the letters D or S in their first name, show me about the change of commission_pct over hire_date in a line chart.It is not neccessary to use all the tables. |
SELECT BBC Three weekly ranking FROM table WHERE Episode no. = 5 | CREATE TABLE INST, Here is a database schema( table schema); | Where where the bbc three weekly ranking for episode no. 5?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_84 WHERE home_team = "goole town" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score when the home team was goole town?It is not neccessary to use all the tables. |
SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Chinese name for the English name Andy Lau?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE City = seattle | CREATE TABLE INST, Here is a database schema( table schema); | What is the venue in Seattle?.It is not neccessary to use all the tables. |
SELECT COUNT("Population (July 2005 est.)") FROM table_46090 WHERE "Arable Land (km\u00b2)" < '16,280' AND "Land Area (km\u00b2)" < '240' AND "Country" = 'american samoa (us)' AND "Population Density (pop per km\u00b2)" > '291' | CREATE TABLE INST, Here is a database schema( table schema); | What is the total population of American Samoa (US) that has less than 16,280 km arable land, less than 240 km land area, and has a population density of more than 291?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Total = 148 | CREATE TABLE INST, Here is a database schema( table schema); | Which Country has a Total of 148?.It is not neccessary to use all the tables. |
SELECT SUM Season FROM table WHERE Number of clubs = 8 AND Runners-up = shanghai | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the season with 8 clubs and shanghai as the runners-up?.It is not neccessary to use all the tables. |
SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Sack with a Solo of 24 with Tackles larger than 25.5 with Yards larger than 0?It is not neccessary to use all the tables. |
SELECT COUNT Try bonus FROM table WHERE Tries against = 41 | CREATE TABLE INST, Here is a database schema( table schema); | How many clubs have a tries against count of 41?.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.