sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Date FROM table WHERE Score = 9-2 | CREATE TABLE INST, Here is a database schema( table schema); | Name the date with score of 9-2.It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table WHERE Date = august 2 | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance on August 2?.It is not neccessary to use all the tables. |
SELECT "athlete" FROM table_204_262 WHERE "rank" = 10 | CREATE TABLE INST, Here is a database schema( table schema); | which athlete belongs to rank 10 ?It is not neccessary to use all the tables. |
SELECT "Fraction" FROM table_36623 WHERE "Parentheses" = '0.(3)' | CREATE TABLE INST, Here is a database schema( table schema); | What fraction has parentheses of 0.(3)?It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Points < 408.8 AND Placings = 160 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Rank of the couple with less than 408.8 Points and Placings of 160?.It is not neccessary to use all the tables. |
SELECT MAX("First elected") FROM table_6559 WHERE "District" = 'illinois 3' | CREATE TABLE INST, Here is a database schema( table schema); | Which First elected has a District of illinois 3?It is not neccessary to use all the tables. |
SELECT MAX Year FROM table WHERE Nation represented = philippines | CREATE TABLE INST, Here is a database schema( table schema); | What is the latest result where a person from the Philippines won?.It is not neccessary to use all the tables. |
SELECT COUNT Pop. density People/km 2 FROM table WHERE Member State = Czech Republic | CREATE TABLE INST, Here is a database schema( table schema); | How many measurements of the Czech Republic's population density are recorded in this table?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Week = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What Date is Week 1?.It is not neccessary to use all the tables. |
SELECT "Air Date" FROM table_16563 WHERE "18-49 (Rating/Share)" = '3.3/9' | CREATE TABLE INST, Here is a database schema( table schema); | Which air date had the 18-49 rating/share of 3.3/9It is not neccessary to use all the tables. |
SELECT MAX(place) FROM table_name_6 WHERE artist = "henri dès" AND points < 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest place of a song by Henri Dès that has fewer than 8 points?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Date = april 7 | CREATE TABLE INST, Here is a database schema( table schema); | What was the record on April 7?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge" | CREATE TABLE INST, Here is a database schema( table schema); | Where did the cable-stayed Badong Bridge open in 2005?It is not neccessary to use all the tables. |
SELECT Constructor FROM table WHERE Grid = 8 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the constructor with the grid of 8?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Inn. = 9th | CREATE TABLE INST, Here is a database schema( table schema); | What team had the record asscoiated with the 9th inning?.It is not neccessary to use all the tables. |
SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = "TV Nova Website" | CREATE TABLE INST, Here is a database schema( table schema); | how many local title with televbeingion network being tv nova websiteIt is not neccessary to use all the tables. |
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-71495')) AND DATETIME(treatment.treatmenttime) <= DATETIME(CU... | CREATE TABLE INST, Here is a database schema( table schema); | when patient 006-71495 first got an operation until 3 years ago?It is not neccessary to use all the tables. |
SELECT representative FROM table_26131768_4 WHERE residence = "Chagrin Falls" | CREATE TABLE INST, Here is a database schema( table schema); | If the residence is Chagrin falls who is the representative?It is not neccessary to use all the tables. |
SELECT MAX(_number) FROM table_12803263_1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number?It is not neccessary to use all the tables. |
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 2801 | CREATE TABLE INST, Here is a database schema( table schema); | In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?It is not neccessary to use all the tables. |
SELECT COUNT Avg. FROM table WHERE Long = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average for the RB with an 8 yard long?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_49 WHERE player = "rocco mediate" | CREATE TABLE INST, Here is a database schema( table schema); | What Country is Rocco Mediate from?It is not neccessary to use all the tables. |
SELECT circuit FROM table_name_16 WHERE championship = "2001 nascar winston cup series" | CREATE TABLE INST, Here is a database schema( table schema); | The 2001 NASCAR Winston Cup Series championship has what has a circuit?It is not neccessary to use all the tables. |
SELECT 2008/09 FROM table WHERE IME Exchange (Including spot, credit and forward transactions) = Agricultural - Volume (thousand tons) | CREATE TABLE INST, Here is a database schema( table schema); | When ime exchange (including spot, credit and forward transactions) is agricultural - volume (thousand tons) what is 2008/09?.It is not neccessary to use all the tables. |
SELECT mens_singles FROM table_12266757_1 WHERE mixed_doubles = "Stellan Mohlin Kerstin Ståhl , AIK" | CREATE TABLE INST, Here is a database schema( table schema); | Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl Aik?It is not neccessary to use all the tables. |
SELECT MAX(byes) FROM table_name_13 WHERE benalla_dfl = "longwood" AND against < 1944 | CREATE TABLE INST, Here is a database schema( table schema); | What's the most number of byes for Longwood having less than 1944 against?It is not neccessary to use all the tables. |
SELECT Weight (kg) FROM table WHERE Race = Ranvet Stakes | CREATE TABLE INST, Here is a database schema( table schema); | What was the weight in kg on the day of the race at Ranvet Stakes?.It is not neccessary to use all the tables. |
SELECT Institution FROM table WHERE Team Nickname = Colonials | CREATE TABLE INST, Here is a database schema( table schema); | Which school has the mascot of the Colonials?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Opponent = detroit lions | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance in the game against the Detroit Lions?.It is not neccessary to use all the tables. |
SELECT location FROM table_26166836_1 WHERE road_race = "Istanbul Marathon" | CREATE TABLE INST, Here is a database schema( table schema); | Where was the istanbul marathon?It is not neccessary to use all the tables. |
SELECT Hanja FROM table WHERE McCune-Reischauer = chŏn | CREATE TABLE INST, Here is a database schema( table schema); | What is the Hanja for McCune-Reischauer of chŏn?.It is not neccessary to use all the tables. |
SELECT MIN Assists FROM table | CREATE TABLE INST, Here is a database schema( table schema); | List the lowest number of assists..It is not neccessary to use all the tables. |
SELECT rochester FROM table_name_39 WHERE syracuse = "cardiff dark gray shale" AND albany = "(mt. marion fm.)" | CREATE TABLE INST, Here is a database schema( table schema); | What is Rochester when Syracuse is Cardiff Dark Gray Shale and when Albany is (Mt. Marion Fm.)?It is not neccessary to use all the tables. |
SELECT demographic.diagnosis, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | CREATE TABLE INST, Here is a database schema( table schema); | what is primary disease and lab test name of subject id 2560?It is not neccessary to use all the tables. |
SELECT SUM League goals FROM table WHERE Player = john o'flynn | CREATE TABLE INST, Here is a database schema( table schema); | How many total League goals does Player John O'Flynn have?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Player = ted schulz | CREATE TABLE INST, Here is a database schema( table schema); | Which country has the player Ted Schulz?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4" | CREATE TABLE INST, Here is a database schema( table schema); | Who were the candidates in the Kentucky 4 voting district?It is not neccessary to use all the tables. |
SELECT MAX(wins) FROM table_name_55 WHERE goals_for > 39 AND points < 25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Wins when Goals For is greater than 39 and when Points is less than 25?It is not neccessary to use all the tables. |
SELECT MAX Laps FROM table WHERE Grid = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What are the highest number of laps for grid 8?.It is not neccessary to use all the tables. |
SELECT Date of vacancy FROM table WHERE Team = Manchester City AND Replaced by = Mark Hughes | CREATE TABLE INST, Here is a database schema( table schema); | What is the date of vacancy when the team is manchester city and replaced by is mark hughes?.It is not neccessary to use all the tables. |
SELECT COUNT Average FROM table WHERE Economy Rate = 2.26 | CREATE TABLE INST, Here is a database schema( table schema); | How many averages are there when the economy rate is 2.26?.It is not neccessary to use all the tables. |
SELECT "Phase" FROM table_72342 WHERE "New entries this round" = '12' | CREATE TABLE INST, Here is a database schema( table schema); | The new entries this round was shown to be 12, in which phase would you find this?It is not neccessary to use all the tables. |
SELECT CFL Team FROM table WHERE Player = peter hogarth | CREATE TABLE INST, Here is a database schema( table schema); | which CFL team has a player called Peter Hogarth?.It is not neccessary to use all the tables. |
SELECT MAX(yes_votes) FROM table_256286_19 WHERE no_votes = 61307 | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest number of yest votes for the measure with 61307 no votes?It is not neccessary to use all the tables. |
SELECT date FROM table_name_31 WHERE total = "56–75" | CREATE TABLE INST, Here is a database schema( table schema); | What date was the total 56–75?It is not neccessary to use all the tables. |
SELECT Grand Finalist FROM table WHERE Grand Finalists = jonathan loh, peterson poon, nathan santos | CREATE TABLE INST, Here is a database schema( table schema); | who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?.It is not neccessary to use all the tables. |
SELECT MIN Game FROM table WHERE Opponent = minnesota north stars AND February < 25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest numbered game with an opponent of Minnesota North Stars earlier than February 25?.It is not neccessary to use all the tables. |
SELECT Year (Ceremony) FROM table WHERE Result = Not Nominated AND Director = Alberto Aruelo | CREATE TABLE INST, Here is a database schema( table schema); | Name the year for not nominated for alberto aruelo.It is not neccessary to use all the tables. |
SELECT 2007 FROM table WHERE 1999 = — AND Model = seat mii | CREATE TABLE INST, Here is a database schema( table schema); | what kind of 2007 has a 1999 of —, and a Model of seat mii?.It is not neccessary to use all the tables. |
SELECT play_by_play FROM table_name_11 WHERE color_commentator_s_ = "eric wynalda" AND year < 2005 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Play-by-play when the color commentator was Eric Wynalda earlier than 2005?It is not neccessary to use all the tables. |
SELECT Music AS director FROM table_name_7 WHERE year = 1971 AND movie__in_kannada__ = "kalyani" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the music director in 1971 for the movie Kalyani?It is not neccessary to use all the tables. |
SELECT 2012 FROM table_name_36 WHERE tournament = "us open" | CREATE TABLE INST, Here is a database schema( table schema); | Name the 2012 for us openIt is not neccessary to use all the tables. |
SELECT Date of death FROM table WHERE Name = charles iii | CREATE TABLE INST, Here is a database schema( table schema); | When did Charles III die?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Location = Gainesville, FL | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance of the bowl game in Gainesville, Fl?.It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Race 3 = 10 | CREATE TABLE INST, Here is a database schema( table schema); | What is Driver, when Race 2 is "10"?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Points > 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is Country, when Points are more than 12?.It is not neccessary to use all the tables. |
SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has?It is not neccessary to use all the tables. |
SELECT record FROM table_13480122_5 WHERE date = "January 21" | CREATE TABLE INST, Here is a database schema( table schema); | what are all the record where date is january 21It is not neccessary to use all the tables. |
SELECT cfl_team FROM table_10975034_5 WHERE player = "Ryan Folk" | CREATE TABLE INST, Here is a database schema( table schema); | What is the cfl team with ryan folk?It is not neccessary to use all the tables. |
SELECT home FROM table_name_36 WHERE away = "1–1" | CREATE TABLE INST, Here is a database schema( table schema); | Which Home has an Away of 1–1?It is not neccessary to use all the tables. |
SELECT MAX(won) FROM table_15331868_1 WHERE difference = "1" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number won with a difference of 1?It is not neccessary to use all the tables. |
SELECT Format FROM table WHERE Catalog = rtradlp491 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Format of the release with Catalog number RTRADLP491?.It is not neccessary to use all the tables. |
SELECT Electorate FROM table WHERE Member = rex connor | CREATE TABLE INST, Here is a database schema( table schema); | Who was the electorate when the member was rex connor?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Out of < 149 AND Rank = 18 | CREATE TABLE INST, Here is a database schema( table schema); | Which Name had a Rank of 18 Out of a number smaller than 149?.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.dod_year <= "2131.0" AND lab.label = "White Blood Cells" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose year of death is less than or equal to 2131 and lab test name is white blood cells?It is not neccessary to use all the tables. |
SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = "altrincham" | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?It is not neccessary to use all the tables. |
SELECT date FROM table_name_81 WHERE home_team = "wimbledon" | CREATE TABLE INST, Here is a database schema( table schema); | On what date was Wimbledon the home team?It is not neccessary to use all the tables. |
SELECT group FROM table_name_42 WHERE team = "dolphins" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Dolphins Group?It is not neccessary to use all the tables. |
SELECT COUNT Torque (Nm)/rpm FROM table WHERE Model/Engine = 1.6 Duratec | CREATE TABLE INST, Here is a database schema( table schema); | The 1.6 Duratec model/engine has how many torque formulas?.It is not neccessary to use all the tables. |
SELECT DISTINCT donator_name FROM endowment | CREATE TABLE INST, Here is a database schema( table schema); | Show all donor names.It is not neccessary to use all the tables. |
SELECT place FROM table_name_1 WHERE to_par = "−1" AND player = "don pooley" | CREATE TABLE INST, Here is a database schema( table schema); | Which Place has a To par of −1 and don pooley?It is not neccessary to use all the tables. |
SELECT high_points FROM table_name_47 WHERE game < 80 AND score = "l 123–142" | CREATE TABLE INST, Here is a database schema( table schema); | What high points did a game earlier than 80 have with a score of l 123–142?It is not neccessary to use all the tables. |
SELECT MAX(grid) FROM table_name_75 WHERE driver = "alexander wurz" AND laps < 25 | CREATE TABLE INST, Here is a database schema( table schema); | What was Alexander Wurz's highest grid with laps of less than 25?It is not neccessary to use all the tables. |
SELECT record FROM table_name_36 WHERE home = "buffalo" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Record when Buffalo is at Home?It is not neccessary to use all the tables. |
SELECT MAX Heat FROM table WHERE Country = united kingdom AND React < 0.232 | CREATE TABLE INST, Here is a database schema( table schema); | what is the heat when the country is united kingdom and react is less than 0.232?.It is not neccessary to use all the tables. |
SELECT event FROM table_name_42 WHERE time = "6:37.73" | CREATE TABLE INST, Here is a database schema( table schema); | What event had a time of 6:37.73?It is not neccessary to use all the tables. |
SELECT cfl_team FROM table_name_12 WHERE college = "montreal" AND player = "marc trepanier" | CREATE TABLE INST, Here is a database schema( table schema); | Which CFL Team has a College of montreal and a Player of marc trepanier?It is not neccessary to use all the tables. |
SELECT "College" FROM table_65462 WHERE "Position" = 'quarterback' | CREATE TABLE INST, Here is a database schema( table schema); | What college was the quarterback from?It is not neccessary to use all the tables. |
SELECT country FROM table_name_26 WHERE career = "1989–2004" | CREATE TABLE INST, Here is a database schema( table schema); | What Country has a Career of 1989–2004?It is not neccessary to use all the tables. |
SELECT record FROM table_name_92 WHERE date = "may 26" | CREATE TABLE INST, Here is a database schema( table schema); | On May 26 what was the team's record?It is not neccessary to use all the tables. |
SELECT position FROM table_name_98 WHERE series = "macau grand prix" AND season < 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?It is not neccessary to use all the tables. |
SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas" | CREATE TABLE INST, Here is a database schema( table schema); | what's the kerry # with county being ness county kansasIt is not neccessary to use all the tables. |
SELECT SUM(gold) FROM table_name_2 WHERE total < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total gold with a total less than 1?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Score = 24–28 | CREATE TABLE INST, Here is a database schema( table schema); | What was the venue when the score was 24–28?.It is not neccessary to use all the tables. |
SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22 | CREATE TABLE INST, Here is a database schema( table schema); | Name the average goals against for draws of 8 and wins more than 22 with losses less than 12It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Candidates = Robert L. F. Sikes (D) Unopposed | CREATE TABLE INST, Here is a database schema( table schema); | what is the result where the candidates is robert l. f. sikes (d) unopposed?.It is not neccessary to use all the tables. |
SELECT captain FROM table_18461635_1 WHERE team = "Gloucestershire Gladiators" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the captain of the Gloucestershire Gladiators?It is not neccessary to use all the tables. |
SELECT Assistant Principal (2013-2014) FROM table WHERE Principal (2013-2014) = Cort Monroe | CREATE TABLE INST, Here is a database schema( table schema); | Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe?.It is not neccessary to use all the tables. |
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20066 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartev... | CREATE TABLE INST, Here is a database schema( table schema); | tell me the change in weight in patient 20066 second measured on the first hospital visit compared to the first value measured on the first hospital visit?It is not neccessary to use all the tables. |
SELECT capacity__thousands_of_metric_tons_ FROM table_name_67 WHERE county = "gila" AND mine = "pinto valley" | CREATE TABLE INST, Here is a database schema( table schema); | What is the capacity of the Pinto Valley mine in Gila county?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = 16 december 1978 AND Tie no = 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the score for the date of 16 december 1978, with a tie no of 9?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team = torquay united | CREATE TABLE INST, Here is a database schema( table schema); | What date was the game that home team torquay united played?.It is not neccessary to use all the tables. |
SELECT Label FROM table WHERE Catalog = crg3p-90054 | CREATE TABLE INST, Here is a database schema( table schema); | What is the label for catalog number CRG3P-90054?.It is not neccessary to use all the tables. |
SELECT Population density (per km²) FROM table WHERE Change (%) = -6.7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the population density (per km) that has -6.7 as the change (%)?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld" | CREATE TABLE INST, Here is a database schema( table schema); | Name the result in 2010 for bgm cyworldIt is not neccessary to use all the tables. |
SELECT Call sign FROM table WHERE Branding = jack fm | CREATE TABLE INST, Here is a database schema( table schema); | What's the call sign for Jack FM?.It is not neccessary to use all the tables. |
SELECT Founded FROM table WHERE Enrollment (2005) = 963 | CREATE TABLE INST, Here is a database schema( table schema); | What year is the founding year, for the school that had an enrollment in 2005 of 963?.It is not neccessary to use all the tables. |
SELECT MIN 1st Runner-up FROM table WHERE Rank > 3 AND 6th Runner-up > 0 AND 5th Runner-up < 1 | CREATE TABLE INST, Here is a database schema( table schema); | Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up?.It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Incumbent = Cardiss Collins | CREATE TABLE INST, Here is a database schema( table schema); | To what party does Cardiss Collins belong?.It is not neccessary to use all the tables. |
SELECT MAX(losses) FROM table_name_52 WHERE goals_for = 45 AND played < 38 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest amount of losses when there were 45 goals and the play was smaller than 38?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.