sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT method FROM table_name_83 WHERE record = "4-0"
CREATE TABLE INST, Here is a database schema( table schema);
Which method has a record of 4-0?It is not neccessary to use all the tables.
SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name
CREATE TABLE INST, Here is a database schema( table schema);
Show names of teachers and the number of courses they teach.It is not neccessary to use all the tables.
SELECT written_by FROM table_27892955_1 WHERE us_viewers__million_ = "1.97"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote episode that had 1.97 million u.s. viewers?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE High assists = Andre Miller (7)
CREATE TABLE INST, Here is a database schema( table schema);
what is the date the high assists was andre miller (7)?.It is not neccessary to use all the tables.
SELECT team FROM table_name_90 WHERE game = 77
CREATE TABLE INST, Here is a database schema( table schema);
What is Team when Game is 77?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE 1st (m) > 133.5 AND Overall WC points (Rank) = 459 (7)
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank is the lowest one that has a 1st (m) larger than 133.5, and an Overall WC points (Rank) of 459 (7)?.It is not neccessary to use all the tables.
SELECT AVG(pieces) FROM table_name_14 WHERE start = "1941" AND release > 2001
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of pieces for boards that started in 1941 and were released after 2001?It is not neccessary to use all the tables.
SELECT moving_to FROM table_name_78 WHERE nat = "tri"
CREATE TABLE INST, Here is a database schema( table schema);
Who is moving with the nationality of Tri?It is not neccessary to use all the tables.
SELECT ht FROM table_name_54 WHERE venue = "zagreb" AND score = "0-2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the HT for the game at Zagreb with a full-time score of 0-2?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Points < 62 AND January < 6
CREATE TABLE INST, Here is a database schema( table schema);
what opponent has an average less than 62 and a January average less than 6.It is not neccessary to use all the tables.
SELECT City FROM table WHERE July = 23/9°c (73/48°f)
CREATE TABLE INST, Here is a database schema( table schema);
In what city is the July temperature 23/9°c (73/48°f)?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Competition = welsh rugby union challenge trophy AND Result = 34-34
CREATE TABLE INST, Here is a database schema( table schema);
Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Family/families = The Potter Family
CREATE TABLE INST, Here is a database schema( table schema);
Name the original air date for the potter family.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_11 WHERE venue = "edmonton, canada" AND weight_class__kg_ > 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest year that has edmonton canada as the venue with a weight class (kg) greater than 100?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 10.13 (73)
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team that scored 10.13 (73)?.It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE School = university of southern california
CREATE TABLE INST, Here is a database schema( table schema);
What is the University of Southern California's highest Round?.It is not neccessary to use all the tables.
SELECT livery FROM table_name_74 WHERE status = "in service as coaching stock"
CREATE TABLE INST, Here is a database schema( table schema);
what livery has a status of in service as coaching stock?It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Catalog = alca-9013
CREATE TABLE INST, Here is a database schema( table schema);
Which Label was cataloged as alca-9013?.It is not neccessary to use all the tables.
SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026
CREATE TABLE INST, Here is a database schema( table schema);
What was the introductory phrase for the episode with the production bode 6026?It is not neccessary to use all the tables.
SELECT title FROM table_26200084_1 WHERE directed_by = "David Mamet"
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode directed by David Mamet?It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 9 AND program_course.category LIKE 'ULCS'
CREATE TABLE INST, Here is a database schema( table schema);
What upper-level courses are 9 credits ?It is not neccessary to use all the tables.
SELECT record FROM table_name_27 WHERE game__number = 79
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after game 79?It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd that Melbourne played for at home?.It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Date = apr 23, 1967
CREATE TABLE INST, Here is a database schema( table schema);
What was the margin of victory on Apr 23, 1967?.It is not neccessary to use all the tables.
SELECT MIN(pl_gp) FROM table_name_18 WHERE pick__number = 235 AND rd__number > 12
CREATE TABLE INST, Here is a database schema( table schema);
What was the PI GP fpr pick# 235 for Rd# larger than 12?It is not neccessary to use all the tables.
SELECT Status of Match FROM table WHERE Fixture = scotland v northern ireland
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of the match between Scotland v Northern Ireland?.It is not neccessary to use all the tables.
SELECT MIN("Block") FROM table_40187 WHERE "Height" < '202' AND "Date of Birth" = '19.06.1980' AND "Weight" > '76'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest block that has a height less than 202, 19.06.1980 as the date of birth, and a weight greater than 76?It is not neccessary to use all the tables.
SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-29"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?It is not neccessary to use all the tables.
SELECT school FROM table_name_54 WHERE team_name = "trojans"
CREATE TABLE INST, Here is a database schema( table schema);
What school had a team name of the Trojans?It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_84 WHERE 2002 = "a" AND tournament = "australian open"
CREATE TABLE INST, Here is a database schema( table schema);
Which 2008 has a 2002 of a and a Tournament of australian open?It is not neccessary to use all the tables.
SELECT season FROM table_name_35 WHERE races > 18 AND points = 36
CREATE TABLE INST, Here is a database schema( table schema);
What season has races larger than 18 and 36 points?It is not neccessary to use all the tables.
SELECT IHSAA Class FROM table WHERE # / County = 18 delaware AND Mascot = tigers
CREATE TABLE INST, Here is a database schema( table schema);
Name the IHSAA class with county 18 delaware and tigers mascot.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Loss = hargan (14–13)
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game when the loss was hargan (14–13)?.It is not neccessary to use all the tables.
SELECT "Score" FROM table_6667 WHERE "Club" = 'fk austria wien'
CREATE TABLE INST, Here is a database schema( table schema);
What's the final score of the competition that features the club of fk Austria wien?It is not neccessary to use all the tables.
SELECT winner FROM table_name_45 WHERE points_classification = "robbie mcewen" AND mountains_classification = "josé rujano"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner when points classification is Robbie Mcewen and a Mountains classification is José Rujano?It is not neccessary to use all the tables.
SELECT Eagle Riders FROM table WHERE Battle of the Planets = Zoltar
CREATE TABLE INST, Here is a database schema( table schema);
Which eagle riders have battle of the planets as zoltar?.It is not neccessary to use all the tables.
SELECT COUNT LMP1 Winning Team FROM table WHERE Rnd. = 4 AND LMP2 Winning Team = No. 42 Strakka Racing
CREATE TABLE INST, Here is a database schema( table schema);
How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?.It is not neccessary to use all the tables.
SELECT Power FROM table WHERE Displacement = 182cid (2,988cc) AND Notes = eu spec
CREATE TABLE INST, Here is a database schema( table schema);
What is the power when the displacement is 182cid (2,988cc) and the notes are eu spec?.It is not neccessary to use all the tables.
SELECT notes FROM table_name_75 WHERE country = "poland"
CREATE TABLE INST, Here is a database schema( table schema);
Poland has what notes?It is not neccessary to use all the tables.
SELECT Money requested (£) FROM table WHERE Company or product name = neurotica
CREATE TABLE INST, Here is a database schema( table schema);
How much money did the company Neurotica request?.It is not neccessary to use all the tables.
SELECT Original artist FROM table WHERE Week # = Top 16 (8 Women)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the original artist for week number Top 16 (8 women)?.It is not neccessary to use all the tables.
SELECT pick__number FROM table_name_21 WHERE player = "tom donchez"
CREATE TABLE INST, Here is a database schema( table schema);
What was Tom Donchez pick number?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_1 WHERE surface = "hard" AND score_in_the_final = "4–6, 3–6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome on a hard surface when the score in the final was 4–6 3–6?It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE Player = Ben Harpur
CREATE TABLE INST, Here is a database schema( table schema);
How many positions did player Ben Harpur play?.It is not neccessary to use all the tables.
SELECT MIN(swimsuit) FROM table_name_38 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 general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6"
CREATE TABLE INST, Here is a database schema( table schema);
What is guido bontempi's general classification when he has a stage of 6?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Engine = brm straight-4
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of years for brm straight-4.It is not neccessary to use all the tables.
SELECT date FROM table_name_87 WHERE tournament = "alfred dunhill championship 1"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Tournament is Alfred Dunhill Championship 1?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Points = 88 AND Record = 38–22–12
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has Points of 88, and a Record of 38–22–12?.It is not neccessary to use all the tables.
SELECT AVG(against) FROM table_name_52 WHERE status = "five nations" AND opposing_teams = "wales"
CREATE TABLE INST, Here is a database schema( table schema);
What is the against for the opposing team of Wales with the status of Five Nations?It is not neccessary to use all the tables.
SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY COUNT(*)
CREATE TABLE INST, Here is a database schema( table schema);
Show budget type codes and the number of documents in each budget type with a bar chart, could you sort by the the total number from low to high?It is not neccessary to use all the tables.
SELECT MAX OWGR pts FROM table WHERE Winner = lin wen-tang (4) AND Prize fund ( US$ ) < 2,250,000
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest OWGR pts, whenn Winner is Lin Wen-Tang (4), and when Prize fund ( US$ ) is less than 2,250,000?.It is not neccessary to use all the tables.
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY Country DESC
CREATE TABLE INST, Here is a database schema( table schema);
What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there Plot them as bar chart, and rank by the x-axis from high to low.It is not neccessary to use all the tables.
SELECT RR Romaja FROM table WHERE Hangul/Chosongul = 강원도 AND Capital = wonsan
CREATE TABLE INST, Here is a database schema( table schema);
What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan?.It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Losses < 11 AND Mininera DFL = caramut AND Byes < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?.It is not neccessary to use all the tables.
SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell"
CREATE TABLE INST, Here is a database schema( table schema);
On how many locations is there a church named Askrova Bedehuskapell built in 1957?It is not neccessary to use all the tables.
SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "C.P. Greeks"
CREATE TABLE INST, Here is a database schema( table schema);
Who is h.t. brewer when je armstrong is c.p. greeks?It is not neccessary to use all the tables.
SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817"
CREATE TABLE INST, Here is a database schema( table schema);
Name the M939 series for short wheelbase and M809 series of m817It is not neccessary to use all the tables.
SELECT venue FROM table_name_95 WHERE away_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue that they away team Collingwood played at?It is not neccessary to use all the tables.
SELECT date FROM table_name_49 WHERE attendance > 19 OFFSET 600
CREATE TABLE INST, Here is a database schema( table schema);
What date were there more than 19600 people in attendance?It is not neccessary to use all the tables.
SELECT COUNT F.L. FROM table WHERE Series = Formula Three Euroseries
CREATE TABLE INST, Here is a database schema( table schema);
How many F.L. are listed for Formula Three Euroseries?.It is not neccessary to use all the tables.
SELECT Domari FROM table WHERE Persian = yak, yek
CREATE TABLE INST, Here is a database schema( table schema);
What is the Domari associated with a Persian of yak, yek?.It is not neccessary to use all the tables.
SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Revenue)
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of revenue , and group by attribute headquarter, sort by the total number in asc please.It is not neccessary to use all the tables.
SELECT oppose FROM table_name_22 WHERE poll_source = "time poll" AND unsure = "6%"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of people were opposed to the candidate based on the Time Poll poll that showed 6% of people were unsure?It is not neccessary to use all the tables.
SELECT SUM Final year FROM table WHERE Notes = replaced by i-96
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Final year that has a Notes of replaced by i-96?.It is not neccessary to use all the tables.
SELECT home FROM table_name_83 WHERE date = "27 march 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on 27 march 2008?It is not neccessary to use all the tables.
SELECT bronze FROM table_name_25 WHERE silver = 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the bronze when silver is 1It is not neccessary to use all the tables.
SELECT deadline_for_completion FROM table_12078626_1 WHERE description = "iPhone recall within the first 3 months of release"
CREATE TABLE INST, Here is a database schema( table schema);
what's the deadline for completion where description is iphone recall within the first 3 months of releaseIt is not neccessary to use all the tables.
SELECT Player of the Round FROM table WHERE Number of fixtures = 80
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player of the round with 80 fixtures? .It is not neccessary to use all the tables.
SELECT MIN Population (2007) FROM table WHERE Barangay = Poblacion II
CREATE TABLE INST, Here is a database schema( table schema);
Name the least population 2007 for barangay is poblacion ii.It is not neccessary to use all the tables.
SELECT HIRE_DATE, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE
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, visualize a line chart about the change of salary over hire_date , and I want to order by the X in ascending.It is not neccessary to use all the tables.
SELECT MAX To par FROM table WHERE Year(s) won = 1988 AND Total < 148
CREATE TABLE INST, Here is a database schema( table schema);
Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE Record = 26-11
CREATE TABLE INST, Here is a database schema( table schema);
What is the location/attendance with a 26-11 record?.It is not neccessary to use all the tables.
SELECT COUNT Frequency MHz FROM table WHERE Call sign = kgrj AND ERP W > 21,500
CREATE TABLE INST, Here is a database schema( table schema);
What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?.It is not neccessary to use all the tables.
SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = "#98 All American Racers"
CREATE TABLE INST, Here is a database schema( table schema);
How many different results came out of the round in which #98 All American Racers became the GTU winning team?It is not neccessary to use all the tables.
SELECT directed_by FROM table_20704243_5 WHERE season__number = 1
CREATE TABLE INST, Here is a database schema( table schema);
Name who directed season 1It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_29686983_1 WHERE round = 1
CREATE TABLE INST, Here is a database schema( table schema);
who had the fastest lap for round 1?It is not neccessary to use all the tables.
SELECT MIN(2011 AS _number__), 000 AS _ FROM table_273617_6
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest 2011 number (000)?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_31 WHERE venue = "win entertainment centre"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at the Win Entertainment Centre?It is not neccessary to use all the tables.
SELECT Win% FROM table WHERE Team = 1989-90
CREATE TABLE INST, Here is a database schema( table schema);
What is the Win% of the 1989-90 Team?.It is not neccessary to use all the tables.
SELECT MIN Ends Lost FROM table WHERE Stolen Ends For < 13 AND Stolen Ends Against = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6?.It is not neccessary to use all the tables.
SELECT "Margin of victory" FROM table_40988 WHERE "Winning score" = '68-67-69-65=269'
CREATE TABLE INST, Here is a database schema( table schema);
What was the Margin of Victory of winning score 68-67-69-65=269?It is not neccessary to use all the tables.
SELECT Engine † FROM table WHERE Rounds = all AND Tyre = m AND Driver = david coulthard
CREATE TABLE INST, Here is a database schema( table schema);
what is the engine when the rounds ar all, the tyre is m and the driver is david coulthard?.It is not neccessary to use all the tables.
SELECT MIN Capacity FROM table WHERE Location = grodno
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest capacity in grodno.It is not neccessary to use all the tables.
SELECT SUM Apparent magnitude FROM table WHERE NGC number > 3293
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Apparent magnitudes for an NGC number larger than 3293?.It is not neccessary to use all the tables.
SELECT SUM(week) FROM table_name_24 WHERE result = "w 20–6"
CREATE TABLE INST, Here is a database schema( table schema);
How many weeks had a Result of w 20 6?It is not neccessary to use all the tables.
SELECT "Games" FROM table_4305 WHERE "Total" < '4' AND "Sport" = 'swimming' AND "Years" = '1968'
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the games for total less than 4 for swimming 1968It is not neccessary to use all the tables.
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average spectators for 2006-06-21 and time more than 21It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE Incumbent = Jack Fields
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates when Jack Fields was the incumbent?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Team = suzuki AND Points = 4
CREATE TABLE INST, Here is a database schema( table schema);
What year did they get 4 points with Suzuki?.It is not neccessary to use all the tables.
SELECT father FROM table_name_89 WHERE spouse = "ottokar ii" AND birth = "1204"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the father who was born in 1204 and married ottokar ii?It is not neccessary to use all the tables.
SELECT venue FROM table_24919137_2 WHERE score = "14.16 (100)-12.12 (84)"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played when the score was 14.16 (100)-12.12 (84)?It is not neccessary to use all the tables.
SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3
CREATE TABLE INST, Here is a database schema( table schema);
Which makers designed more than 3 car models? List full name and the id.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home = colorado
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the home game for Colorado?.It is not neccessary to use all the tables.
SELECT AVG Losses FROM table WHERE Club = warrnambool AND Wins < 12
CREATE TABLE INST, Here is a database schema( table schema);
what is the average losses when the club is warrnambool and wins is less than 12?.It is not neccessary to use all the tables.
SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0?It is not neccessary to use all the tables.
SELECT COUNT(performed_by) FROM table_191105_2 WHERE subject = "interjection"
CREATE TABLE INST, Here is a database schema( table schema);
When interjection is the subject how many performers are there?It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Entrant = lola motorsport AND Points > 0
CREATE TABLE INST, Here is a database schema( table schema);
What year featured lola motorsport as an entrant with over 0 points?.It is not neccessary to use all the tables.
SELECT played FROM table_20760802_1 WHERE won = "0"
CREATE TABLE INST, Here is a database schema( table schema);
How many teams that played won 0 games?It is not neccessary to use all the tables.
SELECT "Score" FROM table_62995 WHERE "Home team" = 'scarborough'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the Scarborough Home game?It is not neccessary to use all the tables.