sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX Asts FROM table WHERE From = 2000
CREATE TABLE INST, Here is a database schema( table schema);
Who has the high assists in 2000?.It is not neccessary to use all the tables.
SELECT loaned_to FROM table_name_37 WHERE loan_expires = "end of the season" AND player = "francis jeffers"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player?It is not neccessary to use all the tables.
SELECT Ship FROM table WHERE Built = 2012
CREATE TABLE INST, Here is a database schema( table schema);
What ship was built in 2012?.It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Quarterfinal = zhamash l 1–2
CREATE TABLE INST, Here is a database schema( table schema);
What event had zhamash l 1–2 in the quarterfinal?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Country = scotland
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the match was in the country of Scotland?.It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE Player = Rene Villemure
CREATE TABLE INST, Here is a database schema( table schema);
How many positions does rene villemure play?.It is not neccessary to use all the tables.
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?It is not neccessary to use all the tables.
SELECT Grid FROM table WHERE Team = dreyer & reinbold racing AND Points = 26
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid of team dreyer & reinbold racing, which has 26 points?.It is not neccessary to use all the tables.
SELECT Yacht Type FROM table WHERE LOA (Metres) < 16.5 AND Elapsed Time d:hh:mm:ss = 3:14:41:28
CREATE TABLE INST, Here is a database schema( table schema);
What was the yacht type smaller than 16.5 metres that finished in 3:14:41:28?.It is not neccessary to use all the tables.
SELECT "Name" FROM table_9223 WHERE "Event" = '500 metres'
CREATE TABLE INST, Here is a database schema( table schema);
Who set the record in the 500 metres event?It is not neccessary to use all the tables.
SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián"
CREATE TABLE INST, Here is a database schema( table schema);
What is the density of San Sebastián?It is not neccessary to use all the tables.
SELECT section_description FROM Sections WHERE section_name = 'h'
CREATE TABLE INST, Here is a database schema( table schema);
Describe the section h.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_82 WHERE attendance = "6,275"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Attendance of 6275?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE WNBA Team = chicago sky
CREATE TABLE INST, Here is a database schema( table schema);
Which player was picked for the Chicago Sky?.It is not neccessary to use all the tables.
SELECT no FROM table_29085880_1 WHERE us_viewers__million_ = "1.312"
CREATE TABLE INST, Here is a database schema( table schema);
Which episode number saw 1.312 million U.S. Wviewers?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_54 WHERE score = "7-3" AND loss = "worrell (0-1)"
CREATE TABLE INST, Here is a database schema( table schema);
How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Event = marathon AND Year > 1995 AND Position = 4th
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (publication.title)) FROM author AS AUTHOR_0, author AS AUTHOR_1, publication, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.name = 'H. V. Jagadish' AND AUTHOR_1.name = 'Divesh Srivastava' AND WRITES_0.aid = AUTHOR_0.aid AND WRITES_0.pid = publication.pid AND WRITES_1.aid = AUTHOR_1.aid AN...
CREATE TABLE INST, Here is a database schema( table schema);
return me the number of papers written by ' H. V. Jagadish ' and ' Divesh Srivastava ' .It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = brisbane cricket ground
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the venue at Brisbane Cricket Ground?.It is not neccessary to use all the tables.
SELECT original_title FROM table_20124413_1 WHERE prod_code = "1.12"
CREATE TABLE INST, Here is a database schema( table schema);
When 1.12 is the production code what is the original title?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Country = united states AND Wins < 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the most rank for the United States with wins less than 1.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = billy mayfair
CREATE TABLE INST, Here is a database schema( table schema);
What is Country, when Player is Billy Mayfair?.It is not neccessary to use all the tables.
SELECT National final main host FROM table WHERE Semi final/heat host = internal selection AND Year(s) = 2011
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the national final main host when the semi final/heat host shows internal selection in 2011?.It is not neccessary to use all the tables.
SELECT constructor FROM table_name_25 WHERE grid = 8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the constructor with the grid of 8?It is not neccessary to use all the tables.
SELECT District FROM table WHERE First elected < 1906 AND Incumbent = julius kahn
CREATE TABLE INST, Here is a database schema( table schema);
What was the district Incumbent Julius Kahn was in that was smaller than 1906?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients are with private insurance?It is not neccessary to use all the tables.
SELECT score_f_a FROM table_name_39 WHERE result = "d"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score F-A when the result was D?It is not neccessary to use all the tables.
SELECT SUM("Best") FROM table_69532 WHERE "Name" = 'bruno junqueira'
CREATE TABLE INST, Here is a database schema( table schema);
What is the total best for Bruno junqueiraIt is not neccessary to use all the tables.
SELECT date FROM table_18904831_6 WHERE high_rebounds = "Dydek (11)"
CREATE TABLE INST, Here is a database schema( table schema);
When dydek (11) has the highest rebounds what is the date?It is not neccessary to use all the tables.
SELECT SUM(runs) FROM table_name_34 WHERE high_score = 55 AND innings > 12
CREATE TABLE INST, Here is a database schema( table schema);
How many runs were there when the high score was 55 and there were more than 12 innings?It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Round > 4 AND Position = wide receiver
CREATE TABLE INST, Here is a database schema( table schema);
Which school(s) had a wide receiver drafted in round 4?.It is not neccessary to use all the tables.
SELECT MIN Gold FROM table WHERE Bronze = 0 AND Rank = 19 AND Silver < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?.It is not neccessary to use all the tables.
SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
Which season has the Werder Bremen Club and is in Round 2r?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE City = busan
CREATE TABLE INST, Here is a database schema( table schema);
What is Busan's rank?.It is not neccessary to use all the tables.
SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = "al anbar governorate" AND seats_2005 < 9
CREATE TABLE INST, Here is a database schema( table schema);
Name the average In/de-creased by which has a Governorate of al anbar governorate and Seats 2005 smaller than 9?It is not neccessary to use all the tables.
SELECT COUNT Overall FROM table WHERE Name = john cole
CREATE TABLE INST, Here is a database schema( table schema);
What is John Cole's overall pick number?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = lanny wadkins
CREATE TABLE INST, Here is a database schema( table schema);
What is the To par for Lanny Wadkins?.It is not neccessary to use all the tables.
SELECT position FROM table_10015132_21 WHERE player = "Loren Woods"
CREATE TABLE INST, Here is a database schema( table schema);
Which position does Loren Woods play?It is not neccessary to use all the tables.
SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID
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, show me about the distribution of phone_number and employee_id in a bar chart, and order by the Y in ascending please.It is not neccessary to use all the tables.
SELECT COUnT AS eu FROM table_22667773_8 WHERE name = "Quinn"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of eu for quinnIt is not neccessary to use all the tables.
SELECT County FROM table WHERE Opposition = offaly
CREATE TABLE INST, Here is a database schema( table schema);
Which County has an Opposition of offaly?.It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Team = roanne AND Games < 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rank of team roanne, which has less than 14 games?.It is not neccessary to use all the tables.
SELECT Captain FROM table WHERE Manager = billy bonds
CREATE TABLE INST, Here is a database schema( table schema);
Which captain has billy bonds as the manager?.It is not neccessary to use all the tables.
SELECT star_rating_code, AVG(price_range) FROM Hotels GROUP BY star_rating_code
CREATE TABLE INST, Here is a database schema( table schema);
plot scatter on what is the average price range of hotels for each each star rating code?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Champion = juventus
CREATE TABLE INST, Here is a database schema( table schema);
what season did the juventus win.It is not neccessary to use all the tables.
SELECT Urban settlement FROM table WHERE City / municipality = Kovin
CREATE TABLE INST, Here is a database schema( table schema);
What was the urban settlement when the city / municipality was kovin?.It is not neccessary to use all the tables.
SELECT Civilian deaths FROM table WHERE Military deaths = 231
CREATE TABLE INST, Here is a database schema( table schema);
How many civilians died in the conflict that left 231 members of the military dead?.It is not neccessary to use all the tables.
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'piperacillin-tazobactam 3.375 g mini-bag plus'...
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum total cost for a hospital that includes a drug called piperacillin-tazobactam 3.375 g mini-bag plus in 2105?It is not neccessary to use all the tables.
SELECT 2006 FROM table WHERE 2010 = grand slam tournaments
CREATE TABLE INST, Here is a database schema( table schema);
What 2006 has grand slam tournaments of 2010?.It is not neccessary to use all the tables.
SELECT AVG Rank FROM table WHERE Headquarters = usa AND Market Value (billion $) > 407.2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average rank for USA when the market value is 407.2 billion?.It is not neccessary to use all the tables.
SELECT isin FROM table_21692771_1 WHERE amount_issued_[€] = "223,000,000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ISIN that has an amount issued of 223000000?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_21330550_2 WHERE big_ten_team = "#10 Purdue"
CREATE TABLE INST, Here is a database schema( table schema);
How many dates have a big ten team of #10 purdue?It is not neccessary to use all the tables.
SELECT MIN(episode) FROM table_15187735_20
CREATE TABLE INST, Here is a database schema( table schema);
What is the first episode number?It is not neccessary to use all the tables.
SELECT "Frequency" FROM table_50967 WHERE "Magazine run" = 'september 2, 2010'
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency for the magazine that runs September 2, 2010?It is not neccessary to use all the tables.
SELECT Nationality² FROM table WHERE Name = Louis Floch
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of Louis floch.It is not neccessary to use all the tables.
SELECT COUNT Ends Won FROM table WHERE L = 4 AND Stolen Ends = 17
CREATE TABLE INST, Here is a database schema( table schema);
Name the number ends won when L is 4 and stolen ends is 17.It is not neccessary to use all the tables.
SELECT Percent decline from peak population FROM table WHERE Peak population (year) = 178320 (1960)
CREATE TABLE INST, Here is a database schema( table schema);
what is the percent decline from peak population when the peak population (year) is 178320 (1960)?.It is not neccessary to use all the tables.
SELECT T2.Pilot_name, COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1
CREATE TABLE INST, Here is a database schema( table schema);
Show names of pilots that have more than one record.It is not neccessary to use all the tables.
SELECT loss FROM table_name_4 WHERE record = "71-33"
CREATE TABLE INST, Here is a database schema( table schema);
Name the loss with record of 71-33It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Score = 68-71=139
CREATE TABLE INST, Here is a database schema( table schema);
What is Player, when Score is "68-71=139"?.It is not neccessary to use all the tables.
SELECT ISSN FROM table WHERE Publication range = 1984-
CREATE TABLE INST, Here is a database schema( table schema);
What is the ISSN number of a publication range of 1984-?.It is not neccessary to use all the tables.
SELECT Channel FROM table WHERE Host(s) = Art Rooijakkers
CREATE TABLE INST, Here is a database schema( table schema);
Which channel has the host Art Rooijakkers?.It is not neccessary to use all the tables.
SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the totla number of goal difference for goals against of 30 and played less than 18It is not neccessary to use all the tables.
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "w. jasper talbert"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of W. Jasper Talbert who was first elected in 1892?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = moorabbin oval
CREATE TABLE INST, Here is a database schema( table schema);
Moorabbin oval is home to what team?.It is not neccessary to use all the tables.
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
CREATE TABLE INST, Here is a database schema( table schema);
How many people watched the game at Lake Oval?It is not neccessary to use all the tables.
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5"
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage democrats with democratic plurality of -3 and 2/5 democrat/republican?It is not neccessary to use all the tables.
SELECT "Chassis" FROM table_80232 WHERE "Engine" = 'ferrari' AND "Points" = '25'
CREATE TABLE INST, Here is a database schema( table schema);
What company made the chassis when Ferrari made the engine and there were 25 points?It is not neccessary to use all the tables.
SELECT AVG(pick) FROM table_name_3 WHERE player = "jim h. mitchell"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average pick of player jim h. mitchell?It is not neccessary to use all the tables.
SELECT MIN("year") FROM table_203_300 WHERE "result" = 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the first year in which the result was 1st place ?It is not neccessary to use all the tables.
SELECT builder FROM table_name_67 WHERE wheels = "4-4-0" AND railway = "gcr"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Builder when the wheels were 4-4-0 and the railway was GCR?It is not neccessary to use all the tables.
SELECT League Cup Apps FROM table WHERE Total Goals < 2 AND Total Apps = 12
CREATE TABLE INST, Here is a database schema( table schema);
what is the league cup apps when the total goals is less than 2 and the total apps is 12?.It is not neccessary to use all the tables.
SELECT SUM Drew FROM table WHERE Lost > 14
CREATE TABLE INST, Here is a database schema( table schema);
Which Drew has a Lost larger than 14?.It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Date = february 18, 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which label released on February 18, 2009?.It is not neccessary to use all the tables.
SELECT debut FROM table_name_11 WHERE position = "defender" AND name = "stephen laybutt"
CREATE TABLE INST, Here is a database schema( table schema);
What round was the debut of defender Stephen Laybutt?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score < 69
CREATE TABLE INST, Here is a database schema( table schema);
WHich Places have a score smaller than 69?.It is not neccessary to use all the tables.
SELECT Cores FROM table WHERE Release date = april 2012 AND Release price ( USD ) = $393 AND Part number(s) = av8063801117503
CREATE TABLE INST, Here is a database schema( table schema);
How many cores does the processor released in April 2012 with a price of $393 and part number av8063801117503 have?.It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_name_20 WHERE surface = "clay" AND tournament = "lyneham"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent in the final with a clay surface at the Tournament of Lyneham?It is not neccessary to use all the tables.
SELECT entrant FROM table_name_12 WHERE year < 1965 AND chassis = "brabham bt10"
CREATE TABLE INST, Here is a database schema( table schema);
Which entrant had a Brabham BT10 chassis before 1965?It is not neccessary to use all the tables.
SELECT AVG Tie no FROM table WHERE Home team = stamford a.f.c.
CREATE TABLE INST, Here is a database schema( table schema);
what is the average tie no when the home team is stamford a.f.c.?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_64 WHERE home = "phoenix" AND record = "2–5–0"
CREATE TABLE INST, Here is a database schema( table schema);
Who visited phoenix with a Record of 2–5–0?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Source = fao AND Out of > 50 AND Name = dietary calorie intake
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank that has fao as a source and an out greater than 50, with dietary calorie intake as the name?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Points = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the engine for the car with 3 points?.It is not neccessary to use all the tables.
SELECT Mens 2nd XI FROM table WHERE Mens 1st XI = 6th, South Division 2
CREATE TABLE INST, Here is a database schema( table schema);
When 6th, south division 2 is the mens 1st xi what is the mens 2nd xi?.It is not neccessary to use all the tables.
SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7
CREATE TABLE INST, Here is a database schema( table schema);
What nation won the fewest gold medals while being in Rank 1 with a total of 37 medals and more than 7 bronze medals?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 2 october 2011
CREATE TABLE INST, Here is a database schema( table schema);
What is the score on 2 October 2011?.It is not neccessary to use all the tables.
SELECT hanzi FROM table_name_84 WHERE name = "nmtv mongolian satellite television"
CREATE TABLE INST, Here is a database schema( table schema);
Which hanzi's name is nmtv mongolian satellite television?It is not neccessary to use all the tables.
SELECT MIN Age on mission FROM table WHERE Name = stu roosa
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest age of an astronaut named Stu Roosa?.It is not neccessary to use all the tables.
SELECT latitude FROM table_name_18 WHERE diameter__km_ = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the latitude of the 0 diameter?It is not neccessary to use all the tables.
SELECT "Elevator" FROM table_47747 WHERE "Order and title" = 'cardinal-deacon of s. nicola in carcere tulliano'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?It is not neccessary to use all the tables.
SELECT AVG Match FROM table WHERE Lost > 0 AND Points > 6 AND Team = legia warszawa AND Draw < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_87 WHERE name = "roslinda samsu"
CREATE TABLE INST, Here is a database schema( table schema);
Roslinda Samsu has what nationality?It is not neccessary to use all the tables.
SELECT record FROM table_name_37 WHERE location = "astrodome"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after the game at the Astrodome?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Attendance < 22,597 AND Opponent = pittsburgh steelers
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest week that had a game against the Pittsburgh Steelers with 22,597 fans in attendance?.It is not neccessary to use all the tables.
SELECT MAX Middle schools FROM table WHERE Year = 2005-2006
CREATE TABLE INST, Here is a database schema( table schema);
Name the most middle schools for 2005-2006.It is not neccessary to use all the tables.
SELECT MAX Laps FROM table WHERE Time/Retired = +1 lap AND Constructor = brm AND Grid > 1
CREATE TABLE INST, Here is a database schema( table schema);
Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded?.It is not neccessary to use all the tables.
SELECT meter_400, meter_100 FROM swimmer
CREATE TABLE INST, Here is a database schema( table schema);
Return a bar chart about the distribution of meter_400 and meter_100 .It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Team = Golden State
CREATE TABLE INST, Here is a database schema( table schema);
Name the record for golden state.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 50
CREATE TABLE INST, Here is a database schema( table schema);
What was the Record on Game 50?.It is not neccessary to use all the tables.
SELECT COUNT(goals_conceded) FROM table_name_54 WHERE place < 8 AND played > 18
CREATE TABLE INST, Here is a database schema( table schema);
If the place is smaller than 8 and they played more than 18 what is the total number of goals conceded?It is not neccessary to use all the tables.