sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT academy_award FROM table_name_34 WHERE film = "educating peter" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Academy Award for the Film Educating Peter?It is not neccessary to use all the tables. |
SELECT SUM Ties FROM table WHERE Years = 1919–1925 AND Pct. > 0.734 | CREATE TABLE INST, Here is a database schema( table schema); | How many Ties have Years of 1919–1925, and a Pct larger than 0.734?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Format = lp | CREATE TABLE INST, Here is a database schema( table schema); | What date was the release when the format was lp?.It is not neccessary to use all the tables. |
SELECT Order # FROM table WHERE Original artist = The Beatles AND Result = Safe | CREATE TABLE INST, Here is a database schema( table schema); | Name the order number for the beatles and result is safe.It is not neccessary to use all the tables. |
SELECT SUM Year FROM table WHERE Conventional plans = 7% | CREATE TABLE INST, Here is a database schema( table schema); | How many years have a conventional plan of 7%?.It is not neccessary to use all the tables. |
SELECT average FROM table_name_47 WHERE matches = "11" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average when the matches are 11?It is not neccessary to use all the tables. |
SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st" | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of birth of the goalkeeper from the 1st season?It is not neccessary to use all the tables. |
SELECT position FROM table_name_30 WHERE surname = "ruzic" | CREATE TABLE INST, Here is a database schema( table schema); | Which Position did Ruzic play?It is not neccessary to use all the tables. |
SELECT goals FROM table_name_98 WHERE name = "sture mårtensson" | CREATE TABLE INST, Here is a database schema( table schema); | How many goals did sture mårtensson score?It is not neccessary to use all the tables. |
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546" | CREATE TABLE INST, Here is a database schema( table schema); | how many times was the catalog number cal04 / 0091037553546?It is not neccessary to use all the tables. |
SELECT Investing Dragon(s) FROM table WHERE Money requested (£) = 100,000 AND Entrepreneur(s) = kay russell | CREATE TABLE INST, Here is a database schema( table schema); | Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_99 WHERE location_attendance = "madison square garden 19,763" AND high_rebounds = "david lee (12)" | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Location Attendance of madison square garden 19763 and a High rebounds of david lee (12)?It is not neccessary to use all the tables. |
SELECT current_club FROM table_12962773_12 WHERE year_born = 1984 | CREATE TABLE INST, Here is a database schema( table schema); | What current club does the player born in 1984 play for?It is not neccessary to use all the tables. |
SELECT set_3 FROM table_name_26 WHERE total = "53–75" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 3 when the total was 53–75?It is not neccessary to use all the tables. |
SELECT Miles (km) FROM table WHERE Date = June 7 | CREATE TABLE INST, Here is a database schema( table schema); | Name the miles for june 7.It is not neccessary to use all the tables. |
SELECT Deputy FROM table WHERE Year = 1992–93 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the deputy in 1992–93?.It is not neccessary to use all the tables. |
SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = "Francavilla" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of group b winner for francavilla?It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE Bronze < 4 AND Silver = 1 AND Rank = 7 | CREATE TABLE INST, Here is a database schema( table schema); | How many total medals for the nation ranked 7 with 1 silver and under 4 bronzes?.It is not neccessary to use all the tables. |
SELECT Rounds FROM table WHERE Tyre = d AND Chassis = p15 | CREATE TABLE INST, Here is a database schema( table schema); | In what rounds did the P15 Chassis and tyre D participate?.It is not neccessary to use all the tables. |
SELECT engine FROM table_name_40 WHERE chassis = "mclaren mp4-20" | CREATE TABLE INST, Here is a database schema( table schema); | What engine did the mclaren mp4-20 use?It is not neccessary to use all the tables. |
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins" | CREATE TABLE INST, Here is a database schema( table schema); | Score of 6 4, and a Opponent of @ marlins had what record?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_50 WHERE country = "england" | CREATE TABLE INST, Here is a database schema( table schema); | What's england's to par?It is not neccessary to use all the tables. |
SELECT COUNT Air dates FROM table WHERE Cycle no. = 05 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of air dates for 05 cycle.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Week > 4 AND Venue = city stadium AND Attendance > 14,297 | CREATE TABLE INST, Here is a database schema( table schema); | Which date's week was more than 4 with the venue being City Stadium and where the attendance was more than 14,297?.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 demographic.days_stay > "11" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients who stayed in the hospital for more than 11 days had cerebrospinal fluid (csf) as their lab test fluid?It is not neccessary to use all the tables. |
SELECT "Malayalam name" FROM table_23671 WHERE "Zodiac sign" = 'Leo' | CREATE TABLE INST, Here is a database schema( table schema); | Name the malayalam name for leoIt is not neccessary to use all the tables. |
SELECT COUNT(*) FROM table_203_773 WHERE "play-by-play" IN ('chris schenkel', 'chuck thompson') | CREATE TABLE INST, Here is a database schema( table schema); | how many seasons of play by play did chris schenkel and chuck thompson host combined ?It is not neccessary to use all the tables. |
SELECT Winning driver FROM table WHERE Winning constructor = itala AND Name = savio circuit | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winning driver of the Savio Circuit with the constructor Itala?.It is not neccessary to use all the tables. |
SELECT Nominated work FROM table WHERE Type = rockferendum 2007 AND Position = 1st place AND Award = best album | CREATE TABLE INST, Here is a database schema( table schema); | What work was nominated at Rockferendum 2007 and got 1st place and got the award for best album?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004 | CREATE TABLE INST, Here is a database schema( table schema); | Name the venue for 2004 and position of 25thIt is not neccessary to use all the tables. |
SELECT party FROM table_1342359_39 WHERE district = "South Carolina 3" | CREATE TABLE INST, Here is a database schema( table schema); | What is the party for south carolina 3?It is not neccessary to use all the tables. |
SELECT MIN Wins FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximumum number of wins?.It is not neccessary to use all the tables. |
SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total kills of the perpetrators with height more than 1.84.It is not neccessary to use all the tables. |
SELECT series FROM table_name_84 WHERE date = "april 18" | CREATE TABLE INST, Here is a database schema( table schema); | Which Series is on april 18?It is not neccessary to use all the tables. |
SELECT SUM(a_score) FROM table_name_92 WHERE t_score < 7.3 AND e_score > 7.1 | CREATE TABLE INST, Here is a database schema( table schema); | What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1?It is not neccessary to use all the tables. |
SELECT School/Club Team FROM table WHERE Pick = 33 | CREATE TABLE INST, Here is a database schema( table schema); | What school/club had pick 33?.It is not neccessary to use all the tables. |
SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272 | CREATE TABLE INST, Here is a database schema( table schema); | How many points did the team with more than 68 games 4 ties and more than 272 goals against have?It is not neccessary to use all the tables. |
SELECT Occupation FROM table WHERE Candidate = mary louise lorefice | CREATE TABLE INST, Here is a database schema( table schema); | What occupation does Mary Louise Lorefice have?.It is not neccessary to use all the tables. |
SELECT Prohibition ticket FROM table WHERE Office = lieutenant governor | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Prohibition ticket that has a Office of lieutenant governor?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_85 WHERE place = "t4" AND score = 72 - 70 = 142 | CREATE TABLE INST, Here is a database schema( table schema); | What is the country listed that has a place of t4 with a score of 72-70=142?It is not neccessary to use all the tables. |
SELECT tries_for FROM table_15467476_3 WHERE club = "Cambrian Welfare RFC" | CREATE TABLE INST, Here is a database schema( table schema); | How many tries for for club cambrian welfare rfc?It is not neccessary to use all the tables. |
SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522" | CREATE TABLE INST, Here is a database schema( table schema); | Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?It is not neccessary to use all the tables. |
SELECT MAX Game FROM table WHERE Attendance = 54774 | CREATE TABLE INST, Here is a database schema( table schema); | Name the max game for attendance being 54774.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent when they played at Delta Center with a record of 27-13?It is not neccessary to use all the tables. |
SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least goals against for played more than 38It is not neccessary to use all the tables. |
SELECT Former school FROM table WHERE Hometown = North Port, FL | CREATE TABLE INST, Here is a database schema( table schema); | What is the former school of the player from North Port, FL? .It is not neccessary to use all the tables. |
SELECT MIN Total FROM table WHERE Nation = barbados AND Bronze > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest total that has barbados as the nation with a bronze greater than 0?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_16 WHERE date = "may 20" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent on May 20?It is not neccessary to use all the tables. |
SELECT role_name, role_description FROM ROLES WHERE role_code = "MG" | CREATE TABLE INST, Here is a database schema( table schema); | What are the name and description for role code 'MG'?It is not neccessary to use all the tables. |
SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a" | CREATE TABLE INST, Here is a database schema( table schema); | What's the n Africa in 2012 with an N/A as the CPLP?It is not neccessary to use all the tables. |
SELECT C (nF/km) FROM table WHERE R (Ω/km) = 463.59 | CREATE TABLE INST, Here is a database schema( table schema); | What is the c (nf/km) when the r (ω/km) is 463.59?.It is not neccessary to use all the tables. |
SELECT MIN(grid) FROM table_name_16 WHERE time_retired = "accident" AND laps < 18 | CREATE TABLE INST, Here is a database schema( table schema); | When a race had less than 18 laps and time/retired of accident what was the smallest grid?It is not neccessary to use all the tables. |
SELECT guest FROM table_name_56 WHERE result = "0:3" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the guest when the result was 0:3?It is not neccessary to use all the tables. |
SELECT Score in the final FROM table WHERE Partner = tomas behrend | CREATE TABLE INST, Here is a database schema( table schema); | What is Partner Tomas Behrend's Score in the final?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Record = 23-5 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent that led to a record of 23-5?.It is not neccessary to use all the tables. |
SELECT Participant_Type_Code, COUNT(Participant_Type_Code) FROM Participants GROUP BY Participant_Type_Code ORDER BY Participant_Type_Code | CREATE TABLE INST, Here is a database schema( table schema); | Compare the number of participants in each participant type code using a bar chart, order from low to high by the X-axis please.It is not neccessary to use all the tables. |
SELECT Use FROM table WHERE CPU type = AMD Opteron dual-core 2.6GHz | CREATE TABLE INST, Here is a database schema( table schema); | Name the use for amd opteron dual-core 2.6ghz.It is not neccessary to use all the tables. |
SELECT spike FROM table_name_27 WHERE name = "mia jerkov category:articles with hcards" | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Spike has a Name of mia jerkov category:articles with hcards?It is not neccessary to use all the tables. |
SELECT AVG Losses FROM table WHERE Years = 1904 | CREATE TABLE INST, Here is a database schema( table schema); | How many losses did Notre Dame have in 1904?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM Posts, Users WHERE Posts.OwnerUserId = Users.Id AND Users.Id = '##UserID##' AND Posts.CreationDate BETWEEN '##StartDate##' AND '##EndDate##' | CREATE TABLE INST, Here is a database schema( table schema); | Answers in a given period.It is not neccessary to use all the tables. |
SELECT AVG Rank FROM table WHERE Gold < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What's the rank average when the gold medals are less than 0?.It is not neccessary to use all the tables. |
SELECT Pronunciation a FROM table WHERE Word = 傳 | CREATE TABLE INST, Here is a database schema( table schema); | Name the pronunciation for 傳.It is not neccessary to use all the tables. |
SELECT SUM Member FROM table WHERE Saros > 127 AND Gamma < 1.1508 AND Magnitude = 0.742 | CREATE TABLE INST, Here is a database schema( table schema); | what is the sum of the member when the saros is more than 127, gamma is less than 1.1508 and the magnitude is 0.742?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Competition = euro 2004 qualifier | CREATE TABLE INST, Here is a database schema( table schema); | What is Score, when Competition is "Euro 2004 Qualifier"?.It is not neccessary to use all the tables. |
SELECT party FROM table_22756549_1 WHERE margin = 105731 | CREATE TABLE INST, Here is a database schema( table schema); | What party won with a margin of 105731?It is not neccessary to use all the tables. |
SELECT position FROM table_name_55 WHERE nfl_draft = 1958 AND player = "jerry kramer" | CREATE TABLE INST, Here is a database schema( table schema); | What position has 1958 as the NFL Draft and jerry kramer as the player?It is not neccessary to use all the tables. |
SELECT position FROM table_name_88 WHERE pick < 5 AND college = "notre dame" AND round = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Notre Dame position has a pick lower than 5 and round 7?It is not neccessary to use all the tables. |
SELECT COUNT Champion FROM table WHERE Runner-up = Stefan Edberg | CREATE TABLE INST, Here is a database schema( table schema); | How many champions are shown for the runner-up of stefan edberg?.It is not neccessary to use all the tables. |
SELECT "Record" FROM table_34392 WHERE "Attendance" > '4,719' AND "Home" = 'blues' | CREATE TABLE INST, Here is a database schema( table schema); | What is the record of the game played at home by the Blues where the attendance was larger than 4,719?It is not neccessary to use all the tables. |
SELECT "Team" FROM table_42181 WHERE "Laps" = '5' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Team with a Lap that is 5?It is not neccessary to use all the tables. |
SELECT MIN No. in season FROM table WHERE Title = "The Gang Cracks the Liberty Bell" | CREATE TABLE INST, Here is a database schema( table schema); | What season number is the episode "The Gang Cracks The Liberty Bell"?.It is not neccessary to use all the tables. |
SELECT name FROM stadium WHERE NOT id IN (SELECT stadium_id FROM event) | CREATE TABLE INST, Here is a database schema( table schema); | Find the names of stadiums which have never had any event.It is not neccessary to use all the tables. |
SELECT opponent FROM table_18894744_5 WHERE record = "10-4" | CREATE TABLE INST, Here is a database schema( table schema); | Name the opponent for record 10-4It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Week = 6 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at the week 6 game?.It is not neccessary to use all the tables. |
SELECT MIN Overs FROM table WHERE Team = royal challengers bangalore | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of Overs for the Royal Challengers Bangalore?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent in the game played after Week 4 on October 15 2000?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Score = 35-31 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Location, when the Score is 35-31?.It is not neccessary to use all the tables. |
SELECT MIN(year) FROM table_12077540_1 | CREATE TABLE INST, Here is a database schema( table schema); | The earliest year is 1996.It is not neccessary to use all the tables. |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2098" | CREATE TABLE INST, Here is a database schema( table schema); | what is average age of patients whose marital status is single and year of birth is greater than 2098?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Small-to-small intestinal anastomosis" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients whose marital status is divorced and procedure long title is small-to-small intestinal anastomosis?It is not neccessary to use all the tables. |
SELECT ICAO FROM table WHERE IATA = hkg | CREATE TABLE INST, Here is a database schema( table schema); | What is ICAO, when IATA is "HKG"?.It is not neccessary to use all the tables. |
SELECT time_retired FROM table_name_6 WHERE laps > 56 AND grid = 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Time/Retired with over 56 laps and a grid of 5?It is not neccessary to use all the tables. |
SELECT record FROM table_name_10 WHERE score = "118–105" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Record of the game with a Score of 118–105?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Team = orlando | CREATE TABLE INST, Here is a database schema( table schema); | What is Date, when Team is "Orlando"?.It is not neccessary to use all the tables. |
SELECT game_site FROM table_name_23 WHERE attendance = "54,040" | CREATE TABLE INST, Here is a database schema( table schema); | What is the site of the game that had an attendance of 54040?It is not neccessary to use all the tables. |
SELECT games FROM table_name_12 WHERE finals = "1 (0)" AND w_league = "28 (1)" | CREATE TABLE INST, Here is a database schema( table schema); | How many games does the player with 1 (0) finals and a w-league of 28 (1) have?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Track = truro | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the race at Truro?.It is not neccessary to use all the tables. |
SELECT Film Festival FROM table WHERE Participants/Recipients = Isao Tomita | CREATE TABLE INST, Here is a database schema( table schema); | What Film Festival had participants/recipients of Isao Tomita?.It is not neccessary to use all the tables. |
SELECT Arabs FROM table WHERE Annual Population growth rate = 1.7% | CREATE TABLE INST, Here is a database schema( table schema); | What is the arabs when the annual population growth rate is 1.7%?.It is not neccessary to use all the tables. |
SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average rank of a nation that had 219721 in 2012?It is not neccessary to use all the tables. |
SELECT COUNT Co-Singers FROM table WHERE Co-Stars = Parveen Babi | CREATE TABLE INST, Here is a database schema( table schema); | How many co-singers were there when Parveen Babi co-starred?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team score = 10.13 (73) | CREATE TABLE INST, Here is a database schema( table schema); | What day did the home team score 10.13 (73)?.It is not neccessary to use all the tables. |
SELECT COUNT Nationality FROM table WHERE NHL team = Philadelphia Flyers | CREATE TABLE INST, Here is a database schema( table schema); | How many players were drafted by the Philadelphia Flyers?.It is not neccessary to use all the tables. |
SELECT qual FROM table_name_3 WHERE laps < 68 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Qual with less than 68 laps?It is not neccessary to use all the tables. |
SELECT MAX(prev) FROM table_name_4 WHERE rank = 9 AND rating < 2746 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest prev that has 9 as the rank with a rating less than 2746?It is not neccessary to use all the tables. |
SELECT SUM(game) FROM table_name_24 WHERE set_4 = "25-21" AND set_3 = "25-23" | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?It is not neccessary to use all the tables. |
SELECT enrollment FROM table_1974443_1 WHERE institution = "Lakeland College" | CREATE TABLE INST, Here is a database schema( table schema); | What is the enrollment for Lakeland College?It is not neccessary to use all the tables. |
SELECT COUNT(wins) FROM table_name_52 WHERE cuts_made = 10 AND scoring_average < 74.09 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of wins with 10 cuts made and a score average under 74.09?It is not neccessary to use all the tables. |
SELECT place FROM table_name_31 WHERE player = "corey pavin" | CREATE TABLE INST, Here is a database schema( table schema); | What place is Corey Pavin in?It is not neccessary to use all the tables. |
SELECT "Country" FROM table_632 WHERE "Area of Operation" = 'El Hamada' | CREATE TABLE INST, Here is a database schema( table schema); | In what country is the El Hamada area of operation?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.