sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT original_air_date FROM table_29436238_1 WHERE no_in_season = 4
CREATE TABLE INST, Here is a database schema( table schema);
What date did episode 4 in the season originally air?It is not neccessary to use all the tables.
SELECT MIN("Swimsuit") FROM table_10367 WHERE "Average" = '9.125'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest swimsuit for a contestant with an average of 9.125?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Constructor = Ferrari AND Location = Anderstorp
CREATE TABLE INST, Here is a database schema( table schema);
what is the date where the constructor is ferrari and the location is anderstorp?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Score = 102-125
CREATE TABLE INST, Here is a database schema( table schema);
What was the Opponent in the game with a Score of 102-125?.It is not neccessary to use all the tables.
SELECT COUNT Director FROM table WHERE No = 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of directors for number 6.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Record = 9–26
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of people in attendance when the record was 9–26?.It is not neccessary to use all the tables.
SELECT Open_Date, COUNT(Open_Date) FROM church ORDER BY COUNT(Open_Date)
CREATE TABLE INST, Here is a database schema( table schema);
Visualize a bar chart that bin the open date into a day of the week interval and count them, and list in ascending by the total number please.It is not neccessary to use all the tables.
SELECT SUM(draws) FROM table_name_55 WHERE losses = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many draws with 1 loss?It is not neccessary to use all the tables.
SELECT COUNT FG Pct FROM table WHERE Asst = 59 AND Off Reb < 40
CREATE TABLE INST, Here is a database schema( table schema);
How many FG percent values are associated with 59 assists and offensive rebounds under 40?.It is not neccessary to use all the tables.
SELECT Proceed to Quarter-final FROM table WHERE Points margin = 21
CREATE TABLE INST, Here is a database schema( table schema);
Who proceeded to the quarter finals with a points margin of 21?.It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_name_39 WHERE player = "damani ralph"
CREATE TABLE INST, Here is a database schema( table schema);
Damani Ralph is associated with which lowest pick #?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Score = 6–3, 6–4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Outcome of the match with a Score of 6–3, 6–4?.It is not neccessary to use all the tables.
SELECT Lane FROM table WHERE Heat < 3 AND Nationality = barbados
CREATE TABLE INST, Here is a database schema( table schema);
What lane did the barbados swimmer compete in before heat 3?.It is not neccessary to use all the tables.
SELECT AVG Finish FROM table WHERE Team = penske AND Start < 9
CREATE TABLE INST, Here is a database schema( table schema);
When the team is penske and they start under 9, what's the average finish time?.It is not neccessary to use all the tables.
SELECT school FROM table_name_79 WHERE location = "rossville"
CREATE TABLE INST, Here is a database schema( table schema);
What school is located in rossville?It is not neccessary to use all the tables.
SELECT "Team" FROM table_27561 WHERE "Races" = '15' AND "Position" = '7th'
CREATE TABLE INST, Here is a database schema( table schema);
When 7th is the position and 15 is the race who is the team?It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_77 WHERE result = "l 31–28"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week number with a result of l 31–28?It is not neccessary to use all the tables.
SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY COUNT(Sex)
CREATE TABLE INST, Here is a database schema( table schema);
Return a bar chart about the distribution of Sex and the amount of Sex , and group by attribute Sex, could you order by the Y-axis in asc?It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_81 WHERE home = "boston"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Points when Home is "Boston"?It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_56 WHERE rank = "1" AND total > 16
CREATE TABLE INST, Here is a database schema( table schema);
How many gold are a rank 1 and larger than 16?It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_69 WHERE points = 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the least wins for 6 pointsIt is not neccessary to use all the tables.
SELECT Event FROM table WHERE Round = 1 AND Record = 2–0
CREATE TABLE INST, Here is a database schema( table schema);
Which Event has a Round of 1, and a Record of 2–0?.It is not neccessary to use all the tables.
SELECT MIN Capacity FROM table WHERE Stadium = Sangre Grande Ground
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum capacity for Sangre Grande Ground?.It is not neccessary to use all the tables.
SELECT Landfall FROM table WHERE Saffir-Simpson Category = 1 AND Year = 1999
CREATE TABLE INST, Here is a database schema( table schema);
Which landfall was in category 1 for Saffir-Simpson in 1999?.It is not neccessary to use all the tables.
SELECT Game site FROM table WHERE Attendance = 78,722
CREATE TABLE INST, Here is a database schema( table schema);
What game did Jets have an attendance of 78,722?.It is not neccessary to use all the tables.
SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne"
CREATE TABLE INST, Here is a database schema( table schema);
How many statuses are listed for Wayne county?It is not neccessary to use all the tables.
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
CREATE TABLE INST, Here is a database schema( table schema);
Show the number of transactions for different investors.It is not neccessary to use all the tables.
SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-21"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest quantity having a Class to 1928 of BDi-21?It is not neccessary to use all the tables.
SELECT COUNT(closure_for_signature) FROM table_2001348_1 WHERE field = "Sea (revised)"
CREATE TABLE INST, Here is a database schema( table schema);
How many inputs are there in the 'closure for signature' tab under the field 'sea (revised)'?It is not neccessary to use all the tables.
SELECT Place FROM table 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 AVG Points FROM table WHERE Driver = ryan hunter-reay
CREATE TABLE INST, Here is a database schema( table schema);
What is the average points that the driver Ryan Hunter-Reay has?.It is not neccessary to use all the tables.
SELECT Overall FROM table WHERE Nationality = canada AND Round = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for Canada during round 2?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Director = elia schneider AND Film title used in nomination = punto y raya
CREATE TABLE INST, Here is a database schema( table schema);
What's the result for director elia schneider's punto y raya?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 11.5 (71)
CREATE TABLE INST, Here is a database schema( table schema);
Which venue was played in when the Away team scored 11.5 (71)?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Home = tampa bay AND Date = december 4
CREATE TABLE INST, Here is a database schema( table schema);
On December 4, Tampa Bay has a record of 12-13-2..It is not neccessary to use all the tables.
SELECT COUNT(authors) FROM table_19523708_1 WHERE original = "Carry On"
CREATE TABLE INST, Here is a database schema( table schema);
How many authors are present when the original was Carry On?It is not neccessary to use all the tables.
SELECT Nat. FROM table WHERE Transfer window = summer AND Type = transfer AND Name = marcell jansen
CREATE TABLE INST, Here is a database schema( table schema);
Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?.It is not neccessary to use all the tables.
SELECT "Party" FROM table_58742 WHERE "Results" = 're-elected' AND "First elected" > '1990' AND "District" = 'minnesota 4'
CREATE TABLE INST, Here is a database schema( table schema);
What is Party, when Results is 'Re-Elected', when First Elected is greater than 1990, and when District is 'Minnesota 4'?It is not neccessary to use all the tables.
SELECT MIN Starts FROM table
CREATE TABLE INST, Here is a database schema( table schema);
How many starts are there?.It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Date founded/ founder = 57 BC Caesar
CREATE TABLE INST, Here is a database schema( table schema);
What are the notes during 57 bc caesar?.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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Choledocholithiasis NOS" AND lab.flag = "delta"
CREATE TABLE INST, Here is a database schema( table schema);
give the number of patients whose diagnosis short title is choledocholithiasis nos and lab test abnormal status is delta.It is not neccessary to use all the tables.
SELECT MAX Laps FROM table WHERE Rider = marco melandri AND Grid < 10
CREATE TABLE INST, Here is a database schema( table schema);
with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?.It is not neccessary to use all the tables.
SELECT Co-Drivers FROM table WHERE Laps < 282 AND Tyres = p
CREATE TABLE INST, Here is a database schema( table schema);
Which co-driver has fewer than 282 laps and type P tyres?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = november 2, 2007
CREATE TABLE INST, Here is a database schema( table schema);
Which result has a Date of november 2, 2007?.It is not neccessary to use all the tables.
SELECT SUM Rebounds FROM table WHERE Name = fedor likholitov AND Rank > 8
CREATE TABLE INST, Here is a database schema( table schema);
How many rebounds does Fedor likholitov have with a rank greater than 8?.It is not neccessary to use all the tables.
SELECT SUM(area__km²_) FROM table_name_34 WHERE county = "nairnshire" AND population < 11 OFFSET 050
CREATE TABLE INST, Here is a database schema( table schema);
What is the area (km²) of Nairnshire county which has a population less than 11050?It is not neccessary to use all the tables.
SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Old Galician for cantaste in Portuguese?It is not neccessary to use all the tables.
SELECT COUNT(provider_iai_) FROM table_11390711_4 WHERE foundation = 1964
CREATE TABLE INST, Here is a database schema( table schema);
How many providers were founded in 1964?It is not neccessary to use all the tables.
SELECT developer_s_ FROM table_name_68 WHERE game = "portal"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the developers for Portal?It is not neccessary to use all the tables.
SELECT runner_up FROM table_name_35 WHERE winner = "janice yan (閻奕格)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the runner-up for janice yan (閻奕格)It is not neccessary to use all the tables.
SELECT party FROM table_name_46 WHERE district = "georgia 7"
CREATE TABLE INST, Here is a database schema( table schema);
What party has the district Georgia 7?It is not neccessary to use all the tables.
SELECT high_assists FROM table_17355408_4 WHERE high_points = "Chauncey Billups , Carmelo Anthony (18)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for chauncey billups carmelo anthony (18)It is not neccessary to use all the tables.
SELECT Points awarded (Platinum) FROM table WHERE Points awarded (Silver) = 70
CREATE TABLE INST, Here is a database schema( table schema);
How many platinum points were awarded when 70 silver points were awarded?.It is not neccessary to use all the tables.
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15968)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was patient 15968 first measured a arterial bp [diastolic]?It is not neccessary to use all the tables.
SELECT MAX(against) FROM table_name_47 WHERE difference = "- 20" AND position < 17
CREATE TABLE INST, Here is a database schema( table schema);
Difference of - 20 and a Position smaller than 17 is the highest against?It is not neccessary to use all the tables.
SELECT "Under-11" FROM table_28618 WHERE "Under-17" = 'Salma Nassar'
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for Under-11 when value of under-17 is Salma Nassar?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_45 WHERE away_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What was Footscray's score as an away team?It is not neccessary to use all the tables.
SELECT fbs_opponent FROM table_26240481_1 WHERE result = "L, 62-3"
CREATE TABLE INST, Here is a database schema( table schema);
Who played FBS where the result was L 62-3?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = raymond floyd
CREATE TABLE INST, Here is a database schema( table schema);
What is player raymond floyd's country?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Opponent = @ new york islanders AND Game > 35
CREATE TABLE INST, Here is a database schema( table schema);
How many points have @ new york islanders as the opponent, with a game greater than 35?.It is not neccessary to use all the tables.
SELECT score FROM table_name_59 WHERE place = "t3" AND country = "spain"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in Spain T3?It is not neccessary to use all the tables.
SELECT COUNT(segment_c) FROM table_15187735_10 WHERE segment_d = "Crash Test Dummies"
CREATE TABLE INST, Here is a database schema( table schema);
Name the segment c for crash test dummiesIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Bowl Game = bcs national championship
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the BCS National Championship game?.It is not neccessary to use all the tables.
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704"
CREATE TABLE INST, Here is a database schema( table schema);
Who had a qual 1 best of 1:01.704?It is not neccessary to use all the tables.
SELECT south_asians_2001 FROM table_1717824_1 WHERE province = "Nova Scotia"
CREATE TABLE INST, Here is a database schema( table schema);
What was the South Asian population in Nova Scotia in 2001?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Who is the home team of South Melbourne?.It is not neccessary to use all the tables.
SELECT Years FROM table WHERE Roll = 33
CREATE TABLE INST, Here is a database schema( table schema);
What years does the school have with a roll of 33?.It is not neccessary to use all the tables.
SELECT Finale FROM table WHERE Runners-up = Miranda Gore Browne
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when Miranda Gore Browne was runner-up?.It is not neccessary to use all the tables.
SELECT "Surface" FROM table_36784 WHERE "Opponent" = 'kerry melville reid' AND "Score" = '6–3, 2–6, 3–6'
CREATE TABLE INST, Here is a database schema( table schema);
Which Surface has an Opponent of kerry melville reid, and a Score of 6 3, 2 6, 3 6?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Results = re-elected AND First elected < 2002
CREATE TABLE INST, Here is a database schema( table schema);
What is the party for the representative who was first elected before 2002 and the results were re-elected?.It is not neccessary to use all the tables.
SELECT COUNT(matches) FROM table_name_96 WHERE s_rate < 133.72 AND team = "yorkshire carnegie"
CREATE TABLE INST, Here is a database schema( table schema);
How many Matches have an S/Rate smaller than 133.72 and a Team of yorkshire carnegie?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_51 WHERE game < 5 AND record = "2-0-0"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent of the game with a game number less than 5 with a 2-0-0 record?It is not neccessary to use all the tables.
SELECT procedures.icd9_code FROM procedures WHERE procedures.subject_id = "3623"
CREATE TABLE INST, Here is a database schema( table schema);
what is procedure icd9 code of subject id 3623?It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Run time = 22:50
CREATE TABLE INST, Here is a database schema( table schema);
Name the episode for run time of 22:50.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 3-4
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Record of 3-4?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Player = jason romano
CREATE TABLE INST, Here is a database schema( table schema);
Jason Romano played for what team?.It is not neccessary to use all the tables.
SELECT city FROM table_name_97 WHERE capacity = "41,311"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the city with a capacity of 41311?It is not neccessary to use all the tables.
SELECT Last Aired FROM table WHERE Retitled as/Same = classic concentration
CREATE TABLE INST, Here is a database schema( table schema);
Which Last Aired has a Retitled as/Same of classic concentration?.It is not neccessary to use all the tables.
SELECT name FROM table_name_64 WHERE county = "sør-trøndelag"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name with sør-trøndelagIt is not neccessary to use all the tables.
SELECT Miles (km) FROM table WHERE Race Time = 1:05:33
CREATE TABLE INST, Here is a database schema( table schema);
How many total miles recorded for the racer who finished in 1:05:33?.It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Position = pg AND From = vcu
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the PG position from VCU?.It is not neccessary to use all the tables.
SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager"
CREATE TABLE INST, Here is a database schema( table schema);
Show the employee ids for all employees with role name "Human Resource" or "Manager".It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
If the Home team of collingwood was playing, what was the Away team?.It is not neccessary to use all the tables.
SELECT Date/Year FROM table WHERE Type of Record = Total Attendance-Regular season
CREATE TABLE INST, Here is a database schema( table schema);
For what year is the type of record 'total attendance-regular season?.It is not neccessary to use all the tables.
SELECT MAX(episode) FROM table_15187735_1 WHERE segment_d = "ned Can Corn"
CREATE TABLE INST, Here is a database schema( table schema);
In what episode was segment D ned Can Corn?It is not neccessary to use all the tables.
SELECT SOLiDv4 FROM table WHERE Sequencer = Data output per run
CREATE TABLE INST, Here is a database schema( table schema);
What is solidv4 when sequencer is data output per run?.It is not neccessary to use all the tables.
SELECT Launched FROM table WHERE Country = spain
CREATE TABLE INST, Here is a database schema( table schema);
What is the Launched from a Country that is spain?.It is not neccessary to use all the tables.
SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13
CREATE TABLE INST, Here is a database schema( table schema);
Name the most runs for wickets of 66 and matches less than 13It is not neccessary to use all the tables.
SELECT COUNT Seasons FROM table WHERE Name = charles c. farrell
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons did Charles C. Farrell coach?.It is not neccessary to use all the tables.
SELECT rally_hq FROM table_name_62 WHERE rally_name = "adac rally deutschland"
CREATE TABLE INST, Here is a database schema( table schema);
Where was adac rally deutschland's rally HQ?It is not neccessary to use all the tables.
SELECT AVG(height) FROM table_name_82 WHERE weight < 93 AND spike < 336 AND block = 305
CREATE TABLE INST, Here is a database schema( table schema);
What is Average Height when Weight is less than 93 when Spike is less than 336 and when Block is 305?It is not neccessary to use all the tables.
SELECT MAX Production code FROM table WHERE US airdate = 4 April 2008
CREATE TABLE INST, Here is a database schema( table schema);
The U.S. airdate of 4 april 2008 had a production code of what?.It is not neccessary to use all the tables.
SELECT COUNT(extra_points) FROM table_14342367_11 WHERE player = "Paul Jones"
CREATE TABLE INST, Here is a database schema( table schema);
How many extra points did Paul Jones score?It is not neccessary to use all the tables.
SELECT COUNT Material collected FROM table WHERE Volume title = Justice League of America by George Pérez, Vol. 2
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of material collected for justice league of america by george pérez, vol. 2.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = luton town
CREATE TABLE INST, Here is a database schema( table schema);
who is the away team when the home team is luton town?.It is not neccessary to use all the tables.
SELECT time_to_ft__m__at_25°__seconds_ FROM table_16439764_1 WHERE shell__lb_ = "12.5" AND max_height__ft_ > 20000.0
CREATE TABLE INST, Here is a database schema( table schema);
Where the height range is higher than 20000.0 and the shell weight is 12.5 what is the time to feet ratio at 25 degrees?It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Silver > 0 AND Nation = georgia AND Bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of total medals for Georgia with 0 silver and 1 bronze?.It is not neccessary to use all the tables.
SELECT SUM(2 AS nd_pl) FROM table_name_83 WHERE years_active = "2009-2010" AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?It is not neccessary to use all the tables.
SELECT year FROM table_name_56 WHERE points > 0
CREATE TABLE INST, Here is a database schema( table schema);
What year has more than 0 points?It is not neccessary to use all the tables.
SELECT score FROM table_27755784_10 WHERE team = "@ Dallas"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the team is @ dallas?It is not neccessary to use all the tables.