sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Event FROM table WHERE 2006–07 = dnp
CREATE TABLE INST, Here is a database schema( table schema);
what is the event when 2006-07 is dnp?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home = pittsburgh AND Visitor = boston
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game with pittsburgh as the home team and boston as the visitor team?.It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_17 WHERE rank = "7" AND silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
When rank is 7 and silver is less than 0 what is the total gold?It is not neccessary to use all the tables.
SELECT surface FROM table_23944006_4 WHERE opponents = "Cara Black Rennae Stubbs"
CREATE TABLE INST, Here is a database schema( table schema);
Name the surface for cara black rennae stubbsIt is not neccessary to use all the tables.
SELECT Posts.Id, Posts.Id AS "post_link", Users.Age, Users.Location, Posts.CreationDate FROM Posts, Users, Tags WHERE Posts.Tags = '24hour' ORDER BY Tags.Id
CREATE TABLE INST, Here is a database schema( table schema);
Finding Posts tagged by given tag.It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Against = 1940 AND Byes > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Wins has an Against of 1940, and a Byes larger than 0?.It is not neccessary to use all the tables.
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average age as of February 1 2014 for the supercentenarians born in the United States?It is not neccessary to use all the tables.
SELECT MIN Overall FROM table WHERE Round = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was round 7's lowest overall?.It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_11111116_6 WHERE no_in_series = 79
CREATE TABLE INST, Here is a database schema( table schema);
How many times did episode 79 originally air?It is not neccessary to use all the tables.
SELECT females FROM table WHERE Number = 706
CREATE TABLE INST, Here is a database schema( table schema);
Which language do 706 females speak?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Type of game = euro '84 qualifying AND City = split
CREATE TABLE INST, Here is a database schema( table schema);
What opponent has euro '84 qualifying as the type and split as the city?.It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Player = dominique wilkins
CREATE TABLE INST, Here is a database schema( table schema);
What School/Club did Dominique Wilkins play for?.It is not neccessary to use all the tables.
SELECT prescriptions.drug, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "SYRG1"
CREATE TABLE INST, Here is a database schema( table schema);
what is drug name and drug route of drug code syrg1?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Score = 69-70-67=206 AND Player = sergio garcía
CREATE TABLE INST, Here is a database schema( table schema);
What is the country sergio garcía, who has a score of 69-70-67=206, is from?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_name_73 WHERE date = "november 29"
CREATE TABLE INST, Here is a database schema( table schema);
For the game played on November 29, who had the highest rebounds?It is not neccessary to use all the tables.
SELECT owner FROM table_name_98 WHERE built = "2009-2011"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the owner that built in 2009-2011?It is not neccessary to use all the tables.
SELECT Date of Birth FROM table WHERE No. = 7
CREATE TABLE INST, Here is a database schema( table schema);
for the no. 7 what is the date of birth.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Week when Result is W 34-21?It is not neccessary to use all the tables.
SELECT result FROM table_name_67 WHERE week < 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome of the game that had a week number of less than 2?It is not neccessary to use all the tables.
SELECT "Incumbent" FROM table_18436 WHERE "District" = 'Arkansas 2'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent in the Arkansas 2 district election?It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_74 WHERE rank > 5 AND gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of bronzes for countries ranking over 5 with 0 golds?It is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%uruguay%' ORDER BY Reputation DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top users from Uruguay by rep.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_14889988_1 WHERE written_by = "Robert Carlock"
CREATE TABLE INST, Here is a database schema( table schema);
On what dates were episodes written by Robert Carlock aired?It is not neccessary to use all the tables.
SELECT episode_number FROM table_name_1 WHERE name = "vibhav gautam"
CREATE TABLE INST, Here is a database schema( table schema);
Which episode number was associated with Vibhav Gautam?It is not neccessary to use all the tables.
SELECT Code, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name
CREATE TABLE INST, Here is a database schema( table schema);
For those products with a price between 60 and 120, draw a scatter chart about the correlation between code and manufacturer , and group by attribute name.It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_21436373_10
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximal number of people that attended any of these games?It is not neccessary to use all the tables.
SELECT socket FROM table_name_31 WHERE sspec_number = "sr0pk(e1)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the socket of sSpec number of sr0pk(e1)?It is not neccessary to use all the tables.
SELECT season FROM table_name_47 WHERE third = "colin hodgson"
CREATE TABLE INST, Here is a database schema( table schema);
Which Season has a Third of colin hodgson?It is not neccessary to use all the tables.
SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc"
CREATE TABLE INST, Here is a database schema( table schema);
Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Attendance = 33,307
CREATE TABLE INST, Here is a database schema( table schema);
Name the date when 33,307 attended.It is not neccessary to use all the tables.
SELECT Vocalist FROM table WHERE Rōmaji = Pokémon ieru kana? BW
CREATE TABLE INST, Here is a database schema( table schema);
When pokémon ieru kana? bw is the romaji who is the vocalist?.It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_12 WHERE nation = "croatia"
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest total of medals won by Croatia?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_41 WHERE position = "17th (q)"
CREATE TABLE INST, Here is a database schema( table schema);
How many years have a Position of 17th (q)?It is not neccessary to use all the tables.
SELECT Overall FROM table WHERE Rating = 1.4
CREATE TABLE INST, Here is a database schema( table schema);
what are all the overall with rating being 1.4.It is not neccessary to use all the tables.
SELECT SUM(apps) FROM table_name_37 WHERE name = "keith treacy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of apps for Keith Treacy?It is not neccessary to use all the tables.
SELECT date FROM table_name_39 WHERE pilot = "g.v. alfyorov" AND record_description = "altitude with kg (lb) payload" AND type = "mi-10"
CREATE TABLE INST, Here is a database schema( table schema);
Pilot of g.v. alfyorov and a Record description of altitude with kg (lb) payload and a Type of mi-10 involved what date?It is not neccessary to use all the tables.
SELECT Grand Finalists FROM table WHERE Champion Team Members = miko biscocho, claude gomez, mikee victoriano
CREATE TABLE INST, Here is a database schema( table schema);
who are the grand finalists when the champion team members are miko biscocho, claude gomez, mikee victoriano?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Driver = luigi fagioli
CREATE TABLE INST, Here is a database schema( table schema);
Which of the entrants had Luigi Fagioli as a driver?.It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_2187333_1
CREATE TABLE INST, Here is a database schema( table schema);
Name the least winsIt is not neccessary to use all the tables.
SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
CREATE TABLE INST, Here is a database schema( table schema);
What was the waveform of the encoding with a bit rate of 6.203?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE 2008 club = fakel new urengoy
CREATE TABLE INST, Here is a database schema( table schema);
What name has Fakel New Urengoy as the 2008 club?.It is not neccessary to use all the tables.
SELECT name FROM table_name_20 WHERE mission = "apollo 16" AND age_at_first_step = "36y 6m 18d"
CREATE TABLE INST, Here is a database schema( table schema);
Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_28 WHERE 2007 = "wta premier 5 tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a 2007 of wta premier 5 tournaments?It is not neccessary to use all the tables.
SELECT COUNT(silver) FROM table_name_81 WHERE gold > 0 AND rank = "14" AND bronze > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is number of silver for the country with more than 0 gold rank of 14 and more than 4 bronze?It is not neccessary to use all the tables.
SELECT Final round FROM table WHERE Player = danilo gallinari
CREATE TABLE INST, Here is a database schema( table schema);
What is Final round, when Player is Danilo Gallinari?.It is not neccessary to use all the tables.
SELECT song_choice FROM table_name_72 WHERE episode = "top 8"
CREATE TABLE INST, Here is a database schema( table schema);
What song was chosen for the episode with the top 8?It is not neccessary to use all the tables.
SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72
CREATE TABLE INST, Here is a database schema( table schema);
How many losses did the team with 0 wins and more than 72 runs allowed have?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_95 WHERE round = "r2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in the round of R2?It is not neccessary to use all the tables.
SELECT lost FROM table_name_78 WHERE points_for = "528"
CREATE TABLE INST, Here is a database schema( table schema);
What lost has 528 as the points?It is not neccessary to use all the tables.
SELECT TIME_TO_STR(CreationDate, '%h'), 'Questions', COUNT(*) FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(CreationDate, '%h') UNION SELECT TIME_TO_STR(CreationDate, '%h'), 'Answers', COUNT(*) FROM Posts WHERE PostTypeId = 2 GROUP BY TIME_TO_STR(CreationDate, '%h') UNION SELECT TIME_TO_STR(CreationDate, '%h'), ...
CREATE TABLE INST, Here is a database schema( table schema);
Activity by hour of day.It is not neccessary to use all the tables.
SELECT AVG Events FROM table WHERE Player = al geiberger AND Wins < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average events that Al Geiberger played with wins smaller than 1?.It is not neccessary to use all the tables.
SELECT segment_d FROM table_15187735_1 WHERE segment_b = "Jeans"
CREATE TABLE INST, Here is a database schema( table schema);
What was segment D when segment B was jeans?It is not neccessary to use all the tables.
SELECT Plural abbreviation FROM table WHERE Plural Word = following lines or pages
CREATE TABLE INST, Here is a database schema( table schema);
The plural word of following lines or pages has what plural abbreviation?.It is not neccessary to use all the tables.
SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of wins associated with 1 point more than 1 start and under 7 finishes?It is not neccessary to use all the tables.
SELECT Transfer fee FROM table WHERE Ends > 2010 AND Transfer window = winter
CREATE TABLE INST, Here is a database schema( table schema);
What was the transfer fee for the player moving in the winter window and ending in a year after 2010?.It is not neccessary to use all the tables.
SELECT "Value" FROM table_39613 WHERE "First issued" < '1998' AND "Reverse" = 'guitar of agustín pío barrios'
CREATE TABLE INST, Here is a database schema( table schema);
How much was a Reverse of guitar of agust n p o barrios before 1998?It is not neccessary to use all the tables.
SELECT game FROM table_name_81 WHERE location = "boston garden" AND record = "49-17"
CREATE TABLE INST, Here is a database schema( table schema);
Which game is located in Boston Garden and has a record of 49-17?It is not neccessary to use all the tables.
SELECT Polling Dates FROM table WHERE Larry O'Brien = 37%
CREATE TABLE INST, Here is a database schema( table schema);
What are the polling dates when Larry O'Brien has 37%?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Last Issue = ongoing AND First Issue = february 2009
CREATE TABLE INST, Here is a database schema( table schema);
What is the title that was first published in February 2009 and is still ongoing?.It is not neccessary to use all the tables.
SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5
CREATE TABLE INST, Here is a database schema( table schema);
what was the score of the parallel bars with a floor exercise score more than 9.137 vault more than 9.5 and horizontal bar of 9.225?It is not neccessary to use all the tables.
SELECT torque FROM table_name_15 WHERE engine = "5.8l v12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the torque of the 5.8l v12 engine?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83038) AND STRFTIME('%y', diagnoses_icd.charttime) = '2105'
CREATE TABLE INST, Here is a database schema( table schema);
did patient 83038 received any diagnoses in 2105?It is not neccessary to use all the tables.
SELECT result FROM table_name_49 WHERE goal = 9
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game with 9 goals?It is not neccessary to use all the tables.
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017"
CREATE TABLE INST, Here is a database schema( table schema);
What number in the series are the episodes with production code 5016/5017?It is not neccessary to use all the tables.
SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = "Washington Capitals"
CREATE TABLE INST, Here is a database schema( table schema);
How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?It is not neccessary to use all the tables.
SELECT Party, COUNT(*) FROM people GROUP BY Party ORDER BY COUNT(*)
CREATE TABLE INST, Here is a database schema( table schema);
Show different parties of people along with the number of people in each party with a bar chart, and could you display by the y-axis in ascending?It is not neccessary to use all the tables.
SELECT margin FROM table_name_89 WHERE year = 2002
CREATE TABLE INST, Here is a database schema( table schema);
Name the margin for 2002It is not neccessary to use all the tables.
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number directed by for uk viewers being 6.86It is not neccessary to use all the tables.
SELECT Length FROM table WHERE Version = uk remix
CREATE TABLE INST, Here is a database schema( table schema);
What is the length of the UK remix version?.It is not neccessary to use all the tables.
SELECT player FROM table_name_28 WHERE year = "2001-2002"
CREATE TABLE INST, Here is a database schema( table schema);
Which player is featured for 2001-2002?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum attendance with stadium being cotton bowlIt is not neccessary to use all the tables.
SELECT building FROM Faculty GROUP BY building ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which building has most faculty members?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_53 WHERE date = "september 28, 1951"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Date of september 28 1951?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Date = 10 november 2006
CREATE TABLE INST, Here is a database schema( table schema);
What was the Surface on during 10 November 2006?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Visitor = new jersey devils AND Date = may 7
CREATE TABLE INST, Here is a database schema( table schema);
Which record had a visitor of New Jersey Devils on May 7?.It is not neccessary to use all the tables.
SELECT COUNT Name FROM table WHERE Change (%) = -19.3
CREATE TABLE INST, Here is a database schema( table schema);
What place is there a change of -19.3?.It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Tied = 0 AND Player = chris cowdrey
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the drawn that has a tie of 0 and the player is chris cowdrey.It is not neccessary to use all the tables.
SELECT sanskrit_word FROM table_20354_5 WHERE thai_name = "มกราคม"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Sanskrit word for month with Thai name มกราคม?It is not neccessary to use all the tables.
SELECT "Novelty" FROM table_42374 WHERE "Name" = 'tylocephale'
CREATE TABLE INST, Here is a database schema( table schema);
What is the novelty of Tylocephale?It is not neccessary to use all the tables.
SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of employees with role name Editor.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Date = march 7
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor of the game on March 7?.It is not neccessary to use all the tables.
SELECT title FROM Movie WHERE director = 'Steven Spielberg'
CREATE TABLE INST, Here is a database schema( table schema);
Find the titles of all movies directed by steven spielberg.It is not neccessary to use all the tables.
SELECT Partnering FROM table WHERE Date = 10–12 July 2009
CREATE TABLE INST, Here is a database schema( table schema);
Who was Gil's partner on 10–12 july 2009.It is not neccessary to use all the tables.
SELECT Ceased to be Duke of Girona FROM table WHERE Heir of = peter iv
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?.It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_92 WHERE chassis = "simtek s951"
CREATE TABLE INST, Here is a database schema( table schema);
How many points for the simtek s951 chassis?It is not neccessary to use all the tables.
SELECT AVG(games_played) FROM table_name_57 WHERE team = "ottawa hockey club" AND wins > 5
CREATE TABLE INST, Here is a database schema( table schema);
Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5?It is not neccessary to use all the tables.
SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = "ellen burstyn"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?It is not neccessary to use all the tables.
SELECT grsecurity FROM table_1357052_6 WHERE distribution = "Debian / Ubuntu"
CREATE TABLE INST, Here is a database schema( table schema);
what's the grsecurity with dbeingtribution being debian / ubuntuIt is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE NHL team = Pittsburgh Penguins
CREATE TABLE INST, Here is a database schema( table schema);
What college team did the pick for Pittsburgh Penguins come from?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Week = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance of week 12?.It is not neccessary to use all the tables.
SELECT decile FROM table_name_55 WHERE authority = "state integrated" AND name = "westminster christian school"
CREATE TABLE INST, Here is a database schema( table schema);
What is the decile for Westminster Christian School with a state integrated authority?It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of silver medals for a nation with fewer than 1 bronze?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_24 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the away team at Victoria Park?It is not neccessary to use all the tables.
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'sodium chloride 3% (hypertonic)' AND DATETIME(prescriptions.start...
CREATE TABLE INST, Here is a database schema( table schema);
list the top four most common drugs that patients were prescribed with within 2 months after they were prescribed with sodium chloride 3% (hypertonic) last year.It is not neccessary to use all the tables.
SELECT "Last final lost" FROM table_34523 WHERE "Wins" = '7'
CREATE TABLE INST, Here is a database schema( table schema);
When was the last final lost of the club with 7 wins?It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Event = call to arms i
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for the Call to Arms I event?.It is not neccessary to use all the tables.
SELECT state_assembly FROM table_18052353_4 WHERE year = "2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the composition of the state assembly in 2008?It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_71 WHERE score = "4–1" AND record = "18–10–8–1" AND january > 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have a Score of 4 1, and a Record of 18 10 8 1, and a January larger than 2?It is not neccessary to use all the tables.
SELECT AVG 2000 FROM table WHERE Location = montana AND Reservation = fort peck indian reservation AND 1979 < 26.8
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?.It is not neccessary to use all the tables.
SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = "7x05"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of scores for episode 7x05It is not neccessary to use all the tables.