sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT opponent FROM table_23346983_1 WHERE record = "5-1"
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Orangemen play against when their record was 5-1?It is not neccessary to use all the tables.
SELECT "Winner" FROM table_57265 WHERE "Attendance" > '62,026' AND "Year" < '1985'
CREATE TABLE INST, Here is a database schema( table schema);
Who won in the game before 1985 attended by over 62,026?It is not neccessary to use all the tables.
SELECT 2nd Party FROM table WHERE Election = 1885
CREATE TABLE INST, Here is a database schema( table schema);
What is 2nd Party, when Election is "1885"?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 87232 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-3 year')
CREATE TABLE INST, Here is a database schema( table schema);
has patient 87232 got admitted to the hospital since 3 years ago?It is not neccessary to use all the tables.
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "August 12, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Name the republican steve sauerberg for august 12 2008It is not neccessary to use all the tables.
SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
CREATE TABLE INST, Here is a database schema( table schema);
Show all distinct city where branches with at least 100 memberships are located.It is not neccessary to use all the tables.
SELECT Interview FROM table WHERE Evening Gown = 8.977
CREATE TABLE INST, Here is a database schema( table schema);
Which interview score corresponds with the evening gown score of 8.977?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Population < 87,585 AND Area (km 2 ) < 1.28 AND Code > 27504 AND Most spoken language = xhosa
CREATE TABLE INST, Here is a database schema( table schema);
What is the place that speaks xhosa, has a population less than 87,585, an area smaller than 1.28 squared kilometers, and a code larger than 27504?.It is not neccessary to use all the tables.
SELECT MIN Overall FROM table WHERE Round > 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest overall with more than 17 rounds?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team score = 10.15 (75)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the away team scored 10.15 (75)?.It is not neccessary to use all the tables.
SELECT opening FROM table_name_83 WHERE white = "anand" AND moves < 61 AND result = "½–½"
CREATE TABLE INST, Here is a database schema( table schema);
What's the opening when white is Anand with fewer than 61 moves for a result of ½–½?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick = 113
CREATE TABLE INST, Here is a database schema( table schema);
What position does pick 113 play?.It is not neccessary to use all the tables.
SELECT SUM("score" + "score") FROM table_203_551 WHERE "competition" = 'euro 2012 qualifying'
CREATE TABLE INST, Here is a database schema( table schema);
how many goals were scored at the euro 2012 qualifying competition ?It is not neccessary to use all the tables.
SELECT score FROM table_name_32 WHERE home_team = "sheffield wednesday"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when Sheffield Wednesday was the home team?It is not neccessary to use all the tables.
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.8%" AND province = "Manitoba"
CREATE TABLE INST, Here is a database schema( table schema);
What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%?It is not neccessary to use all the tables.
SELECT MAX("Top 10s") FROM table_61719 WHERE "Wins" < '0'
CREATE TABLE INST, Here is a database schema( table schema);
What is the best top 10 when there are fewer than 0 wins?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 46-31
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the record was 46-31?.It is not neccessary to use all the tables.
SELECT School FROM table WHERE County = 69 ripley
CREATE TABLE INST, Here is a database schema( table schema);
What school has a county of 69 ripley?.It is not neccessary to use all the tables.
SELECT Parliament FROM table WHERE Name = Sylvia Lim Swee Lian
CREATE TABLE INST, Here is a database schema( table schema);
Which parliament is sylvia lim swee lian?.It is not neccessary to use all the tables.
SELECT T2.city, COUNT(*), T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which city has the most addresses? List the city name number of addresses and city id.It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109
CREATE TABLE INST, Here is a database schema( table schema);
In which round did Paul McDonald have an overall greater than 109?It is not neccessary to use all the tables.
SELECT MIN Races FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest amount of races in any season? .It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Grid > 14 AND Rider = sylvain guintoli
CREATE TABLE INST, Here is a database schema( table schema);
How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?.It is not neccessary to use all the tables.
SELECT Dutch FROM table WHERE Crimean Gothic = apel
CREATE TABLE INST, Here is a database schema( table schema);
What's the Dutch word for Apel?.It is not neccessary to use all the tables.
SELECT Wind (m/s) FROM table WHERE Date = 21 June 1976
CREATE TABLE INST, Here is a database schema( table schema);
What was the wind on 21 june 1976?.It is not neccessary to use all the tables.
SELECT Democratic ticket FROM table WHERE Workers ticket = james p. cannon
CREATE TABLE INST, Here is a database schema( table schema);
What is the name on the Democratic ticket when the Workers ticket is james p. cannon?.It is not neccessary to use all the tables.
SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID)
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, and display the number of job id from low to high order.It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_name_71 WHERE game_site = "kingdome" AND date = "october 13, 1991"
CREATE TABLE INST, Here is a database schema( table schema);
Which week was the game held at Kingdome on October 13 1991?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 72 - 67 - 80 - 71 = 290
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par for the player from the United States with a 72-67-80-71=290 score?It is not neccessary to use all the tables.
SELECT Vacator FROM table WHERE District = Louisiana 1st
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the vacator for district Louisiana 1st?.It is not neccessary to use all the tables.
SELECT Draw FROM table WHERE Match = 10 AND Team = skra warszawa
CREATE TABLE INST, Here is a database schema( table schema);
What is the Draw for match 10, and the team was skra warszawa?.It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Name = Datsun Twin 200
CREATE TABLE INST, Here is a database schema( table schema);
In the Datsun Twin 200 race, what was the fastest lap?.It is not neccessary to use all the tables.
SELECT position FROM table_name_12 WHERE player = "aaron williams"
CREATE TABLE INST, Here is a database schema( table schema);
What Position did Aaron Williams play?It is not neccessary to use all the tables.
SELECT Jockey FROM table WHERE Race = Doncaster Handicap
CREATE TABLE INST, Here is a database schema( table schema);
List the rider for the doncaster handicap compeition..It is not neccessary to use all the tables.
SELECT "Result" FROM table_41931 WHERE "Attendance" = '42,308'
CREATE TABLE INST, Here is a database schema( table schema);
Which team won on the day when attendance was 42,308?It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of wins for 30 startsIt is not neccessary to use all the tables.
SELECT ! Late 1941 FROM table WHERE 1978 Veteran membership = 20000
CREATE TABLE INST, Here is a database schema( table schema);
What is the late 1941 when 1978 veteran membership is 20000.It is not neccessary to use all the tables.
SELECT fname, lname FROM student WHERE city_code <> 'HKG' ORDER BY age
CREATE TABLE INST, Here is a database schema( table schema);
List the first and last name of students who are not living in the city with code HKG and sorted the results by their ages.It is not neccessary to use all the tables.
SELECT player FROM table_name_68 WHERE country = "united states" AND score = 77 - 72 - 72 = 221
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Player that has the Country of united states and the Score of 77-72-72=221?It is not neccessary to use all the tables.
SELECT dates_active FROM table_10602294_1 WHERE name = "Kamba"
CREATE TABLE INST, Here is a database schema( table schema);
When was Kamba active?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Points = 17
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis has 17 points?.It is not neccessary to use all the tables.
SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = "gary player"
CREATE TABLE INST, Here is a database schema( table schema);
When Gary Player was the runner-up what was the margin of victory?It is not neccessary to use all the tables.
SELECT Rank points FROM table WHERE Event = wc milan AND Shooter = lalita yauhleuskaya ( aus )
CREATE TABLE INST, Here is a database schema( table schema);
What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_80 WHERE away_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue when fitzroy was the away team?It is not neccessary to use all the tables.
SELECT team FROM table_name_26 WHERE rider = "frank hulbert"
CREATE TABLE INST, Here is a database schema( table schema);
What team is Frank Hulbert on?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Viewers (in millions) = 8.51
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that had 8.51 million viewers?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament has an Outcome of runner-up and an Opponent of maša zec peškirič?It is not neccessary to use all the tables.
SELECT "Outcome" FROM table_65020 WHERE "Partner" = 'iryna bremond'
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome when the partner was Iryna Bremond?It is not neccessary to use all the tables.
SELECT COUNT(race_name) FROM table_22673956_1 WHERE date = "October 1"
CREATE TABLE INST, Here is a database schema( table schema);
How many races took place on October 1?It is not neccessary to use all the tables.
SELECT demographic.admission_type, demographic.days_stay FROM demographic WHERE demographic.subject_id = "91588"
CREATE TABLE INST, Here is a database schema( table schema);
what is admission type and days of hospital stay of subject id 91588?It is not neccessary to use all the tables.
SELECT AVG(no_of_customers) FROM bank WHERE state = 'Utah'
CREATE TABLE INST, Here is a database schema( table schema);
Find the average number of customers in all banks of Utah state.It is not neccessary to use all the tables.
SELECT title FROM table_name_31 WHERE year < 2008 AND platform = "xbox 360"
CREATE TABLE INST, Here is a database schema( table schema);
Which title has a year prior to 2008 and xbox 360 as the platform?It is not neccessary to use all the tables.
SELECT COUNT Red (E8) FROM table WHERE Interior/Roof = Parchment/saddle
CREATE TABLE INST, Here is a database schema( table schema);
How many different results for red (e8) does the model with parchment/saddle interior/roof have?.It is not neccessary to use all the tables.
SELECT AVG(losses) FROM table_name_37 WHERE games_played > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average losses for the team(s) that played more than 8 games?It is not neccessary to use all the tables.
SELECT Losing bonus FROM table WHERE Points = 53
CREATE TABLE INST, Here is a database schema( table schema);
What was the losing bonus that had 53 points?.It is not neccessary to use all the tables.
SELECT COUNT(lane) FROM table_name_95 WHERE nationality = "great britain" AND time > 57.78
CREATE TABLE INST, Here is a database schema( table schema);
What lane is from Great Britain and a 57.78 time?It is not neccessary to use all the tables.
SELECT COUNT Stage (Winner) FROM table WHERE Team Classification = Team Columbia
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of stage winners for team columbia.It is not neccessary to use all the tables.
SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20
CREATE TABLE INST, Here is a database schema( table schema);
List the positions of players whose average number of points scored by that position is larger than 20, compare the number of positions.It is not neccessary to use all the tables.
SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?It is not neccessary to use all the tables.
SELECT incumbent FROM table_27487712_1 WHERE elected = 1978
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent for the election in 1978?It is not neccessary to use all the tables.
SELECT Grand Prix FROM table WHERE Race Winner = Daijiro Hiura
CREATE TABLE INST, Here is a database schema( table schema);
What grand prixs did Daijiro Hiura win? .It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Sub-total = 9:30
CREATE TABLE INST, Here is a database schema( table schema);
On which day were the subtotal hours 9:30?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Children of Earth = "day five"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director of Children of Earth of "day five"?.It is not neccessary to use all the tables.
SELECT COUNT Goal FROM table WHERE Competition = euro 2012 q AND Score = 3-0
CREATE TABLE INST, Here is a database schema( table schema);
How many goals when the score is 3-0 in the euro 2012 q?.It is not neccessary to use all the tables.
SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
How much international mail has a change of +357% later than 2008?It is not neccessary to use all the tables.
SELECT visiting_team FROM table_name_67 WHERE stadium = "hubert h. humphrey metrodome"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team who played at the hubert h. humphrey metrodome stadium?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062
CREATE TABLE INST, Here is a database schema( table schema);
What is the average week for the game against baltimore colts with less than 41062 in attendance?It is not neccessary to use all the tables.
SELECT city FROM table_name_39 WHERE date = "june 9, 1976"
CREATE TABLE INST, Here is a database schema( table schema);
Which City has a Date of june 9 1976?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par = 11
CREATE TABLE INST, Here is a database schema( table schema);
What country was the player who was 11 off par from?.It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Record = 1-1
CREATE TABLE INST, Here is a database schema( table schema);
what is the method when the record is 1-1?.It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE First elected < 2002 AND District = maryland 3
CREATE TABLE INST, Here is a database schema( table schema);
Who is the incumbent who was first elected before 2002 from the maryland 3 district?.It is not neccessary to use all the tables.
SELECT W/L FROM table WHERE Result = 2–6, 5–7, 7–6 (11–9) , 1–6
CREATE TABLE INST, Here is a database schema( table schema);
What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6?.It is not neccessary to use all the tables.
SELECT MIN Enrollment FROM table WHERE Location = Milwaukee, Wisconsin
CREATE TABLE INST, Here is a database schema( table schema);
How many people are enrolled at the university in milwaukee, wisconsin.It is not neccessary to use all the tables.
SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of events that Al Geiberger has played with earnings larger than 527033?It is not neccessary to use all the tables.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-34632') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND intakeoutput.celllabel = 'suprapubic urine' AND intakeoutput.cellpath LIKE '%output%'
CREATE TABLE INST, Here is a database schema( table schema);
what was the total of the suprapubic urine output that patient 028-34632 had on the first icu visit?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Result = 5–1
CREATE TABLE INST, Here is a database schema( table schema);
What is the Venue where the Result is 5–1?.It is not neccessary to use all the tables.
SELECT AVG(lead_margin) FROM table_name_86 WHERE dates_administered = "november 13-november 19, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
Name the average Lead Margin on november 13-november 19 2007?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Event = billabong pro
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Event is Billabong Pro?.It is not neccessary to use all the tables.
SELECT Elevation FROM table WHERE Nickname = the gathering place
CREATE TABLE INST, Here is a database schema( table schema);
Name the elevation of the gathering place.It is not neccessary to use all the tables.
SELECT pole_position FROM table_23315271_2 WHERE circuit = "Misano World circuit"
CREATE TABLE INST, Here is a database schema( table schema);
Who held the pole position in misano world circuit?It is not neccessary to use all the tables.
SELECT Condition FROM table WHERE Partial thromboplastin time = unaffected AND Prothrombin time = unaffected AND Platelet count = decreased
CREATE TABLE INST, Here is a database schema( table schema);
Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Circuit = Solitudering
CREATE TABLE INST, Here is a database schema( table schema);
What date has a solitudering circuit.It is not neccessary to use all the tables.
SELECT notes FROM table_name_57 WHERE distance = "men's speed skating"
CREATE TABLE INST, Here is a database schema( table schema);
What were the notes during the distance of Men's Speed Skating?It is not neccessary to use all the tables.
SELECT Giant Slalom FROM table WHERE Slalom = 45
CREATE TABLE INST, Here is a database schema( table schema);
Which Giant Slalom has a Slalom of 45?.It is not neccessary to use all the tables.
SELECT nhl_team FROM table_2679061_4 WHERE player = "Esa Tikkanen"
CREATE TABLE INST, Here is a database schema( table schema);
Which team drafted Esa Tikkanen?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Date = 18/03/2006
CREATE TABLE INST, Here is a database schema( table schema);
What was the venue for the game on 18/03/2006?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Position = 9th
CREATE TABLE INST, Here is a database schema( table schema);
in what year the position was the 9th.It is not neccessary to use all the tables.
SELECT Home city FROM table WHERE Stadium = stadion src mladost
CREATE TABLE INST, Here is a database schema( table schema);
what is the home city for the stadion src mladost?.It is not neccessary to use all the tables.
SELECT category FROM table_name_9 WHERE recipient_s_ = "nick jonas" AND award = "kids' choice awards mexico"
CREATE TABLE INST, Here is a database schema( table schema);
In which category did Nick Jonas win at the Kids' Choice Awards Mexico?It is not neccessary to use all the tables.
SELECT COUNT Points defending FROM table WHERE Player = Stanislas Wawrinka
CREATE TABLE INST, Here is a database schema( table schema);
How many times is player Stanislas Wawrinka on the list?.It is not neccessary to use all the tables.
SELECT Motive FROM table WHERE Year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the motive before 2007?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 28–19
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game when the record was 28–19?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_8468 WHERE "Name" = 'tirrana'
CREATE TABLE INST, Here is a database schema( table schema);
what is the date for tirrana?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Team = Cleveland
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most assist when the opponent was Cleveland?.It is not neccessary to use all the tables.
SELECT stage AS winner FROM table_name_38 WHERE start_of_stage = "cauterets"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the stage winner when the start of stage is Cauterets?It is not neccessary to use all the tables.
SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"
CREATE TABLE INST, Here is a database schema( table schema);
what year did enrique alciati make a statueIt is not neccessary to use all the tables.
SELECT Team record FROM table WHERE Week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the Rhein Fire team record on week 8?.It is not neccessary to use all the tables.
SELECT Release Date FROM table WHERE Location = europe
CREATE TABLE INST, Here is a database schema( table schema);
What is the release date when the location is Europe?.It is not neccessary to use all the tables.
SELECT tv_time FROM table_name_33 WHERE week > 15 AND opponent = "oakland raiders"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15 WITH THE OAKLAND RAIDERS AS OPPONENT?It is not neccessary to use all the tables.
SELECT Death/2012 FROM table WHERE Birth/2012 = 127
CREATE TABLE INST, Here is a database schema( table schema);
What were the total number of 2012 deaths when 2012 births were 127?.It is not neccessary to use all the tables.