sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT MIN Silver FROM table WHERE Nation = vietnam | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest silver from Vietnam?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_32 WHERE competition = "european race walking cup" | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has a Competition of european race walking cup?It is not neccessary to use all the tables. |
SELECT MAX Game FROM table WHERE Date = December 19 | CREATE TABLE INST, Here is a database schema( table schema); | What game happened on December 19?.It is not neccessary to use all the tables. |
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval" | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance when the VFL played Junction Oval?It is not neccessary to use all the tables. |
SELECT AVG(enrollment) FROM table_name_55 WHERE team_nickname = "wolverines" AND founded > 1817 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average enrollment when the team nickname is wolverines and founded is after 1817?It is not neccessary to use all the tables. |
SELECT General classification FROM table WHERE Team classification = la vie claire AND Stage = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the classification with a Team classification of la vie claire and a Stage of 12?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_36 WHERE place = "t2" AND player = "jeff maggert" | CREATE TABLE INST, Here is a database schema( table schema); | What's the score of Jeff Maggert in T2 place?It is not neccessary to use all the tables. |
SELECT COUNT Round FROM table WHERE Position = wide receiver AND Overall > 145 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total round for a wide receiver with an overall of more than 145?.It is not neccessary to use all the tables. |
SELECT ICAO FROM table WHERE City = manchester | CREATE TABLE INST, Here is a database schema( table schema); | Which ICAO's city is Manchester?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Home team = footscray | CREATE TABLE INST, Here is a database schema( table schema); | What did Footscray score at the home game?.It is not neccessary to use all the tables. |
SELECT COUNT(losses) FROM table_name_50 WHERE played > 30 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of losses for the over 30 games played?It is not neccessary to use all the tables. |
SELECT AVG(number) FROM table_name_90 WHERE name = "cooper, c. kenneth" AND year_end > 1984 | CREATE TABLE INST, Here is a database schema( table schema); | Which Number has a Name of cooper c. kenneth and a Year End larger than 1984?It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Course = sestri levante to riomaggiore | CREATE TABLE INST, Here is a database schema( table schema); | What's the type on Sestri Levante to Riomaggiore?.It is not neccessary to use all the tables. |
SELECT COUNT Hometown FROM table WHERE Result = Hired by Serepisos | CREATE TABLE INST, Here is a database schema( table schema); | How many times was the result is hired by serepisos?.It is not neccessary to use all the tables. |
SELECT SUM Quantity FROM table WHERE Introduced = 1984 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of quantity when the introductory year was 1984?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_58 WHERE date = "july 22" | CREATE TABLE INST, Here is a database schema( table schema); | What was their record on July 22?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Date = November 5 | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for november 5.It is not neccessary to use all the tables. |
SELECT cardinalatial_title FROM table_name_77 WHERE elevator = "pope eugenius iv" | CREATE TABLE INST, Here is a database schema( table schema); | Which Cardinalatial Title has an Elevator of pope eugenius iv?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Crowd > 14,589 AND Home team score = 9.9 (63) | CREATE TABLE INST, Here is a database schema( table schema); | On the game where the home team scored 9.9 (63) and the crowd exceeded 14,589, what was the date?.It is not neccessary to use all the tables. |
SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida" | CREATE TABLE INST, Here is a database schema( table schema); | which team #1 played again chalkidaIt is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_84 WHERE position = "guard" AND pick < 144 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest round for the player whose position is guard and had a pick number smaller than 144?It is not neccessary to use all the tables. |
SELECT 2nd Member FROM table WHERE Election = 1885 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the 2nd member during 1885 election?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 4–2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Score of 4–2?.It is not neccessary to use all the tables. |
SELECT Pinyin FROM table WHERE County = changhua | CREATE TABLE INST, Here is a database schema( table schema); | Which Pinyin has a County of changhua?.It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Away team = st kilda | CREATE TABLE INST, Here is a database schema( table schema); | What was St Kilda's away team score?.It is not neccessary to use all the tables. |
SELECT 2007 AS _team FROM table_name_30 WHERE player = "deshaun foster" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2007 Team with player Deshaun Foster?It is not neccessary to use all the tables. |
SELECT MIN("Cuts made") FROM table_70000 WHERE "Wins" < '0' | CREATE TABLE INST, Here is a database schema( table schema); | What's the lowest number of cuts made while the win was less than 0?It is not neccessary to use all the tables. |
SELECT AVG Year FROM table WHERE Game = resident evil 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which Year has a Game of resident evil 4?.It is not neccessary to use all the tables. |
SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = "–" | CREATE TABLE INST, Here is a database schema( table schema); | What is the the name of the winner or 2nd with a weight more than 7.3 and the result was –?It is not neccessary to use all the tables. |
SELECT surface FROM table_name_66 WHERE opponents_in_the_final = "christophe rochus olivier rochus" | CREATE TABLE INST, Here is a database schema( table schema); | What is Surface when Opponents In The Final is "Christophe Rochus Olivier Rochus"?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 0-0 | CREATE TABLE INST, Here is a database schema( table schema); | On what date was the score 0-0?.It is not neccessary to use all the tables. |
SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets) | CREATE TABLE INST, Here is a database schema( table schema); | Find the average number of followers for the users who do not have any tweet.It is not neccessary to use all the tables. |
SELECT Capital ( endonym ) FROM table WHERE Capital ( exonym ) = Canberra | CREATE TABLE INST, Here is a database schema( table schema); | What is the local name given to the city of Canberra?.It is not neccessary to use all the tables. |
SELECT chassis FROM table_name_3 WHERE year = 2012 | CREATE TABLE INST, Here is a database schema( table schema); | What chassis has 2012 as the year?It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Country = sco | CREATE TABLE INST, Here is a database schema( table schema); | What is the type of sco country?.It is not neccessary to use all the tables. |
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress" | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of reason for change for not filled this congressIt is not neccessary to use all the tables. |
SELECT COUNT(round) FROM table_name_95 WHERE school_club_team = "tennessee state" AND overall < 261 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted?It is not neccessary to use all the tables. |
SELECT "Tournament" FROM table_69644 WHERE "Round" = 'semifinal' AND "Surface" = 'hard' AND "Opponent" = 'pam casale' | CREATE TABLE INST, Here is a database schema( table schema); | Name the tournament for semifinal hard surface for opponent of pam casaleIt is not neccessary to use all the tables. |
SELECT Condition FROM table WHERE Bleeding time = prolonged AND Platelet count = decreased or unaffected | CREATE TABLE INST, Here is a database schema( table schema); | I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected.It is not neccessary to use all the tables. |
SELECT score FROM table_22879323_8 WHERE high_rebounds = "Brook Lopez (8)" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score of the game in which Brook Lopez (8) did the high rebounds?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Team = buffalo braves AND Previous team = los angeles lakers AND Career with the franchise [b ] = 1970 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player from the Buffalo Braves with the previous team Los Angeles Lakers and a career with the franchase in 1970?.It is not neccessary to use all the tables. |
SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = "december 6" | CREATE TABLE INST, Here is a database schema( table schema); | Which award description has a year later than 1994 with a date of December 6?It is not neccessary to use all the tables. |
SELECT MIN(number_of_households) FROM table_name_77 WHERE median_family_income = "$41,778" AND population > 38 OFFSET 319 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of households for the entry with a median income of $41778 and a population greater than 38319?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_22 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 event FROM table_name_16 WHERE method = "submission (rear naked choke)" AND opponent = "karl knothe" | CREATE TABLE INST, Here is a database schema( table schema); | What event was the opponent Karl Knothe and had a submission (rear naked choke)?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Method = decision AND Location = martigues, france | CREATE TABLE INST, Here is a database schema( table schema); | What is the record when the method is decision and the location is Martigues, France?.It is not neccessary to use all the tables. |
SELECT birthplace FROM table_name_86 WHERE weight__kg_ = 98 AND birthdate = "may 1, 1984" | CREATE TABLE INST, Here is a database schema( table schema); | What was the birthplace of the player who weighs 98 KG and was born on May 1 1984?It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Attendance = 16597 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner when the total attendance was 16597?.It is not neccessary to use all the tables. |
SELECT Wins FROM table WHERE Top-25 < 4 AND Top-5 > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is Wins, when Top-25 is less than 4, and when Top-5 is greater than 0?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_47 WHERE tournament = "clearwater, florida" | CREATE TABLE INST, Here is a database schema( table schema); | What is the final score of the tournament played in Clearwater Florida?It is not neccessary to use all the tables. |
SELECT Stadium FROM table WHERE 2004-2005 season = 6th in the liga | CREATE TABLE INST, Here is a database schema( table schema); | What is the stadium for the team that was 6th in the liga in the 2004-2005 season?.It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Circuit = Barbagallo Raceway | CREATE TABLE INST, Here is a database schema( table schema); | Who was the winner of the race at barbagallo raceway?.It is not neccessary to use all the tables. |
SELECT captain FROM table_1301373_7 WHERE international_marquee = "Emile Heskey" | CREATE TABLE INST, Here is a database schema( table schema); | Name the captain for emile heskeyIt is not neccessary to use all the tables. |
SELECT COUNT(pop_density___km²_) FROM table_221398_1 WHERE number_in_map = "16" | CREATE TABLE INST, Here is a database schema( table schema); | How many prefectures have a population density of 16 people/kilometers squared?It is not neccessary to use all the tables. |
SELECT AVG Laps FROM table WHERE Grid > 2 AND Time/Retired = accident AND Constructor = ferrari | CREATE TABLE INST, Here is a database schema( table schema); | What is the average laps for a grid larger than 2, for a ferrari that got in an accident?.It is not neccessary to use all the tables. |
SELECT episode__number FROM table_20205538_4 WHERE series__number = 17 | CREATE TABLE INST, Here is a database schema( table schema); | What is the episode number for series 17?It is not neccessary to use all the tables. |
SELECT Tries For FROM table WHERE Points = 48 | CREATE TABLE INST, Here is a database schema( table schema); | How many tries for were there 48 points?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_89 WHERE score = "7.14 (56) - 4.5 (29)" | CREATE TABLE INST, Here is a database schema( table schema); | At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?It is not neccessary to use all the tables. |
SELECT losing_bonus FROM table_name_31 WHERE points_for = "190" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE LOSING BONUS WITH 190 POINTS?It is not neccessary to use all the tables. |
SELECT First store FROM table WHERE Country = india | CREATE TABLE INST, Here is a database schema( table schema); | What year was the first store in India?.It is not neccessary to use all the tables. |
SELECT series FROM table_name_32 WHERE high_points = "prince (23)" | CREATE TABLE INST, Here is a database schema( table schema); | What series had a high points of Prince (23)?It is not neccessary to use all the tables. |
SELECT engine FROM table_name_23 WHERE rank = "3rd" AND points = 513 | CREATE TABLE INST, Here is a database schema( table schema); | Which engine is used when there is a 3rd place rank and 513 points?It is not neccessary to use all the tables. |
SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?It is not neccessary to use all the tables. |
SELECT MIN Natural change (per 1,000) FROM table WHERE Deaths = 17 413 AND Migration (per 1,000) > -7.35 | CREATE TABLE INST, Here is a database schema( table schema); | Which Natural change (per 1,000) has Deaths of 17 413, and a Migration (per 1,000) larger than -7.35?.It is not neccessary to use all the tables. |
SELECT Producer FROM table WHERE Power Plant = chennai mohan | CREATE TABLE INST, Here is a database schema( table schema); | What company is the producer in the chennai mohan power plant?.It is not neccessary to use all the tables. |
SELECT COUNT 50 FROM table WHERE Strike rate = 92.81 | CREATE TABLE INST, Here is a database schema( table schema); | How many entries for 50 occur when strike rate is 92.81?.It is not neccessary to use all the tables. |
SELECT Writer(s) FROM table WHERE Production Code = 210 | CREATE TABLE INST, Here is a database schema( table schema); | Provide me with the name of the writer with the production code 210. .It is not neccessary to use all the tables. |
SELECT TV Network(s) FROM table WHERE Series finale = May 7, 2012 | CREATE TABLE INST, Here is a database schema( table schema); | Which TV network had its series finale on May 7, 2012?.It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Away team = st kilda | CREATE TABLE INST, Here is a database schema( table schema); | What is the St Kilda Away team score?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_39 WHERE partner = "mashona washington" | CREATE TABLE INST, Here is a database schema( table schema); | What was the outcome when she partnered with mashona washington?It is not neccessary to use all the tables. |
SELECT Aircraft FROM table WHERE Type = heavy transport | CREATE TABLE INST, Here is a database schema( table schema); | Which aircraft has heavy transport?.It is not neccessary to use all the tables. |
SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle" | CREATE TABLE INST, Here is a database schema( table schema); | How many acres is the townland of Maddenstown Middle?It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team = fitzroy | CREATE TABLE INST, Here is a database schema( table schema); | What Away team is from Fitzroy?.It is not neccessary to use all the tables. |
SELECT COUNT # of cosponsors FROM table WHERE Date introduced = may 22, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | How many cosponsors have a Date introduced of may 22, 2008?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_49 WHERE points < 40 AND game > 25 AND score = "2–0" | CREATE TABLE INST, Here is a database schema( table schema); | Which Record has Points smaller than 40 and a Game larger than 25 and a Score of 2–0?It is not neccessary to use all the tables. |
SELECT alvin_greene__d_ FROM table_name_29 WHERE other = "9%" | CREATE TABLE INST, Here is a database schema( table schema); | What was the vote for Alvin Green when other was 9%?It is not neccessary to use all the tables. |
SELECT avg_g FROM table_name_70 WHERE effic > 73.95 AND name = "rhines, chris" | CREATE TABLE INST, Here is a database schema( table schema); | What is the avg/g of Rhines Chris who has an effic greater than 73.95?It is not neccessary to use all the tables. |
SELECT "Club" FROM table_63931 WHERE "Home Ground" = 'n/a' | CREATE TABLE INST, Here is a database schema( table schema); | Which club, had a home ground of n/a?It is not neccessary to use all the tables. |
SELECT outgoing_manager FROM table_name_40 WHERE replaced_by = "craig brewster" | CREATE TABLE INST, Here is a database schema( table schema); | I want the outgoing manager for craig brewsterIt is not neccessary to use all the tables. |
SELECT player FROM table_11545282_18 WHERE years_for_jazz = "2004-05" | CREATE TABLE INST, Here is a database schema( table schema); | Which player played 2004-05It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Away team score = 13.8 (86) | CREATE TABLE INST, Here is a database schema( table schema); | What did the team score when playing against an away team with a score of 13.8 (86)?.It is not neccessary to use all the tables. |
SELECT MIN Starts FROM table WHERE Best finish = T18 | CREATE TABLE INST, Here is a database schema( table schema); | What is the minimum number of starts for the players having a best finish of T18?.It is not neccessary to use all the tables. |
SELECT MAX(bronze) FROM table_name_73 WHERE silver < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What's the biggest Bronze that has less than 0 Silvers?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Location = Illinois | CREATE TABLE INST, Here is a database schema( table schema); | what's the date where location is illinois.It is not neccessary to use all the tables. |
SELECT time FROM table_name_56 WHERE grid = 21 | CREATE TABLE INST, Here is a database schema( table schema); | What is time of manufacturer with grid 21?It is not neccessary to use all the tables. |
SELECT school_club_team FROM table_name_15 WHERE round > 3 AND player = "sammy okpro" | CREATE TABLE INST, Here is a database schema( table schema); | Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?It is not neccessary to use all the tables. |
SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = "02 2" AND sales__billion_$_ > 113.1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Market Value (billion $) when Rank is 02 2 and when Sales (billion $) is greater than 113.1?It is not neccessary to use all the tables. |
SELECT partner FROM table_name_94 WHERE outcome = "winner" AND year < 1993 AND score = "6–4, 6–2" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Partner that was a winner a Year smaller than 1993 and a Score of 6–4 6–2?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Year > 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What tournament was after 2009?.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.marital_status = "SINGLE" AND diagnoses.short_title = "Abn involun movement NEC" | CREATE TABLE INST, Here is a database schema( table schema); | give me the number of patients whose marital status is single and diagnoses short title is abn involun movement nec?It is not neccessary to use all the tables. |
SELECT Championship FROM table WHERE Opponent in the final = Ken Rosewall | CREATE TABLE INST, Here is a database schema( table schema); | In which championship did John Newcombe play against Ken Rosewall in the final match?.It is not neccessary to use all the tables. |
SELECT AVG Round FROM table WHERE Time = 1:15 | CREATE TABLE INST, Here is a database schema( table schema); | What the round with the time 1:15?.It is not neccessary to use all the tables. |
SELECT motion_picture FROM table_name_42 WHERE award = "best supporting actor" AND actor = "samuel l. jackson" AND year < 1997 | CREATE TABLE INST, Here is a database schema( table schema); | For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?It is not neccessary to use all the tables. |
SELECT COUNT("School Colors") FROM table_24827 WHERE "Location" = 'Naga , Camarines Sur' | CREATE TABLE INST, Here is a database schema( table schema); | How many entries are shown for school colors for the location of naga , camarines sur?It is not neccessary to use all the tables. |
SELECT Points FROM table WHERE Performer = nigel connell | CREATE TABLE INST, Here is a database schema( table schema); | How many points did Nigel Connell have?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "PNEUMONIA" | CREATE TABLE INST, Here is a database schema( table schema); | Count the number of medicaid patients who have pneumonia as their primary disease.It is not neccessary to use all the tables. |
SELECT winner FROM table_22917458_15 WHERE stage = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Who won Stage 7?It is not neccessary to use all the tables. |
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421 | CREATE TABLE INST, Here is a database schema( table schema); | What rank is aliyya qadi with less than 1421 votes?It is not neccessary to use all the tables. |
SELECT COUNT Written by FROM table WHERE U.S. viewers (millions) = 11.21 | CREATE TABLE INST, Here is a database schema( table schema); | How many writers are listed when the U.S viewers are 11.21 million?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Venue = victoria park | CREATE TABLE INST, Here is a database schema( table schema); | Who was the away team at Victoria Park?.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.