sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT COUNT(writer) FROM table_20345624_2 WHERE original_airdate = "15 July 1967" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of writers for airdate of 15 july 1967It is not neccessary to use all the tables. |
SELECT Played FROM table WHERE Tries for = 38 | CREATE TABLE INST, Here is a database schema( table schema); | What was the played with 38 tries?.It is not neccessary to use all the tables. |
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 590 AND instructor.name LIKE '%Anthony Collings%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'Winter' AND semester.semester_id = course_offering.semester AND semester.year = 2017 | CREATE TABLE INST, Here is a database schema( table schema); | Will Prof. Anthony Collings be teaching 590 for next Winter ?It is not neccessary to use all the tables. |
SELECT Series FROM table WHERE Date = april 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the series score of the game on April 16?.It is not neccessary to use all the tables. |
SELECT MIN Rank FROM table WHERE Floors* = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest rank of the building with 12 floors?.It is not neccessary to use all the tables. |
SELECT AVG(week) FROM table_name_16 WHERE opponent = "minnesota vikings" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Week when Opponent is Minnesota Vikings?It is not neccessary to use all the tables. |
SELECT Tries against FROM table WHERE Try bonus = 5 | CREATE TABLE INST, Here is a database schema( table schema); | If the try bonus was 5 what was the try against score?.It is not neccessary to use all the tables. |
SELECT MAX(overall) FROM table_name_26 WHERE college = "notre dame" AND pick > 5 | CREATE TABLE INST, Here is a database schema( table schema); | If Notre Dame had a pick larger than 5 what's the overall pick?It is not neccessary to use all the tables. |
SELECT territory FROM table_name_91 WHERE screens = 17 | CREATE TABLE INST, Here is a database schema( table schema); | What is the territory with 17 screens?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Rank > 5 AND Rider = paul shoesmith | CREATE TABLE INST, Here is a database schema( table schema); | Rank larger than 5, and a Rider of paul shoesmith belongs to what team?.It is not neccessary to use all the tables. |
SELECT Premier date FROM table WHERE Coach = John O'Connell | CREATE TABLE INST, Here is a database schema( table schema); | What date did the episode, with John O'Connell as the coach, premier? .It is not neccessary to use all the tables. |
SELECT Religion FROM table WHERE Assumed Office < 2005 AND Former Experience = commissioner of health | CREATE TABLE INST, Here is a database schema( table schema); | Name the religion for Former Experience of commissioner of health and assumed office before 2005.It is not neccessary to use all the tables. |
SELECT COUNT Result FROM table WHERE Game = 5 | CREATE TABLE INST, Here is a database schema( table schema); | How many results have a game of 5?.It is not neccessary to use all the tables. |
SELECT "Date" FROM table_55039 WHERE "Away team" = 'essendon' | CREATE TABLE INST, Here is a database schema( table schema); | If the Away team is essendon, what was the Date they played?It is not neccessary to use all the tables. |
SELECT Wins FROM table WHERE Series = formula nippon AND Position = 8th | CREATE TABLE INST, Here is a database schema( table schema); | How many wins have a Series of formula nippon, and a Position of 8th?.It is not neccessary to use all the tables. |
SELECT job, AVG(age) FROM Person GROUP BY job | CREATE TABLE INST, Here is a database schema( table schema); | Display a bar chart for how old is the average person for each job?It is not neccessary to use all the tables. |
SELECT Home leg FROM table WHERE Competition = uefa europa league AND Round = q1 AND Opponents = motherwell | CREATE TABLE INST, Here is a database schema( table schema); | Name the home leg for uefa europa league and round of q1 with opponents of motherwell.It is not neccessary to use all the tables. |
SELECT SUM(year) FROM table_name_87 WHERE driver = "kevin lepage" | CREATE TABLE INST, Here is a database schema( table schema); | what is the year when the driver was kevin lepage?It is not neccessary to use all the tables. |
SELECT result FROM table_name_94 WHERE week > 12 AND opponent = "green bay packers" | CREATE TABLE INST, Here is a database schema( table schema); | What is the result for week 12 against the Green Bay Packers?It is not neccessary to use all the tables. |
SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78" | CREATE TABLE INST, Here is a database schema( table schema); | What is the height in ft for the rockets from 1973-78?It is not neccessary to use all the tables. |
SELECT AVG Points FROM table WHERE Position = 8 | CREATE TABLE INST, Here is a database schema( table schema); | How many Points has a Position of 8?.It is not neccessary to use all the tables. |
SELECT SUM Crowd FROM table WHERE Away team score = 19.15 (129) | CREATE TABLE INST, Here is a database schema( table schema); | What is the combined of Crowd that has an away team which scored 19.15 (129)?.It is not neccessary to use all the tables. |
SELECT Income poverty f FROM table WHERE Exports (USD mn) 2011 = 2470 | CREATE TABLE INST, Here is a database schema( table schema); | What was the depravitiy of earnings where international sales was 2470?.It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Opponent = shintaro ishiwatari | CREATE TABLE INST, Here is a database schema( table schema); | What is shintaro ishiwatari's time?.It is not neccessary to use all the tables. |
SELECT rank FROM table_name_45 WHERE third_quarter = "china mobile 195,680.4" | CREATE TABLE INST, Here is a database schema( table schema); | When the third quarter is China Mobile 195680.4 what is the rank?It is not neccessary to use all the tables. |
SELECT College/junior/club team FROM table WHERE Player = Dmitri Gorenko | CREATE TABLE INST, Here is a database schema( table schema); | What college/junior/club team did dmitri gorenko play for?.It is not neccessary to use all the tables. |
SELECT SUM Production Number FROM table WHERE Director = robert mckimson AND Series = mm AND Title = people are bunny | CREATE TABLE INST, Here is a database schema( table schema); | What is the production number directed by Robert McKimson in series mm titled People Are Bunny?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Week = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is week 15's result?.It is not neccessary to use all the tables. |
SELECT SUM(top_25) FROM table_name_84 WHERE tournament = "u.s. open" AND cuts_made < 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total top-25 of the U.S. Open which has less than 7 cuts?It is not neccessary to use all the tables. |
SELECT laps FROM table_12001616_4 WHERE entrant = "Marcis Auto Racing" | CREATE TABLE INST, Here is a database schema( table schema); | What is the laops of marcis auto racing?It is not neccessary to use all the tables. |
SELECT sepal_length FROM table_10477224_1 WHERE sepal_width = "2.8" AND petal_length = "5.1" | CREATE TABLE INST, Here is a database schema( table schema); | Name the sepal length for sepal width of 2.8 and petal length of 5.1It is not neccessary to use all the tables. |
SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard" | CREATE TABLE INST, Here is a database schema( table schema); | what is the round when the pick # is less than 236 and the position is offensive guard?It is not neccessary to use all the tables. |
SELECT Example FROM table WHERE Formula = rx | CREATE TABLE INST, Here is a database schema( table schema); | Which example has rx as the formula?.It is not neccessary to use all the tables. |
SELECT Finish FROM table WHERE Laps > 200 | CREATE TABLE INST, Here is a database schema( table schema); | Name the finish with Laps more than 200.It is not neccessary to use all the tables. |
SELECT Catalog FROM table WHERE Label = alfa records | CREATE TABLE INST, Here is a database schema( table schema); | What is the catalog number of Alfa records?.It is not neccessary to use all the tables. |
SELECT MAX Played FROM table WHERE Drawn < 1 AND Position < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the greatest played with a drawn less than 1 and a position of less than 1?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_19 WHERE year_s__won = "1988" | CREATE TABLE INST, Here is a database schema( table schema); | Which country won in 1988?It is not neccessary to use all the tables. |
SELECT drawn FROM table_name_96 WHERE played = "22" AND points = "96" | CREATE TABLE INST, Here is a database schema( table schema); | What is the drawn that has 22 for played and 96 for points?It is not neccessary to use all the tables. |
SELECT "Height metres / ft" FROM table_59049 WHERE "Years as tallest" = '1098–1310' | CREATE TABLE INST, Here is a database schema( table schema); | Name the Height metres / ft of Years with tallest of 1098 1310?It is not neccessary to use all the tables. |
SELECT COUNT(4 AS th_place) FROM table_name_27 WHERE appearances = 3 AND silver_medals > 0 AND gold_medals < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of 4th place that has 3 appearances for 3 and a more than 0 silver medals and no gold medals?It is not neccessary to use all the tables. |
SELECT 300 m group (mm) FROM table WHERE .308 Winchester cartridge type = RUAG Swiss P Target 168 gr HP-BT | CREATE TABLE INST, Here is a database schema( table schema); | What are all the 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt.It is not neccessary to use all the tables. |
SELECT MIN Lost FROM table WHERE Drawn > 1 AND Games < 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Lost has a Drawn larger than 1, and Games smaller than 7?.It is not neccessary to use all the tables. |
SELECT 2010 FROM table_name_24 WHERE 2006 = "3r" | CREATE TABLE INST, Here is a database schema( table schema); | what is 2010 when 2006 is 3r?It is not neccessary to use all the tables. |
SELECT Value ( USD ) FROM table WHERE Date = unknown AND Business = energy AND Country = new zealand | CREATE TABLE INST, Here is a database schema( table schema); | In New Zealand, what's the value that has an unknown date and is an energy business?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_50 WHERE date = "september 21" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT SCORE WAS ON SEPTEMBER 21?It is not neccessary to use all the tables. |
SELECT gold FROM table_name_46 WHERE total > 33 | CREATE TABLE INST, Here is a database schema( table schema); | Name the gold with total larger than 33It is not neccessary to use all the tables. |
SELECT Pinyin FROM table WHERE Conventional = Mazar | CREATE TABLE INST, Here is a database schema( table schema); | Name the pinyin for mazar.It is not neccessary to use all the tables. |
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1" | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of rank timeslot for 18-49 being 3.1It is not neccessary to use all the tables. |
SELECT MAX("season") - MIN("season") FROM table_203_150 | CREATE TABLE INST, Here is a database schema( table schema); | how long has nico rosberg competed in the formula one series ?It is not neccessary to use all the tables. |
SELECT COUNT(quantity) FROM table_name_68 WHERE manufacturer = "fokker" AND retired > 1999 | CREATE TABLE INST, Here is a database schema( table schema); | How many in the quantity section had Fokker as a manufacturer and retired later than 1999?It is not neccessary to use all the tables. |
SELECT Week 2 FROM table WHERE Week 1 = crystal beddows | CREATE TABLE INST, Here is a database schema( table schema); | What Week 2 has a Week 1 of crystal beddows?.It is not neccessary to use all the tables. |
SELECT party FROM table_1341453_22 WHERE district = "Maryland 6" | CREATE TABLE INST, Here is a database schema( table schema); | What party was the winner in the district Maryland 6?It is not neccessary to use all the tables. |
SELECT City of license FROM table WHERE Class = a AND Identifier = cbec-fm | CREATE TABLE INST, Here is a database schema( table schema); | What city of license has A as a class, and cbec-fm as the identifier?.It is not neccessary to use all the tables. |
SELECT Series FROM table WHERE Season = 2009 | CREATE TABLE INST, Here is a database schema( table schema); | What was the series in season 2009?.It is not neccessary to use all the tables. |
SELECT "Original air date" FROM table_25555 WHERE "Rank (week)" = '5' | CREATE TABLE INST, Here is a database schema( table schema); | List the original air date for week 5.It is not neccessary to use all the tables. |
SELECT Week FROM table WHERE Theme = heroes | CREATE TABLE INST, Here is a database schema( table schema); | Which week had a theme of Heroes?.It is not neccessary to use all the tables. |
SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = "Mount Gauttier" | CREATE TABLE INST, Here is a database schema( table schema); | When mount gauttier is the peak what is the highest prominence in meters?It is not neccessary to use all the tables. |
SELECT "Settlement" FROM table_27868 WHERE "Cyrillic Name Other Names" = 'Александрово' | CREATE TABLE INST, Here is a database schema( table schema); | Name the settlement forIt is not neccessary to use all the tables. |
SELECT winning_team FROM table_name_47 WHERE fastest_lap = "1:13.516" | CREATE TABLE INST, Here is a database schema( table schema); | Which team had the fastest lap of 1:13.516?It is not neccessary to use all the tables. |
SELECT Home Team FROM table WHERE Result = 99-112 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE HOME TEAM, RESULT 99-112?.It is not neccessary to use all the tables. |
SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = "Andaman Exp" | CREATE TABLE INST, Here is a database schema( table schema); | Show the builder of railways associated with the trains named "Andaman Exp".It is not neccessary to use all the tables. |
SELECT series_ep FROM table_15187735_12 WHERE segment_b = "Popcorn" | CREATE TABLE INST, Here is a database schema( table schema); | What is the series episode where Segment B is popcorn ?It is not neccessary to use all the tables. |
SELECT d_46 FROM table_name_36 WHERE d_42 = "r 14" | CREATE TABLE INST, Here is a database schema( table schema); | Name the D 46 which has D 42 of r 14It is not neccessary to use all the tables. |
SELECT SUM Lane FROM table WHERE Notes = q, sb AND Time ( sec ) < 11.22 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lane for notes Q, SB and time less than 11.22?.It is not neccessary to use all the tables. |
SELECT season FROM table_name_79 WHERE rating = "+33" | CREATE TABLE INST, Here is a database schema( table schema); | Which season was one of the players rated +33?It is not neccessary to use all the tables. |
SELECT COUNT Points FROM table WHERE Year = 1992 | CREATE TABLE INST, Here is a database schema( table schema); | How many total points were in 1992?.It is not neccessary to use all the tables. |
SELECT party FROM table_name_50 WHERE leader = "timothy kirkhope" | CREATE TABLE INST, Here is a database schema( table schema); | Which party does Timothy Kirkhope lead?It is not neccessary to use all the tables. |
SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.2 | CREATE TABLE INST, Here is a database schema( table schema); | Which video is on channel 31.2 with a 4:3 aspect?It is not neccessary to use all the tables. |
SELECT Chapter FROM table WHERE Chinese = 釋水 | CREATE TABLE INST, Here is a database schema( table schema); | Name the chapter with chinese of 釋水.It is not neccessary to use all the tables. |
SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id | CREATE TABLE INST, Here is a database schema( table schema); | Show the student IDs and numbers of friends corresponding to each.It is not neccessary to use all the tables. |
SELECT density FROM table_name_33 WHERE simplified = "南山区" | CREATE TABLE INST, Here is a database schema( table schema); | What is the density when simplified shows 南山区?It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE No. = 38 | CREATE TABLE INST, Here is a database schema( table schema); | Who wrote title number 38?.It is not neccessary to use all the tables. |
SELECT SUM(total) FROM table_name_59 WHERE nation = "england" | CREATE TABLE INST, Here is a database schema( table schema); | What is total number of wins for England?It is not neccessary to use all the tables. |
SELECT "Time" FROM table_66667 WHERE "Rank" = '1' | CREATE TABLE INST, Here is a database schema( table schema); | What is the Time of the Rowers in Rank 1?It is not neccessary to use all the tables. |
SELECT Mountain Peak FROM table WHERE Rank = 62 | CREATE TABLE INST, Here is a database schema( table schema); | Name the Mountain Peak which has a Rank of 62?.It is not neccessary to use all the tables. |
SELECT college FROM table_name_49 WHERE player = "dean caliguire" | CREATE TABLE INST, Here is a database schema( table schema); | What is the College with a Player that is dean caliguire?It is not neccessary to use all the tables. |
SELECT COUNT(category) FROM table_1507852_1 WHERE attribute = "onreset" | CREATE TABLE INST, Here is a database schema( table schema); | How many categories are there when the attribute is "onreset"?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 199 (–17) | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date of the tournament with a score of 199 (–17)?.It is not neccessary to use all the tables. |
SELECT Cup FinalDate FROM table WHERE WinningTeam = brisbane lions (1) | CREATE TABLE INST, Here is a database schema( table schema); | On what date did the Brisbane Lions (1) win?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE H/A/N = a AND Score = 105-118 | CREATE TABLE INST, Here is a database schema( table schema); | On what Date was the Score 105-118 and the H/A/N A?.It is not neccessary to use all the tables. |
SELECT Transfer window FROM table WHERE Moving from = barueri | CREATE TABLE INST, Here is a database schema( table schema); | What is the transfer window of the player moving from barueri?.It is not neccessary to use all the tables. |
SELECT "Constructor" FROM table_52886 WHERE "Grid" = '12' | CREATE TABLE INST, Here is a database schema( table schema); | What constructor has a 12 grid?It is not neccessary to use all the tables. |
SELECT SUM Starts FROM table WHERE Avg. Finish > 43 | CREATE TABLE INST, Here is a database schema( table schema); | How many starts for an average finish greater than 43?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Game site = griffith stadium | CREATE TABLE INST, Here is a database schema( table schema); | What Date was the Game at Griffith Stadium?.It is not neccessary to use all the tables. |
SELECT College FROM table WHERE Hometown = Crete, Illinois | CREATE TABLE INST, Here is a database schema( table schema); | Which college is present in the hometown of Crete, Illinois?.It is not neccessary to use all the tables. |
SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = "Polidori ( ITA ) W 6-1, 3-6, 6-3" | CREATE TABLE INST, Here is a database schema( table schema); | How many round of 32 results are followed by Polidori ( Ita ) w 6-1 3-6 6-3 in the round of 16?It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE High rebounds = Amar'e Stoudemire (10) | CREATE TABLE INST, Here is a database schema( table schema); | Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Score = 72-63-71-68=274 | CREATE TABLE INST, Here is a database schema( table schema); | What is the country for the score 72-63-71-68=274?.It is not neccessary to use all the tables. |
SELECT 2001 FROM table WHERE 1999 = toyota 1nz-fxe hybrid prius | CREATE TABLE INST, Here is a database schema( table schema); | Which car won the same award in 2001 that the toyota 1nz-fxe hybrid prius won in 1999?.It is not neccessary to use all the tables. |
SELECT Home team score FROM table WHERE Venue = mcg | CREATE TABLE INST, Here is a database schema( table schema); | What is the home team's score at mcg?.It is not neccessary to use all the tables. |
SELECT receipts_per_arrival_2010__col_2___col_1____usd__ FROM table_name_71 WHERE selected_caribbean_and_n_latin_america_countries = "colombia (1)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of recepits per arrival in 2010 (col 2)/(col 1) USD with colombia (1) as the selected carribean and latin american country?It is not neccessary to use all the tables. |
SELECT chassis FROM table_name_4 WHERE driver = "john watson" | CREATE TABLE INST, Here is a database schema( table schema); | What chassis did John Watson drive?It is not neccessary to use all the tables. |
SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which student visited restaurant most often? List student's first name and last name.It is not neccessary to use all the tables. |
SELECT Sprint Classification FROM table WHERE Youth Classification = Peter Sagan AND Most Courageous = Thomas Rabou | CREATE TABLE INST, Here is a database schema( table schema); | When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?.It is not neccessary to use all the tables. |
SELECT away_team AS score FROM table_name_99 WHERE home_team = "geelong" | CREATE TABLE INST, Here is a database schema( table schema); | What was the opponents score when Geelong played as home team?It is not neccessary to use all the tables. |
SELECT Club FROM table WHERE League/Division = fourth division | CREATE TABLE INST, Here is a database schema( table schema); | What club has a league/division of fourth division?.It is not neccessary to use all the tables. |
SELECT left_office FROM table_name_82 WHERE took_office = "2006" | CREATE TABLE INST, Here is a database schema( table schema); | What is Left Office when Took Office is 2006?It is not neccessary to use all the tables. |
SELECT SPI FROM table WHERE Number on cyl. = 7 | CREATE TABLE INST, Here is a database schema( table schema); | Are there SPI on the number 7 cylinder?.It is not neccessary to use all the tables. |
SELECT "Visitor" FROM table_13206 WHERE "Home" = 'chicago black hawks' AND "Date" = 'may 6' | CREATE TABLE INST, Here is a database schema( table schema); | Who was the visitor for Chicago Black Hawks on May 6?It is not neccessary to use all the tables. |
SELECT result FROM table_name_36 WHERE original_title = "zona sur" | CREATE TABLE INST, Here is a database schema( table schema); | What was Zona Sur's result after being considered for nomination?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.