sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT Opponent FROM table WHERE Record = 6-9 | CREATE TABLE INST, Here is a database schema( table schema); | What opponent has a record of 6-9?.It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Team #2 = gomel | CREATE TABLE INST, Here is a database schema( table schema); | What round has Team #2 Gomel?.It is not neccessary to use all the tables. |
SELECT replaced_by FROM table_17327458_1 WHERE date_of_appointment = "11 July" | CREATE TABLE INST, Here is a database schema( table schema); | Who was replaced on 11 July?It is not neccessary to use all the tables. |
SELECT country FROM table_name_46 WHERE total = 295 | CREATE TABLE INST, Here is a database schema( table schema); | Which country had a total of 295?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.diagnosis = "STERNAL WOUND INFECTION" AND lab."CATEGORY" = "Blood Gas" | CREATE TABLE INST, Here is a database schema( table schema); | what is the total number of patients who had sternal wound infection and lab test for blood gas?It is not neccessary to use all the tables. |
SELECT MAX(rank) FROM table_name_21 WHERE county_and_state = "silver bow county, montana" AND capacity__thousands_of_metric_tons_ > 45 | CREATE TABLE INST, Here is a database schema( table schema); | In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?It is not neccessary to use all the tables. |
SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find id of the candidate who most recently accessed the course?It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Partner = sandrine testud AND Date = november 14, 1999 | CREATE TABLE INST, Here is a database schema( table schema); | Which surface had a partner of Sandrine Testud on November 14, 1999?.It is not neccessary to use all the tables. |
SELECT railway_number_s_ FROM table_name_47 WHERE year_s__of_manufacture = "1905–1906" | CREATE TABLE INST, Here is a database schema( table schema); | What are the railway number(s) for year(s) of manufacture of 1905–1906?It is not neccessary to use all the tables. |
SELECT opponent_in_the_final FROM table_name_47 WHERE date = "october 14, 1996" | CREATE TABLE INST, Here is a database schema( table schema); | On October 14 1996 who was the opponent in the final?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Tournament = indian wells masters | CREATE TABLE INST, Here is a database schema( table schema); | For the Indian Wells Masters tournament, what was the country?.It is not neccessary to use all the tables. |
SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = "tyrone thompson" AND flt_goals > 0 | CREATE TABLE INST, Here is a database schema( table schema); | How many league cup goals for tyrone thompson with 0 FLT goals?It is not neccessary to use all the tables. |
SELECT High rebounds FROM table WHERE Record = 27-54 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the highest rebounds in the game where the record was 27-54?.It is not neccessary to use all the tables. |
SELECT Hometown FROM table WHERE Position = pr | CREATE TABLE INST, Here is a database schema( table schema); | What is the hometown of the player who plays pr?.It is not neccessary to use all the tables. |
SELECT SUM Top 10 FROM table WHERE Avg. Start = 18.9 | CREATE TABLE INST, Here is a database schema( table schema); | How many times did the team with an average start of 18.9 make the top 10?.It is not neccessary to use all the tables. |
SELECT MAX Wins FROM table WHERE Goals Against = 37 AND Ties > 0 | CREATE TABLE INST, Here is a database schema( table schema); | For teams with more than 0 ties and goals against of 37, how many wins were tallied?.It is not neccessary to use all the tables. |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40707 AND admissions.dischtime IS NULL)) AND transfers.wardid = 33 ORDER BY transfers.intime DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | how many hours have elapsed since patient 40707's last stay in the ward 33 during this hospital encounter?It is not neccessary to use all the tables. |
SELECT MAX Renewable electricity (GW•h) FROM table WHERE State = Delaware | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum renewable energy (gw×h) for the state of Delaware?.It is not neccessary to use all the tables. |
SELECT 2nd leg FROM table WHERE Home (1st leg) = Boca Juniors | CREATE TABLE INST, Here is a database schema( table schema); | Who was in 2nd leg when Boca Juniors was in home (1st leg)?.It is not neccessary to use all the tables. |
SELECT Title (French) / (English) FROM table WHERE B B = Corresponds to TF1s broadcast schedule. = 20/16 | CREATE TABLE INST, Here is a database schema( table schema); | what is the title of the episode where b b is 20/16.It is not neccessary to use all the tables. |
SELECT MIN Round FROM table WHERE Overall > 186 AND Position = defensive end | CREATE TABLE INST, Here is a database schema( table schema); | During which round was the first defensive end with an overall rank larger than 186 drafted?.It is not neccessary to use all the tables. |
SELECT time FROM table_name_99 WHERE attendance = "22,329" | CREATE TABLE INST, Here is a database schema( table schema); | What time was the match that had an attendance of 22329?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Opponents = misa eguchi eri hozumi | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the score of misa eguchi eri hozumi.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "25002" | CREATE TABLE INST, Here is a database schema( table schema); | provide me with the number of male patients who had diagnosis icd9 code 25002.It is not neccessary to use all the tables. |
SELECT MIN(games_played) FROM table_22993636_5 WHERE steals = 50 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of games played by the player with 50 steals?It is not neccessary to use all the tables. |
SELECT country FROM table_name_71 WHERE icao = "zgha" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the country with ICAO of zghaIt is not neccessary to use all the tables. |
SELECT horse FROM table_name_5 WHERE rank = "69" | CREATE TABLE INST, Here is a database schema( table schema); | what is the horse that ranked 69?It is not neccessary to use all the tables. |
SELECT SUM Capacity FROM table WHERE Team = denizlispor | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Capacity, when Team is "Denizlispor"?.It is not neccessary to use all the tables. |
SELECT player FROM table_2781227_4 WHERE college_junior_club_team = "Brandon Wheat Kings (WHL)" | CREATE TABLE INST, Here is a database schema( table schema); | For college/junior/club team is brandon wheat kings (whl) mention all the player nameIt is not neccessary to use all the tables. |
SELECT media_type FROM table_23829490_1 WHERE genre = "Dub" | CREATE TABLE INST, Here is a database schema( table schema); | What is every media type for the Dub genre?It is not neccessary to use all the tables. |
SELECT COUNT(laps) FROM table_name_25 WHERE start = "1" | CREATE TABLE INST, Here is a database schema( table schema); | How many laps have 1 as the start?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_77 WHERE 2009 = "1r" | CREATE TABLE INST, Here is a database schema( table schema); | Which tournament had a 2009 result of 1R?It is not neccessary to use all the tables. |
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Venue = antigua recreation ground | CREATE TABLE INST, Here is a database schema( table schema); | When did a Venue of Antigua Recreation Ground happen?.It is not neccessary to use all the tables. |
SELECT region FROM table_name_76 WHERE date = "november 18, 2002" | CREATE TABLE INST, Here is a database schema( table schema); | What is the region for the date November 18 2002?It is not neccessary to use all the tables. |
SELECT score FROM table_name_30 WHERE match_no = "15" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of match 15?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_17 WHERE date = "september 28" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?It is not neccessary to use all the tables. |
SELECT grades FROM table WHERE 2007 API = 734 | CREATE TABLE INST, Here is a database schema( table schema); | Which grades have a 2007 API of 734?.It is not neccessary to use all the tables. |
SELECT Placement in Miss Universe FROM table WHERE Delegate = janine mari raymundo tugonon | CREATE TABLE INST, Here is a database schema( table schema); | Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?.It is not neccessary to use all the tables. |
SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins were there when the byes were more than 3?It is not neccessary to use all the tables. |
SELECT record FROM table_23346983_1 WHERE opponent = "Army" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record for the Orangemen when they played against Army?It is not neccessary to use all the tables. |
SELECT COUNT(3 AS rd_runner_up) FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa" | CREATE TABLE INST, Here is a database schema( table schema); | List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?It is not neccessary to use all the tables. |
SELECT lead FROM table_name_11 WHERE skip = "jamie meikle" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the lead when Jamie Meikle was the skip?It is not neccessary to use all the tables. |
SELECT pick FROM table_name_34 WHERE player = "dexter bailey" | CREATE TABLE INST, Here is a database schema( table schema); | What is Pick when Player is "Dexter Bailey"?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009) | CREATE TABLE INST, Here is a database schema( table schema); | How many drivers did not participate in the races held in 2009?It is not neccessary to use all the tables. |
SELECT Test-taker FROM table WHERE Challenge = Night Driving | CREATE TABLE INST, Here is a database schema( table schema); | Who had the challenge of night driving?.It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Date = 22 may | CREATE TABLE INST, Here is a database schema( table schema); | What was the course type on 22 May?.It is not neccessary to use all the tables. |
SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY COUNT(*) DESC LIMIT 2 | CREATE TABLE INST, Here is a database schema( table schema); | What are the ids of the two department store chains with the largest number of department stores?It is not neccessary to use all the tables. |
SELECT "Gender" FROM table_80146 WHERE "Candidate's Name" = 'luc desnoyers' | CREATE TABLE INST, Here is a database schema( table schema); | What gender is Luc Desnoyers?It is not neccessary to use all the tables. |
SELECT Company FROM table WHERE Director = simon stone AND Year < 2011 | CREATE TABLE INST, Here is a database schema( table schema); | What company does Simon Stone direct earlier than 2011?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the player from Malaysia Kuala Lumpur in Index f8?It is not neccessary to use all the tables. |
SELECT COUNT Game Site FROM table WHERE Opponent = Chicago Bears | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of game sites for chicago bears.It is not neccessary to use all the tables. |
SELECT MIN(population) FROM table_name_44 WHERE area = 1 OFFSET 126.84 | CREATE TABLE INST, Here is a database schema( table schema); | What is the population with an area of 1126.84?It is not neccessary to use all the tables. |
SELECT MIN Episode # FROM table WHERE Title = "Breakthrough" "Burēku surū" (ブレーク·スルー) | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of theWhat is the number of the chapter that is called "breakthrough" "burēku surū" (ブレーク·スルー)?.It is not neccessary to use all the tables. |
SELECT Mountains classification FROM table WHERE Points classification = alessandro petacchi AND General classification = danilo di luca | CREATE TABLE INST, Here is a database schema( table schema); | What's the mountains classification when the points classification is Alessandro Petacchi and the general classification is Danilo Di Luca?.It is not neccessary to use all the tables. |
SELECT Regular season / Preseason FROM table WHERE Date = august 25, 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What type of regular season/preseason game was played on August 25, 2007?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Record = 16–14–6 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score with a 16–14–6 record?.It is not neccessary to use all the tables. |
SELECT Date of birth FROM table WHERE Party = republican AND House term = 1863-1865 | CREATE TABLE INST, Here is a database schema( table schema); | What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?.It is not neccessary to use all the tables. |
SELECT NCAAT Record FROM table WHERE Date = June 22 | CREATE TABLE INST, Here is a database schema( table schema); | What is the June 22 ncaat baseball record for Fresno State Bulldogs?.It is not neccessary to use all the tables. |
SELECT Settlement FROM table WHERE Cyrillic Name Other Names = Панонија | CREATE TABLE INST, Here is a database schema( table schema); | How many settlements have as their cyrillic name and other names панонија?.It is not neccessary to use all the tables. |
SELECT Chassis FROM table WHERE Year = 1954 | CREATE TABLE INST, Here is a database schema( table schema); | Which chasis was in the year 1954?.It is not neccessary to use all the tables. |
SELECT MIN Wins FROM table WHERE Country = australia | CREATE TABLE INST, Here is a database schema( table schema); | What are the lowest wins for Australia?.It is not neccessary to use all the tables. |
SELECT MIN Points FROM table WHERE Year = 1981 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest number of points for a 1981 team?.It is not neccessary to use all the tables. |
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29" | CREATE TABLE INST, Here is a database schema( table schema); | How many data are on points for if the percentage is 94.29?It is not neccessary to use all the tables. |
SELECT opponent FROM table_13258876_2 WHERE attendance = 61615 | CREATE TABLE INST, Here is a database schema( table schema); | Who did the Seahawks play when the listed attendance was 61615?It is not neccessary to use all the tables. |
SELECT poor_law_union FROM table_30120633_1 WHERE townland = "Coolkirky" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Poor Law Union for Coolkirky?It is not neccessary to use all the tables. |
SELECT player FROM table_name_5 WHERE club = "omonia nicosia" | CREATE TABLE INST, Here is a database schema( table schema); | Which player was in the Omonia Nicosia club?It is not neccessary to use all the tables. |
SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_supporters_shield_runner_up = "Chivas USA" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?It is not neccessary to use all the tables. |
SELECT Year(s) won FROM table WHERE Finish = t27 | CREATE TABLE INST, Here is a database schema( table schema); | When the finish is t27 what is the year (s) won?.It is not neccessary to use all the tables. |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | CREATE TABLE INST, Here is a database schema( table schema); | show me flights from DENVER to PHILADELPHIAIt is not neccessary to use all the tables. |
SELECT constructor FROM table_1140082_2 WHERE race = "Swedish Grand Prix" | CREATE TABLE INST, Here is a database schema( table schema); | What is the constructor of the Swedish Grand Prix?It is not neccessary to use all the tables. |
SELECT "Record" FROM table_46398 WHERE "Team" = '@ atlanta' | CREATE TABLE INST, Here is a database schema( table schema); | What is Record, when Team is '@ Atlanta'?It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Score = 75-70=145 AND Country = new zealand | CREATE TABLE INST, Here is a database schema( table schema); | What is the To par of the Player from New Zealand who had a Score of 75-70=145?.It is not neccessary to use all the tables. |
SELECT rank FROM table_name_25 WHERE s_wicket = "65" | CREATE TABLE INST, Here is a database schema( table schema); | What Rank has a 65 s Wicket?It is not neccessary to use all the tables. |
SELECT COUNT Silver FROM table WHERE Gold > 0 AND Rank < 2 | CREATE TABLE INST, Here is a database schema( table schema); | how many times is gold more than 0 and the rank less than 2?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_48 WHERE tournament = "melbourne" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Outcome of the Melbourne Tournament?It is not neccessary to use all the tables. |
SELECT New/Returning/Same Network FROM table WHERE Show = This Week in Baseball | CREATE TABLE INST, Here is a database schema( table schema); | What is the new/returning/same network name for This Week in Baseball?.It is not neccessary to use all the tables. |
SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total of Golds with more bronzes than 1 and totaled larger than 4?It is not neccessary to use all the tables. |
SELECT _number FROM table_28194879_1 WHERE production_code = "PABF05" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number in season of the episode whose production code is pabf05?It is not neccessary to use all the tables. |
SELECT MAX Total EVM Votes FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest total for evm votes.It is not neccessary to use all the tables. |
SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 2008" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest episode number with an original airdate on 8 June 2008?It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Driver = Ed Carpenter | CREATE TABLE INST, Here is a database schema( table schema); | What is the time/retired if the driver is Ed Carpenter?.It is not neccessary to use all the tables. |
SELECT "site" FROM table_204_294 ORDER BY "date" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | the nebraska cornhuskers last game was played whereIt is not neccessary to use all the tables. |
SELECT Election FROM table WHERE 2nd Member = sir alexander fuller-acland-hood, bt | CREATE TABLE INST, Here is a database schema( table schema); | Which election had Sir Alexander Fuller-Acland-Hood, bt as the 2nd member?.It is not neccessary to use all the tables. |
SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 | CREATE TABLE INST, Here is a database schema( table schema); | find the ids of reviewers who did not give 4 star.It is not neccessary to use all the tables. |
SELECT COUNT(bronze) FROM table_name_12 WHERE silver > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total when bronze has a silver larger than 2?It is not neccessary to use all the tables. |
SELECT last_5 FROM table_name_31 WHERE rank = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Last 5 has a Rank of 7?It is not neccessary to use all the tables. |
SELECT AVG Losses FROM table WHERE Against < 1018 AND Wins < 14 | CREATE TABLE INST, Here is a database schema( table schema); | Which Losses have an Against smaller than 1018, and Wins smaller than 14?.It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Competition = european cup AND Round = qf | CREATE TABLE INST, Here is a database schema( table schema); | Which Home has a Competition of european cup, and a Round of qf?.It is not neccessary to use all the tables. |
SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = "6th" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of traditional chinese for album number 6thIt is not neccessary to use all the tables. |
SELECT Opinion Research Centre (OPC) FROM table WHERE Party = conservative | CREATE TABLE INST, Here is a database schema( table schema); | What is Opinion Research Centre (OPC), when Party is Conservative?.It is not neccessary to use all the tables. |
SELECT "nation" FROM table_203_377 WHERE id = (SELECT id FROM table_203_377 WHERE "nation" = 'algeria') - 1 | CREATE TABLE INST, Here is a database schema( table schema); | the nation above algeriaIt is not neccessary to use all the tables. |
SELECT Film title used in nomination FROM table WHERE Language = norwegian | CREATE TABLE INST, Here is a database schema( table schema); | Name the film title that was norwegian.It is not neccessary to use all the tables. |
SELECT visitor FROM table_name_96 WHERE date = "march 21" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the visitor on march 21?It is not neccessary to use all the tables. |
SELECT Platform FROM table WHERE Latest stable release = 5.0.3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the platform for the latest release 5.0.3?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team score = 10.8 (64) | CREATE TABLE INST, Here is a database schema( table schema); | What is Home Team, when Away Team Score is 10.8 (64)?.It is not neccessary to use all the tables. |
SELECT result FROM table_16710742_3 WHERE opponent = "New Orleans Saints" | CREATE TABLE INST, Here is a database schema( table schema); | In 1984 Did the Falcons have a win or loss against the New Orleans Saints?It is not neccessary to use all the tables. |
SELECT home FROM table_name_80 WHERE date = "april 15" | CREATE TABLE INST, Here is a database schema( table schema); | On April 15 who is the Home team?It is not neccessary to use all the tables. |
SELECT MIN(game) FROM table_name_93 WHERE record = "3–33" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest game number that has a Record of 3–33?It is not neccessary to use all the tables. |
SELECT bullet FROM table_name_28 WHERE length = "33.78 (1.33)" | CREATE TABLE INST, Here is a database schema( table schema); | Which bullet has a Length of 33.78 (1.33)?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.