sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT player FROM table_name_60 WHERE score = 71 - 71 = 142 | CREATE TABLE INST, Here is a database schema( table schema); | What Player has a Score of 71-71=142?It is not neccessary to use all the tables. |
SELECT COUNT First elected FROM table WHERE Result = Re-elected AND Incumbent = Gary Ackerman Redistricted from the 7th district | CREATE TABLE INST, Here is a database schema( table schema); | how many first elected with result being re-elected and incumbent being gary ackerman redistricted from the 7th district.It is not neccessary to use all the tables. |
SELECT population__2011_ FROM table_26321719_1 WHERE name = "Beaubassin East" | CREATE TABLE INST, Here is a database schema( table schema); | What is the population in 2011 for the name Beaubassin East?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Grand Prix = canadian grand prix | CREATE TABLE INST, Here is a database schema( table schema); | What was the date for the canadian grand prix?.It is not neccessary to use all the tables. |
SELECT walker__percentage FROM table_21046399_3 WHERE county = "Calumet" | CREATE TABLE INST, Here is a database schema( table schema); | What percentage did Walker win in Calumet county?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_48 WHERE score = "7-6(0), 6-3" | CREATE TABLE INST, Here is a database schema( table schema); | what is the tournament when the score is 7-6(0) 6-3?It is not neccessary to use all the tables. |
SELECT casualties FROM table_name_71 WHERE circumstances = "combat" AND location = "fayzabad area" | CREATE TABLE INST, Here is a database schema( table schema); | How many casualties from the combat in the Fayzabad area?It is not neccessary to use all the tables. |
SELECT driver FROM table_name_80 WHERE time_retired = "+ 10 laps" AND points > 6 | CREATE TABLE INST, Here is a database schema( table schema); | What driver had a time/retired of + 10 laps and more than 6 points?It is not neccessary to use all the tables. |
SELECT ethnic_group FROM table_name_58 WHERE muslims = "93%" | CREATE TABLE INST, Here is a database schema( table schema); | Which ehtinc group consists of 93% muslims?It is not neccessary to use all the tables. |
SELECT MAX("Game") FROM table_35993 WHERE "January" = '28' | CREATE TABLE INST, Here is a database schema( table schema); | Which Game is the highest that has a January of 28?It is not neccessary to use all the tables. |
SELECT what FROM table_name_7 WHERE person = "tawo" AND three = "tuyo" AND coconut = "niyog" | CREATE TABLE INST, Here is a database schema( table schema); | What is "what" when "person" is "tawo" when "three" is "tuyo" and when "coconut" is "niyog"?It is not neccessary to use all the tables. |
SELECT loss FROM table_name_8 WHERE attendance = "24,406" | CREATE TABLE INST, Here is a database schema( table schema); | When the attendance was 24406 who lost?It is not neccessary to use all the tables. |
SELECT series FROM table_name_1 WHERE game = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the standing in the series after game 1?It is not neccessary to use all the tables. |
SELECT "Game" FROM table_18983 WHERE "Record" = '40-20' | CREATE TABLE INST, Here is a database schema( table schema); | How many games had the team played after they were 40-20?It is not neccessary to use all the tables. |
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Alton Alton Ford" | CREATE TABLE INST, Here is a database schema( table schema); | What years for the rockets did player ford alton alton ford play?It is not neccessary to use all the tables. |
SELECT Programming FROM table WHERE Channel > 51.2 AND PSIP Short Name = kyaz-5 | CREATE TABLE INST, Here is a database schema( table schema); | Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?.It is not neccessary to use all the tables. |
SELECT MIN Bills first downs FROM table WHERE Opponents = 6 | CREATE TABLE INST, Here is a database schema( table schema); | How many first downs did the bills have when their opponent had 6.It is not neccessary to use all the tables. |
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid | CREATE TABLE INST, Here is a database schema( table schema); | Find the name of each user and number of tweets tweeted by each of them.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_62 WHERE race = "carfax 250" | CREATE TABLE INST, Here is a database schema( table schema); | What is the venue of teh carfax 250 race?It is not neccessary to use all the tables. |
SELECT MIN(wins) FROM table_name_70 WHERE events > 30 | CREATE TABLE INST, Here is a database schema( table schema); | Which Wins is the lowest one that has Events larger than 30?It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_96 WHERE venue = "lake oval" | CREATE TABLE INST, Here is a database schema( table schema); | What was the home team's score when they played at Lake Oval?It is not neccessary to use all the tables. |
SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse") | CREATE TABLE INST, Here is a database schema( table schema); | Find the first name and age of the students who are playing both Football and Lacrosse.It is not neccessary to use all the tables. |
SELECT date FROM table_name_87 WHERE venue = "lahore" | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of the game held at Lahore?It is not neccessary to use all the tables. |
SELECT "Original air date" FROM table_73004 WHERE "No. overall" = '15' | CREATE TABLE INST, Here is a database schema( table schema); | When 15 is the number overall what is the original air date?It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_10 WHERE distance = "200m" AND year > 1994 AND record = "33.778s" | CREATE TABLE INST, Here is a database schema( table schema); | Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?It is not neccessary to use all the tables. |
SELECT Yogi Bear FROM table WHERE Air date = 1959.12.21 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Yogi Bear that aired on 1959.12.21?.It is not neccessary to use all the tables. |
SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the Ivy League conference tournament?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Directed by = Dennie Gordon | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote the episode that was directed by Dennie Gordon.It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table WHERE Opponent = Ottawa Senators AND Record = 24-35-17 | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Attendance = 36102 | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has 36102 is the attendance?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Venue = cairns convention centre | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game where the venue was cairns convention centre?.It is not neccessary to use all the tables. |
SELECT Winning score FROM table WHERE Tournament = andy williams-san diego open invitational | CREATE TABLE INST, Here is a database schema( table schema); | What was the winning score for the Andy Williams-San Diego Open Invitational tournament?.It is not neccessary to use all the tables. |
SELECT 2008 FROM table WHERE 2006 = brikajdri wilson | CREATE TABLE INST, Here is a database schema( table schema); | Who attended the school in 2008, that Brikajdri Wilson attended in 2006?.It is not neccessary to use all the tables. |
SELECT COUNT Year FROM table WHERE Wins = 0 AND Team = ajs AND Points < 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the year that there were 0 wins, team AJS, and under 12 points?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_48 WHERE year = 2013 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Result in 2013?It is not neccessary to use all the tables. |
SELECT Champion FROM table WHERE Score = 9–1 | CREATE TABLE INST, Here is a database schema( table schema); | What Champion had a Score of 9–1?.It is not neccessary to use all the tables. |
SELECT fin_pos FROM table_name_44 WHERE grid = "3" | CREATE TABLE INST, Here is a database schema( table schema); | What is the finishing position for the person who had a grid of 3?It is not neccessary to use all the tables. |
SELECT SUM(gold) FROM table_name_52 WHERE silver = 1 AND rank > 3 AND total < 2 AND bronze < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the gold when silver is 1 rank is larger than 3 total is smaller than 2 bronze is smaller than 0?It is not neccessary to use all the tables. |
SELECT Engine(s) FROM table WHERE Tyres = f AND Year = 1971 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Engine(s) that has f Tyres in 1971?.It is not neccessary to use all the tables. |
SELECT SUM Points FROM table WHERE Assists = 7 AND Games = 11 AND Goals < 6 | CREATE TABLE INST, Here is a database schema( table schema); | If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria?.It is not neccessary to use all the tables. |
SELECT COUNT("title") FROM table_203_701 | CREATE TABLE INST, Here is a database schema( table schema); | how many titles are on the album ?It is not neccessary to use all the tables. |
SELECT loss FROM table_name_85 WHERE record = "30-32" | CREATE TABLE INST, Here is a database schema( table schema); | Which Loss has a Record of 30-32?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Score in the final = 6–7, 6–2, 6–4 | CREATE TABLE INST, Here is a database schema( table schema); | what tornament had the scores 6–7, 6–2, 6–4?.It is not neccessary to use all the tables. |
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur" | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of runner up a for perambalurIt is not neccessary to use all the tables. |
SELECT format FROM table_name_42 WHERE conference = "conference iii" | CREATE TABLE INST, Here is a database schema( table schema); | What format has conference iii as the conference?It is not neccessary to use all the tables. |
SELECT Network FROM table WHERE Language = punjabi | CREATE TABLE INST, Here is a database schema( table schema); | What Network has Punjabi as the Language?.It is not neccessary to use all the tables. |
SELECT first_leg FROM table_name_66 WHERE opposition = "real sociedad" | CREATE TABLE INST, Here is a database schema( table schema); | What was the first leg score against Real Sociedad?It is not neccessary to use all the tables. |
SELECT Held every FROM table WHERE Sport = table tennis | CREATE TABLE INST, Here is a database schema( table schema); | How often is the table tennis competition held?.It is not neccessary to use all the tables. |
SELECT Team Nickname FROM table WHERE Affiliation = Private/ Nonsectarian | CREATE TABLE INST, Here is a database schema( table schema); | When private/ nonsectarian is the the affiliation what is the team nickname?.It is not neccessary to use all the tables. |
SELECT Pos. FROM table WHERE Year > 2005 AND Class Pos. = 5th | CREATE TABLE INST, Here is a database schema( table schema); | What was the position in a year after 2005 with a class position of 5th?.It is not neccessary to use all the tables. |
SELECT Network FROM table WHERE Origin of Programming = india AND Genre = general AND Service = bell fibe tv AND Language = tamil | CREATE TABLE INST, Here is a database schema( table schema); | Which network has an origina of Programming in India, a general genre, a service of bell fibe tv, and tamil as its language?.It is not neccessary to use all the tables. |
SELECT 2008 FROM table_name_42 WHERE 2006 = "brikajdri wilson" | CREATE TABLE INST, Here is a database schema( table schema); | Who attended the school in 2008 that Brikajdri Wilson attended in 2006?It is not neccessary to use all the tables. |
SELECT MIN(laps) FROM table_name_6 WHERE qual = "145.926" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest lap with a 145.926 qual?It is not neccessary to use all the tables. |
SELECT final_score FROM table_name_23 WHERE visiting_team = "indianapolis colts" AND date = "november 24" | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Score = 111-106 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at the game with a score of 111-106?.It is not neccessary to use all the tables. |
SELECT 1993 FROM table_name_18 WHERE 1994 = "2r" AND 1995 = "1r" | CREATE TABLE INST, Here is a database schema( table schema); | What 1993 has 2r as a 1994 and 1r as a 1995?It is not neccessary to use all the tables. |
SELECT player_name FROM table_name_93 WHERE position = "defensive end" AND college = "california" | CREATE TABLE INST, Here is a database schema( table schema); | Who was a defensive end at California?It is not neccessary to use all the tables. |
SELECT Location Attendance FROM table WHERE Game = 41 | CREATE TABLE INST, Here is a database schema( table schema); | Where was game 41 held, and how many people attended?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_24464253_1 WHERE record = "5-4" | CREATE TABLE INST, Here is a database schema( table schema); | Against what opponent did the Wildcats have a record of 5-4?It is not neccessary to use all the tables. |
SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = "Brian Williams" AND sideline_reporters = "Steve Armitage and Brenda Irving" | CREATE TABLE INST, Here is a database schema( table schema); | Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?It is not neccessary to use all the tables. |
SELECT Crowd FROM table WHERE Home team score = 15.15 (105) | CREATE TABLE INST, Here is a database schema( table schema); | How big was the crowd in a game that had a home team score of 15.15 (105)?.It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Written By = boyd hale AND Title = julie gets validated | CREATE TABLE INST, Here is a database schema( table schema); | When did Boyd Hale's Julie gets Validated originally air?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_67 WHERE visitor = "toronto maple leafs" AND score = "3–10" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record when the visitor was toronto maple leafs and the score was 3–10?It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Date = 26th | CREATE TABLE INST, Here is a database schema( table schema); | What competition was held on the 26th?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_6 WHERE score = "4-2" AND visitor = "vancouver canucks" | CREATE TABLE INST, Here is a database schema( table schema); | When the Vancouver Canucks were visiting what was the record when the score was 4-2?It is not neccessary to use all the tables. |
SELECT COUNT(pick) FROM table_name_71 WHERE name = "george rosso" AND overall < 296 | CREATE TABLE INST, Here is a database schema( table schema); | What pick did George Rosso get drafted when the overall was less than 296?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.gender = "F" AND lab.itemid = "50836" | CREATE TABLE INST, Here is a database schema( table schema); | how many female patients had lab test item id 50836?It is not neccessary to use all the tables. |
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz" | CREATE TABLE INST, Here is a database schema( table schema); | Who are all directors when Sherwood Schwartz is the writer?It is not neccessary to use all the tables. |
SELECT date FROM table_name_67 WHERE home = "colorado" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of the home game for Colorado?It is not neccessary to use all the tables. |
SELECT Ranking FROM table WHERE Gold < 20 AND Event = 1976 toronto | CREATE TABLE INST, Here is a database schema( table schema); | What Ranking has Gold less than 20 and the Event 1976 Toronto?.It is not neccessary to use all the tables. |
SELECT MAX(r_miles_) FROM table_15416002_1 WHERE landfall = "Texas" AND saffir_simpson_category < 3.0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?It is not neccessary to use all the tables. |
SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343 | CREATE TABLE INST, Here is a database schema( table schema); | What is the population where the median family income is $48446 and there are more than 35343 households?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_40 WHERE score = 67 - 72 - 71 - 75 = 285 | CREATE TABLE INST, Here is a database schema( table schema); | Which To par has a Score of 67-72-71-75=285?It is not neccessary to use all the tables. |
SELECT Score in the final FROM table WHERE Surface = hard | CREATE TABLE INST, Here is a database schema( table schema); | What is the score in the final of the tournament with a hard surface?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)" | CREATE TABLE INST, Here is a database schema( table schema); | What was his record when the method was technical submission (forearm choke)?It is not neccessary to use all the tables. |
SELECT Stadium FROM table WHERE Visiting team = pittsburgh steelers | CREATE TABLE INST, Here is a database schema( table schema); | Which Stadium has a Visiting team of pittsburgh steelers?.It is not neccessary to use all the tables. |
SELECT Finalist FROM table WHERE Tournament = monte carlo | CREATE TABLE INST, Here is a database schema( table schema); | Which Finalist has a Tournament of monte carlo?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby" | CREATE TABLE INST, Here is a database schema( table schema); | Name the place for score of 67-70=137 and stuart applebyIt is not neccessary to use all the tables. |
SELECT event FROM table_name_32 WHERE city = "copenhagen" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Event in the city of copenhagen?It is not neccessary to use all the tables. |
SELECT series FROM table_name_93 WHERE director = "friz freleng" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Series of the Filmography by Directory Friz Freleng?It is not neccessary to use all the tables. |
SELECT "4wi" FROM table_30109 WHERE "Economy" = '4.17' | CREATE TABLE INST, Here is a database schema( table schema); | How many 4wi were recorded by the player with an economy of 4.17?It is not neccessary to use all the tables. |
SELECT college FROM table_name_63 WHERE pick__number > 195 AND player = "mark brown" | CREATE TABLE INST, Here is a database schema( table schema); | Which College has Player Mark Brown and a Pick # greater than 195?It is not neccessary to use all the tables. |
SELECT term_start FROM table_name_61 WHERE name = "ismail qemali bej" | CREATE TABLE INST, Here is a database schema( table schema); | When did Ismail Qemali Bej's term start?It is not neccessary to use all the tables. |
SELECT "Amount of trees, that require replacement" FROM table_72092 WHERE "District" = 'Motovilikhinsky' | CREATE TABLE INST, Here is a database schema( table schema); | What is the amount of trees, that require replacement when the district is motovilikhinsky?It is not neccessary to use all the tables. |
SELECT Torque FROM table WHERE Notes = laredo, limited, overland AND Engine = 5.7l hemi v8 | CREATE TABLE INST, Here is a database schema( table schema); | what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Score = 70-68-74=212 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player with a 70-68-74=212 score?.It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Surname = naylor | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has a Surname of naylor?.It is not neccessary to use all the tables. |
SELECT platform FROM table_name_89 WHERE title = "super mario all-stars" | CREATE TABLE INST, Here is a database schema( table schema); | What's the platform of Super Mario All-Stars?It is not neccessary to use all the tables. |
SELECT producer FROM table_name_31 WHERE director = "richard clark" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the producer for the director Richard Clark?It is not neccessary to use all the tables. |
SELECT MAX(money___) AS $__ FROM table_name_76 WHERE score = 69 - 71 - 71 - 73 = 284 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest amount of money a player with a score of 69-71-71-73=284 has?It is not neccessary to use all the tables. |
SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria" | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank for the competitor from Bulgaria?It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg" | CREATE TABLE INST, Here is a database schema( table schema); | What did the home team score at MCG?It is not neccessary to use all the tables. |
SELECT Loan Club FROM table WHERE Name = Westlake | CREATE TABLE INST, Here is a database schema( table schema); | Who was the loan club for the Westlake game?.It is not neccessary to use all the tables. |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486' AND patient.hospitaldischargetime IS NULL)) AND medication.drugn... | CREATE TABLE INST, Here is a database schema( table schema); | were pantoprazole sodium 40 mg iv solr, ondansetron 2 mg/1 ml 2ml sdv inj or sodium chloride 0.9 % iv 250 ml bag prescribed to patient 002-4486 on the current hospital encounter?It is not neccessary to use all the tables. |
SELECT MIN Average FROM table WHERE Highest < 13,500 AND Played < 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average for the team with highest less than 13,500 and games played are fewer than 5?.It is not neccessary to use all the tables. |
SELECT Outcome FROM table WHERE Score = 1-6, 3-6 | CREATE TABLE INST, Here is a database schema( table schema); | What is Outcome, when Score is 1-6, 3-6?.It is not neccessary to use all the tables. |
SELECT MIN(overs) FROM table_name_29 WHERE team = "chennai super kings" AND best_bowling = "2/17" AND economy_rate < 5.92 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17?It is not neccessary to use all the tables. |
SELECT # / County FROM table WHERE Location = fountain city | CREATE TABLE INST, Here is a database schema( table schema); | What county is Fountain City?.It is not neccessary to use all the tables. |
SELECT Summoned FROM table WHERE Elected = march 1298 | CREATE TABLE INST, Here is a database schema( table schema); | What is Summoned, when Elected is "March 1298"?.It is not neccessary to use all the tables. |
SELECT school FROM table_1984697_85 WHERE size = 604 | CREATE TABLE INST, Here is a database schema( table schema); | Name the school/s with is size of 604.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.