sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Total FROM table WHERE 4 Hoops, 2 Clubs = 19.025
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of the nation with 19.025 4 hoops, 2 clubs?.It is not neccessary to use all the tables.
SELECT Names FROM table WHERE Class = glencar
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the locomotive with a Glencar class?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Home = philadelphia AND Date = october 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the record on October 13, when philadelphia was the home team?.It is not neccessary to use all the tables.
SELECT club FROM table_name_13 WHERE league = "mhl" AND established = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What Club Established in 2010 has a League of MHL?It is not neccessary to use all the tables.
SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of wins with less than 10 goals?It is not neccessary to use all the tables.
SELECT singapore_gross FROM table_name_72 WHERE producer = "2000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Singapore Gross with a Producer that is 2000?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 2–1–1
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date with a game with a Record of 2–1–1?.It is not neccessary to use all the tables.
SELECT E.R. FROM table WHERE Runs Conceded = 368
CREATE TABLE INST, Here is a database schema( table schema);
What was the ER average for the player that conceded 368 runs?.It is not neccessary to use all the tables.
SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 88659 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endosc destruc bronc les')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 88659) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of drug patient 88659 was prescribed in the same hospital encounter after receiving a endosc destruc bronc les procedure?It is not neccessary to use all the tables.
SELECT Depth FROM table WHERE Time (UTC) = 19:48
CREATE TABLE INST, Here is a database schema( table schema);
What is the depth of the quake that occurred at 19:48?.It is not neccessary to use all the tables.
SELECT Producer(s) FROM table WHERE Track < 8 AND Songwriter(s) = hadise açıkgöz, yves jongen AND Length = 3:08
CREATE TABLE INST, Here is a database schema( table schema);
Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?.It is not neccessary to use all the tables.
SELECT score FROM table_name_78 WHERE attendance = 3188
CREATE TABLE INST, Here is a database schema( table schema);
When the attendance was 3188 what was the score?It is not neccessary to use all the tables.
SELECT Laps FROM table WHERE Points < 1 AND Team = dale coyne racing AND Grid > 13
CREATE TABLE INST, Here is a database schema( table schema);
Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?.It is not neccessary to use all the tables.
SELECT MAX(rd__number) FROM table_name_20 WHERE pl_gp > 0 AND reg_gp < 62
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?It is not neccessary to use all the tables.
SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 32
CREATE TABLE INST, Here is a database schema( table schema);
What was the date administered from a source of Rasmussen Reports and a lead margin over 32?It is not neccessary to use all the tables.
SELECT motive FROM table_name_25 WHERE year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the motive before 2007?It is not neccessary to use all the tables.
SELECT MIN(tackles) FROM table_15581223_8 WHERE player = "Danny Clark"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least amount of tackles for danny clarkIt is not neccessary to use all the tables.
SELECT date FROM table_name_25 WHERE home = "minnesota"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Home of minnesota?It is not neccessary to use all the tables.
SELECT country FROM table_name_45 WHERE place = "t3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the country for t3 placeIt is not neccessary to use all the tables.
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"
CREATE TABLE INST, Here is a database schema( table schema);
Date of 8 july 1994 involves which performer 1?It is not neccessary to use all the tables.
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of gymnasts?It is not neccessary to use all the tables.
SELECT Area km 2 FROM table WHERE Official Name = Saint-Joseph
CREATE TABLE INST, Here is a database schema( table schema);
What are the area(s) (km2) for saint-joseph?.It is not neccessary to use all the tables.
SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = "1" AND to_par < 1
CREATE TABLE INST, Here is a database schema( table schema);
How much money for 1st place with a to par less than 1?It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Time = accident AND Bike = kawasaki zx-10r
CREATE TABLE INST, Here is a database schema( table schema);
Who was the rider who had an accident time and a kawasaki zx-10r bike?.It is not neccessary to use all the tables.
SELECT Language FROM table WHERE Frequency = 3 times per year AND ISSN = 1136-7385
CREATE TABLE INST, Here is a database schema( table schema);
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?.It is not neccessary to use all the tables.
SELECT ICAO FROM table WHERE Airport = julius nyerere international airport
CREATE TABLE INST, Here is a database schema( table schema);
Name the ICAO for julius nyerere international airport.It is not neccessary to use all the tables.
SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and account balance of the customers who have loans with a total amount of more than 5000.It is not neccessary to use all the tables.
SELECT MIN No result FROM table WHERE Lost > 5 AND % win [A ] < 58.06
CREATE TABLE INST, Here is a database schema( table schema);
What is the low no result with more than 5 loss and a win ration lesser than 58.06?.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Date = January 14
CREATE TABLE INST, Here is a database schema( table schema);
Name the high rebounds for january 14.It is not neccessary to use all the tables.
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship"
CREATE TABLE INST, Here is a database schema( table schema);
How many capitals had brest litovsk voivodeship as voivodeship after 1569?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280
CREATE TABLE INST, Here is a database schema( table schema);
what is the to par for $242813 with score 68-72-74-66=280It is not neccessary to use all the tables.
SELECT injured FROM table_name_9 WHERE location = "skierlik"
CREATE TABLE INST, Here is a database schema( table schema);
What is the injured that has skierlik as the location?It is not neccessary to use all the tables.
SELECT COUNT Candidates FROM table WHERE Incumbent = Alvin Bush
CREATE TABLE INST, Here is a database schema( table schema);
How many incumbents come from alvin bush's district?.It is not neccessary to use all the tables.
SELECT COUNT(brief_description) FROM table_229917_2 WHERE fatalities = "0/161"
CREATE TABLE INST, Here is a database schema( table schema);
How many different brief descriptions are there for crashes with 0/161 fatalities?It is not neccessary to use all the tables.
SELECT MIN(week) FROM table_name_90 WHERE attendance > 63 OFFSET 369
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Attendance larger than 63369?It is not neccessary to use all the tables.
SELECT t_score FROM table_name_52 WHERE e_score = 6.625
CREATE TABLE INST, Here is a database schema( table schema);
What is the T score of the team with an E score of 6.625?It is not neccessary to use all the tables.
SELECT Final Score FROM table WHERE Week = 14
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score on week 14 ?.It is not neccessary to use all the tables.
SELECT No. in series FROM table WHERE Directed by = David James Elliott
CREATE TABLE INST, Here is a database schema( table schema);
David James Elliott directed which episode number within the series?.It is not neccessary to use all the tables.
SELECT COUNT("Denominations (Gold weight)") FROM table_28183 WHERE "Country" = 'Austria'
CREATE TABLE INST, Here is a database schema( table schema);
How many catagories for denominations does Austria have?It is not neccessary to use all the tables.
SELECT League FROM table WHERE Year = 2011
CREATE TABLE INST, Here is a database schema( table schema);
What league played in 2011?.It is not neccessary to use all the tables.
SELECT left FROM table_11658094_3 WHERE founded = 1880
CREATE TABLE INST, Here is a database schema( table schema);
What year did a school leave that was founded in 1880?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Game site = the meadowlands AND Week = 14
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Jets play in the Meadowlands on week 14?.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Game < 16
CREATE TABLE INST, Here is a database schema( table schema);
With the game that was less than 16 what was the high assists?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_27700375_11 WHERE team = "Charlotte"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high rebounds for charlotteIt is not neccessary to use all the tables.
SELECT MAX(overall) FROM table_name_22 WHERE position = "center" AND round < 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest overall rank for a center drafted before round 10?It is not neccessary to use all the tables.
SELECT Classifaction FROM table WHERE Language = cantonese AND Publisher = universal pictures japan
CREATE TABLE INST, Here is a database schema( table schema);
What classification has cantonese as the language, and universal pictures japan as the publisher?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Tries against = 45
CREATE TABLE INST, Here is a database schema( table schema);
Which club participated with a record of 45 tries against?.It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Title = egghead rides again
CREATE TABLE INST, Here is a database schema( table schema);
What series was called Egghead Rides Again?.It is not neccessary to use all the tables.
SELECT MIN Average FROM table WHERE Team = beijing guo'an AND Games > 240
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest average for Beijing Guo'an when they played more than 240 games?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = august 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for august 6.It is not neccessary to use all the tables.
SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = "Tampa"
CREATE TABLE INST, Here is a database schema( table schema);
What is the current tournament name for the event in Tampa?It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Venue = victoria park
CREATE TABLE INST, Here is a database schema( table schema);
How people attended Victoria Park?.It is not neccessary to use all the tables.
SELECT COUNT(maghreb) FROM table_22860_1 WHERE mediterranean_europe = "Siciliense"
CREATE TABLE INST, Here is a database schema( table schema);
How many values for Maghreb with Mediterranean Europe is Siciliense?It is not neccessary to use all the tables.
SELECT Player name FROM table WHERE College = Eastern Michigan
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player name when eastern michigan is the college?.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Rounds = all AND Engine = peugeot a12 ev5 3.0 v10
CREATE TABLE INST, Here is a database schema( table schema);
Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?.It is not neccessary to use all the tables.
SELECT MIN Staterooms FROM table WHERE Comments = diesel-electric hybrid engines AND Length = 443 feet AND Guests > 190
CREATE TABLE INST, Here is a database schema( table schema);
Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Winning Driver = uwe alzen AND Circuit = sepang international circuit
CREATE TABLE INST, Here is a database schema( table schema);
Which round had a winning driver of Uwe Alzen, at the Sepang International circuit?.It is not neccessary to use all the tables.
SELECT COUNT(_number) FROM table_23294081_10 WHERE no = 214
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were series episode 214?It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE French Open = 1974
CREATE TABLE INST, Here is a database schema( table schema);
What is the number for the french open 1974?.It is not neccessary to use all the tables.
SELECT Output FROM table WHERE Fuel = petrol AND Engine ID code(s) = aex/apq
CREATE TABLE INST, Here is a database schema( table schema);
What is the output of the engine AEX/APQ that uses petrol?.It is not neccessary to use all the tables.
SELECT message FROM table_name_75 WHERE designation_hd = "hd 186408"
CREATE TABLE INST, Here is a database schema( table schema);
What message has hd 186408 as a designation HD?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_80 WHERE total > 4 AND nation = "great britain"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average rank of Great Britain when their total is over 4?It is not neccessary to use all the tables.
SELECT average_attendance FROM table_name_46 WHERE season = "2011" AND games < 519 AND _number_of_teams > 14 AND sport = "association football"
CREATE TABLE INST, Here is a database schema( table schema);
What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?It is not neccessary to use all the tables.
SELECT qual_1 FROM table_name_91 WHERE team = "team player's" AND best = "58.405"
CREATE TABLE INST, Here is a database schema( table schema);
Which Qual 1 has a Team of team player's and a Best of 58.405?It is not neccessary to use all the tables.
SELECT pastoral_region FROM table_name_81 WHERE episcopal_vicar = "robert francis hennessey"
CREATE TABLE INST, Here is a database schema( table schema);
What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?It is not neccessary to use all the tables.
SELECT college FROM table_28059992_6 WHERE player = "Francis Bellefroid"
CREATE TABLE INST, Here is a database schema( table schema);
What college did Francis Bellefroid go to?It is not neccessary to use all the tables.
SELECT Sepal length FROM table WHERE Sepal width = 2.9 AND Petal width = 1.3
CREATE TABLE INST, Here is a database schema( table schema);
Name the sepal lengh when sepal width is 2.9 and petal width 1.3.It is not neccessary to use all the tables.
SELECT Agg. FROM table WHERE Team 1 = goldfields obuasi
CREATE TABLE INST, Here is a database schema( table schema);
Goldfields Obuasi Team 1 has what Agg. totals ?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Ron Paul
CREATE TABLE INST, Here is a database schema( table schema);
What district has Ron Paul?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = windy hill
CREATE TABLE INST, Here is a database schema( table schema);
Who played the home team at Windy Hill?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Distance = 1-1/16 AND Jockey = ramon dominguez
CREATE TABLE INST, Here is a database schema( table schema);
What year did jockey Ramon Dominguez have a distance of 1-1/16?.It is not neccessary to use all the tables.
SELECT AVG Game FROM table WHERE Date = january 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean game played on January 9?.It is not neccessary to use all the tables.
SELECT COUNT Draws FROM table WHERE Tournament = Jordan FA Cup
CREATE TABLE INST, Here is a database schema( table schema);
When jordan fa cup is the tournament how many draws?.It is not neccessary to use all the tables.
SELECT Year(s) won FROM table WHERE Total = 289
CREATE TABLE INST, Here is a database schema( table schema);
During which years did the golfer with the total of 289 win?.It is not neccessary to use all the tables.
SELECT Date Released FROM table WHERE Green-Communist = 5.7%
CREATE TABLE INST, Here is a database schema( table schema);
What date did the Green-Communists receive 5.7%?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_37 WHERE bronze < 1 AND silver = 1 AND total > 1
CREATE TABLE INST, Here is a database schema( table schema);
Which of the largest ranks has a bronze number less than 1 a silver of 1 and a total that is more than 1?It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114
CREATE TABLE INST, Here is a database schema( table schema);
I want the total number of points for against of 753 and points diff more than -114It is not neccessary to use all the tables.
SELECT Match FROM table WHERE Points = 24
CREATE TABLE INST, Here is a database schema( table schema);
What is the Match with Points that are 24?.It is not neccessary to use all the tables.
SELECT COUNT Result FROM table WHERE Incumbent = Mike Capuano
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the incumbent mike capuano.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Start > 2
CREATE TABLE INST, Here is a database schema( table schema);
Name the most year with start more than 2.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Runner-up = waseda AND Title = 47th
CREATE TABLE INST, Here is a database schema( table schema);
What season has a runner-up of waseda, and a title of 47th?.It is not neccessary to use all the tables.
SELECT AVG(position) FROM table_name_48 WHERE difference = "- 5" AND played > 14
CREATE TABLE INST, Here is a database schema( table schema);
What position was played with a Difference of - 5 and a Played larger than 14?It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_name_57 WHERE result = "w 30-7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest attendance a result of W 30-7?It is not neccessary to use all the tables.
SELECT MAX Year Introduced FROM table WHERE Memory (GB) = 0.125–2
CREATE TABLE INST, Here is a database schema( table schema);
Which Year Introduced has a Memory (GB) of 0.125–2?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Playoffs = 1st round AND League = nasl indoor
CREATE TABLE INST, Here is a database schema( table schema);
What year had a 1st round playoff in the NASL indoor league?.It is not neccessary to use all the tables.
SELECT "Build date" FROM table_54317 WHERE "PRR Class" = 'brs24'
CREATE TABLE INST, Here is a database schema( table schema);
What is the build date of the model with a PRR Class of brs24?It is not neccessary to use all the tables.
SELECT MAX(10 AS _3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = "1.7%"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most 10 3 bbl/d (2008) for present share being 1.7%It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Home Losses > 3 AND Neutral Losses < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0?.It is not neccessary to use all the tables.
SELECT SI Prefix FROM table WHERE Chuquet = thousand
CREATE TABLE INST, Here is a database schema( table schema);
Name the si prefix for thousand chuquet.It is not neccessary to use all the tables.
SELECT rank FROM table_name_86 WHERE rider = "tom silver"
CREATE TABLE INST, Here is a database schema( table schema);
What was Tom Silver's rank?It is not neccessary to use all the tables.
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the person ordained as a priest in December 1838 ordained as a bishop?It is not neccessary to use all the tables.
SELECT player FROM table_name_18 WHERE tries > 1 AND points < 54 AND position = "hooker"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the player with tries more than 1 and position of hooker with points less than 54It is not neccessary to use all the tables.
SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products
CREATE TABLE INST, Here is a database schema( table schema);
Show the minimum maximum average price for all products.It is not neccessary to use all the tables.
SELECT Rating/share (18–49) FROM table WHERE Total viewers (in millions) = 11.49
CREATE TABLE INST, Here is a database schema( table schema);
What was the reating share when the total viewers was 11.49 million?.It is not neccessary to use all the tables.
SELECT format FROM table_name_96 WHERE owner = "laval university"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Format of the Frequency owned by Laval University?It is not neccessary to use all the tables.
SELECT id FROM instructor EXCEPT SELECT id FROM teaches
CREATE TABLE INST, Here is a database schema( table schema);
What are the ids of instructors who didnt' teach?It is not neccessary to use all the tables.
SELECT date FROM table_name_96 WHERE opponents = "notts county" AND league_position = "1st"
CREATE TABLE INST, Here is a database schema( table schema);
What date was Notts County the opponent and the league position was 1st?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Attendance = 20,874
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game with an attendance of 20,874 fans?.It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_2508633_8 WHERE nfl_team = "San Diego Chargers"
CREATE TABLE INST, Here is a database schema( table schema);
what is the pick number minimum if the NFL team is the San Diego Chargers?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Laps > 39 AND Grid = 15
CREATE TABLE INST, Here is a database schema( table schema);
What driver has more than 39 laps on gird 15?.It is not neccessary to use all the tables.