sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT COUNT Station Ownership FROM table WHERE Network = Bounce TV | CREATE TABLE INST, Here is a database schema( table schema); | How many stations own Bounce TV?.It is not neccessary to use all the tables. |
SELECT COUNT Total FROM table WHERE Year built = 2010 | CREATE TABLE INST, Here is a database schema( table schema); | How many entries feature a year built of 2010?.It is not neccessary to use all the tables. |
SELECT COUNT(seasons) FROM table_name_56 WHERE name = "charles c. farrell" | CREATE TABLE INST, Here is a database schema( table schema); | How many seasons did Charles C. Farrell coach?It is not neccessary to use all the tables. |
SELECT AVG(score) FROM table_name_4 WHERE player = "linda wessberg" | CREATE TABLE INST, Here is a database schema( table schema); | What person had an opponent of linda wessberg and scored an average score?It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Total = 1 AND Bronze < 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which nation won no bronze medals and a 1 medal total?.It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_57 WHERE tie_no = "15" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the away team when there are 15 ties?It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Venue = victoria park | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team at the venue victoria park?.It is not neccessary to use all the tables. |
SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = "carolina 1" | CREATE TABLE INST, Here is a database schema( table schema); | When is the club founded that founed prsl in 2008 and the home city is carolina 1?It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Year > 2008 AND Player = greg fredlund | CREATE TABLE INST, Here is a database schema( table schema); | What was the position of Greg Fredlund in years after 2008?.It is not neccessary to use all the tables. |
SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 | CREATE TABLE INST, Here is a database schema( table schema); | Find the name of medication used on the patient who stays in room 111?It is not neccessary to use all the tables. |
SELECT isbn FROM table_2950964_5 WHERE title = "The Ring Of Steel" | CREATE TABLE INST, Here is a database schema( table schema); | The Ring of Steel possesses what ISBN?It is not neccessary to use all the tables. |
SELECT MIN(round) FROM table_name_26 WHERE college = "northeastern" AND player = "reggie lewis" | CREATE TABLE INST, Here is a database schema( table schema); | What round was northeastern college player Reggie Lewis drafted in?It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Place = t3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the To par of the T3 Player?.It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_47 WHERE title = "black swan" AND award = "gotham awards" | CREATE TABLE INST, Here is a database schema( table schema); | What year was Black Swan up for the Gotham Awards?It is not neccessary to use all the tables. |
SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7" | CREATE TABLE INST, Here is a database schema( table schema); | What is the RCM that has a density of 9.7?It is not neccessary to use all the tables. |
SELECT Lost FROM table WHERE Club = ynysybwl rfc | CREATE TABLE INST, Here is a database schema( table schema); | What is the lost of Ynysybwl RFC?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE High rebounds = LaMarcus Aldridge (6) | CREATE TABLE INST, Here is a database schema( table schema); | What is the date the high rebounds were by lamarcus aldridge (6)?.It is not neccessary to use all the tables. |
SELECT Rank # FROM table WHERE Attendance = 68,586 | CREATE TABLE INST, Here is a database schema( table schema); | What rank were the Buckeyes when there were 68,586 in attendance?.It is not neccessary to use all the tables. |
SELECT result FROM table_1341472_15 WHERE district = "Illinois 15" | CREATE TABLE INST, Here is a database schema( table schema); | what's the result with district illinois 15It is not neccessary to use all the tables. |
SELECT wins FROM table_name_80 WHERE losses = 5 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins did they have when they had 5 losses?It is not neccessary to use all the tables. |
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4" | CREATE TABLE INST, Here is a database schema( table schema); | How many different scores are there for the game with 10-3-4 record?It is not neccessary to use all the tables. |
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC | CREATE TABLE INST, Here is a database schema( table schema); | What are the record companies of orchestras in descending order of years in which they were founded?It is not neccessary to use all the tables. |
SELECT SUM(game) FROM table_name_75 WHERE date = "june 29" | CREATE TABLE INST, Here is a database schema( table schema); | what is the game on june 29?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE To Par = 7 AND Score = 73-72-67-75=287 | CREATE TABLE INST, Here is a database schema( table schema); | What is Player, when To Par is "7", and when Score is "73-72-67-75=287"?.It is not neccessary to use all the tables. |
SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo" | CREATE TABLE INST, Here is a database schema( table schema); | What are the profits of Wells Fargo (in billions)?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams" | CREATE TABLE INST, Here is a database schema( table schema); | Which 2009 tournament had Grand Slams?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE District = Kentucky 5 | CREATE TABLE INST, Here is a database schema( table schema); | Which party won in the election in voting district Kentucky 5?.It is not neccessary to use all the tables. |
SELECT award FROM table_name_18 WHERE year = 1992 | CREATE TABLE INST, Here is a database schema( table schema); | What award is featured in 1992?It is not neccessary to use all the tables. |
SELECT SUM Win % FROM table WHERE Year = 2008 AND Crew = varsity 8+ | CREATE TABLE INST, Here is a database schema( table schema); | What is the total of win percentages when the year is 2008 and the crew is varsity 8+?.It is not neccessary to use all the tables. |
SELECT Game FROM table WHERE Points = 28 AND Opponent = tampa bay lightning | CREATE TABLE INST, Here is a database schema( table schema); | What game has 28 points, and tampa bay lightning as the opponent?.It is not neccessary to use all the tables. |
SELECT nationality FROM table_name_25 WHERE goals = 50 AND ranking = 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of the person with 50 goals and rank 3?It is not neccessary to use all the tables. |
SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road | CREATE TABLE INST, Here is a database schema( table schema); | For the attribute ACC_Road and the sum of Team_ID, show their proportion by a pie chart.It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Athlete = Abdon Pamich Category:Articles with hCards | CREATE TABLE INST, Here is a database schema( table schema); | Name the nation for abdon pamich category:articles with hcards.It is not neccessary to use all the tables. |
SELECT Intermediate Sprints Classification Red Jersey FROM table WHERE Mountains Classification Green Jersey = murilo antonio fischer AND Points Classification Navy Blue Jersey = jose joaquin rojas gil | CREATE TABLE INST, Here is a database schema( table schema); | What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?.It is not neccessary to use all the tables. |
SELECT pixels FROM table_1701371_2 WHERE hardware_colours = 8 | CREATE TABLE INST, Here is a database schema( table schema); | How many pixels would be found in a hardware colour of 8?It is not neccessary to use all the tables. |
SELECT Hereditary peers FROM table WHERE Total = 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Hereditary peers have a Total of 1?.It is not neccessary to use all the tables. |
SELECT year FROM table_name_31 WHERE laps = 112 | CREATE TABLE INST, Here is a database schema( table schema); | Which year has 112 laps?It is not neccessary to use all the tables. |
SELECT SUM(attendance) FROM table_name_9 WHERE date = "8 march 2008" | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the game on 8 March 2008?It is not neccessary to use all the tables. |
SELECT champions FROM table_name_26 WHERE semi_finalists = "1 (2009)" | CREATE TABLE INST, Here is a database schema( table schema); | What champions have 1 (2009) as the semi-finalists?It is not neccessary to use all the tables. |
SELECT score FROM table_name_75 WHERE location = "northampton" | CREATE TABLE INST, Here is a database schema( table schema); | The competition located in Northampton had a resulting score of what?It is not neccessary to use all the tables. |
SELECT MAX Bronze FROM table WHERE Silver > 0 AND Rank > 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of bronze when silver is larger than 0, rank is larger than 3?.It is not neccessary to use all the tables. |
SELECT MIN(attendance) FROM table_name_95 WHERE opponent = "green bay packers" AND week > 10 | CREATE TABLE INST, Here is a database schema( table schema); | Which Attendance has an Opponent of green bay packers and a Week larger than 10?It is not neccessary to use all the tables. |
SELECT release_date FROM table_name_92 WHERE series = "mm" AND title = "confederate honey" | CREATE TABLE INST, Here is a database schema( table schema); | What is the release date of the mm series which has the title confederate honey?It is not neccessary to use all the tables. |
SELECT MIN("Decile") FROM table_51780 WHERE "Area" = 'matakohe' AND "Roll" > '86' | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?It is not neccessary to use all the tables. |
SELECT home_team FROM table_24887326_7 WHERE away_team = "Fulham" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team when the away team was fulham?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE City = salford | CREATE TABLE INST, Here is a database schema( table schema); | What day did they play in salford?.It is not neccessary to use all the tables. |
SELECT Bonus points FROM table WHERE Drawn = 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of bonus points when there are 4 drawn?.It is not neccessary to use all the tables. |
SELECT Manufacturer FROM table WHERE Grid = 11 | CREATE TABLE INST, Here is a database schema( table schema); | Name the manufacturer with grid of 11.It is not neccessary to use all the tables. |
SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender" | CREATE TABLE INST, Here is a database schema( table schema); | How many pick # are there for the goaltender position?It is not neccessary to use all the tables. |
SELECT score FROM table_name_83 WHERE surface = "clay" AND partner = "patricia tarabini" AND date = "25 july 1994" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the tournament on 25 July 1994 with a clay surface and Patricia Tarabini as the partner?It is not neccessary to use all the tables. |
SELECT "no." FROM table_204_353 WHERE id = (SELECT id FROM table_204_353 WHERE "date/time" = '13 february 1918 @ 0915 hours') - 1 | CREATE TABLE INST, Here is a database schema( table schema); | what number is previous to 13 february 1918 @ 0915 hours ?It is not neccessary to use all the tables. |
SELECT MAX County population 18 yrs+ FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the biggest number for county population 18 years+?.It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Date = May 4, 2003 | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par dated may 4, 2003?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_1233808_2 WHERE record = "Biggest defeat" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent during the biggest defeat?It is not neccessary to use all the tables. |
SELECT Enrollment FROM table WHERE University = university of akron | CREATE TABLE INST, Here is a database schema( table schema); | What was the university of akron's enrollment?.It is not neccessary to use all the tables. |
SELECT Details FROM table WHERE Result = Kuwait won by 72 runs Scorecard | CREATE TABLE INST, Here is a database schema( table schema); | If the results are Kuwait won by 72 runs scorecard, what are the details?.It is not neccessary to use all the tables. |
SELECT SUM Attendance FROM table WHERE H / A = n | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of attendance for H/A values of "n"?.It is not neccessary to use all the tables. |
SELECT mass FROM table_name_54 WHERE designation = "prognoz 2" | CREATE TABLE INST, Here is a database schema( table schema); | What is Mass when Designation is Prognoz 2?It is not neccessary to use all the tables. |
SELECT team FROM table_22871239_8 WHERE score = "W 125-115" | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for w 125-115 scoreIt is not neccessary to use all the tables. |
SELECT score FROM table_name_42 WHERE date = "march 5" | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on March 5 at Vancouver?It is not neccessary to use all the tables. |
SELECT year FROM table_name_86 WHERE works_no = "2040-2049" | CREATE TABLE INST, Here is a database schema( table schema); | In what Year is the Works no. 2040-2049?It is not neccessary to use all the tables. |
SELECT location_attendance FROM table_17326036_6 WHERE date = "December 15" | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance and location on December 15?It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Home team = essendon | CREATE TABLE INST, Here is a database schema( table schema); | When Essendon was the Home Team, what was the Away Team score?.It is not neccessary to use all the tables. |
SELECT Segment A FROM table WHERE Netflix = S08E21 | CREATE TABLE INST, Here is a database schema( table schema); | Whats the name of segment in s08e21.It is not neccessary to use all the tables. |
SELECT team AS captain FROM table_name_88 WHERE shirt_sponsor = "lübzer" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the team captain of the team that Lübzer is the shirt sponsor for?It is not neccessary to use all the tables. |
SELECT "Net capacity" FROM table_14737 WHERE "Gross capacity" = '1,126 mw' AND "Unit" = 'tianwan-4' | CREATE TABLE INST, Here is a database schema( table schema); | What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?It is not neccessary to use all the tables. |
SELECT Hole FROM table WHERE Country = united states AND Player = mike reid | CREATE TABLE INST, Here is a database schema( table schema); | How many holes did Mike Reid from United States have?.It is not neccessary to use all the tables. |
SELECT SUM(wins) FROM table_name_73 WHERE top_10 > 13 | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of wins that is in the Top 10 and larger than 13?It is not neccessary to use all the tables. |
SELECT 2009 FROM table_name_98 WHERE 2008 = "a" AND 2012 = "1r" AND 2010 = "q2" AND 2011 = "2r" | CREATE TABLE INST, Here is a database schema( table schema); | What shows for 2009 when 2008 is A 2012 is 1r 2010 is q2 and 2011 is 2r?It is not neccessary to use all the tables. |
SELECT Population FROM table WHERE Area (km²) = 70,273 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Population of the nation that has an Area (km²) of 70,273?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "UPPER GI BLEED" AND demographic.dod_year <= "2154.0" | CREATE TABLE INST, Here is a database schema( table schema); | how many upper gi bleed primary disease patients died on or before 2154?It is not neccessary to use all the tables. |
SELECT height_in_ft FROM table_11734041_17 WHERE years_for_rockets = "1969-70" | CREATE TABLE INST, Here is a database schema( table schema); | What is the hight of the player who's tenure lasted from 1969-70?It is not neccessary to use all the tables. |
SELECT COUNT(location_attendance) FROM table_17080868_6 WHERE date = "December 29" | CREATE TABLE INST, Here is a database schema( table schema); | what is the total number of attendance where the date is december 29?It is not neccessary to use all the tables. |
SELECT Format FROM table WHERE Release Date = august 1996 | CREATE TABLE INST, Here is a database schema( table schema); | What format was released in August 1996?.It is not neccessary to use all the tables. |
SELECT COUNT Lane FROM table WHERE Country = united states AND Mark = 6.62 AND Heat > 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total lane number for the United States when the mark is 6.62 and the heat is greater than 8?.It is not neccessary to use all the tables. |
SELECT finish FROM table_name_29 WHERE year = "1957" | CREATE TABLE INST, Here is a database schema( table schema); | What place did Jimmy Reece finish in 1957?It is not neccessary to use all the tables. |
SELECT COUNT(losses) FROM table_name_4 WHERE against = 1412 AND byes < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of losses against 1412 and Byes less than 2?It is not neccessary to use all the tables. |
SELECT District FROM table WHERE First elected = 1972 | CREATE TABLE INST, Here is a database schema( table schema); | what's the district with first elected being 1972.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Country = united states AND Place = t3 AND Player = chris riley | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?.It is not neccessary to use all the tables. |
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9ABX02" | CREATE TABLE INST, Here is a database schema( table schema); | The episode with production code 9abx02 was originally aired on what date?It is not neccessary to use all the tables. |
SELECT team FROM table_24784769_1 WHERE total_points = 342 | CREATE TABLE INST, Here is a database schema( table schema); | Which team had 342 total points?It is not neccessary to use all the tables. |
SELECT AVG Silver FROM table WHERE Gold > 3 AND Nation = soviet union (urs) AND Bronze > 26 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?.It is not neccessary to use all the tables. |
SELECT SUM Played FROM table WHERE Points = 15 | CREATE TABLE INST, Here is a database schema( table schema); | How many games were played where exactly 15 points were scored?.It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Pick > 183 AND School/Club Team = drexel | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of the player from Drexel who had a pick larger than 183?.It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_12 WHERE home_team = "leeds united" AND competition = "league cup" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the away team for the tome team Leeds United at the League Cup Competition?It is not neccessary to use all the tables. |
SELECT MIN Population per km² (2009) FROM table WHERE Province = solomon islands AND Area (km²) < 28,400 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400?.It is not neccessary to use all the tables. |
SELECT MAX Pick FROM table WHERE Year > 2010 AND Round < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest pick for a year after 2010, and a round smaller than 1?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Player = henry picard | CREATE TABLE INST, Here is a database schema( table schema); | What country was Henry Picard from?.It is not neccessary to use all the tables. |
SELECT Total FROM table WHERE Set 3 = 13–25 | CREATE TABLE INST, Here is a database schema( table schema); | What was the total with a score in set 3 of 13–25?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_48 WHERE label = "cbs" | CREATE TABLE INST, Here is a database schema( table schema); | What is the date for CBS label?It is not neccessary to use all the tables. |
SELECT AVG Caps FROM table WHERE Player = ryota asano | CREATE TABLE INST, Here is a database schema( table schema); | What is the mean number of caps for Ryota Asano?.It is not neccessary to use all the tables. |
SELECT song_choice FROM table_15796054_3 WHERE week__number = "Hollywood" | CREATE TABLE INST, Here is a database schema( table schema); | Name the song choice when week number is hollywoodIt is not neccessary to use all the tables. |
SELECT MAX("No") FROM table_17890 WHERE "Player" = 'Andrea Bargnani' | CREATE TABLE INST, Here is a database schema( table schema); | What number is Andrea Bargnani?It is not neccessary to use all the tables. |
SELECT position__eliminated FROM table_name_29 WHERE age¹ < 22 AND full_name = "muhammad fairul azreen bin mohd zahid" | CREATE TABLE INST, Here is a database schema( table schema); | What is Position/ Eliminated when Age¹ is less than 22 and when Full Name is "Muhammad Fairul Azreen Bin Mohd Zahid"?It is not neccessary to use all the tables. |
SELECT Runner(s)-up FROM table WHERE Winning score = –13 (75-68-68=211) | CREATE TABLE INST, Here is a database schema( table schema); | Who was the runner(s)-up when the winning score was –13 (75-68-68=211)?.It is not neccessary to use all the tables. |
SELECT moving_from FROM table_name_55 WHERE rank = 9 | CREATE TABLE INST, Here is a database schema( table schema); | The player with a rank of 9 made a move from what football club?It is not neccessary to use all the tables. |
SELECT AVG League Goals FROM table WHERE League Apps = 16 (1) AND League Cup Goals < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Away team = north melbourne | CREATE TABLE INST, Here is a database schema( table schema); | If the Away team is north melbourne, what's the Home team score?.It is not neccessary to use all the tables. |
SELECT Home (2nd leg) FROM table WHERE Aggregate = 3-2 AND 2nd leg = 1-1 | CREATE TABLE INST, Here is a database schema( table schema); | Which team played the 2nd leg at home with a tie of 1-1 and scored 3-2 in aggregate?.It is not neccessary to use all the tables. |
SELECT Game site FROM table WHERE Result = w 10-3 | CREATE TABLE INST, Here is a database schema( table schema); | What game site has w 10-3 as the result?.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.