sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT college FROM table_26996293_1 WHERE player = "Bob LaRose"
CREATE TABLE INST, Here is a database schema( table schema);
What college did Bob Larose attend?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What did Essendon score when they were the away team?.It is not neccessary to use all the tables.
SELECT co_drivers FROM table_name_78 WHERE laps > 196 AND year < 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is Co-Drivers when Laps is greater than 196 and when Year is before 2010?It is not neccessary to use all the tables.
SELECT Original artist FROM table WHERE Theme = The Rolling Stones
CREATE TABLE INST, Here is a database schema( table schema);
Who was the original artist of the chosen song when the theme was The Rolling Stones?.It is not neccessary to use all the tables.
SELECT Nickname FROM table WHERE Meaning = god knows my journey
CREATE TABLE INST, Here is a database schema( table schema);
What nickname has the meaning of God knows my journey?.It is not neccessary to use all the tables.
SELECT MAX Injured FROM table WHERE Place = rohtas, bihar AND Killed < 13
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?.It is not neccessary to use all the tables.
SELECT "title" FROM table_204_696 WHERE "release date" = 2013 AND "release date" = 12
CREATE TABLE INST, Here is a database schema( table schema);
tell me the only one released in december 2013 .It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the away team at Collingwood?.It is not neccessary to use all the tables.
SELECT SUM(balls_faced) FROM table_name_99 WHERE sr > 48.28 AND innings = 3 AND average < 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of balls faced associated with a strike rate over 48.28 3 innings and an average under 5?It is not neccessary to use all the tables.
SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood"
CREATE TABLE INST, Here is a database schema( table schema);
When the driver richard attwood has a constructor of brm what is the number of laps?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Winning score = 67-61-68-67=263
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament had a winning score of 67-61-68-67=263?.It is not neccessary to use all the tables.
SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood"
CREATE TABLE INST, Here is a database schema( table schema);
What Date has an Outcome of runner up and a Partner of tyra calderwood?It is not neccessary to use all the tables.
SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
CREATE TABLE INST, Here is a database schema( table schema);
what is the race title when the winner is dick johnson and the circuit is sandown raceway?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Original air date = February 27, 1954
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the first episode of the season that begin on february 27, 1954?.It is not neccessary to use all the tables.
SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a To par larger than 17 and a Player of mike brady?It is not neccessary to use all the tables.
SELECT Takeover Date FROM table WHERE FA Division(s) = mitre
CREATE TABLE INST, Here is a database schema( table schema);
What is the takeover date of the FA division mitre?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Area = eketahuna
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name with area of eketahuna.It is not neccessary to use all the tables.
SELECT Years at club FROM table WHERE Games < 7 AND Goals > 2 AND Player = john frazer
CREATE TABLE INST, Here is a database schema( table schema);
Which Years at club have Games smaller than 7, and Goals larger than 2, and a Player of john frazer?.It is not neccessary to use all the tables.
SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = "John Bishop"
CREATE TABLE INST, Here is a database schema( table schema);
What was the air date when the team guest captain was john bishop?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.long_title = "Major depressive affective disorder, single episode, unspecified"
CREATE TABLE INST, Here is a database schema( table schema);
how many asian patients have the diagnoses titled major depressive affective disorder, single episode, unspecified?It is not neccessary to use all the tables.
SELECT Sunday Surya (the Sun) FROM table WHERE Thursday Guru (Jupiter) = برس وار Bres'var
CREATE TABLE INST, Here is a database schema( table schema);
In language where Thursday is برس وار bres'var, what is Sunday?.It is not neccessary to use all the tables.
SELECT country FROM table_17634290_7 WHERE moving_from = "Bristol City"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the country where moving from is listed as bristol city?It is not neccessary to use all the tables.
SELECT AVG("TD's") FROM table_55650 WHERE "Player" = 'jacques rumph' AND "Yards" > '214'
CREATE TABLE INST, Here is a database schema( table schema);
what is the average td's for the player jacques rumph with yards more than 214?It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Newspaper/Magazine = al-thawra
CREATE TABLE INST, Here is a database schema( table schema);
What is Status, when Newspaper/Magazine is Al-Thawra?.It is not neccessary to use all the tables.
SELECT stumpings FROM table_11303072_9 WHERE player = "Paul Nixon"
CREATE TABLE INST, Here is a database schema( table schema);
How many stumpings has Paul Nixon in his career?It is not neccessary to use all the tables.
SELECT type FROM table_name_99 WHERE name = "bo qin"
CREATE TABLE INST, Here is a database schema( table schema);
What type of state is bo qin?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE 2009 > 527,180 AND Worldwide ranking = 666
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a 2009 larger than 527,180, and a Worldwide ranking of 666?.It is not neccessary to use all the tables.
SELECT virtues FROM table_name_84 WHERE significant_relationship = "parents"
CREATE TABLE INST, Here is a database schema( table schema);
The Significant Relationship of Parents belongs with what Virtue?It is not neccessary to use all the tables.
SELECT Winning score FROM table WHERE Runner(s)-up = phillip price
CREATE TABLE INST, Here is a database schema( table schema);
What was Olazabal's winning score in the event in which Phillip Price finished 2nd?.It is not neccessary to use all the tables.
SELECT name FROM table_name_42 WHERE type = "dead end" AND rank = "22"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the dead end type ranked 22?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = jay haas
CREATE TABLE INST, Here is a database schema( table schema);
Where did Jay Haas place?.It is not neccessary to use all the tables.
SELECT school_club_team_country FROM table_name_53 WHERE no_s_ < 4
CREATE TABLE INST, Here is a database schema( table schema);
What school club team or country did the player with a number smaller than 4 come from?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = october 2, 2005
CREATE TABLE INST, Here is a database schema( table schema);
Who played the Rams on October 2, 2005?.It is not neccessary to use all the tables.
SELECT catalog FROM table_name_66 WHERE date = "1984"
CREATE TABLE INST, Here is a database schema( table schema);
Which catalog had a date year of 1984?It is not neccessary to use all the tables.
SELECT T1.staff_id, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager"
CREATE TABLE INST, Here is a database schema( table schema);
What are the staff ids and genders of all staffs whose job title is Department Manager?It is not neccessary to use all the tables.
SELECT "Launched" FROM table_15688 WHERE "Name" = 'harusame'
CREATE TABLE INST, Here is a database schema( table schema);
What is the launched date for the Harusame ship?It is not neccessary to use all the tables.
SELECT Pos FROM table WHERE Lap Two = 22.7290
CREATE TABLE INST, Here is a database schema( table schema);
Which positions have a lap two time of 22.7290?.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = l 14-3
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest week with a result of l 14-3?.It is not neccessary to use all the tables.
SELECT title FROM table_22170495_6 WHERE original_airing_on_e4 = "May 2, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the original airing on e4 May 2 2010?It is not neccessary to use all the tables.
SELECT location FROM table_name_15 WHERE opponent = "lyoto machida"
CREATE TABLE INST, Here is a database schema( table schema);
What's the location when the opponent was Lyoto Machida?It is not neccessary to use all the tables.
SELECT Partial thromboplastin time FROM table WHERE Prothrombin time = Prolonged AND Bleeding time = Prolonged
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?.It is not neccessary to use all the tables.
SELECT First aired FROM table WHERE Role = professor hubert whitehead
CREATE TABLE INST, Here is a database schema( table schema);
What's the first aired date when Professor Hubert Whitehead was the role?.It is not neccessary to use all the tables.
SELECT "Time" FROM table_31948 WHERE "Rank" > '3' AND "Rider" = 'brian finch'
CREATE TABLE INST, Here is a database schema( table schema);
What is the time value for the rider Brian Finch and a rank greater than 3?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
Which Away team has the Home team of Carlton?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_33950 WHERE "Opponents in the final" = 'michael berrer & kenneth carlsen'
CREATE TABLE INST, Here is a database schema( table schema);
On which date is the tournament final with the opponents michael berrer & kenneth carlsen?It is not neccessary to use all the tables.
SELECT COUNT(steals) FROM table_22824324_2 WHERE player = "Andy Kaufmann"
CREATE TABLE INST, Here is a database schema( table schema);
How many steals were the in games that andy kaufmann played?It is not neccessary to use all the tables.
SELECT "Surface" FROM table_35943 WHERE "Date" = '26 february 2006'
CREATE TABLE INST, Here is a database schema( table schema);
For the tournament played on 26 February 2006, what surface was used?It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Attendance = 75,866
CREATE TABLE INST, Here is a database schema( table schema);
In What Week was the Attendance 75,866?.It is not neccessary to use all the tables.
SELECT Team Name FROM table WHERE City = Rock Island
CREATE TABLE INST, Here is a database schema( table schema);
What team is in the city of Rock Island?.It is not neccessary to use all the tables.
SELECT MIN First elected FROM table WHERE Party = Republican AND Candidates = Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%
CREATE TABLE INST, Here is a database schema( table schema);
When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-20295')) AND diagnosis.diagnosisname = 'seizures - new onset' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
CREATE TABLE INST, Here is a database schema( table schema);
has patient 011-20295 been diagnosed with seizures - new onset in a year before.It is not neccessary to use all the tables.
SELECT nominee FROM table_name_64 WHERE category = "best costume design"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Nominee from the Category that is best costume design?It is not neccessary to use all the tables.
SELECT MIN Shutouts FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest overall amount of shutouts?.It is not neccessary to use all the tables.
SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11It is not neccessary to use all the tables.
SELECT AVG(UnitPrice) FROM TRACK
CREATE TABLE INST, Here is a database schema( table schema);
What is the average unit price of all the tracks?It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_47 WHERE nation = "sweden" AND silver > 1
CREATE TABLE INST, Here is a database schema( table schema);
Count the average Gold which has a Nation of sweden, and a Silver larger than 1?It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Game = 5
CREATE TABLE INST, Here is a database schema( table schema);
What was the series count at for game 5? .It is not neccessary to use all the tables.
SELECT Years FROM table WHERE Soap Opera = glenroe AND Actor = mick lally
CREATE TABLE INST, Here is a database schema( table schema);
what is the years when the soap opera is glenroe and the actor is mick lally?.It is not neccessary to use all the tables.
SELECT MIN(penalties) FROM table_name_45 WHERE points_total = 1419 AND played > 98
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of penalties he got when his point total was over 1419 in more than 98 games?It is not neccessary to use all the tables.
SELECT date FROM table_name_52 WHERE tournament = "munich, germany"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the munich germany tournament?It is not neccessary to use all the tables.
SELECT Club FROM table WHERE League goals = 16 AND Total = 20
CREATE TABLE INST, Here is a database schema( table schema);
Which club has 16 league goals for a total of 20?.It is not neccessary to use all the tables.
SELECT Grid FROM table WHERE Manufacturer = honda AND Laps = 24 AND Time/Retired = +13.997
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?.It is not neccessary to use all the tables.
SELECT date FROM table_name_34 WHERE away_team = "grimsby town"
CREATE TABLE INST, Here is a database schema( table schema);
What date was Grimsby Town the away team?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Notes = 1.83m
CREATE TABLE INST, Here is a database schema( table schema);
In what year is the notes distance 1.83m?.It is not neccessary to use all the tables.
SELECT _number_of_total_votes FROM table_19283982_4 WHERE _number_of_seats_won = 30
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of total votes for # of seats won being 30It is not neccessary to use all the tables.
SELECT No. 3 FROM table WHERE No. 7 = logan AND No. 5 = jackson
CREATE TABLE INST, Here is a database schema( table schema);
Name the No. 3 which has a No. 7 of logan, and a No. 5 of jackson?.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_74 WHERE laps = "21" AND manufacturer = "yamaha" AND grid = "1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired for the rider with the manufacturuer yamaha grod of 1 and 21 total laps?It is not neccessary to use all the tables.
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who was hired before 2002-06-21, draw a line chart about the change of commission_pct over hire_date , list X-axis in asc order.It is not neccessary to use all the tables.
SELECT Comment FROM table WHERE Borough or Census area = Denali
CREATE TABLE INST, Here is a database schema( table schema);
What was the comment on the Denali area?.It is not neccessary to use all the tables.
SELECT School/Club Team/Country FROM table WHERE Years for Rockets = 1967-68
CREATE TABLE INST, Here is a database schema( table schema);
Who is the school, club, team or country that the Rockets played for 1967-68?.It is not neccessary to use all the tables.
SELECT engine FROM table_name_85 WHERE year = 1961
CREATE TABLE INST, Here is a database schema( table schema);
What engine was in the year of 1961?It is not neccessary to use all the tables.
SELECT place FROM table_name_47 WHERE player = "david graham"
CREATE TABLE INST, Here is a database schema( table schema);
What place is David Graham in?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Chr tot occlus cor artry"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose admission location is clinic referral/premature and diagnoses short title is chr tot occlus cor artry?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total attendance for games when the record was 23-23?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Win # = 1 AND Rating = +85
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the team that had 1 win and a rating of +85?.It is not neccessary to use all the tables.
SELECT SUM(1938) FROM table_name_8 WHERE 1933 < 68.3 AND 1940 < 4.02
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?It is not neccessary to use all the tables.
SELECT COUNT League Goals FROM table WHERE FA Cup Goals = 0 AND League Apps = 10
CREATE TABLE INST, Here is a database schema( table schema);
How many league goals did the player with 10 league apps and 0 FA cup goals have?.It is not neccessary to use all the tables.
SELECT name FROM table_name_79 WHERE lane = 7
CREATE TABLE INST, Here is a database schema( table schema);
Which name has a Lane of 7?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week > 1 AND Opponent = detroit lions
CREATE TABLE INST, Here is a database schema( table schema);
what is the date for the week larger than 1 and the opponent detroit lions?.It is not neccessary to use all the tables.
SELECT COUNT NFL Team FROM table WHERE Player = Ellis Gardner
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number for nfl team for ellis gardner.It is not neccessary to use all the tables.
SELECT MAX(matches) FROM table_name_78 WHERE points < 8 AND place > 13 AND drawn < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Matches were the points were smaller than 8 the place was larger than 13 and the drawn is less than 1?It is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Silver > 1 AND Bronze < 8
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the average Total that has the Silver larger than 1, and the Bronze smaller than 8?.It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Played < 114 AND Team = gimnasia de jujuy AND 1994-1995 < 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Points, when Played is less than 114, when Team is Gimnasia De Jujuy, and when 1994-1995 is less than 32?.It is not neccessary to use all the tables.
SELECT money___$__ FROM table_name_4 WHERE player = "morgan pressel"
CREATE TABLE INST, Here is a database schema( table schema);
What is Money ( $ ) when Player is "Morgan Pressel"?It is not neccessary to use all the tables.
SELECT AVG(time) FROM table_name_24 WHERE rank > 2 AND name = "andy turner"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average time with a rank lower than 2 for Andy Turner?It is not neccessary to use all the tables.
SELECT MAX Overall FROM table WHERE Name = daimon shelton AND Round > 6
CREATE TABLE INST, Here is a database schema( table schema);
Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?.It is not neccessary to use all the tables.
SELECT COUNT Reason for change FROM table WHERE Successor = Jonathan Jennings
CREATE TABLE INST, Here is a database schema( table schema);
Name the reason for change for jonathan jennings.It is not neccessary to use all the tables.
SELECT SUM Pts. FROM table WHERE Engine = ferrari tipo 033 v6 tc AND Year > 1987
CREATE TABLE INST, Here is a database schema( table schema);
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?.It is not neccessary to use all the tables.
SELECT conference.name FROM conference, publication WHERE publication.cid = conference.cid AND publication.title = 'Making database systems usable'
CREATE TABLE INST, Here is a database schema( table schema);
return me the conference, which published ' Making database systems usable ' .It is not neccessary to use all the tables.
SELECT Episodes FROM table WHERE Year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
What episode came out in the year 2007?.It is not neccessary to use all the tables.
SELECT bronze FROM table_name_2 WHERE rank > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the bronze value associated with ranks over 5?It is not neccessary to use all the tables.
SELECT Flattening ratio FROM table WHERE Equatorial diameter = 120,536km
CREATE TABLE INST, Here is a database schema( table schema);
What is the Flattening ratio associated with the Equatorial diameter of 120,536km?.It is not neccessary to use all the tables.
SELECT Govt salary FROM table WHERE Romanised name = chen wei-on, kenneth
CREATE TABLE INST, Here is a database schema( table schema);
What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE U.S. viewers (millions) = 3.8
CREATE TABLE INST, Here is a database schema( table schema);
What's the title of the episode seen by 3.8 million people in the US?.It is not neccessary to use all the tables.
SELECT site FROM table_name_46 WHERE cost___us$__ = "free" AND editor = "jsvi"
CREATE TABLE INST, Here is a database schema( table schema);
Which site has a Cost free and a Editor of jsvi?It is not neccessary to use all the tables.
SELECT date FROM table_name_98 WHERE winning_score = –16(70 - 65 - 65 = 200)
CREATE TABLE INST, Here is a database schema( table schema);
When has a Winning score of –16 (70-65-65=200)?It is not neccessary to use all the tables.
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
CREATE TABLE INST, Here is a database schema( table schema);
Which Centerfold model has a Cover model of irina voronina?It is not neccessary to use all the tables.
SELECT Total points FROM table WHERE Place = 2
CREATE TABLE INST, Here is a database schema( table schema);
Name the total points for 2.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_88 WHERE manufacturer = "yamaha" AND rider = "garry mccoy"
CREATE TABLE INST, Here is a database schema( table schema);
Which Time/Retired has a Manufacturer of yamaha and a Rider of garry mccoy?It is not neccessary to use all the tables.
SELECT thursday_fourth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Slovene"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Slovene word for Thursday?It is not neccessary to use all the tables.