sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Code name FROM table WHERE Kernel Version = 2.6.27 | CREATE TABLE INST, Here is a database schema( table schema); | What is the code name of the OS with Kernel version 2.6.27?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Surface = clay AND Date = june 6, 2005 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game played on a clay surface on June 6, 2005?.It is not neccessary to use all the tables. |
SELECT T1.Claim_id, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id | CREATE TABLE INST, Here is a database schema( table schema); | How many settlements does each claim correspond to? List the claim id and the number of settlements.It is not neccessary to use all the tables. |
SELECT MIN(clock_rate__mhz_) FROM table_142573_1 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least clock rate mhzIt is not neccessary to use all the tables. |
SELECT "Broadcast date" FROM table_24179 WHERE "Viewers (in millions)" = '6.8' | CREATE TABLE INST, Here is a database schema( table schema); | Which broadcast date has 6.8 million viewers?It is not neccessary to use all the tables. |
SELECT score FROM table_25461946_5 WHERE team = "Virginia Tech" | CREATE TABLE INST, Here is a database schema( table schema); | What was the final score when the Temple Owls beat Virginia Tech?It is not neccessary to use all the tables. |
SELECT "Office" FROM table_23631 WHERE "Candidate" = 'Jon Huntsman' | CREATE TABLE INST, Here is a database schema( table schema); | What office is Jon Huntsman a candidate for?It is not neccessary to use all the tables. |
SELECT date FROM table_name_8 WHERE opponent = "at south carolina" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date when the opponent was at South carolina?It is not neccessary to use all the tables. |
SELECT AVG(overall) FROM table_name_23 WHERE college = "usf" AND round > 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average overall pick number for the USF player who was picked after round 5?It is not neccessary to use all the tables. |
SELECT competition FROM table_name_48 WHERE away_result = "0–3" AND season = "1969-70" | CREATE TABLE INST, Here is a database schema( table schema); | Away result of 0–3 and a Season of 1969-70 is what competition?It is not neccessary to use all the tables. |
SELECT gameplan FROM table_name_71 WHERE actor_in_original_production = "jacqueline king" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the GamePlan when Jacqueline King is the actor in the original production?It is not neccessary to use all the tables. |
SELECT club FROM table_name_38 WHERE played = "22" AND losing_bonus = "7" | CREATE TABLE INST, Here is a database schema( table schema); | What club has a play of 22 and losing bonus of 7?It is not neccessary to use all the tables. |
SELECT time FROM table_name_87 WHERE date = "april 5" | CREATE TABLE INST, Here is a database schema( table schema); | What was the time of the game on April 5?It is not neccessary to use all the tables. |
SELECT MAX Task No. FROM table WHERE Date given = january 22, 2010 (day 111) | CREATE TABLE INST, Here is a database schema( table schema); | What is the task number on January 22, 2010 (day 111)?.It is not neccessary to use all the tables. |
SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04" | CREATE TABLE INST, Here is a database schema( table schema); | Who are the cast members of episode 3-04?It is not neccessary to use all the tables. |
SELECT "Length" FROM table_75453 WHERE "Track" = '16' | CREATE TABLE INST, Here is a database schema( table schema); | What is the lengtho f track 16?It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Name = colton's crossing bridge | CREATE TABLE INST, Here is a database schema( table schema); | What type of bridge is Colton's Crossing Bridge?.It is not neccessary to use all the tables. |
SELECT surface FROM table_name_45 WHERE partner = "jim thomas" AND date = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | Which Surface has a Partner of jim thomas and a Date of 2007?It is not neccessary to use all the tables. |
SELECT "Player" FROM table_72144 WHERE "College" = 'Wilfrid Laurier' | CREATE TABLE INST, Here is a database schema( table schema); | Which player from the 2004 CFL draft attended Wilfrid Laurier?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Constituency number = 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Name has a Constituency number of 1?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team score = 15.17 (107) | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the away team that has the home team score of 15.17 (107)?.It is not neccessary to use all the tables. |
SELECT position FROM table_24587026_1 WHERE podiums = 0 AND team = "Carlin" | CREATE TABLE INST, Here is a database schema( table schema); | Name the position for 0 podiums and carlin teamIt is not neccessary to use all the tables. |
SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Set 1 with a Set 2 that is 25-19?It is not neccessary to use all the tables. |
SELECT Edition FROM table WHERE Result = 6-3, 6-0, 6-2 | CREATE TABLE INST, Here is a database schema( table schema); | What Edition had a Result of 6-3, 6-0, 6-2?.It is not neccessary to use all the tables. |
SELECT area_km²__1998_ FROM table_11656578_2 WHERE no_of_communes = 51 | CREATE TABLE INST, Here is a database schema( table schema); | What's the area of the voivodenship with 51 communes?It is not neccessary to use all the tables. |
SELECT Zone FROM table WHERE Round = semifinal AND Against = israel AND Opponent = anna smashnova | CREATE TABLE INST, Here is a database schema( table schema); | What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?.It is not neccessary to use all the tables. |
SELECT MAX Floors FROM table WHERE Metres > 220 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest floor for the building measuring 220 meters?.It is not neccessary to use all the tables. |
SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28" | CREATE TABLE INST, Here is a database schema( table schema); | What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?It is not neccessary to use all the tables. |
SELECT MIN Capacity FROM table WHERE Vehicle = 1975 toyota celica 1600gt | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest capacity for the 1975 toyota celica 1600gt?.It is not neccessary to use all the tables. |
SELECT Stadium FROM table WHERE 2007–08 season = 8th in serie c1/a | CREATE TABLE INST, Here is a database schema( table schema); | What was the stadium in which the 2007-08 season placement was 8th in Serie c1/a?.It is not neccessary to use all the tables. |
SELECT MAX Att. FROM table WHERE Yards < 138 AND Comp > 0 | CREATE TABLE INST, Here is a database schema( table schema); | For the player with yards less than 138, and Comp more than 0, what was the highest Att.?.It is not neccessary to use all the tables. |
SELECT salary_range FROM table_27257896_2 WHERE working_force_of_hk = "10.4%" | CREATE TABLE INST, Here is a database schema( table schema); | If the working force of HK is 10.4% what is the salary range?It is not neccessary to use all the tables. |
SELECT type FROM table_261895_1 WHERE institution = "Calvin College" | CREATE TABLE INST, Here is a database schema( table schema); | which categories fit under the institution calvin college?It is not neccessary to use all the tables. |
SELECT COUNT Report FROM table WHERE Date = 29 April | CREATE TABLE INST, Here is a database schema( table schema); | what's the total number of report with date 29 april.It is not neccessary to use all the tables. |
SELECT event FROM table_name_25 WHERE opponent = "joe nameth" | CREATE TABLE INST, Here is a database schema( table schema); | In what event is the opponent Joe Nameth?It is not neccessary to use all the tables. |
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( finrev fed 17); | State with highest average math score. It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_7 WHERE date = "october 1, 2006" | CREATE TABLE INST, Here is a database schema( table schema); | Which tournament was played on October 1 2006?It is not neccessary to use all the tables. |
SELECT Словјански FROM table WHERE Polish = książka | CREATE TABLE INST, Here is a database schema( table schema); | What is every value for словјански if polish is książka?.It is not neccessary to use all the tables. |
SELECT college_junior_club_team FROM table_1013129_11 WHERE player = "Per Gustafsson" | CREATE TABLE INST, Here is a database schema( table schema); | What club team is Per Gustafsson play for?It is not neccessary to use all the tables. |
SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72 | CREATE TABLE INST, Here is a database schema( table schema); | What is the low win count with more than 72 goals?It is not neccessary to use all the tables. |
SELECT enrollment FROM table_261927_2 WHERE location = "Westfield, Massachusetts" | CREATE TABLE INST, Here is a database schema( table schema); | What is the enrollment for the institution in Westfield Massachusetts?It is not neccessary to use all the tables. |
SELECT no_range FROM table_name_58 WHERE year_built__converted * _ = "1965-66" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the number range for 1965-66It is not neccessary to use all the tables. |
SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30" | CREATE TABLE INST, Here is a database schema( table schema); | How many fast laps are in 6 races with 30 points in the World Series by Nissan?It is not neccessary to use all the tables. |
SELECT "2012 Employees (Total)" FROM table_63077 WHERE "Rank (2012)" = '7' | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2012 Employees (Total) when the rank (2012) is 7?It is not neccessary to use all the tables. |
SELECT "Score" FROM table_39399 WHERE "Year" = '2000' | CREATE TABLE INST, Here is a database schema( table schema); | What was the winning score in 2000?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.days_stay > "17" AND procedures.long_title = "Other cystoscopy" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose days of hospital stay is greater than 17 and procedure long title is other cystoscopy?It is not neccessary to use all the tables. |
SELECT Game FROM table WHERE Result = 88-85 ot (1-0) | CREATE TABLE INST, Here is a database schema( table schema); | Result of 88-85 ot (1-0) involves what game?.It is not neccessary to use all the tables. |
SELECT Brooklyn FROM table WHERE Manhattan = 321 | CREATE TABLE INST, Here is a database schema( table schema); | How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan?.It is not neccessary to use all the tables. |
SELECT incumbent FROM table_name_62 WHERE district = "massachusetts 2" | CREATE TABLE INST, Here is a database schema( table schema); | Which Incumbent has a District of massachusetts 2?It is not neccessary to use all the tables. |
SELECT Home ground FROM table WHERE Coach = andrej lemanis | CREATE TABLE INST, Here is a database schema( table schema); | What is home ground for coach Andrej Lemanis?.It is not neccessary to use all the tables. |
SELECT artist FROM table_name_54 WHERE week = "top 12" | CREATE TABLE INST, Here is a database schema( table schema); | Which Artist has a Week of Top 12?It is not neccessary to use all the tables. |
SELECT MAX Rank FROM table WHERE Earnings( $ ) < 395,386 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the highest ranked player that has earnings below 395,386?.It is not neccessary to use all the tables. |
SELECT "Common Name" FROM table_20071 WHERE "Accession Number" = 'XP_852505.1' | CREATE TABLE INST, Here is a database schema( table schema); | What kind of animal corresponds to the accession number xp_852505.1?It is not neccessary to use all the tables. |
SELECT "Score" FROM table_67444 WHERE "Opponent" = 'san diego padres' AND "Record" = '11-23' | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?It is not neccessary to use all the tables. |
SELECT event FROM table_name_25 WHERE res = "win" AND time = "n/a" AND method = "submission (triangle choke)" | CREATE TABLE INST, Here is a database schema( table schema); | Which event did he win with a method of submission (triangle choke) and a time of n/a?It is not neccessary to use all the tables. |
SELECT elevated FROM table_name_75 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. giorgio in velabro" | CREATE TABLE INST, Here is a database schema( table schema); | When was Cardinal-Deacon of S. Giorgio in Velabro elevated?It is not neccessary to use all the tables. |
SELECT ceremony FROM table_name_45 WHERE outcome = "nominated" AND nominee = "leela chitnis" | CREATE TABLE INST, Here is a database schema( table schema); | What ceremony was leela chitnis nominated at?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Member = hon paul keating | CREATE TABLE INST, Here is a database schema( table schema); | What is Hon Paul Keating's Party?.It is not neccessary to use all the tables. |
SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2 | CREATE TABLE INST, Here is a database schema( table schema); | What are the id and name of the mountains that have at least 2 photos?It is not neccessary to use all the tables. |
SELECT manufacturer FROM table_name_49 WHERE rider = "daijiro kato" | CREATE TABLE INST, Here is a database schema( table schema); | Which Manufacturer has a Rider of daijiro kato?It is not neccessary to use all the tables. |
SELECT Height in Ft. FROM table WHERE Years for Rockets = 1973-78 | CREATE TABLE INST, Here is a database schema( table schema); | What is the height in ft for the rockets from 1973-78?.It is not neccessary to use all the tables. |
SELECT Role FROM table WHERE Teams = troyes ac grenoble foot | CREATE TABLE INST, Here is a database schema( table schema); | What role has the team of Troyes AC Grenoble Foot?.It is not neccessary to use all the tables. |
SELECT Arena FROM table WHERE Founded = 2000 | CREATE TABLE INST, Here is a database schema( table schema); | Which arena was founded in 2000?.It is not neccessary to use all the tables. |
SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1" | CREATE TABLE INST, Here is a database schema( table schema); | Name the period for south korea with peak position of #1It is not neccessary to use all the tables. |
SELECT Trainer FROM table WHERE Winner = crowd pleaser | CREATE TABLE INST, Here is a database schema( table schema); | Who was the trainer when Crowd Pleaser won?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_15 WHERE place = "t4" AND player = "nick price" | CREATE TABLE INST, Here is a database schema( table schema); | What is T4 Place Player Nick Price's Score?It is not neccessary to use all the tables. |
SELECT MIN # s Dam and GNIS query Link FROM table WHERE Borough or Census area = Nome (CA) | CREATE TABLE INST, Here is a database schema( table schema); | How many dams are there in the Nome (CA) area?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Prize = $141,426 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date of the Event with a Prize of $141,426?.It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE World Rank = 6 AND Birth date = 1971-07-31 | CREATE TABLE INST, Here is a database schema( table schema); | what is the nation when the world rank is 6 and the birth date is 1971-07-31?.It is not neccessary to use all the tables. |
SELECT COUNT("Pumpers") FROM table_8401 WHERE "Cars" = '1' AND "Staffing" = 'volunteer' AND "Brigade" = 'grovedale' AND "Tankers" < '1' | CREATE TABLE INST, Here is a database schema( table schema); | How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?It is not neccessary to use all the tables. |
SELECT COUNT("Rank") FROM table_60200 WHERE "Nation" = 'china' AND "Bronze" > '0' | CREATE TABLE INST, Here is a database schema( table schema); | How many times is the nation china and bronze more than 0?It is not neccessary to use all the tables. |
SELECT SUM Decile FROM table WHERE Roll < 25 AND Area = franz josef | CREATE TABLE INST, Here is a database schema( table schema); | What is the decile sum with a roll smaller than 25, and franz josef area?.It is not neccessary to use all the tables. |
SELECT SUM Apps FROM table WHERE Goals = 28 AND Total < 191 | CREATE TABLE INST, Here is a database schema( table schema); | How many apps have 28 goals, and a Total smaller than 191?.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.admission_type = "EMERGENCY" AND procedures.icd9_code = "3142" | CREATE TABLE INST, Here is a database schema( table schema); | what number of patients admitted in emergency have the procedure icd 9 code 3142?It is not neccessary to use all the tables. |
SELECT date FROM table_name_91 WHERE margin_of_victory = "2 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | What date had a margin victory of 2 strokes?It is not neccessary to use all the tables. |
SELECT equipment FROM table_name_79 WHERE points < 6 AND position = 53 | CREATE TABLE INST, Here is a database schema( table schema); | What is Equipment when Points is less than 6 and when Position is 53?It is not neccessary to use all the tables. |
SELECT COUNT(lost) FROM table_name_66 WHERE order = "2nd" AND played > 13 | CREATE TABLE INST, Here is a database schema( table schema); | How many games were lost when the order was 2nd and the play was more than 13It is not neccessary to use all the tables. |
SELECT COUNT Weeks on Peak FROM table WHERE Chart = Ireland Albums Top 75 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total number of weeks on peak for the Ireland Albums Top 75 chart?.It is not neccessary to use all the tables. |
SELECT "Position" FROM table_5835 WHERE "College" = 'louisiana state' | CREATE TABLE INST, Here is a database schema( table schema); | What position does the College of Louisiana State have?It is not neccessary to use all the tables. |
SELECT set_1 FROM table_name_39 WHERE set_3 = "22-25" | CREATE TABLE INST, Here is a database schema( table schema); | What is Set 1 when Set 3 is 22-25?It is not neccessary to use all the tables. |
SELECT COUNT Written by FROM table WHERE Directed by = Arvin Brown | CREATE TABLE INST, Here is a database schema( table schema); | How many people wrote the episode directed by Arvin Brown?.It is not neccessary to use all the tables. |
SELECT Host FROM table WHERE First Premiere = August 3, 2007 | CREATE TABLE INST, Here is a database schema( table schema); | Name the host when first premiere is august 3, 2007.It is not neccessary to use all the tables. |
SELECT MIN("No.") FROM table_30487 WHERE "Production code" = 'XLE02007' | CREATE TABLE INST, Here is a database schema( table schema); | Name the least number for xle02007It is not neccessary to use all the tables. |
SELECT SUM Tier FROM table WHERE Postseason = semifinalist | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of tiers for the postseason of semifinalist?.It is not neccessary to use all the tables. |
SELECT COUNT Lifetime India Distributor share FROM table WHERE Year < 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Lifetime India Distributor share earlier than 2009?.It is not neccessary to use all the tables. |
SELECT Prohibition ticket FROM table WHERE Socialist Labor ticket = joseph smith | CREATE TABLE INST, Here is a database schema( table schema); | Which Prohibition ticket has a Socialist Labor ticket of joseph smith?.It is not neccessary to use all the tables. |
SELECT AVG(rank) FROM table_name_29 WHERE notes = "fa" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Rank of the Rowers with FA as Notes?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Position = fullback | CREATE TABLE INST, Here is a database schema( table schema); | What is the Team of the Fullback Player?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "77" AND prescriptions.formulary_drug_cd = "NABC50I" | CREATE TABLE INST, Here is a database schema( table schema); | provide the number of patients less than 77 years of age with drug code nabc50i.It is not neccessary to use all the tables. |
SELECT man_of_the_match FROM table_17120964_7 WHERE attendance = 1568 | CREATE TABLE INST, Here is a database schema( table schema); | When the attendance was 1568 who was man of the match?It is not neccessary to use all the tables. |
SELECT MAX Gold FROM table WHERE Rank = 12 AND Nation = vietnam | CREATE TABLE INST, Here is a database schema( table schema); | what is the highest gold when the rank is 12 for the nation vietnam?.It is not neccessary to use all the tables. |
SELECT county FROM table_20468206_1 WHERE mccain_percentage = "38.78%" | CREATE TABLE INST, Here is a database schema( table schema); | Name the county for mccain being 38.78%It is not neccessary to use all the tables. |
SELECT "Grid" FROM table_53537 WHERE "Driver" = 'pierre levegh' | CREATE TABLE INST, Here is a database schema( table schema); | what is the grid when the driver is pierre levegh?It is not neccessary to use all the tables. |
SELECT record FROM table_name_12 WHERE loss = "alexander (5-2)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the record of the team that lost to Alexander (5-2)?It is not neccessary to use all the tables. |
SELECT Self employed FROM table WHERE Investment income = 2% AND Other income sources = 3% AND Employment ( salaries & wages) = 71% | CREATE TABLE INST, Here is a database schema( table schema); | Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?.It is not neccessary to use all the tables. |
SELECT winners FROM table_name_92 WHERE season = 2010 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the winner in 2010?It is not neccessary to use all the tables. |
SELECT MIN(pick) FROM table_name_23 WHERE round > 12 AND position = "kicker" | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest pick for the kicker after round 12?It is not neccessary to use all the tables. |
SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = "2001 (74th)" | CREATE TABLE INST, Here is a database schema( table schema); | How many languages for the 2001 (74th) awards?It is not neccessary to use all the tables. |
SELECT MIN Laps FROM table WHERE Time/Retired = +2 laps AND Grid = 20 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the lowest Laps with a time/retired of +2 Laps and Grid of 20.It is not neccessary to use all the tables. |
SELECT "Opponent" FROM table_48834 WHERE "Points" > '5' AND "Attendance" > '13,567' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?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.