sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Scorers FROM table WHERE Opponents = oldham athletic AND Round = semi-final
CREATE TABLE INST, Here is a database schema( table schema);
Who were the scorers in the semi-final round where oldham athletic were the opponents?.It is not neccessary to use all the tables.
SELECT losing_bonus FROM table_name_32 WHERE points = "0"
CREATE TABLE INST, Here is a database schema( table schema);
If the points were 0 what was the losing bonus?It is not neccessary to use all the tables.
SELECT MAX Round2 FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest score for round 2?.It is not neccessary to use all the tables.
SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
CREATE TABLE INST, Here is a database schema( table schema);
Give me the names of members whose address is in Harford or Waterbury.It is not neccessary to use all the tables.
SELECT Hot 100 Reaction FROM table WHERE Week = top 13 AND Performer(s) = kanye west
CREATE TABLE INST, Here is a database schema( table schema);
What is the hot 100 reaction in week of top 13 for Kanye West?.It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Placed = bronze AND Year < 1987
CREATE TABLE INST, Here is a database schema( table schema);
What event placed bronze earlier than 1987?.It is not neccessary to use all the tables.
SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414
CREATE TABLE INST, Here is a database schema( table schema);
How much Population density (per km²) has a Name of total northern villages and a Population (2006) larger than 11414?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Time = 10.82
CREATE TABLE INST, Here is a database schema( table schema);
Time of 10.82 has what location?.It is not neccessary to use all the tables.
SELECT COUNT Percentage of marine area (forEEZ) FROM table WHERE Ecozone = atlantic marine AND Area (km²) Exclusive Economic Zone < 996,439
CREATE TABLE INST, Here is a database schema( table schema);
How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?.It is not neccessary to use all the tables.
SELECT 5:00 pm FROM table WHERE 7:00 am = cbs this morning
CREATE TABLE INST, Here is a database schema( table schema);
What is the 5pm show where CBS This Morning is on at 7am?.It is not neccessary to use all the tables.
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu"
CREATE TABLE INST, Here is a database schema( table schema);
What Utah Jazz guard played at BYU?It is not neccessary to use all the tables.
SELECT MIN Area FROM table WHERE Density > 234.77 AND Rank = 32 AND Population < 965,040
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?.It is not neccessary to use all the tables.
SELECT parking FROM table_2093995_1 WHERE city__neighborhood = "Van Nuys" AND stations = "Sepulveda"
CREATE TABLE INST, Here is a database schema( table schema);
How much parking is in Van Nuys at the Sepulveda station?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE License = gpl AND Platform = windows
CREATE TABLE INST, Here is a database schema( table schema);
Which name has a License of gpl, and a Platform of windows?.It is not neccessary to use all the tables.
SELECT COUNT Floors FROM table WHERE Location = little italy
CREATE TABLE INST, Here is a database schema( table schema);
How many floors are in little Italy?.It is not neccessary to use all the tables.
SELECT Prefecture FROM table WHERE Number in map = 39
CREATE TABLE INST, Here is a database schema( table schema);
What prefecture is listed in the map as number 39?.It is not neccessary to use all the tables.
SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights"
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalogue for Harbor Lights as a title?It is not neccessary to use all the tables.
SELECT Entities FROM table WHERE Supply point = Itaipu
CREATE TABLE INST, Here is a database schema( table schema);
What are the electric companies drawing power from Itaipu?.It is not neccessary to use all the tables.
SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville"
CREATE TABLE INST, Here is a database schema( table schema);
What is the IHSAA class of Centerville which plays IHSAA class AA football?It is not neccessary to use all the tables.
SELECT SUM(pick__number) FROM table_name_20 WHERE position = "sb" AND college = "minnesota"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the sum of Pick # that has the Position of sb and the College of minnesota?It is not neccessary to use all the tables.
SELECT H / A FROM table WHERE Attendance > 15,000 AND Opponents = blackpool
CREATE TABLE INST, Here is a database schema( table schema);
What H/A had more than 15,000 in Attendance and Blackpool as Opponents?.It is not neccessary to use all the tables.
SELECT COUNT November 3 FROM table WHERE March 27-29 = 129
CREATE TABLE INST, Here is a database schema( table schema);
how many times is march 27-29 is 129?.It is not neccessary to use all the tables.
SELECT transfer_window FROM table_name_97 WHERE moving_to = "panionios"
CREATE TABLE INST, Here is a database schema( table schema);
What is the transfer window of the player moving to Panionios?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = Olaf Kolzig
CREATE TABLE INST, Here is a database schema( table schema);
What position does Olaf Kolzig play?.It is not neccessary to use all the tables.
SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time 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 AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND FLIGHT_1.flight_days = days.days_code AND FLIGHT_1.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND FLIGHT_0.flight_id = flight_leg.leg_flight AND FLIGHT_1.flight_id = flight_leg.flight_id AND FLIGHT_1.from_airport = AIRPORT_SERVICE_0.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
what is the schedule of flights from BOSTON to DENVER next mondayIt is not neccessary to use all the tables.
SELECT driver FROM table_name_50 WHERE fin_pos = 8
CREATE TABLE INST, Here is a database schema( table schema);
Which driver finished in position 8?It is not neccessary to use all the tables.
SELECT shirt_sponsor FROM table_name_74 WHERE team = "middlesbrough"
CREATE TABLE INST, Here is a database schema( table schema);
Who sponsors Middlesbrough?It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Date = 7 august
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole position on 7 August?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high rebounds when Chris Bosh (16) had the high points?It is not neccessary to use all the tables.
SELECT MAX(pick) FROM table_name_44 WHERE college = "virginia"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the highest drafted player that attended college at Virginia?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tie no = replay
CREATE TABLE INST, Here is a database schema( table schema);
What's the score when the tie number was replay?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners"
CREATE TABLE INST, Here is a database schema( table schema);
What venue does the soccer team Pennsylvania Stoners play in?It is not neccessary to use all the tables.
SELECT august FROM table_name_51 WHERE october = "shannon long"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the August playmate with the October playmate Shannon Long?It is not neccessary to use all the tables.
SELECT classroom FROM list GROUP BY classroom ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which classroom has the most students?It is not neccessary to use all the tables.
SELECT MIN Sri Lankans admitted FROM table WHERE Bangladeshis admitted > 4,270 AND Pakistanis admitted > 4,986
CREATE TABLE INST, Here is a database schema( table schema);
What were the fewest number of Sri Lankans admitted when more than 4,270 Bangladeshis and more than 4,986 Pakistanis were admitted?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Acquisition via = trade AND School/Club Team = la salle
CREATE TABLE INST, Here is a database schema( table schema);
Which season had a trade with the school/club team La Salle?.It is not neccessary to use all the tables.
SELECT others_number FROM table_20750731_1 WHERE mccain_percentage = "64.8%"
CREATE TABLE INST, Here is a database schema( table schema);
When McCain% was 64.8% what is the Others#?It is not neccessary to use all the tables.
SELECT position FROM table_1473672_7 WHERE nhl_team = "California Golden Seals"
CREATE TABLE INST, Here is a database schema( table schema);
the california golden seals that where drafted by nhl teams played what positionsIt is not neccessary to use all the tables.
SELECT family FROM table_name_57 WHERE name = "eastern cottontail"
CREATE TABLE INST, Here is a database schema( table schema);
What family has the name of eastern cottontail?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponents in the final = gastón etlis martín rodríguez
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when the opponent in the final is gastón etlis martín rodríguez?.It is not neccessary to use all the tables.
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many poles did he have in 2006 with under 2 wins?It is not neccessary to use all the tables.
SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vendredi"
CREATE TABLE INST, Here is a database schema( table schema);
what's the thursday iuppiter (jupiter) with friday venus (venus) being vendrediIt is not neccessary to use all the tables.
SELECT SUM("Gold") FROM table_65872 WHERE "Rank" = '19'
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of gold for the country ranked 19?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Title = clean pastures
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director of Clean Pastures?.It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_25 WHERE format = "classic country"
CREATE TABLE INST, Here is a database schema( table schema);
What is the call sign of the Classic Country Music station?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Title = "Dad's Dead"
CREATE TABLE INST, Here is a database schema( table schema);
WHO WROTE "DAD'S DEAD".It is not neccessary to use all the tables.
SELECT chinese_title FROM table_11926114_1 WHERE average = 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the Chinese name that has a 31 average?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Silver = mika miyazato
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of years when Mika Miyazato won the silver?.It is not neccessary to use all the tables.
SELECT overall FROM table_27069503_2 WHERE season = "2003-04"
CREATE TABLE INST, Here is a database schema( table schema);
What was the overall record for the Pandas in the 2003-04 season?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = James O'Connor
CREATE TABLE INST, Here is a database schema( table schema);
In which district is James O'Connor the incumbent?.It is not neccessary to use all the tables.
SELECT COUNT Wins FROM table WHERE Team Name = Carlin Motorsport
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did he have with carlin motorsport?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_7 WHERE home_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team when the home team was Carlton?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Venue = windy hill
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest crowd at Windy Hill?.It is not neccessary to use all the tables.
SELECT train_name FROM table_21716139_1 WHERE category = "Express" AND frequency = "Weekly"
CREATE TABLE INST, Here is a database schema( table schema);
What trains have a category of express and a weekly frequency?It is not neccessary to use all the tables.
SELECT COUNT Margin FROM table WHERE Second place = Spain AND Language = Russian
CREATE TABLE INST, Here is a database schema( table schema);
what amount has spain as second place and the language is russian?.It is not neccessary to use all the tables.
SELECT home_ground_s_ FROM table_18752986_1 WHERE nickname = "Swans"
CREATE TABLE INST, Here is a database schema( table schema);
With the nickname the swans what is the home ground?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_90 WHERE opponent = "swindon wildcats"
CREATE TABLE INST, Here is a database schema( table schema);
How much Attendance has an Opponent of swindon wildcats?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 14.11 (95)
CREATE TABLE INST, Here is a database schema( table schema);
What venue has the score of 14.11 (95) for away teams?.It is not neccessary to use all the tables.
SELECT MAX Rnd. FROM table WHERE GT2 Winning Team = Marc Lieb Richard Lietz
CREATE TABLE INST, Here is a database schema( table schema);
What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?.It is not neccessary to use all the tables.
SELECT 2005 FROM table WHERE 2007 = 5.545
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2005 Lukoil oil prodroduction when in 2007 oil production 5.545 million tonnes?.It is not neccessary to use all the tables.
SELECT name FROM table_name_72 WHERE rank = 9
CREATE TABLE INST, Here is a database schema( table schema);
Who is at rank 9?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Grid > 19 AND Time/Retired = suspension
CREATE TABLE INST, Here is a database schema( table schema);
Who constructed the car with a grid over 19 that retired due to suspension?.It is not neccessary to use all the tables.
SELECT week_5 FROM table_name_96 WHERE week_2 = "36.80" AND week_4 = "39.75"
CREATE TABLE INST, Here is a database schema( table schema);
What is week 5 when week 2 is 36.80 and week 4 is 39.75?It is not neccessary to use all the tables.
SELECT Viewers * FROM table WHERE Title = "It's Better to Burn Out Than Fae Away"
CREATE TABLE INST, Here is a database schema( table schema);
How many people watched "it's better to burn out than fae away"?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT StuID) FROM Plays_games
CREATE TABLE INST, Here is a database schema( table schema);
How many students play video games?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Team = Miami
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most assists in the game against Miami?.It is not neccessary to use all the tables.
SELECT name FROM table_21795986_1 WHERE withdrawn = "19/05/2002"
CREATE TABLE INST, Here is a database schema( table schema);
When 19/05/2002 is the date of withdrawn what is the name?It is not neccessary to use all the tables.
SELECT listed FROM table_name_83 WHERE county = "antelope" AND location = "royal" AND name = "verdigris creek bridge"
CREATE TABLE INST, Here is a database schema( table schema);
what's the listing date for the verdigris creek bridge in royal of antelope county?It is not neccessary to use all the tables.
SELECT MAX("Points") FROM table_74137
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum number of points?It is not neccessary to use all the tables.
SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the production code and channel of the most recently aired cartoon .It is not neccessary to use all the tables.
SELECT record FROM table_name_22 WHERE attendance = "30,452"
CREATE TABLE INST, Here is a database schema( table schema);
What was the team's record at the game attended by 30452?It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Silver < 2 AND Total > 4 AND Rank = 33
CREATE TABLE INST, Here is a database schema( table schema);
What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?.It is not neccessary to use all the tables.
SELECT "Constructor" FROM table_16761 WHERE "Circuit" = 'Zeltweg Airfield'
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the constructor that has the circuit zeltweg airfield?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Winning score = 67-68-70-66=271
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par when the winning score was 67-68-70-66=271?.It is not neccessary to use all the tables.
SELECT MIN Enrollment FROM table WHERE School = Montana Tech of the University of Montana
CREATE TABLE INST, Here is a database schema( table schema);
Name the minimum enrollment for montana tech of the university of montana.It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest amount of people to turn out at a game with the away team as collingwood?.It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_87 WHERE player = "ben crenshaw"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of wins for ben crenshaw?It is not neccessary to use all the tables.
SELECT AVG(fumbles) FROM table_name_27 WHERE avg > 5.4 AND yards < 164
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of fumbles for the avg larger than 5.4 with yards smaller than 164?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Result = Loss
CREATE TABLE INST, Here is a database schema( table schema);
Who did the team play against in the game that resulted with a loss?.It is not neccessary to use all the tables.
SELECT Extra points FROM table WHERE Touchdowns = 5
CREATE TABLE INST, Here is a database schema( table schema);
The player who had 5 touchdowns had how many extra points? .It is not neccessary to use all the tables.
SELECT record FROM table_14945881_1 WHERE attendance = 42827
CREATE TABLE INST, Here is a database schema( table schema);
Name the record when attendance 42827It is not neccessary to use all the tables.
SELECT COUNT(*) FROM medication WHERE medication.drugname = 'methylprednisolone 125 mg inj' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-1 year')
CREATE TABLE INST, Here is a database schema( table schema);
how many methylprednisolone 125 mg inj prescriptions took place until 1 year ago?It is not neccessary to use all the tables.
SELECT COUNT Pos. FROM table WHERE Postseason = relegation playoffs AND Tier = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many positions have a Postseason of relegation playoffs and a tier of 3?.It is not neccessary to use all the tables.
SELECT "Trainer" FROM table_43196 WHERE "Time" = '1:44.80' AND "Jockey" = 'william jenkins'
CREATE TABLE INST, Here is a database schema( table schema);
What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Date = February 4
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in the game held on February 4?.It is not neccessary to use all the tables.
SELECT left_office FROM table_name_63 WHERE political_party = "ba'ath party ( syria region )" AND took_office = "7 march 1958"
CREATE TABLE INST, Here is a database schema( table schema);
What is Left Office when Political Party is Ba'ath Party ( Syria Region ) and when Took Office is 7 March 1958?It is not neccessary to use all the tables.
SELECT Teleplay by FROM table WHERE Directed by = Rob Bailey
CREATE TABLE INST, Here is a database schema( table schema);
Who is the teleplay by when the director is Rob Bailey?.It is not neccessary to use all the tables.
SELECT Race 1 Winner FROM table WHERE Circuit = Winton Motor Raceway
CREATE TABLE INST, Here is a database schema( table schema);
Who was the race 1 winner at the race held at Winton Motor Raceway?.It is not neccessary to use all the tables.
SELECT kr_td FROM table_16912000_13 WHERE mfg_lg = 64
CREATE TABLE INST, Here is a database schema( table schema);
What is the kr td when mfg lg is 64?It is not neccessary to use all the tables.
SELECT French FROM table WHERE German = filtern
CREATE TABLE INST, Here is a database schema( table schema);
What is the French word where the German word is filtern?.It is not neccessary to use all the tables.
SELECT "Country" FROM table_71615 WHERE "Date" = 'unknown' AND "Company" = 'enernoc australia pty ltd'
CREATE TABLE INST, Here is a database schema( table schema);
For the Enernoc Australia Pty Ltd, what's the country with an unknown date?It is not neccessary to use all the tables.
SELECT name FROM table_name_44 WHERE fate = "sunk by u-48 *" AND cargo = "pit props"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the ship with pit props as Cargo sunk by u-48 *?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Wins < 2 AND Class = 50cc AND Points = 15
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of years for wins less than 2 and class of 50cc with points of 15.It is not neccessary to use all the tables.
SELECT Hometown FROM teacher ORDER BY Age LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the hometown of the youngest teacher?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Game site = tampa stadium AND Opponent = detroit lions
CREATE TABLE INST, Here is a database schema( table schema);
When they were playing the detroit lions at tampa stadium, what was the score?.It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Game > 1 AND Date = april 18
CREATE TABLE INST, Here is a database schema( table schema);
Which Series has a Game larger than 1, and a Date of april 18?.It is not neccessary to use all the tables.
SELECT MAX Played FROM table WHERE Points 1 = 36 2 AND Goals Against < 74
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest played when there was less than 74 goals against and points 1 of 36 2?.It is not neccessary to use all the tables.
SELECT Railway number(s) FROM table WHERE Class = aw
CREATE TABLE INST, Here is a database schema( table schema);
What is the railway number of the aw class?.It is not neccessary to use all the tables.
SELECT largest_ethnic_group__2002_ FROM table_2562572_39 WHERE cyrillic_name_other_names = "Конак"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ethnic group is конак?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_90 WHERE college = "lehigh"
CREATE TABLE INST, Here is a database schema( table schema);
How many total rounds has lehigh as the college?It is not neccessary to use all the tables.