sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Year FROM table WHERE Change = +8.0%
CREATE TABLE INST, Here is a database schema( table schema);
what's the year with change being +8.0%.It is not neccessary to use all the tables.
SELECT COUNT("Former WNBA Team") FROM table_1655 WHERE "Pick" = '2'
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of former wnba team for 2It is not neccessary to use all the tables.
SELECT COUNT(events) FROM table_24108789_6 WHERE points = 3031
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of events for 3031It is not neccessary to use all the tables.
SELECT score FROM table_name_38 WHERE attendance < 848 AND home_team = "crowborough athletic"
CREATE TABLE INST, Here is a database schema( table schema);
The game with home team Crowborough Athletic with an attendance less than 848 had what as the score?It is not neccessary to use all the tables.
SELECT Age groups FROM table WHERE Competition name = big league world series
CREATE TABLE INST, Here is a database schema( table schema);
What are the age groups for the Big League World Series?.It is not neccessary to use all the tables.
SELECT license FROM table_name_98 WHERE platform = "windows" AND name = "altirra"
CREATE TABLE INST, Here is a database schema( table schema);
What is the License when the Platform is windows and the Name is Altirra?It is not neccessary to use all the tables.
SELECT record FROM table_name_54 WHERE game = 27
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when Game is 27?It is not neccessary to use all the tables.
SELECT transaction_type, COUNT(*) FROM Financial_transactions GROUP BY transaction_type
CREATE TABLE INST, Here is a database schema( table schema);
Show the transaction type and the number of transactions.It is not neccessary to use all the tables.
SELECT date_completed FROM table_1373542_1 WHERE date_announced = "February 22, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the asset acquisition that was announced on February 22 2007 completed?It is not neccessary to use all the tables.
SELECT total FROM table_name_39 WHERE years = "1925"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total for the year of 1925?It is not neccessary to use all the tables.
SELECT drawn FROM table_17625749_3 WHERE lost = "13"
CREATE TABLE INST, Here is a database schema( table schema);
How many were drawn when 13 were lost?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Avg. Start = 22.4
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for avg start being 22.4.It is not neccessary to use all the tables.
SELECT MIN(extras) FROM table_name_50 WHERE name = "chamara kapugedera" AND er < 4.59
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Extras for Chamara Kapugedera with an E.R. less than 4.59?It is not neccessary to use all the tables.
SELECT Tobago FROM table WHERE Species = Helicops angulatus
CREATE TABLE INST, Here is a database schema( table schema);
there are in tobago species name helicops angulatus.It is not neccessary to use all the tables.
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(SALARY)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of salary over the job_id , and group by attribute job_id, and list y axis in asc order please.It is not neccessary to use all the tables.
SELECT Call-Sign FROM table WHERE Power (kw) = 20kw
CREATE TABLE INST, Here is a database schema( table schema);
What's the call sign that has 20kw of power?.It is not neccessary to use all the tables.
SELECT Rounds FROM table WHERE Driver = hap sharp
CREATE TABLE INST, Here is a database schema( table schema);
Which rounds was Hap Sharp a driver in?.It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_2850912_4 WHERE nhl_team = "St. Louis Blues"
CREATE TABLE INST, Here is a database schema( table schema);
How many positions are associated with the St. Louis Blues?It is not neccessary to use all the tables.
SELECT grid FROM table_name_45 WHERE laps = 67
CREATE TABLE INST, Here is a database schema( table schema);
What grid is associated with 67 laps?It is not neccessary to use all the tables.
SELECT "Sportsperson" FROM table_32972 WHERE "Sport" = 'athletics'
CREATE TABLE INST, Here is a database schema( table schema);
Who playes the sport of athletics?It is not neccessary to use all the tables.
SELECT Bronze FROM table WHERE Nation = poland
CREATE TABLE INST, Here is a database schema( table schema);
Which bronze has a Nation of poland?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM csu_fees WHERE campusfee > (SELECT AVG(campusfee) FROM csu_fees)
CREATE TABLE INST, Here is a database schema( table schema);
Find the count of universities whose campus fee is greater than the average campus fee.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 92-134
CREATE TABLE INST, Here is a database schema( table schema);
When was the score 92-134?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = New York 26
CREATE TABLE INST, Here is a database schema( table schema);
What is the party affiliation of New York 26? .It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of week 8?.It is not neccessary to use all the tables.
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
CREATE TABLE INST, Here is a database schema( table schema);
Name the insurgents for civilians being 49It is not neccessary to use all the tables.
SELECT count(*) FROM Fires WHERE COUNTY = "Gloucester" AND FIRE_SIZE > 10
CREATE TABLE INST, Here is a database schema( fires);
How many wildfires in Gloucester county have been larger than 10 acres?. It is not neccessary to use all the tables.
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Losses with a Result of runner-up Wins of 1 and a Year smaller than 2006?It is not neccessary to use all the tables.
SELECT region FROM table_1672804_2 WHERE province = "Constitutional province of Callao"
CREATE TABLE INST, Here is a database schema( table schema);
What is the region containing the Constitutional Province of Callao?It is not neccessary to use all the tables.
SELECT COUNT Seasons FROM table WHERE Name = joe grugin AND Lost > 8
CREATE TABLE INST, Here is a database schema( table schema);
Which Seasons has a Name of joe grugin, and a Lost larger than 8?.It is not neccessary to use all the tables.
SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round < 7
CREATE TABLE INST, Here is a database schema( table schema);
what is the college/junior/club team (league) when the round is less than 7?It is not neccessary to use all the tables.
SELECT losing_bonus FROM table_14070062_4 WHERE tries_for = "52"
CREATE TABLE INST, Here is a database schema( table schema);
what was the extra score when the overall score was 52It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t7 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
What player has t7 as the place, with tje United States as the country?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = –2 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
Who has a To par of –2, and a Country of united states?.It is not neccessary to use all the tables.
SELECT date FROM table_name_68 WHERE outcome = "winner" AND opponent = "an-sophie mestach"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Outcome is Winner, and when Opponent is An-Sophie Mestach?It is not neccessary to use all the tables.
SELECT runner_s__up FROM table_name_41 WHERE year = "1972"
CREATE TABLE INST, Here is a database schema( table schema);
What are the Runner(s)-up of the 1972 Championship?It is not neccessary to use all the tables.
SELECT us_viewers__million_ FROM table_11111116_8 WHERE original_air_date = "March 31, 2013"
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of U.S. viewers watched the episode that first aired on March 31 2013?It is not neccessary to use all the tables.
SELECT status FROM table_name_17 WHERE name = "cadeby"
CREATE TABLE INST, Here is a database schema( table schema);
What status is shown for Cadeby?It is not neccessary to use all the tables.
SELECT web_thickness__mm_ FROM table_2071644_2 WHERE flange_width__mm_ = 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the web thickness if the flange width is 100?It is not neccessary to use all the tables.
SELECT COUNT Pick # FROM table WHERE Name = chad owens
CREATE TABLE INST, Here is a database schema( table schema);
How many picks does chad owens have?.It is not neccessary to use all the tables.
SELECT 2nd Party FROM table WHERE Election = 1857
CREATE TABLE INST, Here is a database schema( table schema);
Which 2nd Party has a Election of 1857?.It is not neccessary to use all the tables.
SELECT score FROM table_name_2 WHERE date = "april 2, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What was the game score on april 2 2008?It is not neccessary to use all the tables.
SELECT 'post_link' = p.Id, a.Score, Answer = CASE WHEN p.AcceptedAnswerId = a.Id THEN 1 ELSE 0 END FROM Posts AS p INNER JOIN Posts AS a ON a.ParentId = p.Id WHERE EXISTS(SELECT 1 FROM PostLinks AS pl WHERE pl.PostId = p.Id AND pl.LinkTypeId = 3)
CREATE TABLE INST, Here is a database schema( table schema);
Answers to Duplicate Questions by User.It is not neccessary to use all the tables.
SELECT COUNT No. in season FROM table WHERE Vessel Operator = Beluga Shipping
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of season for beluga shipping.It is not neccessary to use all the tables.
SELECT tournament_location FROM table_12243817_1 WHERE winners_share__$_ = 7000
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the tournament that the share of winning is 7000?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team score = 12.15 (87)
CREATE TABLE INST, Here is a database schema( table schema);
Which home team played an away team with the score of 12.15 (87)?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (14)"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Pick > 7 AND Name = dave adams
CREATE TABLE INST, Here is a database schema( table schema);
What is the college of dave adams, who has a pick greater than 7?.It is not neccessary to use all the tables.
SELECT candidates FROM table_2668378_13 WHERE district = "Pennsylvania 5"
CREATE TABLE INST, Here is a database schema( table schema);
who was running in the section pennsylvania 5It is not neccessary to use all the tables.
SELECT result FROM table_name_38 WHERE event = "golden reel awards"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the Golden Reel Awards?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Posts WHERE CreationDate >= DATEFROMPARTS(2013, 3, 1)
CREATE TABLE INST, Here is a database schema( table schema);
Number of Posts per User. This is a query that returns the number of posts per user in descending orderIt is not neccessary to use all the tables.
SELECT event FROM table_name_89 WHERE opponent = "ryan bow"
CREATE TABLE INST, Here is a database schema( table schema);
What event had the opponent Ryan Bow?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Event = cage rage 23
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has an Event of cage rage 23?.It is not neccessary to use all the tables.
SELECT Catalogue No. FROM table WHERE Format = cd (limited edition steel-box) AND Country = germany
CREATE TABLE INST, Here is a database schema( table schema);
what is the catalogue no when the format is cd (limited edition steel-box) and the country is germany?.It is not neccessary to use all the tables.
SELECT result FROM table_name_19 WHERE round > 4 AND opponent = "ed mahone"
CREATE TABLE INST, Here is a database schema( table schema);
What resulted after 4 rounds with Ed Mahone?It is not neccessary to use all the tables.
SELECT character FROM table_14960574_6 WHERE french_voice_actor = "Sophie Arthuys"
CREATE TABLE INST, Here is a database schema( table schema);
Name the character for sophie arthuysIt is not neccessary to use all the tables.
SELECT ERP W FROM table WHERE Call sign = w291ch
CREATE TABLE INST, Here is a database schema( table schema);
If the call sign is w291ch what's the ERP W corresponding to that sign?.It is not neccessary to use all the tables.
SELECT format FROM table_name_83 WHERE code = "9 40231-2 (us only)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the format of code 9 40231-2 (us only)?It is not neccessary to use all the tables.
SELECT conf_record FROM table_16295365_2 WHERE seed = "3" AND record = "24-9"
CREATE TABLE INST, Here is a database schema( table schema);
Name the conference record where seed is 3 and record is 24-9It is not neccessary to use all the tables.
SELECT Played FROM table WHERE Losing bonus = 3
CREATE TABLE INST, Here is a database schema( table schema);
What played has 3 as the losing bonus?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_50 WHERE save = "||12,838||48–35"
CREATE TABLE INST, Here is a database schema( table schema);
What is the resulting loss when a save is ||12838||48–35?It is not neccessary to use all the tables.
SELECT sideline_reporter_s_ FROM table_name_8 WHERE year < 1993
CREATE TABLE INST, Here is a database schema( table schema);
Who was the sideline reporter prior to 1993?It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE District = Kentucky 9
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates in the Kentucky 9 district? .It is not neccessary to use all the tables.
SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
CREATE TABLE INST, Here is a database schema( table schema);
Who is every play-by-play announcer when Chris Rose is the trophy presenter?It is not neccessary to use all the tables.
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval"
CREATE TABLE INST, Here is a database schema( table schema);
How large of a crowd can the Glenferrie oval hold?It is not neccessary to use all the tables.
SELECT COUNT HD designation FROM table WHERE Arrival date = February 2070
CREATE TABLE INST, Here is a database schema( table schema);
What is the hd designation for arrival date of February 2070?.It is not neccessary to use all the tables.
SELECT target FROM table_1661124_1 WHERE approved_treatment_s_ = "non-Hodgkin lymphoma"
CREATE TABLE INST, Here is a database schema( table schema);
What is the target when the approved treatment is non-hodgkin lymphoma?It is not neccessary to use all the tables.
SELECT date FROM table_name_14 WHERE record = "8–6–3"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the record 8–6–3?It is not neccessary to use all the tables.
SELECT COUNT(valid_poll) FROM table_name_67 WHERE seats > 4 AND candidates > 9
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of valid poll with seats more than 4 and candidates more than 9It is not neccessary to use all the tables.
SELECT poll_source FROM table_name_38 WHERE other = "15%"
CREATE TABLE INST, Here is a database schema( table schema);
Which poll source had an other of 15%?It is not neccessary to use all the tables.
SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates in the Louisiana 4 district?It is not neccessary to use all the tables.
SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479"
CREATE TABLE INST, Here is a database schema( table schema);
Which team has an up/down of + 3479?It is not neccessary to use all the tables.
SELECT date FROM table_name_98 WHERE score = "7–6(4), 6–1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date that had a score of 7–6(4) 6–1It is not neccessary to use all the tables.
SELECT Location(s) FROM table WHERE Family/families = The Abbas Family and The Pickering Family
CREATE TABLE INST, Here is a database schema( table schema);
where was the abbas family and the pickering family located.It is not neccessary to use all the tables.
SELECT date FROM table_name_46 WHERE year > 1978 AND location = "memorial stadium (baltimore)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date when the Year is after 1978 and when the Location is Memorial Stadium (Baltimore)?It is not neccessary to use all the tables.
SELECT Guest FROM table WHERE The Wørd = "P.R.-mageddon"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the guest on the episode where The Word was "P.R.-mageddon"?.It is not neccessary to use all the tables.
SELECT AVG("Game") FROM table_50648 WHERE "Date" = 'december 8'
CREATE TABLE INST, Here is a database schema( table schema);
What game was played on December 8?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Incumbent = Glenn Thompson
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for glenn thompson.It is not neccessary to use all the tables.
SELECT partner FROM table_name_28 WHERE surface = "clay" AND outcome = "runner-up" AND score = "4–6, 1–6"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the partner when the surface was clay and outcome was runner-up with a score of 4–6 1–6?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Circuit = lakeside international raceway
CREATE TABLE INST, Here is a database schema( table schema);
Who won at the Circuit of lakeside international raceway?.It is not neccessary to use all the tables.
SELECT Aircraft damage FROM table WHERE Fatalities = 30/30
CREATE TABLE INST, Here is a database schema( table schema);
What was the aircraft damage for the accident that had fatalities of 30/30?.It is not neccessary to use all the tables.
SELECT high_assists FROM table_name_8 WHERE location_attendance = "american airlines center 20,223"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high assists when the game was at American Airlines Center 20223?It is not neccessary to use all the tables.
SELECT italian FROM table_name_37 WHERE french = "mer"
CREATE TABLE INST, Here is a database schema( table schema);
what is the italian word for the french word 'mer'It is not neccessary to use all the tables.
SELECT candidates FROM table_1342315_42 WHERE incumbent = "Wright Patman"
CREATE TABLE INST, Here is a database schema( table schema);
Who are the candidates in the race where Wright Patman is the incumbent?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE U.S. viewers (millions) = 16.32
CREATE TABLE INST, Here is a database schema( table schema);
Name the written by for 16.32 million viewers.It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_name_42 WHERE date = "january 15"
CREATE TABLE INST, Here is a database schema( table schema);
On January 15, what was the most in attendance?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Score = 10-0 AND Date = 1997-06-22
CREATE TABLE INST, Here is a database schema( table schema);
what is the venue when the score is 10-0 on 1997-06-22?.It is not neccessary to use all the tables.
SELECT SUM Losses FROM table WHERE Wins = 15 AND Position > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of losses for entries with 15 wins and a position larger than 3?.It is not neccessary to use all the tables.
SELECT COUNT School FROM table WHERE Player = Derrick Green
CREATE TABLE INST, Here is a database schema( table schema);
How many schools did Derrick Green attend?.It is not neccessary to use all the tables.
SELECT "Weight" FROM table_58596 WHERE "Internal storage" = '16-64 gb' AND "Wireless network" = 'wi-fi, 3g'
CREATE TABLE INST, Here is a database schema( table schema);
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?It is not neccessary to use all the tables.
SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = "гн(иј)ездо / gn(ij)ezdo"
CREATE TABLE INST, Here is a database schema( table schema);
When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?It is not neccessary to use all the tables.
SELECT country FROM table_name_40 WHERE score < 68
CREATE TABLE INST, Here is a database schema( table schema);
What is the country of the player with a score less than 68?It is not neccessary to use all the tables.
SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?It is not neccessary to use all the tables.
SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona"
CREATE TABLE INST, Here is a database schema( table schema);
What national cup has fc barcelona?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_75 WHERE time_retired = "+1:02.315"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps were timed at +1:02.315?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "NonSquamous Epithelial Cell"
CREATE TABLE INST, Here is a database schema( table schema);
which patients have order for nonsquamous epithelial cell lab test?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Winning score = 74-67-71-73=285
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par with the winning score of 74-67-71-73=285?.It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_name_31 WHERE date = "december 26, 1999"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest week for December 26 1999It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = bryce molder
CREATE TABLE INST, Here is a database schema( table schema);
what is the place for bryce molder?.It is not neccessary to use all the tables.
SELECT AVG("Rank") FROM table_79601 WHERE "Notes" = 'fa'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of the Rowers with FA as Notes?It is not neccessary to use all the tables.