sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT SUM Against FROM table WHERE Played > 22
CREATE TABLE INST, Here is a database schema( table schema);
How many games were played against when the team played more than 22 total?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Year(s) = 1982
CREATE TABLE INST, Here is a database schema( table schema);
what is the type when the year(s) is 1982?.It is not neccessary to use all the tables.
SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004
CREATE TABLE INST, Here is a database schema( table schema);
the names of models that launched between 2002 and 2004.It is not neccessary to use all the tables.
SELECT COUNT 5th Venue FROM table WHERE 1st Venue = Doha
CREATE TABLE INST, Here is a database schema( table schema);
How many 5th venue cities were there when Doha was the 1st venue city?.It is not neccessary to use all the tables.
SELECT name FROM table_name_61 WHERE developer = "yes" AND personal_sites = "no"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the entry that has a developer entry of Yes and a personal sites entry of No?It is not neccessary to use all the tables.
SELECT COUNT(candidates) FROM table_1341604_10 WHERE result = "New seat Democratic gain"
CREATE TABLE INST, Here is a database schema( table schema);
how many candidates with result being new seat democratic gainIt is not neccessary to use all the tables.
SELECT Points FROM table WHERE Chassis = march 751
CREATE TABLE INST, Here is a database schema( table schema);
Name the points with chassis of march 751.It is not neccessary to use all the tables.
SELECT Commissioned FROM table WHERE Builder = Scotts, Greenock AND Name = Chieftain
CREATE TABLE INST, Here is a database schema( table schema);
What are the commissioned for scotts, greenock and chieftain?.It is not neccessary to use all the tables.
SELECT AVG ERP W FROM table WHERE Call sign = k248bj AND Frequency MHz > 97.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?.It is not neccessary to use all the tables.
SELECT "Format" FROM table_69417 WHERE "Interactivity support" = 'no' AND "Word wrap support" = 'yes' AND "Image support" = 'yes' AND "Open standard" = 'yes'
CREATE TABLE INST, Here is a database schema( table schema);
Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?It is not neccessary to use all the tables.
SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+15%"
CREATE TABLE INST, Here is a database schema( table schema);
What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%It is not neccessary to use all the tables.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name, I want to list from high to low by the total number.It is not neccessary to use all the tables.
SELECT MIN Frequency ( Hz ) FROM table WHERE Helmholtz pitch = d
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Frequency where the Hemholtz pitch is d?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_25 WHERE week = 15
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for week 15?It is not neccessary to use all the tables.
SELECT "Driver" FROM table_2439 WHERE "Series" = 'NASCAR Winston Cup' AND "Winnings" = '$40,000'
CREATE TABLE INST, Here is a database schema( table schema);
Which drivers won $40,000 in the NASCAR Winston Cup?It is not neccessary to use all the tables.
SELECT championship FROM table_23235767_4 WHERE surface = "Clay" AND opponent_in_the_final = "Corrado Barazzutti"
CREATE TABLE INST, Here is a database schema( table schema);
Name the championship for clay and corrado barazzuttiIt is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Finalist = monica seles
CREATE TABLE INST, Here is a database schema( table schema);
What tournament had finalist Monica Seles?.It is not neccessary to use all the tables.
SELECT Team FROM table 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 gtype, COUNT(*) FROM Video_games GROUP BY gtype
CREATE TABLE INST, Here is a database schema( table schema);
Show all video game types and the number of video games in each type.It is not neccessary to use all the tables.
SELECT Runner(s)-up FROM table WHERE Margin = 10 strokes
CREATE TABLE INST, Here is a database schema( table schema);
Which runner-up player(s) had a margin of 10 strokes?.It is not neccessary to use all the tables.
SELECT MAX(earnings___) AS $__ FROM table_name_72 WHERE player = "corey pavin" AND rank > 4
CREATE TABLE INST, Here is a database schema( table schema);
Player of corey pavin and a Rank larger than 4 involved which highest earnings ($)?It is not neccessary to use all the tables.
SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winner has a Score of 1 0, and a Season of 2011 12?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE W.A. = 0-8-0
CREATE TABLE INST, Here is a database schema( table schema);
What class is associated with a W.A. of 0-8-0?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_25 WHERE country = "australia"
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par when Country is "Australia"?It is not neccessary to use all the tables.
SELECT result_f___a FROM table_name_93 WHERE date = "3 may 1993"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result F-A of the game on 3 may 1993?It is not neccessary to use all the tables.
SELECT Pop. 2006 FROM table WHERE Major Town = Coober Pedy
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2006 population count of the local government area where Coober Pedy is located?.It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Bronze > 1 AND Silver > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the least total that had more Bronzes than 1 and more silvers than 2?.It is not neccessary to use all the tables.
SELECT Leading scorer FROM table WHERE Home = warriors
CREATE TABLE INST, Here is a database schema( table schema);
Who was the leading score in the game at the Warriors?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pens = 0 AND Start = 12
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has 0 Pens and 12 Starts?.It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Rank = 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of laps with rank of 8.It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Silver > 2 AND Sport = cycling AND Gold < 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?.It is not neccessary to use all the tables.
SELECT Loan Club FROM table WHERE Start Source = bbc sport AND Started = 9 february
CREATE TABLE INST, Here is a database schema( table schema);
what is the loan club with the start source is bbc sport and started on 9 february?.It is not neccessary to use all the tables.
SELECT result FROM table_name_63 WHERE team = "giants"
CREATE TABLE INST, Here is a database schema( table schema);
I want the result for team of giantsIt is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_53 WHERE passenger_change = "+32,9%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year that saw a passenger change of +32,9%?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Record = 4-16-7
CREATE TABLE INST, Here is a database schema( table schema);
What home team had a record of 4-16-7?.It is not neccessary to use all the tables.
SELECT year, AVG(attendance) FROM home_game GROUP BY year ORDER BY year
CREATE TABLE INST, Here is a database schema( table schema);
Plot year by the average of attendance as a line chart, and sort x axis in asc order.It is not neccessary to use all the tables.
SELECT directed_by FROM table_29897962_1 WHERE us_viewers__million_ = "3.55"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that had 3.55 million viewers?It is not neccessary to use all the tables.
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Akira when Tiger Mask IV is Akira (10:05)?It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_72 WHERE silver = 0 AND gold = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Total when Silver is 0 and when Gold is 1?It is not neccessary to use all the tables.
SELECT sanskrit_word FROM table_180802_3 WHERE transcription = "wan athit"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sanskrit word if the transcription is wan athit?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the away team is melbourne?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Name = hafiz abu sujad
CREATE TABLE INST, Here is a database schema( table schema);
Which club is associated with Hafiz Abu Sujad?.It is not neccessary to use all the tables.
SELECT Match Report FROM table WHERE Opponent = houston
CREATE TABLE INST, Here is a database schema( table schema);
What is the match report for the game that was against Houston?.It is not neccessary to use all the tables.
SELECT SUM(seasons) FROM table_name_45 WHERE total_points < 24
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of seasons for the team with a total fewer than 24?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = arjun atwal
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Player of arjun atwal?.It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Cowboys points = 10
CREATE TABLE INST, Here is a database schema( table schema);
How many opponents are there when cowboy points were 10?.It is not neccessary to use all the tables.
SELECT name, price FROM Products ORDER BY price LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Select the name and price of the cheapest product.It is not neccessary to use all the tables.
SELECT SUM("Laps") FROM table_54728 WHERE "Driver" = 'derek warwick'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of laps for Derek Warwick?It is not neccessary to use all the tables.
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
CREATE TABLE INST, Here is a database schema( table schema);
For each classroom, show the classroom number and find how many students are using it.It is not neccessary to use all the tables.
SELECT competition FROM table_name_31 WHERE result = "w" AND date = "june 30, 1966"
CREATE TABLE INST, Here is a database schema( table schema);
What competition has a result of W on June 30 1966?It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Player = Jimmy Jones
CREATE TABLE INST, Here is a database schema( table schema);
Name the college/junior club team for jimmy jones.It is not neccessary to use all the tables.
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7073) AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CU...
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the diagnosis of patient 7073 last was received in the previous year?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 58–10
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Record of 58–10?.It is not neccessary to use all the tables.
SELECT To Par FROM table WHERE Money ( $ ) = 350 AND Player = henry picard
CREATE TABLE INST, Here is a database schema( table schema);
Which To Par has a Money ($) of 350, and a Player of henry picard?.It is not neccessary to use all the tables.
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the placement date of the order whose invoice number is 10?It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_30054758_3 WHERE location_attendance = "Phog Allen Fieldhouse , Lawrence, KS (16,300)"
CREATE TABLE INST, Here is a database schema( table schema);
How many games are shown when the is location attendance is phog allen fieldhouse lawrence ks (16300)?It is not neccessary to use all the tables.
SELECT athlete FROM table_22355_20 WHERE rank = 8 AND olympics = "1948–1952"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?It is not neccessary to use all the tables.
SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC
CREATE TABLE INST, Here is a database schema( table schema);
What is the total credit does each department offer, and list from high to low by the X.It is not neccessary to use all the tables.
SELECT Game FROM table WHERE Date = January 28
CREATE TABLE INST, Here is a database schema( table schema);
What game number was played on January 28?.It is not neccessary to use all the tables.
SELECT MAX Pick FROM table WHERE Position = back AND Round = 28
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pick of the back player from round 28?.It is not neccessary to use all the tables.
SELECT Poll source FROM table WHERE Peg Luksik = 9% AND Dates administered = may 12, 2010
CREATE TABLE INST, Here is a database schema( table schema);
Which Poll source has a Peg Luksik of 9%, and Dates administered of may 12, 2010?.It is not neccessary to use all the tables.
SELECT first_member FROM table_name_95 WHERE election = "1871 by-election"
CREATE TABLE INST, Here is a database schema( table schema);
What is First Member when Election is "1871 by-election"?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "Prisoners"
CREATE TABLE INST, Here is a database schema( table schema);
When did the episode titled "Prisoners" first air?.It is not neccessary to use all the tables.
SELECT result FROM table_26250199_1 WHERE original_artist = "Joan Osborne"
CREATE TABLE INST, Here is a database schema( table schema);
The original artist Joan Osborne has what result?It is not neccessary to use all the tables.
SELECT Guests FROM table WHERE Air Date = 7 June 2010
CREATE TABLE INST, Here is a database schema( table schema);
What were the guests that aired on 7 June 2010?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE District = New York 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for new york 1.It is not neccessary to use all the tables.
SELECT rank FROM table_name_66 WHERE event = "lapt4 são paulo"
CREATE TABLE INST, Here is a database schema( table schema);
What is Rank, when Event is 'LAPT4 S o Paulo'?It is not neccessary to use all the tables.
SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 2007"
CREATE TABLE INST, Here is a database schema( table schema);
I want the replaced for date of appointment being 12 october 2007It is not neccessary to use all the tables.
SELECT score FROM table_27722734_11 WHERE team = "Denver"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for denverIt is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 15.23 (113)
CREATE TABLE INST, Here is a database schema( table schema);
What venue has the away side scoring 15.23 (113)?.It is not neccessary to use all the tables.
SELECT County FROM table WHERE ANSI code = 1759686
CREATE TABLE INST, Here is a database schema( table schema);
What county is associated with ansi code 1759686?.It is not neccessary to use all the tables.
SELECT Relationship FROM table WHERE Age at death = 96
CREATE TABLE INST, Here is a database schema( table schema);
What is the relationship of the woman who died at 96?.It is not neccessary to use all the tables.
SELECT COUNT(affiliation) FROM table_28211213_1 WHERE institution = "University of Toledo"
CREATE TABLE INST, Here is a database schema( table schema);
How many affiliations does the University of Toledo have?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.admityear < "2162"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients are diagnosed with primary disease bowel obstruction and with admission year before 2162?It is not neccessary to use all the tables.
SELECT player FROM table_name_94 WHERE pick__number < 2
CREATE TABLE INST, Here is a database schema( table schema);
What player is picked before 2?It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Opponent = airdrie united AND Date = 31 january 2009
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance on 31 January 2009 when the opponent was Airdrie United?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home team = leicester city
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the match where the home team was Leicester City?.It is not neccessary to use all the tables.
SELECT Overall WC points (Rank) FROM table WHERE Rank < 3 AND Name = anders jacobsen
CREATE TABLE INST, Here is a database schema( table schema);
How many overall WC ponts (rank) did Anders Jacobsen get when his rank was smaller than 3?.It is not neccessary to use all the tables.
SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology')
CREATE TABLE INST, Here is a database schema( table schema);
Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.It is not neccessary to use all the tables.
SELECT Modern equivalent FROM table WHERE Hanja = 良州
CREATE TABLE INST, Here is a database schema( table schema);
What is the modern equivalent of 良州 in Hanja?.It is not neccessary to use all the tables.
SELECT name, distance FROM aircraft ORDER BY distance
CREATE TABLE INST, Here is a database schema( table schema);
Return a histogram on what are the names and distances for all airplanes?, and display from low to high by the y axis.It is not neccessary to use all the tables.
SELECT frequency FROM table_name_59 WHERE model_number = "pentium ii 400"
CREATE TABLE INST, Here is a database schema( table schema);
What is Frequency when Model Number is Pentium II 400?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Rank = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Opponent that has a Rank of 4?.It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Joined = 1953
CREATE TABLE INST, Here is a database schema( table schema);
in 1953, which of the institutions joined?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN characteristics AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "laurel"
CREATE TABLE INST, Here is a database schema( table schema);
How many characteristics does the product named 'laurel' have?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_12 WHERE away_team = "southend manor" AND tie_no < 93
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance total when Southend Manor is the away team and there are less than 93 ties?It is not neccessary to use all the tables.
SELECT AVG Top-5 FROM table WHERE Tournament = totals AND Top-25 > 4
CREATE TABLE INST, Here is a database schema( table schema);
what is the top-5 when the tournament is totals and the top-25 is more than 4?.It is not neccessary to use all the tables.
SELECT Jockey FROM table WHERE Trainer = nick zito AND Odds = 34-1
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1?.It is not neccessary to use all the tables.
SELECT MIN Commenced operations FROM table
CREATE TABLE INST, Here is a database schema( table schema);
When did the oldest airline start operations?.It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_name_57 WHERE date = "19 september 1988"
CREATE TABLE INST, Here is a database schema( table schema);
What Opponent in the final has a Date of 19 september 1988?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Winning score = 67-67-69-69=272
CREATE TABLE INST, Here is a database schema( table schema);
What are all values for 'to par' for the winning score of 67-67-69-69=272?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = september 27
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game played on September 27?.It is not neccessary to use all the tables.
SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = "mj"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of t (µm) when Technology is MJ?It is not neccessary to use all the tables.
SELECT date FROM table_name_78 WHERE home_team = "melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game between Melbourne and Footscray?It is not neccessary to use all the tables.
SELECT School/Country FROM table WHERE From = 1948
CREATE TABLE INST, Here is a database schema( table schema);
Which school added a player to the Lakers in 1948?.It is not neccessary to use all the tables.
SELECT Mascot FROM table WHERE Previous Conference = independent AND Location = anderson
CREATE TABLE INST, Here is a database schema( table schema);
What's the mascot in Anderson for the Independent previous conference?.It is not neccessary to use all the tables.
SELECT spouse_to FROM table_name_27 WHERE born_as = "rania al yassin"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the spouse of the consort who was born as rania al yassin?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week > 5 AND Opponent = houston oilers
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game after week 5 against the Houston Oilers?.It is not neccessary to use all the tables.
SELECT MIN 4-car sets FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least 4 car sets.It is not neccessary to use all the tables.
SELECT SUM("Laps") FROM table_57793 WHERE "Grid" > '18' AND "Time/Retired" = 'electrical'
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for a grid of over 18 and retired due to electrical failure?It is not neccessary to use all the tables.