sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT tournament FROM table_name_34 WHERE winning_score = –4(71 - 72 - 72 - 69 = 284)
CREATE TABLE INST, Here is a database schema( table schema);
What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)?It is not neccessary to use all the tables.
SELECT COUNT Candidates FROM table WHERE First elected = 1948 , 1964
CREATE TABLE INST, Here is a database schema( table schema);
what's the total number of candidates for first elected in 1948 , 1964.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Away team = watford
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when watford was the away team?.It is not neccessary to use all the tables.
SELECT further_cities FROM table_197286_4 WHERE country = "Slovakia" AND direction = "West"
CREATE TABLE INST, Here is a database schema( table schema);
Name the further cities for slovakia and west directionIt is not neccessary to use all the tables.
SELECT points FROM table_name_44 WHERE performer = "nigel connell"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did Nigel Connell have?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4044')) AND lab.labname = 'o2 sat (%)' AND STRFTIME('%y', lab.labresulttime) = '2101'
CREATE TABLE INST, Here is a database schema( table schema);
how many times has a o2 sat (%) test been given to patient 005-4044 in 2101?It is not neccessary to use all the tables.
SELECT gname, gtype FROM Video_games ORDER BY gname
CREATE TABLE INST, Here is a database schema( table schema);
Show all video games and their types in the order of their names.It is not neccessary to use all the tables.
SELECT record FROM table_name_86 WHERE date = "april 3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record on April 3?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.departure_time BETWEEN 830 AND 730) AND date_day.day_number = 4 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_nam...
CREATE TABLE INST, Here is a database schema( table schema);
okay and on 5 4 i would like to go from ATLANTA to DENVER leaving early in the morning around 8It is not neccessary to use all the tables.
SELECT position FROM table_name_34 WHERE college = "washington"
CREATE TABLE INST, Here is a database schema( table schema);
What position did the palyer drafted out of Washington play?It is not neccessary to use all the tables.
SELECT tries_against FROM table_name_14 WHERE tries_for = "32"
CREATE TABLE INST, Here is a database schema( table schema);
What was the tries against when they had 32 tries for?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Incumbent = John Lewis
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the election with incumbent john lewis?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Save = ||20,599||32-37
CREATE TABLE INST, Here is a database schema( table schema);
When have a Save of ||20,599||32-37?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Transcripts
CREATE TABLE INST, Here is a database schema( table schema);
How many transcripts are released?It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE 2nd leg = 3-2
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st leg of the match with a 2nd leg of 3-2?.It is not neccessary to use all the tables.
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID ORDER BY T1.Name
CREATE TABLE INST, Here is a database schema( table schema);
Show the names and ids of tourist attractions that are visited at least two times with a bar chart, and I want to show by the Name from low to high.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Runs = 577
CREATE TABLE INST, Here is a database schema( table schema);
In what season was 577 runs scored?.It is not neccessary to use all the tables.
SELECT MIN(episode__number) FROM table_17481974_1 WHERE original_airdate = "July 14, 2003"
CREATE TABLE INST, Here is a database schema( table schema);
Which is the number of the episode "rook gave" "rūku dīo" (デ デ ィ オ ー ル) which aired on July 14 2003It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Visitor = minnesota
CREATE TABLE INST, Here is a database schema( table schema);
What was the record when Minnesota was the visiting team?.It is not neccessary to use all the tables.
SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 22"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = "mika häkkinen"
CREATE TABLE INST, Here is a database schema( table schema);
Which Time/Retired has a Grid smaller than 3 and a Driver of mika häkkinen?It is not neccessary to use all the tables.
SELECT result FROM table_name_20 WHERE score = "0-2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result when the score is 0-2?It is not neccessary to use all the tables.
SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = "day" AND year_entered_competition > 1958
CREATE TABLE INST, Here is a database schema( table schema);
Which is the earliest founded day school to have entered the competition after 1958?It is not neccessary to use all the tables.
SELECT Power output FROM table WHERE Build date = 1951–1956
CREATE TABLE INST, Here is a database schema( table schema);
Which power output had a Build date of 1951–1956?.It is not neccessary to use all the tables.
SELECT day FROM table_22298383_1 WHERE laps = "364" AND driver = "Cale Yarborough"
CREATE TABLE INST, Here is a database schema( table schema);
On what day was the race that Cale Yarborough won in 364 laps?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_34 WHERE attendance = "62,657"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the game attended by 62657?It is not neccessary to use all the tables.
SELECT COUNT(pct) FROM table_name_5 WHERE years > 100 AND team = "akron"
CREATE TABLE INST, Here is a database schema( table schema);
What is Akron's highest Pct in 100 years?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_51 WHERE team = "scuderia lancia corse"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year when Scuderia Lancia Corse competed?It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Date = 10 may AND Name = targa florio
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the circuit for 10 may for targa florio.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 70-72-69=211
CREATE TABLE INST, Here is a database schema( table schema);
What was the place for the score 70-72-69=211?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tournament = san diego AND Opponent = ann grossman
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when the tournament is san diego and the opponent is ann grossman?.It is not neccessary to use all the tables.
SELECT Founding Date FROM table WHERE Letters = ΚΨΚ
CREATE TABLE INST, Here is a database schema( table schema);
What is the founding date if the letters are κψκ?.It is not neccessary to use all the tables.
SELECT "Competition" FROM table_13862 WHERE "Draws" = '2'
CREATE TABLE INST, Here is a database schema( table schema);
Which competition had 2 draws?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Incumbent = Barney Frank
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for barney frank?.It is not neccessary to use all the tables.
SELECT method FROM table_name_72 WHERE round < 3 AND res = "nc"
CREATE TABLE INST, Here is a database schema( table schema);
What was the method for the resolution of nc where the fight lasted less than 3 rounds?It is not neccessary to use all the tables.
SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of events with a top-25 less than 0?It is not neccessary to use all the tables.
SELECT "Opponents" FROM table_24126 WHERE "Opponent" = 'Stanford'
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponents stanfordIt is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Outcome = winner AND Opponents in the final = rick leach jim pugh
CREATE TABLE INST, Here is a database schema( table schema);
WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?.It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_61 WHERE time < 57.05
CREATE TABLE INST, Here is a database schema( table schema);
What is the average rank for 57.05 time?It is not neccessary to use all the tables.
SELECT Lead FROM table WHERE Second = nkeiruka ezekh
CREATE TABLE INST, Here is a database schema( table schema);
Who is the lead for the team with Nkeiruka Ezekh as second?.It is not neccessary to use all the tables.
SELECT SUM Longitude FROM table WHERE Diameter (km) = 22.6 AND Latitude < -12.4
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4.It is not neccessary to use all the tables.
SELECT name FROM table_name_33 WHERE eliminated = "banana night"
CREATE TABLE INST, Here is a database schema( table schema);
Who was eliminated on Banana Night?It is not neccessary to use all the tables.
SELECT COUNT Area km 2 FROM table WHERE Official Name = West Isles
CREATE TABLE INST, Here is a database schema( table schema);
How many areas are named West Isles? .It is not neccessary to use all the tables.
SELECT power_rpm FROM table_name_91 WHERE model_engine = "1.8 duratorq"
CREATE TABLE INST, Here is a database schema( table schema);
Name the power for 1.8 duratorqIt is not neccessary to use all the tables.
SELECT team FROM table_24491017_1 WHERE position = "11th"
CREATE TABLE INST, Here is a database schema( table schema);
What team was he on when he finished in 11th position?It is not neccessary to use all the tables.
SELECT date FROM table_27713030_12 WHERE team = "Boston"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date when Boston was the team?It is not neccessary to use all the tables.
SELECT MIN Wins FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least wins.It is not neccessary to use all the tables.
SELECT date FROM table_name_76 WHERE away_team = "ipswich town"
CREATE TABLE INST, Here is a database schema( table schema);
What date was Ipswich Town the away team?It is not neccessary to use all the tables.
SELECT title FROM table_24649082_1 WHERE directed_by = "Charles Beeson"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the episode directed by Charles Beeson?It is not neccessary to use all the tables.
SELECT 2 AS nd_round FROM table_name_63 WHERE team_2 = "girondins de bordeaux (d1)"
CREATE TABLE INST, Here is a database schema( table schema);
What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Region = new zealand AND Catalog = cy-24623
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the catalog cy-24623 for New Zealand?.It is not neccessary to use all the tables.
SELECT engine_s_ FROM table_name_41 WHERE year = 1991
CREATE TABLE INST, Here is a database schema( table schema);
What engine was made in 1991?It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_18018214_3
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of wins for any team?It is not neccessary to use all the tables.
SELECT Open 1st VIII FROM table WHERE Crew = 2012
CREATE TABLE INST, Here is a database schema( table schema);
What is the Open 1st VIII for the 2012 crew?.It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Location = carrick-on-shannon
CREATE TABLE INST, Here is a database schema( table schema);
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?.It is not neccessary to use all the tables.
SELECT Joined FROM table WHERE Institution = Tougaloo College
CREATE TABLE INST, Here is a database schema( table schema);
What is the year the institution Tougaloo College joined?.It is not neccessary to use all the tables.
SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of appointment for outgoing manager Campbell MoneyIt is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Best finish = 2 AND Scoring average < 71.24
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year when the best finish is 2 and the scoring average is less than 71.24?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = september 3
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent on the September 3 game?.It is not neccessary to use all the tables.
SELECT Committee FROM table WHERE First Elected = 1993
CREATE TABLE INST, Here is a database schema( table schema);
What Committee has the First Elected of 1993?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Country = china AND Perpetrator = shi yuejun , 35
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Country is "China", and when Perpetrator is "Shi Yuejun , 35"?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.age < "85"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients less than 85 years of age have bladder cancer/sda primary disease?It is not neccessary to use all the tables.
SELECT CreationDate, Id AS "post_link" FROM Posts AS p WHERE NOT ClosedDate IS NULL AND Score = 1 AND CommentCount = 0 AND AnswerCount = 0 AND NOT EXISTS(SELECT l.Id FROM PostLinks AS l WHERE l.PostId = p.Id OR l.RelatedPostId = p.Id) ORDER BY CreationDate
CREATE TABLE INST, Here is a database schema( table schema);
Closed, score 1, no answers or comments.It is not neccessary to use all the tables.
SELECT status FROM table_name_94 WHERE score = 21.5
CREATE TABLE INST, Here is a database schema( table schema);
Which status accompanies the score 21.5?It is not neccessary to use all the tables.
SELECT college FROM table_name_23 WHERE player = "delray brooks"
CREATE TABLE INST, Here is a database schema( table schema);
What college did delray brooks go to?It is not neccessary to use all the tables.
SELECT record FROM table_name_87 WHERE date = "july 28"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record on July 28?It is not neccessary to use all the tables.
SELECT total_viewers FROM table_name_12 WHERE share < 8
CREATE TABLE INST, Here is a database schema( table schema);
When the shares were less than 8 how many total viewers were there?It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_33 WHERE name = "miguel induráin" AND vuelta > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for miguel induráin with a Vuelta larger than 1?It is not neccessary to use all the tables.
SELECT Launch site FROM table WHERE Carrier rocket = scout AND COSPAR ID = 1971-109a
CREATE TABLE INST, Here is a database schema( table schema);
From where did the Scout carrier rocket with the satellite that has a COSPAR ID of 1971-109a launch?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_5 WHERE score = "1-6, 3-6"
CREATE TABLE INST, Here is a database schema( table schema);
What is Outcome when Score is 1-6 3-6?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Opponent = cincinnati bengals
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance when the Cincinnati Bengals were the opponents?.It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_35 WHERE record = "48-51"
CREATE TABLE INST, Here is a database schema( table schema);
With a record of 48-51 for the team the lowest 2005 attendance was listed as how many?It is not neccessary to use all the tables.
SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson"
CREATE TABLE INST, Here is a database schema( table schema);
What is the capacity of the team in tucson USA?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Network = bbc one AND Number of Viewers = 30.15million
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2.It is not neccessary to use all the tables.
SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest lost that has an against greater than 60 points less than 61 and an 18 drawn?It is not neccessary to use all the tables.
SELECT partner FROM table_name_15 WHERE opponents_in_the_final = "anamika bhargava sylvia krywacz"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the partner for opponents of anamika bhargava sylvia krywaczIt is not neccessary to use all the tables.
SELECT score_points FROM table_name_42 WHERE rank_points = "10" AND event = "wc milan"
CREATE TABLE INST, Here is a database schema( table schema);
which Score points has a Rank points of 10 and an Event of wc milan?It is not neccessary to use all the tables.
SELECT COUNT Rating FROM table WHERE Share < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the total ratings on share less than 4?.It is not neccessary to use all the tables.
SELECT Read by FROM table WHERE ISBN = ISBN 978-1-4084-6879-1
CREATE TABLE INST, Here is a database schema( table schema);
THe audio book with ISBN 978-1-4084-6879-1 is read by whom?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team score = 7.15 (57)
CREATE TABLE INST, Here is a database schema( table schema);
What was the home teams score agains the team that scored 7.15 (57)?.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Score = L 110–112 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for l 110–112 (ot).It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Loss = blyleven (4-5)
CREATE TABLE INST, Here is a database schema( table schema);
What was the record at the game that had a loss of Blyleven (4-5)?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponents = 1. fc nuremberg AND Competition = gc
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the GC competition when the opponents are 1. FC Nuremberg?.It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Percentage of possible points = 67.22%
CREATE TABLE INST, Here is a database schema( table schema);
How many points have a percentage of possible points of 67.22%?.It is not neccessary to use all the tables.
SELECT SUM Draw FROM table WHERE Artist = wendy fierce
CREATE TABLE INST, Here is a database schema( table schema);
How many draws feature artist wendy fierce?.It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Grand Prix = Dutch TT
CREATE TABLE INST, Here is a database schema( table schema);
Who had the fastest lap in the Dutch TT Grand Prix? .It is not neccessary to use all the tables.
SELECT "1st Prize( $ )" FROM table_16949 WHERE "Location" = 'Virginia'
CREATE TABLE INST, Here is a database schema( table schema);
What is the prize money for Virginia?It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_29686983_1 WHERE pole_position = "Fabien Foret"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum round and fabien foret had the pole position?It is not neccessary to use all the tables.
SELECT club FROM table_name_62 WHERE played = "22" AND try_bonus = "0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the club when the played number is 22 and the try bonus was 0?It is not neccessary to use all the tables.
SELECT rebuilt FROM table_name_40 WHERE name_as_rebuilt = "binevanagh"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rebuilt has a Name as rebuilt of binevanagh?It is not neccessary to use all the tables.
SELECT elevation_msnm FROM table_name_59 WHERE population_censo_2007_hab_ = "77.392*"
CREATE TABLE INST, Here is a database schema( table schema);
What is the elevation msnm for a population censo 2007(hab) of 77.392*?It is not neccessary to use all the tables.
SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3
CREATE TABLE INST, Here is a database schema( table schema);
Among the cars with more than lowest horsepower which ones do not have more than 3 cylinders? List the car makeid and make name.It is not neccessary to use all the tables.
SELECT Constellation FROM table WHERE Right ascension ( J2000 ) = 10h18m58.4s
CREATE TABLE INST, Here is a database schema( table schema);
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Works number < 1673 AND Number < 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the date with works number less than 1673 and number less than 3.It is not neccessary to use all the tables.
SELECT "Score" FROM table_76141 WHERE "Winner" = 'suntory sungoliath' AND "Attendance" = 'n/a'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score when the winner was suntory sungoliath, and the number attendance was n/a?It is not neccessary to use all the tables.
SELECT position FROM table_name_48 WHERE college_hall_of_fame = "no"
CREATE TABLE INST, Here is a database schema( table schema);
What Position has no College Hall of Fame?It is not neccessary to use all the tables.
SELECT COUNT Location FROM table WHERE Callsign = DXGH
CREATE TABLE INST, Here is a database schema( table schema);
How many locations have the callsign DXGH?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_63 WHERE grid = 2
CREATE TABLE INST, Here is a database schema( table schema);
Which driver had a grid of 2?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Year > 2009 AND Score = 7–5, 6–7 (6–8) , 6–1
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent, when Year is greater than 2009, and when Score is 7–5, 6–7 (6–8) , 6–1?.It is not neccessary to use all the tables.
SELECT geographical_regions FROM table_18618707_1 WHERE contestant = "Cristina Peña Garzon"
CREATE TABLE INST, Here is a database schema( table schema);
When cristina peña garzon is the contestant what is the geographical region?It is not neccessary to use all the tables.