sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT bleeding_time FROM table_name_41 WHERE condition = "hemophilia" | CREATE TABLE INST, Here is a database schema( table schema); | What is hemophilia's bleeding time?It is not neccessary to use all the tables. |
SELECT * FROM customer_master_index ORDER BY cmi_details DESC | CREATE TABLE INST, Here is a database schema( table schema); | List all information about customer master index and sort them by details in descending order.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team score = 5.9 (39) | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team when the home team score was 5.9 (39)?.It is not neccessary to use all the tables. |
SELECT Bleeding time FROM table WHERE Condition = hemophilia | CREATE TABLE INST, Here is a database schema( table schema); | What is hemophilia's bleeding time?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 66-62 | CREATE TABLE INST, Here is a database schema( table schema); | What is the date with score of 66-62?.It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium" | CREATE TABLE INST, Here is a database schema( table schema); | What's the attendance numbers for veterans stadium?It is not neccessary to use all the tables. |
SELECT episode FROM table_name_28 WHERE entrepreneur_s_ = "adam weaver" | CREATE TABLE INST, Here is a database schema( table schema); | The entrepreneur Adam Weaver was featured in which episode?It is not neccessary to use all the tables. |
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf" | CREATE TABLE INST, Here is a database schema( table schema); | What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?It is not neccessary to use all the tables. |
SELECT season_rank FROM table_2649597_1 WHERE winnings = "$491,977" | CREATE TABLE INST, Here is a database schema( table schema); | Where did they finish in the season when when they won $491977?It is not neccessary to use all the tables. |
SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC | CREATE TABLE INST, Here is a database schema( table schema); | Find all manufacturers' names and their headquarters sorted by the ones with highest revenue first.It is not neccessary to use all the tables. |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%helsinkiw%' OR UPPER(Location) LIKE '%HELSINKI%' OR Location LIKE '%Helsinki%' AND Reputation >= 1000 ORDER BY Reputation DESC | CREATE TABLE INST, Here is a database schema( table schema); | Top users from Helsinki, Finland.It is not neccessary to use all the tables. |
SELECT us_viewers__million_ FROM table_25548213_1 WHERE written_by = "Kevin Biegel & Aseem Batra" | CREATE TABLE INST, Here is a database schema( table schema); | How many million viewers watch the episode that kevin biegel & aseem batra wrote?It is not neccessary to use all the tables. |
SELECT diagnoses.icd9_code, diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "55094" | CREATE TABLE INST, Here is a database schema( table schema); | get the short title as well as the icd9 code of diagnoses for patient with patient id 55094.It is not neccessary to use all the tables. |
SELECT MIN Entries FROM table WHERE Winner = Paris Saint-Germain | CREATE TABLE INST, Here is a database schema( table schema); | What is the fewest recorded entrants against paris saint-germain?.It is not neccessary to use all the tables. |
SELECT Third/Vice skip FROM table WHERE Second = éric sylvain | CREATE TABLE INST, Here is a database schema( table schema); | Which Third/Vice skip has a Second of éric sylvain?.It is not neccessary to use all the tables. |
SELECT County FROM table WHERE Bush# = 566 | CREATE TABLE INST, Here is a database schema( table schema); | Which county had a Bush number of votes of 566?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_59 WHERE to_par < 15 AND score = 76 - 72 - 75 - 71 = 294 | CREATE TABLE INST, Here is a database schema( table schema); | What is Place when To Par is less than 15 and when Score is 76-72-75-71=294?It is not neccessary to use all the tables. |
SELECT Park and Ride Lot FROM table WHERE Station Name = temple square | CREATE TABLE INST, Here is a database schema( table schema); | What is the park & ride lot for the Temple Square station?.It is not neccessary to use all the tables. |
SELECT course FROM table_name_15 WHERE type = "km (mi)" | CREATE TABLE INST, Here is a database schema( table schema); | Which course has km (mi) as a type?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Death = 2001 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name with a death in 2001?.It is not neccessary to use all the tables. |
SELECT Current Conference FROM table WHERE Left = 1974, 1989 | CREATE TABLE INST, Here is a database schema( table schema); | Name the current conference for 1974, 1989.It is not neccessary to use all the tables. |
SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur" | CREATE TABLE INST, Here is a database schema( table schema); | What language is spoken after 2007 for the role of urvashi mathur?It is not neccessary to use all the tables. |
SELECT Age, Hometown FROM teacher | CREATE TABLE INST, Here is a database schema( table schema); | What are the age and hometown of teachers?It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Points for = 255 | CREATE TABLE INST, Here is a database schema( table schema); | Name the point with points for of 255.It is not neccessary to use all the tables. |
SELECT COUNT(license) FROM table_15038373_1 WHERE version = "1.2.2.0" | CREATE TABLE INST, Here is a database schema( table schema); | How many licenses have version 1.2.2.0?It is not neccessary to use all the tables. |
SELECT power FROM table_name_49 WHERE acceleration_0_100km_h__0_62mph_ = "9.1 s" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?It is not neccessary to use all the tables. |
SELECT AVG("Rank") FROM table_37856 WHERE "Point" > '52' AND "Draw" < '10' AND "Goal loss" < '44' AND "Lose" < '15' | CREATE TABLE INST, Here is a database schema( table schema); | What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?It is not neccessary to use all the tables. |
SELECT Performer 4 FROM table WHERE Performer 3 = ryan stiles AND Episode = 14 | CREATE TABLE INST, Here is a database schema( table schema); | What was Performer 4's name when Performer 3 was Ryan Stiles on episode 14?.It is not neccessary to use all the tables. |
SELECT artist FROM table_name_38 WHERE catalog__number = "zk 34354" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the artist with catalog number ZK 34354?It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Time = 14:00 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team of the game at the time of 14:00?.It is not neccessary to use all the tables. |
SELECT TV Network(s) FROM table WHERE Country = Belgium | CREATE TABLE INST, Here is a database schema( table schema); | What is every TV network in Belgium?.It is not neccessary to use all the tables. |
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748 | CREATE TABLE INST, Here is a database schema( table schema); | What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Gold > 1 AND Total = 62 | CREATE TABLE INST, Here is a database schema( table schema); | What is the nation that had more than 1 gold medal and a total of 62 medals?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_48 WHERE record = "7-9" | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Record of 7-9?It is not neccessary to use all the tables. |
SELECT SUM Rank FROM table WHERE Director = martin brest | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE RANK OF MARTIN BREST?.It is not neccessary to use all the tables. |
SELECT Saturday Shani (Saturn) FROM table WHERE Wednesday Budha (Mercury) = برھ وار Budh'var | CREATE TABLE INST, Here is a database schema( table schema); | In language where Wednesday is برھ وار budh'var, what is Saturday?.It is not neccessary to use all the tables. |
SELECT MIN(cap_number) FROM table_name_96 WHERE date = "8 february 2009" AND shirt_number > 19 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the lowest Cap Number that has the Date of 8 february 2009 and the Shirt Number larger than 19?It is not neccessary to use all the tables. |
SELECT MIN(gold) FROM table_name_51 WHERE total > 15 AND bronze < 31 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest gold value that has a total over 15 and bronze values under 31?It is not neccessary to use all the tables. |
SELECT name, distance FROM aircraft | CREATE TABLE INST, Here is a database schema( table schema); | Show me distance by name in a histogramIt is not neccessary to use all the tables. |
SELECT Incumbent FROM table WHERE Party = democratic AND District = washington 7 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the incumbent from the democratic party in the washington 7 district?.It is not neccessary to use all the tables. |
SELECT 'site://questions/' + CAST(Id AS TEXT) AS "question_with_highest_score" FROM Posts ORDER BY Score DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Highest and lowest voted posts.It is not neccessary to use all the tables. |
SELECT 1406 Komppa FROM table WHERE 1391 Carelia = 1460 Haltia | CREATE TABLE INST, Here is a database schema( table schema); | what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Country = japan | CREATE TABLE INST, Here is a database schema( table schema); | What was japan's score?.It is not neccessary to use all the tables. |
SELECT MIN Points FROM table WHERE Attendance = 21,273 AND Record = 5–1–1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Points have an Attendance of 21,273, and a Record of 5–1–1?.It is not neccessary to use all the tables. |
SELECT MIN(series_number) FROM table_13505192_3 WHERE season_number = 24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the series number for season episode 24?It is not neccessary to use all the tables. |
SELECT winner FROM table_name_97 WHERE course = "rome to teramo" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner for the Rome to Teramo course?It is not neccessary to use all the tables. |
SELECT school_year FROM table_14603212_1 WHERE class_aAA = Wimberley AND class_a = "Canadian" | CREATE TABLE INST, Here is a database schema( table schema); | If class a is canadian and class aaa is wimberley which possible school years could this fall on?It is not neccessary to use all the tables. |
SELECT end_of_term FROM table_name_89 WHERE age_at_inauguration = "78years, 160days" | CREATE TABLE INST, Here is a database schema( table schema); | What is the End of term of the President with an Age at inauguration of 78years 160days?It is not neccessary to use all the tables. |
SELECT score FROM table_name_32 WHERE game > 6 AND october = 28 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game after game 6 on October 28?It is not neccessary to use all the tables. |
SELECT "County" FROM table_49980 WHERE "Name" = 'howard street tunnel' | CREATE TABLE INST, Here is a database schema( table schema); | What is the County of Howard Street Tunnel?It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Challenge Leader = BigTen (2-1) | CREATE TABLE INST, Here is a database schema( table schema); | Who is the winner when bigten (2-1) is the challenge leader?.It is not neccessary to use all the tables. |
SELECT order__number FROM table_26250189_1 WHERE theme = "The Rolling Stones" | CREATE TABLE INST, Here is a database schema( table schema); | What was Katie's order number when the theme was The Rolling Stones?It is not neccessary to use all the tables. |
SELECT Program FROM table WHERE Track Name = south fork dirt riders | CREATE TABLE INST, Here is a database schema( table schema); | What programs are there for the South Fork Dirt Riders track?.It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Date = 15 december 1992 | CREATE TABLE INST, Here is a database schema( table schema); | which Label is in 15 december 1992?.It is not neccessary to use all the tables. |
SELECT AVG Grid FROM table WHERE Constructor = vanwall AND Laps = 17 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average grid at the time Vanwall was constructor and there were 17 laps?.It is not neccessary to use all the tables. |
SELECT 2011 FROM table_name_10 WHERE tournament = "australian open" | CREATE TABLE INST, Here is a database schema( table schema); | How many sets were in the 2011 Australian Open Tournament?It is not neccessary to use all the tables. |
SELECT DISTINCT Theme FROM journal | CREATE TABLE INST, Here is a database schema( table schema); | Show the distinct themes of journals.It is not neccessary to use all the tables. |
SELECT SUM(draw) FROM table_name_15 WHERE points = 0 AND lost < 14 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total for the draw with 0 points, and less than 14 lost?It is not neccessary to use all the tables. |
SELECT Date of birth FROM table WHERE # = 2 | CREATE TABLE INST, Here is a database schema( table schema); | what's the date of birth with # being 2.It is not neccessary to use all the tables. |
SELECT English title FROM table WHERE Rōmaji title = Getto Daun | CREATE TABLE INST, Here is a database schema( table schema); | What is the English version of the title Getto Daun?.It is not neccessary to use all the tables. |
SELECT COUNT(round) FROM table_name_25 WHERE position = "defensive tackle" AND overall < 149 | CREATE TABLE INST, Here is a database schema( table schema); | In what round was a defensive tackle drafted with an overall pick smaller than 149?It is not neccessary to use all the tables. |
SELECT score FROM table_name_49 WHERE date = "may 15" | CREATE TABLE INST, Here is a database schema( table schema); | what was the score on the game that happened on May 15?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Player = lee trevino | CREATE TABLE INST, Here is a database schema( table schema); | What country is Lee Trevino from?.It is not neccessary to use all the tables. |
SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Manufacturer) DESC | CREATE TABLE INST, Here is a database schema( table schema); | For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, list in desc by the Y.It is not neccessary to use all the tables. |
SELECT MAX(5 AS w) FROM table_15893020_2 WHERE average = "21.33" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of 5w when there was a 21.33 average?It is not neccessary to use all the tables. |
SELECT Name of the song FROM table WHERE Kind of the song = opening theme AND Drama = revolving doors of vengeance | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?.It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Games = 363 | CREATE TABLE INST, Here is a database schema( table schema); | How many points were scored by the player who played 363 games?.It is not neccessary to use all the tables. |
SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857" | CREATE TABLE INST, Here is a database schema( table schema); | What is the party of the politician who left office on January 12 1857It is not neccessary to use all the tables. |
SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois" | CREATE TABLE INST, Here is a database schema( table schema); | What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari?It is not neccessary to use all the tables. |
SELECT AVG Position FROM table WHERE Pilot = erwin sommer | CREATE TABLE INST, Here is a database schema( table schema); | What is Erwin Sommer's average position?.It is not neccessary to use all the tables. |
SELECT GGE % FROM table WHERE kWh/Gal = 33.41 | CREATE TABLE INST, Here is a database schema( table schema); | What's the GGE % of the fuel with kWh/Gal of 33.41?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_7 WHERE date = "march 11" | CREATE TABLE INST, Here is a database schema( table schema); | Which team did they play on March 11?It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_14 WHERE round = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of the player from round 7?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Opponent = angels AND Loss = sanderson (0–1) | CREATE TABLE INST, Here is a database schema( table schema); | Which date has an Opponent of angels, and a Loss of sanderson (0–1)?.It is not neccessary to use all the tables. |
SELECT COUNT Position FROM table WHERE Player = Janne Niinimaa | CREATE TABLE INST, Here is a database schema( table schema); | How many positions does Janne Niinimaa play?.It is not neccessary to use all the tables. |
SELECT Team(s) FROM table WHERE Winnings = $5,200 | CREATE TABLE INST, Here is a database schema( table schema); | What team was Pearson on when his winnings were $5,200?.It is not neccessary to use all the tables. |
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Apologize" | CREATE TABLE INST, Here is a database schema( table schema); | Name the most released for apologizeIt is not neccessary to use all the tables. |
SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum" | CREATE TABLE INST, Here is a database schema( table schema); | Which Entrepreneur(s) have mixalbum?It is not neccessary to use all the tables. |
SELECT AVG Attendance FROM table WHERE Date = september 21, 1980 | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the September 21, 1980 game?.It is not neccessary to use all the tables. |
SELECT COUNT(crowd) FROM table_name_48 WHERE home_team = "essendon" | CREATE TABLE INST, Here is a database schema( table schema); | How many fans were at Essendon?It is not neccessary to use all the tables. |
SELECT MIN Year FROM table WHERE Apparatus = uneven bars AND Rank-Final < 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which Year is the first one that has an Apparatus of uneven bars, and a Rank-Final smaller than 3?.It is not neccessary to use all the tables. |
SELECT AVG Pick FROM table WHERE School = pasco, wa | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Pick for the Pasco, Wa school?.It is not neccessary to use all the tables. |
SELECT MAX Point FROM table WHERE Lost point = 33 AND league point < 52 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the highest point with lost point being 33 and league point less than 52.It is not neccessary to use all the tables. |
SELECT finish FROM table_name_21 WHERE start = "25" AND laps > 46 | CREATE TABLE INST, Here is a database schema( table schema); | What was the finish with the start of 25 and a lap larger than 46?It is not neccessary to use all the tables. |
SELECT nationality FROM table_2679061_7 WHERE nhl_team = "Winnipeg Jets" | CREATE TABLE INST, Here is a database schema( table schema); | What country do the Winnipeg Jets come from?It is not neccessary to use all the tables. |
SELECT Kerry% FROM table WHERE Kerry# = 199060 | CREATE TABLE INST, Here is a database schema( table schema); | When Kerry# was 199060, what was the percentage?.It is not neccessary to use all the tables. |
SELECT crowd FROM table_name_58 WHERE home_team = "sydney spirit" | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the game when sydney spirit was at home?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Owner = maine chance farm | CREATE TABLE INST, Here is a database schema( table schema); | What time contains the owner of maine chance farm?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_20 WHERE sample_size < 472 AND republican = "ron paul" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date for Ron Paul as republican and a sample sized less than 472?It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Engine = ford v8 AND Chassis = tyrrell 007 | CREATE TABLE INST, Here is a database schema( table schema); | How many points did the Ford V8 with a Tyrrell 007 have?.It is not neccessary to use all the tables. |
SELECT successor FROM table_225204_4 WHERE district = "North Carolina 13th" | CREATE TABLE INST, Here is a database schema( table schema); | Name the successor for north carolina 13thIt is not neccessary to use all the tables. |
SELECT record FROM table_17118657_7 WHERE high_assists = "Canty (5)" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record when Canty (5) was the high assists?It is not neccessary to use all the tables. |
SELECT Year(s) won FROM table WHERE To par = +1 | CREATE TABLE INST, Here is a database schema( table schema); | Which years was there a To par of +1?.It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE CFL Team = toronto argonauts | CREATE TABLE INST, Here is a database schema( table schema); | What position does the player from the Toronto Argonauts play?.It is not neccessary to use all the tables. |
SELECT qual_1 FROM table_name_13 WHERE name = "jan heylen" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the qual 1 for jan heylenIt is not neccessary to use all the tables. |
SELECT notes FROM table_name_85 WHERE kit_supplier = "rapido" AND shirt_printing = "名品+1" | CREATE TABLE INST, Here is a database schema( table schema); | What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?It is not neccessary to use all the tables. |
SELECT SUM("Draws") FROM table_35522 WHERE "Position" < '4' AND "Wins" = '11' AND "Points" < '38' | CREATE TABLE INST, Here is a database schema( table schema); | What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE District = Kansas 1 | CREATE TABLE INST, Here is a database schema( table schema); | what's the result with district being kansas 1.It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Name = mu | CREATE TABLE INST, Here is a database schema( table schema); | What was Mu's title?.It is not neccessary to use all the tables. |
SELECT zan_1 FROM table_name_34 WHERE nor_1 = "11" | CREATE TABLE INST, Here is a database schema( table schema); | What is the zan 1 that has 11 as the nor 1?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.