sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Position FROM table WHERE Round > 8 AND Pick < 270 | CREATE TABLE INST, Here is a database schema( table schema); | What position after round 8 has a pick less than 270?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_55 WHERE set_3 = "21β25" | CREATE TABLE INST, Here is a database schema( table schema); | What was the overall score when the score for set 3 is 21β25?It is not neccessary to use all the tables. |
SELECT "Club" FROM table_37162 WHERE "Rank" = '5' | CREATE TABLE INST, Here is a database schema( table schema); | Which Club has a Rank of 5?It is not neccessary to use all the tables. |
SELECT record FROM table_name_82 WHERE week < 13 AND date = "july 12" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record for a week below 13 on July 12?It is not neccessary to use all the tables. |
SELECT horse FROM table_24915874_1 WHERE jockey = "Peter Wells" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the horse when the jockey was Peter Wells?It is not neccessary to use all the tables. |
SELECT Res. FROM table WHERE Event = ufc 87 | CREATE TABLE INST, Here is a database schema( table schema); | What is the result of the UFC 87?.It is not neccessary to use all the tables. |
SELECT COUNT(party) FROM table_1341640_39 WHERE incumbent = "Donald A. Bailey" | CREATE TABLE INST, Here is a database schema( table schema); | How many parties does the incumbent Donald A. Bailey a member of?It is not neccessary to use all the tables. |
SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average weeks on top of volumes associated with the artist aged 25 or younger?It is not neccessary to use all the tables. |
SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Against when the Opposing Team was sheffield wednesday?It is not neccessary to use all the tables. |
SELECT Regular Season FROM table WHERE League = npsl AND Year = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | WHICH Regular Season has a League of npsl, and a Year of 2008?.It is not neccessary to use all the tables. |
SELECT Tags.TagName, COUNT(*) FROM PostTags JOIN Posts ON Posts.Id = PostTags.PostId JOIN Users ON Users.Id = Posts.OwnerUserId JOIN Tags ON Tags.Id = PostTags.TagId WHERE YEAR(Posts.CreationDate) >= 2017 AND (LOWER(Users.Location) LIKE '%brasil%' OR LOWER(Users.Location) LIKE '%brazil%') GROUP BY Tags.TagName HAVING COUNT(*) > 4 ORDER BY 2 DESC | CREATE TABLE INST, Here is a database schema( table schema); | Top tags (with more than 4 posts) by country (Brazil/Brasil) since 2017.It is not neccessary to use all the tables. |
SELECT COUNT(retired) FROM table_13605170_2 WHERE aircraft_type = "Curtiss XBTC" | CREATE TABLE INST, Here is a database schema( table schema); | how many Curtiss XBTC aircraft are retired?It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Season # = 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the original airdate when the season number is 4?.It is not neccessary to use all the tables. |
SELECT COUNT No. in season FROM table WHERE Title = "Poppin' Tags" | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes in season 6 titles "Poppin' Tags"?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_35 WHERE pick = 50 | CREATE TABLE INST, Here is a database schema( table schema); | Which position had a pick of 50?It is not neccessary to use all the tables. |
SELECT Location Attendance FROM table WHERE Date = January 18 | CREATE TABLE INST, Here is a database schema( table schema); | Name the location attendance for january 18.It is not neccessary to use all the tables. |
SELECT New/Returning/Same Network FROM table WHERE Previous Network = NBC | CREATE TABLE INST, Here is a database schema( table schema); | For the NBC network, what was the new/returning/same network status?.It is not neccessary to use all the tables. |
SELECT COUNT Crowd FROM table WHERE Venue = western oval | CREATE TABLE INST, Here is a database schema( table schema); | How many people watch at Western Oval venue?.It is not neccessary to use all the tables. |
SELECT Rank FROM table WHERE Time = 2:11.83 | CREATE TABLE INST, Here is a database schema( table schema); | What is the rank of the swimmer with a time of 2:11.83?.It is not neccessary to use all the tables. |
SELECT SUM("Game") FROM table_34482 WHERE "Record" = '4β2β1' AND "Points" > '9' | CREATE TABLE INST, Here is a database schema( table schema); | Which Game has a Record of 4 2 1, and Points larger than 9?It is not neccessary to use all the tables. |
SELECT surface FROM table_name_41 WHERE opponent = "fernando verdasco" | CREATE TABLE INST, Here is a database schema( table schema); | Which surface has an Opponent of fernando verdasco?It is not neccessary to use all the tables. |
SELECT erp_w FROM table_name_2 WHERE city_of_license = "charleston, sc" | CREATE TABLE INST, Here is a database schema( table schema); | What is Charleston SC ERP W?It is not neccessary to use all the tables. |
SELECT AVG No. of villages FROM table WHERE Name of janapada = punia | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of villages with a name of janapada of Punia?.It is not neccessary to use all the tables. |
SELECT airport FROM table_name_34 WHERE country = "russia" AND iata = "aer" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the airport located in Russia with an IATA of AER?It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_93 WHERE country = "england" | CREATE TABLE INST, Here is a database schema( table schema); | How many to par in England?It is not neccessary to use all the tables. |
SELECT Opponents FROM table WHERE Date = may 6, 2006 | CREATE TABLE INST, Here is a database schema( table schema); | Who competed on may 6, 2006?.It is not neccessary to use all the tables. |
SELECT episode_title FROM table_name_26 WHERE countries_visited = "cuba" | CREATE TABLE INST, Here is a database schema( table schema); | Which episode title featured a visit to the country of Cuba?It is not neccessary to use all the tables. |
SELECT Grid FROM table WHERE Bike = honda cbr1000rr AND Rider = russell holland | CREATE TABLE INST, Here is a database schema( table schema); | What was the grid for rider Russell Holland, riding a Honda CBR1000rr?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_69 WHERE week > 5 AND opponent = "at new york giants" | CREATE TABLE INST, Here is a database schema( table schema); | Week larger than 5 and an opponent of at new york giants had what record?It is not neccessary to use all the tables. |
SELECT Votes FROM table WHERE Date = november 10 | CREATE TABLE INST, Here is a database schema( table schema); | How many votes were there on November 10?.It is not neccessary to use all the tables. |
SELECT MAX("Points") FROM table_25949 WHERE "Date" = 'October 27' | CREATE TABLE INST, Here is a database schema( table schema); | How many points were there scored on October 27?It is not neccessary to use all the tables. |
SELECT "Date of death" FROM table_20878 WHERE "Player" = 'Archie Roberts' | CREATE TABLE INST, Here is a database schema( table schema); | What day did ARchie Roberts die?It is not neccessary to use all the tables. |
SELECT "opponent" FROM table_204_168 WHERE "opponent" IN ('trinity (fl)', 'trinity baptist') ORDER BY "result" - "result" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | which game was won by a bigger margin , against trinity -lrb- fl -rrb- or against trinity baptist ?It is not neccessary to use all the tables. |
SELECT COUNT Height FROM table WHERE Province, Community = com. dom. lto. america | CREATE TABLE INST, Here is a database schema( table schema); | What is total number of height of province, with community of com. dom. lto. America?.It is not neccessary to use all the tables. |
SELECT Team Name FROM table WHERE Points = 38 | CREATE TABLE INST, Here is a database schema( table schema); | What team was Sigachev on when he had 38 points? .It is not neccessary to use all the tables. |
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special Effects" | CREATE TABLE INST, Here is a database schema( table schema); | Name the awardees for best special effectsIt is not neccessary to use all the tables. |
SELECT Eastern FROM table WHERE English = light | CREATE TABLE INST, Here is a database schema( table schema); | What is the eastern word for "light"?.It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE Rank points = 8 AND Total = 20 | CREATE TABLE INST, Here is a database schema( table schema); | What event has 8 as the rank points, with 20 as the total?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe" | CREATE TABLE INST, Here is a database schema( table schema); | Where did Zimbabwe play?It is not neccessary to use all the tables. |
SELECT season FROM table_name_1 WHERE winner = "rangers" | CREATE TABLE INST, Here is a database schema( table schema); | What season did the Rangers win?It is not neccessary to use all the tables. |
SELECT Opponents FROM table WHERE Outcome = runner-up AND Surface = hard AND Partner = catherine suire | CREATE TABLE INST, Here is a database schema( table schema); | Who were the Opponents in the match on a Hard Surface with Catherine Suire as Partner and Outcome of runner-up?.It is not neccessary to use all the tables. |
SELECT L2 Cache FROM table WHERE Idle Power = 100mw AND Model Number = nano u3400 | CREATE TABLE INST, Here is a database schema( table schema); | What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw?.It is not neccessary to use all the tables. |
SELECT source FROM table_21535453_1 WHERE brian_moran = "19%" | CREATE TABLE INST, Here is a database schema( table schema); | What source showed Brian Moran at 19%?It is not neccessary to use all the tables. |
SELECT fatalities FROM table_name_60 WHERE tail_number = "unknown" | CREATE TABLE INST, Here is a database schema( table schema); | How many fatalities occurred for an unknown tail number?It is not neccessary to use all the tables. |
SELECT COUNT Games FROM table WHERE Season = 1976 AND Points > 20 | CREATE TABLE INST, Here is a database schema( table schema); | What's the total number of games with more than 20 points for the 1976 season?.It is not neccessary to use all the tables. |
SELECT COUNT Name FROM table WHERE Duration = Days 1-86 | CREATE TABLE INST, Here is a database schema( table schema); | When days 1-86 is the duration how many names are there?.It is not neccessary to use all the tables. |
SELECT Place of Birth FROM table WHERE Acquired = 2008 | CREATE TABLE INST, Here is a database schema( table schema); | Of those acquired in 2008, where were they born?.It is not neccessary to use all the tables. |
SELECT COUNT International Passengers FROM table WHERE Aircraft Movements < 88,592 AND Transit Passengers = 319,093 AND Rank < 4 | CREATE TABLE INST, Here is a database schema( table schema); | How many international passengers have less than 88,592 aircraft movements with 319,093 transit passengers with less than 4 rank?.It is not neccessary to use all the tables. |
SELECT MIN(highest_score) FROM table_28547332_4 WHERE average = "9.88" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest score in those games where the average is 9.88?It is not neccessary to use all the tables. |
SELECT "Year" FROM table_66309 WHERE "Standalone" = 'zaxxon' | CREATE TABLE INST, Here is a database schema( table schema); | In what year is Zaxxon the Standalone?It is not neccessary to use all the tables. |
SELECT competition FROM table_name_98 WHERE goal < 2 | CREATE TABLE INST, Here is a database schema( table schema); | Which competition has goals less than 2?It is not neccessary to use all the tables. |
SELECT MAX Silver FROM table WHERE Rank = 5 AND Total > 6 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most number of silvers for teams in rank 5 with more than 6 total medals?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Height (cm) > 183 AND 1997β1998 Team = mighty ducks of anaheim | CREATE TABLE INST, Here is a database schema( table schema); | What is the Name with a height of more than 183 cm for the 1997β1998 Team of mighty ducks of anaheim?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = february 9 | CREATE TABLE INST, Here is a database schema( table schema); | Which Score has a Date of february 9?.It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE NFL Club = new york jets | CREATE TABLE INST, Here is a database schema( table schema); | What is the round of the new york jets NFL club?.It is not neccessary to use all the tables. |
SELECT COUNT Total FROM table WHERE Labour Panel < 5 AND Administrative Panel < 1 AND National University of Ireland < 2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?.It is not neccessary to use all the tables. |
SELECT 1 AS st_leg FROM table_name_59 WHERE team_1 = "panathinaikos" | CREATE TABLE INST, Here is a database schema( table schema); | What was the first leg score for the match with a team 1 of Panathinaikos?It is not neccessary to use all the tables. |
SELECT Airport FROM table WHERE IATA = bkk | CREATE TABLE INST, Here is a database schema( table schema); | Which airport has IATA of BKK?.It is not neccessary to use all the tables. |
SELECT base FROM table WHERE company = theatro technis karolos koun | CREATE TABLE INST, Here is a database schema( table schema); | Which base has a company of Theatro Technis Karolos Koun?.It is not neccessary to use all the tables. |
SELECT long FROM table_name_97 WHERE avg_g = "redshirt" | CREATE TABLE INST, Here is a database schema( table schema); | Which Long has redshirt for its Avg/G?It is not neccessary to use all the tables. |
SELECT School/Club Team FROM table WHERE Season = 2012 AND Acquisition via = Trade | CREATE TABLE INST, Here is a database schema( table schema); | What was the school/club team whose season was in 2012 and were acquired via trade? .It is not neccessary to use all the tables. |
SELECT "Blank Ends" FROM table_41514 WHERE "Ends Won" < '39' AND "Ends Lost" > '35' AND "Stolen Ends" = '4' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.It is not neccessary to use all the tables. |
SELECT SUM Points FROM table WHERE Goals against = 35 AND Losses < 13 | CREATE TABLE INST, Here is a database schema( table schema); | How many Points have Goals against of 35, and less than 13 losses?.It is not neccessary to use all the tables. |
SELECT Date of Birth FROM table WHERE Height = 185cm AND Home Team = Heaton Mersey | CREATE TABLE INST, Here is a database schema( table schema); | If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?.It is not neccessary to use all the tables. |
SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s" | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5sIt is not neccessary to use all the tables. |
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850 | CREATE TABLE INST, Here is a database schema( table schema); | How many values for founded when enrollment is 850?It is not neccessary to use all the tables. |
SELECT date FROM table_name_70 WHERE record = "92β70" | CREATE TABLE INST, Here is a database schema( table schema); | Record of 92β70 had what date?It is not neccessary to use all the tables. |
SELECT team FROM table_27733909_7 WHERE score = "L 102β122 (OT)" | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for score l 102 122 (ot)It is not neccessary to use all the tables. |
SELECT SUM Laps FROM table WHERE Driver = derek warwick | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of laps for Derek Warwick?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Econ = 4.23 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the player with econ of 4.23.It is not neccessary to use all the tables. |
SELECT Womens singles FROM table WHERE Mixed doubles = Marcus Ellis Gabrielle White | CREATE TABLE INST, Here is a database schema( table schema); | What is the womens singles of marcus ellis gabrielle white?.It is not neccessary to use all the tables. |
SELECT episode FROM table_15026994_2 WHERE viewing_figure = "6.72 million" | CREATE TABLE INST, Here is a database schema( table schema); | What are all episodes with a viewing figure of 6.72 million?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Production Code = 2T6268 | CREATE TABLE INST, Here is a database schema( table schema); | Who were the writers for production code 2t6268?.It is not neccessary to use all the tables. |
SELECT MAX(season) FROM table_name_72 WHERE country = "uzbekistan" AND team = "fc pakhtakor tashkent" AND apps > 6 | CREATE TABLE INST, Here is a database schema( table schema); | In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps?It is not neccessary to use all the tables. |
SELECT open_cup FROM table_2402864_1 WHERE year = 2003 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Open Cup results for the year 2003?It is not neccessary to use all the tables. |
SELECT Song FROM table WHERE Band Tour Venue = 6. tool (usa) encore | CREATE TABLE INST, Here is a database schema( table schema); | What song has the band tour vnue of 6. tool (usa) encore?.It is not neccessary to use all the tables. |
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Prohibition" | CREATE TABLE INST, Here is a database schema( table schema); | Name the comptroller for office of prohibitionIt is not neccessary to use all the tables. |
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average losses when the wins is 9 and ties more than 0?It is not neccessary to use all the tables. |
SELECT score FROM table_name_57 WHERE date = "march 3, 2008" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on March 3 2008?It is not neccessary to use all the tables. |
SELECT Event 4 FROM table WHERE Event 1 = gauntlet AND Event 2 = duel AND Event 3 = pendulum | CREATE TABLE INST, Here is a database schema( table schema); | What is event 4 when event one was gauntlet, event 2 was duel, and event 3 was pendulum?.It is not neccessary to use all the tables. |
SELECT MLS Cup Runner-Up FROM table WHERE Season = 2000 | CREATE TABLE INST, Here is a database schema( table schema); | Which shield winner has the mls cup runner up and the season is 2000?.It is not neccessary to use all the tables. |
SELECT SUM Pick # FROM table WHERE Round = 5 AND Overall > 159 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the pick numbers where the player was picked in round 5 and overall pick number was greater than 159?.It is not neccessary to use all the tables. |
SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015" | CREATE TABLE INST, Here is a database schema( table schema); | What are the distinct president votes on 08/30/2015?It is not neccessary to use all the tables. |
SELECT average FROM table_12094300_1 WHERE swimsuit = "8.503" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average score when the swimsuit score is 8.503?It is not neccessary to use all the tables. |
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes" | CREATE TABLE INST, Here is a database schema( table schema); | Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?It is not neccessary to use all the tables. |
SELECT date FROM table_name_8 WHERE score = "80-79" | CREATE TABLE INST, Here is a database schema( table schema); | What is Date when Score is "80-79"?It is not neccessary to use all the tables. |
SELECT MAX(rank) FROM table_name_45 WHERE population_density___km_2__ > 5.7 AND _percentage_growth__2006_11_ = "5.7%" | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest rank of an area with a population density larger than 5.7 and a 2006β2011 percentage growth of 5.7%?It is not neccessary to use all the tables. |
SELECT type FROM table_name_67 WHERE capacity = "28 passengers" AND number = "16" | CREATE TABLE INST, Here is a database schema( table schema); | Which Type has a Capacity of 28 passengers and a Number of 16?It is not neccessary to use all the tables. |
SELECT Competition FROM table WHERE Date = 8 june 2005 | CREATE TABLE INST, Here is a database schema( table schema); | Which competition was played on 8 June 2005?.It is not neccessary to use all the tables. |
SELECT control FROM table_name_70 WHERE conservative_party = "10 (+5)" | CREATE TABLE INST, Here is a database schema( table schema); | What was the control for the year with a Conservative Party result of 10 (+5)?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Year < 2006 AND Position = 10th | CREATE TABLE INST, Here is a database schema( table schema); | What was the venue before 2006, with the position of 10th?.It is not neccessary to use all the tables. |
SELECT COUNT(heat) FROM table_name_14 WHERE mark = "7.29" AND name = "virgen benavides" AND lane < 2 | CREATE TABLE INST, Here is a database schema( table schema); | When the lane is under 2 and the name is virgen benavides with a mark of 7.29 what's the total number of Heat found?It is not neccessary to use all the tables. |
SELECT U.S. viewers (millions) FROM table WHERE Series # = 3 | CREATE TABLE INST, Here is a database schema( table schema); | How many million viewers watched episode 3 in the series?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_47 WHERE creator = "hyriand" | CREATE TABLE INST, Here is a database schema( table schema); | Who is a Creator of hyriand?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE 1996 = 1r AND 1990 = sf | CREATE TABLE INST, Here is a database schema( table schema); | What is Tournament, when 1996 is "1R", and when 1990 is "SF"?.It is not neccessary to use all the tables. |
SELECT RAvg FROM table WHERE Year = 2003 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Ravg for 2003?.It is not neccessary to use all the tables. |
SELECT SUM Overall FROM table WHERE Pick # = 26 | CREATE TABLE INST, Here is a database schema( table schema); | How much Overall has a Pick # of 26?.It is not neccessary to use all the tables. |
SELECT team_1 FROM table_name_77 WHERE team_2 = "jac port-gentil" | CREATE TABLE INST, Here is a database schema( table schema); | What is Team 1 when Team 2 is Jac Port-Gentil?It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Home team = south melbourne | CREATE TABLE INST, Here is a database schema( table schema); | When the home team was South Melbourne, what did the away team score?.It is not neccessary to use all the tables. |
SELECT position FROM table_name_93 WHERE nationality = "sweden" | CREATE TABLE INST, Here is a database schema( table schema); | What is the position of the player from Sweden?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.