sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Production Number FROM table WHERE Title = pre-hysterical hare
CREATE TABLE INST, Here is a database schema( table schema);
What was the production number of the episode titel of pre-hysterical hare?.It is not neccessary to use all the tables.
SELECT Order # FROM table WHERE Theme = Billboard Hot 100 Hits AND Original artist = Sixpence None the Richer
CREATE TABLE INST, Here is a database schema( table schema);
What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?.It is not neccessary to use all the tables.
SELECT player FROM table_20170644_5 WHERE college = "Montreal"
CREATE TABLE INST, Here is a database schema( table schema);
What player went to montreal college?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Henry Clay
CREATE TABLE INST, Here is a database schema( table schema);
What district(s) did henry clay represent?.It is not neccessary to use all the tables.
SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995"
CREATE TABLE INST, Here is a database schema( table schema);
Performer 1 of greg proops and a Date of 25 august 1995 is what performer 4?It is not neccessary to use all the tables.
SELECT COUNT Peletier FROM table WHERE Shortscale comparison = Billion
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of peletier for shortscale comparison billion.It is not neccessary to use all the tables.
SELECT MAX Extra points 1 point FROM table WHERE Total Points < 8
CREATE TABLE INST, Here is a database schema( table schema);
Which Extra points 1 point is the highest one that has a Total Points smaller than 8?.It is not neccessary to use all the tables.
SELECT pilot FROM table_name_48 WHERE weapon = "35mm fire" AND date = "4 may 1982"
CREATE TABLE INST, Here is a database schema( table schema);
What is Pilot when Weapon is "35mm fire" and when Date is "4 May 1982"?It is not neccessary to use all the tables.
SELECT location FROM table_name_31 WHERE record = "5–2–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Location has a Record of 5–2–1?It is not neccessary to use all the tables.
SELECT Length FROM table WHERE Genus/Species = Arabidopsis thaliana
CREATE TABLE INST, Here is a database schema( table schema);
For the genus/species arabidopsis thaliana, what are the lengths? .It is not neccessary to use all the tables.
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Luke Ellery" AND winning_driver = "Wayne Boyd"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?It is not neccessary to use all the tables.
SELECT 1958 FROM table WHERE 1957 = dnf-9
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the 1958 when 1957 is dnf-9.It is not neccessary to use all the tables.
SELECT LAST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of last_name and manager_id , and display MANAGER_ID in descending order.It is not neccessary to use all the tables.
SELECT position FROM table_11545282_11 WHERE no = "47"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of number 47?It is not neccessary to use all the tables.
SELECT year FROM table_name_53 WHERE position = "guard" AND name = "mario chalmers"
CREATE TABLE INST, Here is a database schema( table schema);
What year is guard Mario Chalmers?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Rank > 3 AND Total < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of silvers for teams with ranks over 3 and totals under 2?.It is not neccessary to use all the tables.
SELECT original_title FROM table_name_36 WHERE director = "aigars grauba"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original Title of the movie directed by Aigars Grauba?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.gender = "M" AND diagnoses.icd9_code = "43491"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose gender is m and diagnoses icd9 code is 43491?It is not neccessary to use all the tables.
SELECT venue FROM table_name_9 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Geelong play as the away team?It is not neccessary to use all the tables.
SELECT TV season FROM table WHERE Season premiere = September 26, 2007
CREATE TABLE INST, Here is a database schema( table schema);
What are the seasons where September 26, 2007 is the season premier?.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Grid = 17
CREATE TABLE INST, Here is a database schema( table schema);
Which Constructor has a Grid of 17?.It is not neccessary to use all the tables.
SELECT AVG No. Of Clubs FROM table WHERE Average > 18,571 AND Games < 182 AND Total Attendance = 3,140,280 AND Season > 1995
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of clubs when the average is more than 18,571, there are fewer than 182 games and the total attendance is 3,140,280 in a year more recent than 1995?.It is not neccessary to use all the tables.
SELECT MIN(league_goals) FROM table_name_14 WHERE position = "fw" AND fa_cup_apps = "0" AND playoff_goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many goals for the FW with 0 FA cup appearances and over 0 playoff goals?It is not neccessary to use all the tables.
SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz"
CREATE TABLE INST, Here is a database schema( table schema);
Which class Pos has a Team of jml team panoz?It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Rank > 3 AND Floors = 28
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average year for rank more than 3 and 28 floors.It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Commissioned = july 28, 1963
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of the fleet that was commissioned on July 28, 1963?.It is not neccessary to use all the tables.
SELECT City of License FROM table WHERE Frequency = 0 106.9 fm
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the city of license for 0 106.9 fm.It is not neccessary to use all the tables.
SELECT MAX(gradepoint), MIN(gradepoint) FROM gradeconversion
CREATE TABLE INST, Here is a database schema( table schema);
Find the max and min grade point for all letter grade.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Date = september 4, 1983
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest attendance on September 4, 1983?.It is not neccessary to use all the tables.
SELECT championship FROM table_name_3 WHERE surface = "clay" AND opponent_in_the_final = "vitas gerulaitis"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?It is not neccessary to use all the tables.
SELECT car_model FROM table_name_19 WHERE engine = "ford 6.0 v8"
CREATE TABLE INST, Here is a database schema( table schema);
What Car Model has the Engine of Ford 6.0 V8?It is not neccessary to use all the tables.
SELECT place FROM table_name_7 WHERE athlete = "manfred kokot"
CREATE TABLE INST, Here is a database schema( table schema);
What place has manfred kokot as the athlete?It is not neccessary to use all the tables.
SELECT date FROM table_name_61 WHERE tyre = "d" AND winning_driver = "bruce mclaren"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the Tyre d and Bruce Mclaren won?It is not neccessary to use all the tables.
SELECT Winners Score FROM table WHERE Year = 1982
CREATE TABLE INST, Here is a database schema( table schema);
List all winning scores from 1982..It is not neccessary to use all the tables.
SELECT AVG Oilers points FROM table WHERE Record = 10–6 AND Oilers first downs > 14
CREATE TABLE INST, Here is a database schema( table schema);
Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14?.It is not neccessary to use all the tables.
SELECT Races FROM table WHERE Points = 125
CREATE TABLE INST, Here is a database schema( table schema);
Which races did they accumulate at least 125 points?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_20 WHERE venue = "jeonju"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the competition held at Jeonju?It is not neccessary to use all the tables.
SELECT Branding FROM table WHERE Frequency = 1080khz
CREATE TABLE INST, Here is a database schema( table schema);
Which Branding has a frequency of 1080khz?.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Score = L 98–103 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for l 98–103 (ot).It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Opponent = travis fulton
CREATE TABLE INST, Here is a database schema( table schema);
What round did the fight against travis fulton last?.It is not neccessary to use all the tables.
SELECT miles__km_ FROM table_2226343_1 WHERE date = "February 25"
CREATE TABLE INST, Here is a database schema( table schema);
What are the miles when February 25 is the date?It is not neccessary to use all the tables.
SELECT Virtues FROM table 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 MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?It is not neccessary to use all the tables.
SELECT r FROM table WHERE total = 1 AND position = "FW"
CREATE TABLE INST, Here is a database schema( table schema);
What is the R when the total is 1 and the position is fw?It is not neccessary to use all the tables.
SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger"
CREATE TABLE INST, Here is a database schema( table schema);
Which stage corresponds to Banesto and Tony Rominger?It is not neccessary to use all the tables.
SELECT state FROM table_name_94 WHERE title = "duke" AND royal_house = "ji"
CREATE TABLE INST, Here is a database schema( table schema);
What state had a title of duke for the royal house of ji?It is not neccessary to use all the tables.
SELECT MIN(enrollment) FROM table_1974443_1 WHERE founded = 1880
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest enrollment for institutions founded in exactly 1880?It is not neccessary to use all the tables.
SELECT Lifetime Achievement FROM table WHERE Year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
who won the lifetime achievement in the year 1998?.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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FR...
CREATE TABLE INST, Here is a database schema( table schema);
could you tell me what flights you have that run DAILY from BOSTON to SAN FRANCISCO pleaseIt is not neccessary to use all the tables.
SELECT opponent FROM table_name_22 WHERE tournament = "rio de janeiro"
CREATE TABLE INST, Here is a database schema( table schema);
What is the opponent for the tournament of rio de janeiro?It is not neccessary to use all the tables.
SELECT COUNT(signal_power___kw__) FROM table_1820752_1 WHERE arrival_date = "January 2059"
CREATE TABLE INST, Here is a database schema( table schema);
If the arrival date is January 2059 what is the total amount of signal power?It is not neccessary to use all the tables.
SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.3"
CREATE TABLE INST, Here is a database schema( table schema);
What's the number of starts in the year with 19.3 average finish?It is not neccessary to use all the tables.
SELECT Liberal ticket FROM table WHERE Socialist Workers ticket = judith white
CREATE TABLE INST, Here is a database schema( table schema);
What is the liberal ticket that has judith white as the socialist workers?.It is not neccessary to use all the tables.
SELECT district FROM table_1342331_5 WHERE incumbent = "William J. Driver"
CREATE TABLE INST, Here is a database schema( table schema);
what's the district with incumbent being william j. driverIt is not neccessary to use all the tables.
SELECT "Record" FROM table_53804 WHERE "Points" < '98' AND "Opponent" = 'canucks'
CREATE TABLE INST, Here is a database schema( table schema);
What is the record when they play the canucks and have under 98 points?It is not neccessary to use all the tables.
SELECT year FROM table_name_15 WHERE party = "liberal" AND constituency = "hazel grove"
CREATE TABLE INST, Here is a database schema( table schema);
What year was Hazel Grove the constituent for the liberal party?It is not neccessary to use all the tables.
SELECT COUNT Drawn FROM table WHERE Tries against = 24
CREATE TABLE INST, Here is a database schema( table schema);
how many drawn with tries against being 24.It is not neccessary to use all the tables.
SELECT date FROM table_name_17 WHERE tournament = "palermo , italy"
CREATE TABLE INST, Here is a database schema( table schema);
When has a Tournament of palermo italy?It is not neccessary to use all the tables.
SELECT School FROM table WHERE Conference Joined = northeast corner AND Mascot = blazers
CREATE TABLE INST, Here is a database schema( table schema);
Which school has a mascot of the Blazers and in the Northeast Corner conference?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Time = 24:55:58 AND Place > 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3?.It is not neccessary to use all the tables.
SELECT Team #1 FROM table WHERE 1st leg = 70 - 59
CREATE TABLE INST, Here is a database schema( table schema);
WHich Team#1 has 70 - 59 as a 1st leg?.It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Network Affiliation = independent AND Station = kpfb
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of the independent station KPFB?.It is not neccessary to use all the tables.
SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
CREATE TABLE INST, Here is a database schema( table schema);
how many years has сенки been nominated?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Where did South Melbourne play as the home team?.It is not neccessary to use all the tables.
SELECT min_press___mbar__ FROM table_name_68 WHERE deaths = "none" AND storm_name = "seven"
CREATE TABLE INST, Here is a database schema( table schema);
Which Min press has none Death and seven Storm names?It is not neccessary to use all the tables.
SELECT MAX Pct % FROM table WHERE Goals against < 229
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Pct %, when Goals Against is less than 229?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Eliminated = episode 5
CREATE TABLE INST, Here is a database schema( table schema);
Who's the player eliminated on episode 5?.It is not neccessary to use all the tables.
SELECT points_against FROM table_name_65 WHERE tries_against = "42"
CREATE TABLE INST, Here is a database schema( table schema);
How many points against did the team that allowed 42 tries against allow?It is not neccessary to use all the tables.
SELECT SUM Week FROM table WHERE Attendance = 71,740
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has Attendance of 71,740?.It is not neccessary to use all the tables.
SELECT Network FROM table WHERE Premiere = 13 january 2009
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the network for 13 january 2009.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tournament = ameritech senior open
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Ameritech Senior Open?.It is not neccessary to use all the tables.
SELECT record FROM table_name_49 WHERE date = "dec 10"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record is dated Dec 10?It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"
CREATE TABLE INST, Here is a database schema( table schema);
What's the number of positions of the player playing in Minnesota North Stars?It is not neccessary to use all the tables.
SELECT stumped FROM table_24039597_26 WHERE innings = 143
CREATE TABLE INST, Here is a database schema( table schema);
What is stumped when inning is 143?It is not neccessary to use all the tables.
SELECT SUM("Apps") FROM table_79177 WHERE "Rank" < '6' AND "Goals" < '61'
CREATE TABLE INST, Here is a database schema( table schema);
What are the apps for less than 61 goals and before rank 6?It is not neccessary to use all the tables.
SELECT record FROM table_27734286_6 WHERE game = 29
CREATE TABLE INST, Here is a database schema( table schema);
List records for game 29.It is not neccessary to use all the tables.
SELECT winner FROM table_name_48 WHERE stage = "p"
CREATE TABLE INST, Here is a database schema( table schema);
Which winner has a P stage?It is not neccessary to use all the tables.
SELECT result FROM table_name_99 WHERE year = "2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in 2008?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Loss > 2 AND Avg/G > -16 AND GP-GS = 11–7 AND Gain > 86
CREATE TABLE INST, Here is a database schema( table schema);
which Name has a Loss larger than 2, and a Avg/G larger than -16, and a GP-GS of 11–7, and a Gain larger than 86?.It is not neccessary to use all the tables.
SELECT Umpire FROM table WHERE WC Matches = 10
CREATE TABLE INST, Here is a database schema( table schema);
who was the umpire when the wc match was 10.It is not neccessary to use all the tables.
SELECT venue FROM table_name_65 WHERE runners_up = "tennis borussia berlin" AND score = "4 – 2 *"
CREATE TABLE INST, Here is a database schema( table schema);
What was the venue when the runner up was Tennis Borussia Berlin and the score was 4 – 2 *?It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_17155250_1 WHERE original_title = "Fire Dancer"
CREATE TABLE INST, Here is a database schema( table schema);
For what ceremony was "Fire Dancer" not nominated?It is not neccessary to use all the tables.
SELECT COUNT Standard FROM table WHERE Launch date (dd.mm.yyyy) = 17.04.2006
CREATE TABLE INST, Here is a database schema( table schema);
How many standards are there, when the launch date was 17.04.2006?.It is not neccessary to use all the tables.
SELECT TV AS season FROM table_1348989_2 WHERE season = "3rd"
CREATE TABLE INST, Here is a database schema( table schema);
In what TV season did the 3rd season air?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Date = november 12, 1967 AND Attendance < 34,761
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?.It is not neccessary to use all the tables.
SELECT director FROM table_name_97 WHERE gross__worldwide_ = "$30,471"
CREATE TABLE INST, Here is a database schema( table schema);
Which director had a worldwide gross of $30471?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "Unpleasantville"
CREATE TABLE INST, Here is a database schema( table schema);
when did "unpleasantville" air?.It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Lost = 11 AND Losing bonus = 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the try bonus for lost being 11 and losing bonus is 6.It is not neccessary to use all the tables.
SELECT Rectifier FROM table WHERE Det/Pre-amp = x AND # Tubes = 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the rectifier for Det/Pre-amp of x and # tubes of 4.It is not neccessary to use all the tables.
SELECT COUNT("General classification") FROM table_17566 WHERE "Stage" = '15'
CREATE TABLE INST, Here is a database schema( table schema);
Name the general classification of stage 15It is not neccessary to use all the tables.
SELECT * FROM Users WHERE Reputation > 2000
CREATE TABLE INST, Here is a database schema( table schema);
SELECT * FROM users where REPUTATION > 2000.It is not neccessary to use all the tables.
SELECT Text FROM table WHERE Wade-Giles = ai-ma … hsin-yüan
CREATE TABLE INST, Here is a database schema( table schema);
Which text has Wade-Giles translation of ai-ma … hsin-yüan?.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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MEMPHIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1...
CREATE TABLE INST, Here is a database schema( table schema);
cheapest flight from MEMPHIS to MIAMIIt is not neccessary to use all the tables.
SELECT Chromosomal location FROM table WHERE Name = IL-1β
CREATE TABLE INST, Here is a database schema( table schema);
What is the chromosomal location of il-1β?.It is not neccessary to use all the tables.
SELECT SUM(attendance) FROM table_name_86 WHERE loss = "divis (0–3–0)" AND points < 38
CREATE TABLE INST, Here is a database schema( table schema);
How much Attendance has a Loss of divis (0–3–0) and Points smaller than 38?It is not neccessary to use all the tables.
SELECT ICAO FROM table WHERE Airport = fiumicino airport
CREATE TABLE INST, Here is a database schema( table schema);
for fiumicino airport what is the icao?.It is not neccessary to use all the tables.
SELECT position FROM table_name_67 WHERE pick < 33 AND player = "darrell arthur"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POSITION HAS A PICK SMALLER THAN 33, AND PLAYER BEING DARRELL ARTHUR?It is not neccessary to use all the tables.
SELECT planet AS Type FROM table_name_56 WHERE radial_velocity__m_s_ > 45.2
CREATE TABLE INST, Here is a database schema( table schema);
What type of planet has a radial velocity of 45.2 m/s?It is not neccessary to use all the tables.
SELECT score FROM table_name_58 WHERE opponent = "boston celtics"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game against the boston celtics?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE VFL Games = 9
CREATE TABLE INST, Here is a database schema( table schema);
What location had a VFL Game number of 9?.It is not neccessary to use all the tables.