sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT player FROM table_1213511_5 WHERE nationality = "Canada" AND pick__number = 65
CREATE TABLE INST, Here is a database schema( table schema);
who is the player with the nationality of canada and pick # is 65?It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard (i)" AND date = "october 22, 2000"
CREATE TABLE INST, Here is a database schema( table schema);
Which final score had a surface of hard (i) on October 22 2000?It is not neccessary to use all the tables.
SELECT "Timeslot" FROM table_50921 WHERE "18-49" = '2.2/7'
CREATE TABLE INST, Here is a database schema( table schema);
What is the timeslot for the episode with an 18-49 of 2.2/7?It is not neccessary to use all the tables.
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
CREATE TABLE INST, Here is a database schema( table schema);
Which source has a Cost free and an Activity of some and an Editor of markitup?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "80" AND prescriptions.drug = "Cefpodoxime Proxetil"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients less than 80 years who are taking cefpodoxime proxetil medication.It is not neccessary to use all the tables.
SELECT points FROM table_24489942_10 WHERE nationality = "Switzerland"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points for switzerlandIt is not neccessary to use all the tables.
SELECT 1998 FROM table WHERE Tournament = canada
CREATE TABLE INST, Here is a database schema( table schema);
What Tournament of canada happened in 1998?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Time = 6:24.35
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for the rowers with the time of 6:24.35?.It is not neccessary to use all the tables.
SELECT score FROM table_name_52 WHERE player = "john mahaffey"
CREATE TABLE INST, Here is a database schema( table schema);
What score did John Mahaffey have?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Visitor = san antonio spurs AND Score = 97-113
CREATE TABLE INST, Here is a database schema( table schema);
When did the Visiting San Antonio Spurs score 97-113?.It is not neccessary to use all the tables.
SELECT title FROM table_26199130_1 WHERE production_code = "2ALF03"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the episode with production code 2alf03?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Venue = toyota stadium
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent at toyota stadium?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick # < 2
CREATE TABLE INST, Here is a database schema( table schema);
What player is picked before 2?.It is not neccessary to use all the tables.
SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42"
CREATE TABLE INST, Here is a database schema( table schema);
What was the elapsed time for the championship that had $9377.42 in prize money?It is not neccessary to use all the tables.
SELECT margin_of_victory FROM table_name_24 WHERE tournament = "mercedes championships (3)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Margin of Victory when Tournament is Mercedes Championships (3)?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 12.20 (92)
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team when the home team scores 12.20 (92)?.It is not neccessary to use all the tables.
SELECT date FROM table_name_24 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the game at Windy Hill take place?It is not neccessary to use all the tables.
SELECT COUNT(nickname) FROM table_262527_1 WHERE institution = "Southwestern College"
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of nicknames for southwestern college?It is not neccessary to use all the tables.
SELECT SUM Time FROM table WHERE Lane = 1 AND Rank < 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of time for lane of 1 and rank less than 8.It is not neccessary to use all the tables.
SELECT Series premiere FROM table WHERE Alternante title = Miłość i przeznaczenie
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of series premiere for the novela whose alternate title was miłość i przeznaczenie?.It is not neccessary to use all the tables.
SELECT No-Yds FROM table WHERE Ast = 8
CREATE TABLE INST, Here is a database schema( table schema);
List all number of yards with an AST of 8..It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Opponent = crawley town
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has an Opponent of crawley town?.It is not neccessary to use all the tables.
SELECT school FROM table_name_72 WHERE date = "june 4, 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What is the School of the Player with a Date of June 4 2011?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_24 WHERE away_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team score for the game played against Collingwood?It is not neccessary to use all the tables.
SELECT School/Country FROM table WHERE Asts = 337
CREATE TABLE INST, Here is a database schema( table schema);
What is the school/country of the player with 337 assists?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose primary disease is bladder cancer/sda?It is not neccessary to use all the tables.
SELECT Commissioned FROM table WHERE Laid down = 6 september 2003
CREATE TABLE INST, Here is a database schema( table schema);
What is Commissioned, when Laid Down is "6 September 2003"?.It is not neccessary to use all the tables.
SELECT overall_record FROM table_name_17 WHERE school = "indian river"
CREATE TABLE INST, Here is a database schema( table schema);
What is the overall record of Indian River?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Score = 5–7, 4–6, 6–3, 1–6
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Score of 5–7, 4–6, 6–3, 1–6?.It is not neccessary to use all the tables.
SELECT MAX First elected FROM table WHERE Party = republican
CREATE TABLE INST, Here is a database schema( table schema);
What is the most recent year for a first elected republican?.It is not neccessary to use all the tables.
SELECT points_1 FROM table_name_88 WHERE lost = 22
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POINTS 1 HAD A 22 LOST?It is not neccessary to use all the tables.
SELECT parent FROM table_name_96 WHERE order = 6
CREATE TABLE INST, Here is a database schema( table schema);
Who was the parent on the order of 6?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Total < 560 AND Bronze > 6 AND Gold = 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of Silver with total smaller than 560, a Bronze larger than 6, and a Gold of 3?.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Circuit = mosport park
CREATE TABLE INST, Here is a database schema( table schema);
What's the report for the mosport park circuit?.It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Communist ticket = (none) AND Socialist ticket = joseph g. glass
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?.It is not neccessary to use all the tables.
SELECT 2010 FROM table_name_75 WHERE 2012 = "1r" AND 2005 = "a"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 value with a 1r in 2012 and an A in 2005?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_78 WHERE week = 9
CREATE TABLE INST, Here is a database schema( table schema);
How many attendances have 9 as the week?It is not neccessary to use all the tables.
SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = "French Open (0/1)"
CREATE TABLE INST, Here is a database schema( table schema);
How many different partners were played with during French Open (0/1)?It is not neccessary to use all the tables.
SELECT zx_spectrum FROM table_name_7 WHERE c = 64 = c64 AND title = "ankh"
CREATE TABLE INST, Here is a database schema( table schema);
Which ZX Spectrum has a C=64 of c64 and a Title of ankh?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Women's singles = lonneke janssen
CREATE TABLE INST, Here is a database schema( table schema);
What year did Lonneke Janssen win the Women's singles?.It is not neccessary to use all the tables.
SELECT manhunt_international FROM table_30018460_1 WHERE country_territory = "France"
CREATE TABLE INST, Here is a database schema( table schema);
How many manhunt beauty contets have been held in france?It is not neccessary to use all the tables.
SELECT venue FROM table_name_10 WHERE year < 1991 AND time > 10.29 AND competition = "mediterranean games" AND event = "4x100 m relay"
CREATE TABLE INST, Here is a database schema( table schema);
What Venue has a Year smaller than 1991, Time larger than 10.29, Competition of mediterranean games, and Event of 4x100 m relay?It is not neccessary to use all the tables.
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9"
CREATE TABLE INST, Here is a database schema( table schema);
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?It is not neccessary to use all the tables.
SELECT dominant_religion__2002_ FROM table_2562572_44 WHERE settlement = "Lokve"
CREATE TABLE INST, Here is a database schema( table schema);
What was the dominant religion in 2002 in lokve?It is not neccessary to use all the tables.
SELECT Name FROM WINE ORDER BY Score LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the highest rated wine?It is not neccessary to use all the tables.
SELECT home FROM table_name_5 WHERE date = "26 february 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team of the game on 26 February 2008?It is not neccessary to use all the tables.
SELECT MIN No. in series FROM table WHERE U.S. viewers (million) = 3.6
CREATE TABLE INST, Here is a database schema( table schema);
Which episode in the series drew 3.6 million U.S. viewers? .It is not neccessary to use all the tables.
SELECT Year, MAX(Score) FROM wine GROUP BY Year ORDER BY Year DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show me the trend aboutthe maximum score of wines for each year, rank Year in desc order please.It is not neccessary to use all the tables.
SELECT Judges FROM table WHERE Country = Netherlands AND Air dates = 28 November 2011 – 24 December 2011
CREATE TABLE INST, Here is a database schema( table schema);
Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 9.18 (72)
CREATE TABLE INST, Here is a database schema( table schema);
What date did the home team have a score of 9.18 (72)?.It is not neccessary to use all the tables.
SELECT Song title FROM table WHERE Artist = Billy Vaughn
CREATE TABLE INST, Here is a database schema( table schema);
what is the nme of the song performed by billy vaughn?.It is not neccessary to use all the tables.
SELECT COUNT Goals per Match FROM table WHERE Goals > 33 AND Apps > 38
CREATE TABLE INST, Here is a database schema( table schema);
How many goals per match when the player has more than 33 goals and more than 38 apps?.It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_8 WHERE team_2 = "civitavecchiese (latium a)"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the team 1 for team 2 being civitavecchiese (latium a)It is not neccessary to use all the tables.
SELECT name FROM table_2482547_5 WHERE balls_bowled = 4969
CREATE TABLE INST, Here is a database schema( table schema);
Who are all the players who've bowled more than 4969 balls?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Silver < 1 AND Total > 1 AND Bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1.It is not neccessary to use all the tables.
SELECT position FROM table_2508633_9 WHERE college = "Langston"
CREATE TABLE INST, Here is a database schema( table schema);
What position was the draft pick that came from Langston?It is not neccessary to use all the tables.
SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Road
CREATE TABLE INST, Here is a database schema( table schema);
Visualize the relationship between Team_ID and ACC_Percent , and group by attribute All_Road.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 58
CREATE TABLE INST, Here is a database schema( table schema);
What was the record when they played game 58?.It is not neccessary to use all the tables.
SELECT COUNT Seventh FROM table WHERE Sixth = Interpol
CREATE TABLE INST, Here is a database schema( table schema);
When Interpol is in 6th, who is in 7th?.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Production code = 942A
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode with the production code of 942A?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Team = detroit AND Game > 3
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the date for detroit and game more than 3.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Total Apps = 5
CREATE TABLE INST, Here is a database schema( table schema);
Which position has 5 total apps?.It is not neccessary to use all the tables.
SELECT COUNT E. Greenberg FROM table WHERE County = Morris
CREATE TABLE INST, Here is a database schema( table schema);
Who many votes did E. Greenberg receive in Morris County?.It is not neccessary to use all the tables.
SELECT TIME_TO_STR(p.CreationDate, '%-HOUR') AS Hour, COUNT(*) AS Amount, SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, (CAST(SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS FLOAT) / CAST(SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS FLOAT)) AS UpVoteDownVoteRatio FROM Votes AS v JOIN Posts AS p ON v.PostId = p.AcceptedAnswerId WHERE PostTypeId = 1 AND NOT AcceptedAnswerId IS NULL GROUP BY TIME_TO_STR(p.CreationDate, '%-HOUR') ORDER BY TIME_TO_STR(p.CreationDate, '%-HOUR')
CREATE TABLE INST, Here is a database schema( table schema);
Up vs Down votes by hour of day of Accepted Answer.It is not neccessary to use all the tables.
SELECT date FROM table_name_24 WHERE away_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What date did Footscray play and Away game?It is not neccessary to use all the tables.
SELECT "Premier:" FROM table_66164 WHERE "Assumed Office:" = '14 april 1894'
CREATE TABLE INST, Here is a database schema( table schema);
what is the premier when the assumed office is 14 april 1894?It is not neccessary to use all the tables.
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Mobilis"
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum number of 2006 subscribers for Mobilis?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Team = yamaha AND Points = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is team Yamaha with 3 points ranked?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week < 16 AND Date = october 31, 2005
CREATE TABLE INST, Here is a database schema( table schema);
What result has a week less than 16, and October 31, 2005 as the date?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_88 WHERE location = "busch stadium (ii)" AND time = "3:54"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended the game at Busch Stadium (ii) when the time was 3:54?It is not neccessary to use all the tables.
SELECT 2005 FROM table_name_88 WHERE 2007 = "5.545"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2005 Lukoil oil prodroduction when in 2007 oil production 5.545 million tonnes?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Label = london records
CREATE TABLE INST, Here is a database schema( table schema);
Which format was under the London Records label?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 33-15
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Blue Jays' opponent when their record was 33-15?.It is not neccessary to use all the tables.
SELECT Gender FROM table WHERE Candidate's Name = luc desnoyers
CREATE TABLE INST, Here is a database schema( table schema);
What gender is Luc Desnoyers?.It is not neccessary to use all the tables.
SELECT score FROM table_name_56 WHERE player = "john huston"
CREATE TABLE INST, Here is a database schema( table schema);
What was john huston's score?It is not neccessary to use all the tables.
SELECT high_points FROM table_28768469_9 WHERE date = "March 7"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most points in the game on March 7?It is not neccessary to use all the tables.
SELECT SUM(morse_taper_number) FROM table_name_1 WHERE d__max_ = 20 AND b__max_ > 94
CREATE TABLE INST, Here is a database schema( table schema);
What's the total of the Morse Taper number when the D (max) is 20 and the B (max) greater than 94?It is not neccessary to use all the tables.
SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
Show distinct types of artworks that are nominated in festivals in 2007.It is not neccessary to use all the tables.
SELECT Mar 24 FROM table WHERE May 26 = 13 AND May 12 = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?.It is not neccessary to use all the tables.
SELECT color_commentator_s_ FROM table_name_22 WHERE sideline_reporter_s_ = "andrea kremer and tiki barber"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the color commentator for Andrea Kremer and Tiki Barber?It is not neccessary to use all the tables.
SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of interviews where the evening gown number is less than 8.82 the state is Kentucky and the average is more than 8.85?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Visitor = cleveland AND Record = 34-26
CREATE TABLE INST, Here is a database schema( table schema);
What day was the visitor Cleveland when the record was 34-26?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Year > 1953
CREATE TABLE INST, Here is a database schema( table schema);
Name the highest points when year is more than 1953.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = south dragons AND Score = 94-81
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?.It is not neccessary to use all the tables.
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565"
CREATE TABLE INST, Here is a database schema( table schema);
What were the investment earnings in the year that State and Federal taxes were $8549565?It is not neccessary to use all the tables.
SELECT TMS AS number FROM table_1166023_1 WHERE year_built = 1923
CREATE TABLE INST, Here is a database schema( table schema);
What where the tms numbers built in 1923It is not neccessary to use all the tables.
SELECT competition FROM table_name_54 WHERE date = "14 june 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the competition that happened on 14 june 2008It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = bye
CREATE TABLE INST, Here is a database schema( table schema);
What was the last week when the team had a bye week?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE High assists = Chris Duhon (13)
CREATE TABLE INST, Here is a database schema( table schema);
Which date did Chris Duhon (13) receive high assists?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Local Host(s) = sai
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of year with the local host Sai?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t6
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player with a t6 place?.It is not neccessary to use all the tables.
SELECT name FROM table_name_45 WHERE pick__number > 5 AND college = "washington"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of a pick more than 5 at Washington College?It is not neccessary to use all the tables.
SELECT state_province_county, COUNT(*) FROM addresses GROUP BY state_province_county
CREATE TABLE INST, Here is a database schema( table schema);
Show each state and the number of addresses in each state.It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Driver = eddie irvine
CREATE TABLE INST, Here is a database schema( table schema);
I want the time/retired for eddie irvine.It is not neccessary to use all the tables.
SELECT traditional_chinese FROM table_name_14 WHERE standard_order > 9 AND simplified_chinese = "国殇"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Traditional Chinese of which is over 9?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Points difference = 61 - 15 AND Drawn > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the Points that has 61 - 15 Point difference and a Drawn larger than 1?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team playing the home team North Melbourne?.It is not neccessary to use all the tables.
SELECT European Competitions FROM table WHERE Tier = 2 AND Season = 2004–05
CREATE TABLE INST, Here is a database schema( table schema);
Tier of 2, and a Season of 2004–05 is what European competitions?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_61 WHERE attendance = "16,468"
CREATE TABLE INST, Here is a database schema( table schema);
Which team had the attendance of 16468 and lost?It is not neccessary to use all the tables.
SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "DOF Subsea"
CREATE TABLE INST, Here is a database schema( table schema);
Name the vessel type for dof subseaIt is not neccessary to use all the tables.