sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT AVG(year) FROM table_name_60 WHERE certification = "2x platinum" AND álbum = "xuxa 3" AND sales > 750 OFFSET 000
CREATE TABLE INST, Here is a database schema( table schema);
What was the average year that Xuxa 3 earned the certification 2x platinum, and that the sales were higher than 750,000?It is not neccessary to use all the tables.
SELECT SUM Lost FROM table WHERE Goals Scored < 38 AND Points < 10
CREATE TABLE INST, Here is a database schema( table schema);
What the lost that has less than 10 points and less than 38 goals scored?.It is not neccessary to use all the tables.
SELECT COUNT Pick # FROM table WHERE Position = db
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick number of the DB?.It is not neccessary to use all the tables.
SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest jersey # that has evergreen park illinois as the birthplace with a weight (km) greater than 86?It is not neccessary to use all the tables.
SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average hexadecimal with a decimal less than 53 an octal less than 61 and a glyph greater than 0?It is not neccessary to use all the tables.
SELECT AVG(laps) FROM table_name_89 WHERE time_retired = "+48.325"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of laps that were made when the race took a time of +48.325?It is not neccessary to use all the tables.
SELECT date FROM table_name_48 WHERE score = "6–4, 6–3"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Score of 6–4 6–3?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score at lake oval?.It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE Air date Netherlands yyyy/mm/dd = 2009/12/29
CREATE TABLE INST, Here is a database schema( table schema);
Name the most number for air date 2009/12/29.It is not neccessary to use all the tables.
SELECT 2006 FROM table_name_59 WHERE 2013 = "4–4"
CREATE TABLE INST, Here is a database schema( table schema);
2013 of 4–4 is involved in what 2006?It is not neccessary to use all the tables.
SELECT COUNT Heat FROM table WHERE Time = 2:08.54
CREATE TABLE INST, Here is a database schema( table schema);
What's the heat that was timed 2:08.54?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "The Changeling"
CREATE TABLE INST, Here is a database schema( table schema);
What dat did "The changeling" originally air?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game = 78
CREATE TABLE INST, Here is a database schema( table schema);
What date was game 78 played on?.It is not neccessary to use all the tables.
SELECT points FROM table_2110959_1 WHERE season = "1958-59"
CREATE TABLE INST, Here is a database schema( table schema);
What were the points in the 1958-59 season?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE NHL team = Washington Capitals
CREATE TABLE INST, Here is a database schema( table schema);
Who was drafted by the Washington Capitals?.It is not neccessary to use all the tables.
SELECT discipline FROM table_name_59 WHERE championship = "euroboss"
CREATE TABLE INST, Here is a database schema( table schema);
What was the discipline for the euroboss championship?It is not neccessary to use all the tables.
SELECT Primary military speciality FROM table WHERE Code Name = moondancer
CREATE TABLE INST, Here is a database schema( table schema);
What is Moondancer's Primary Military Speciality?.It is not neccessary to use all the tables.
SELECT position FROM table_name_10 WHERE height = 2.09
CREATE TABLE INST, Here is a database schema( table schema);
Name the position with height of 2.09It is not neccessary to use all the tables.
SELECT year_built FROM table_1015421_1 WHERE no_built = 7
CREATE TABLE INST, Here is a database schema( table schema);
What year was number 7 built?It is not neccessary to use all the tables.
SELECT Route FROM table WHERE Date = 2 july
CREATE TABLE INST, Here is a database schema( table schema);
Which route has a Date of 2 july?.It is not neccessary to use all the tables.
SELECT COUNT Timeslot ( EDT ) FROM table WHERE Season Finale = August 9, 2007
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of timeslot for august 9, 2007 finale.It is not neccessary to use all the tables.
SELECT location FROM table_name_87 WHERE match > 1 AND tournament = "friendly" AND opponent_team = "super reds"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?It is not neccessary to use all the tables.
SELECT COUNT Partner FROM table WHERE Year = 1973
CREATE TABLE INST, Here is a database schema( table schema);
How many different partners played in the finale in 1973?.It is not neccessary to use all the tables.
SELECT COUNT Grid FROM table WHERE Time/Retired = +2 laps AND Laps < 70
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70.It is not neccessary to use all the tables.
SELECT AVG Capacity FROM table WHERE City = foligno
CREATE TABLE INST, Here is a database schema( table schema);
What is the average capacity that has foligno as the city?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_18002 WHERE "Mediator" = 'Keiichi Ubukata' AND "Red Team Host" = 'Mitsuko Mori'
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?It is not neccessary to use all the tables.
SELECT power FROM table_name_17 WHERE city_of_license = "thunder bay"
CREATE TABLE INST, Here is a database schema( table schema);
What power has thunder bay as the city of license?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Bronze < 1 AND Total < 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest rank when the bronze is less than 1 and the total is less than 1?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Time = 26.11
CREATE TABLE INST, Here is a database schema( table schema);
Who had a time of 26.11?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT Hometown) FROM people
CREATE TABLE INST, Here is a database schema( table schema);
How many distinct hometowns did these people have?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_41 WHERE grid = "4"
CREATE TABLE INST, Here is a database schema( table schema);
What was the time/retired of the car that started in grid 4?It is not neccessary to use all the tables.
SELECT series FROM table_name_8 WHERE team = "dick johnson racing"
CREATE TABLE INST, Here is a database schema( table schema);
What series was Dick Johnson Racing the team?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Overall > 147 AND Pick # = 21
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has an Overall larger than 147, and a Pick # of 21?.It is not neccessary to use all the tables.
SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18"
CREATE TABLE INST, Here is a database schema( table schema);
Which series is based in Toronto on may 18?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Date = 5 sep
CREATE TABLE INST, Here is a database schema( table schema);
What is Winner, when Date is 5 Sep?.It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_68 WHERE team_1 = "atlético madrid"
CREATE TABLE INST, Here is a database schema( table schema);
The 2nd leg is what for the Atlético Madrid as Team 1?It is not neccessary to use all the tables.
SELECT Vacator FROM table WHERE District = Georgia 2nd
CREATE TABLE INST, Here is a database schema( table schema);
What was the vacator for georgia 2nd?.It is not neccessary to use all the tables.
SELECT "Team 1" FROM table_48481 WHERE "2nd round" = '0 - 1' AND "Team 2" = 'rc lens (d1)'
CREATE TABLE INST, Here is a database schema( table schema);
What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?It is not neccessary to use all the tables.
SELECT Winning Team FROM table WHERE Winning Driver = Max Busnelli
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winning team when max busnelli is the winning driver?.It is not neccessary to use all the tables.
SELECT Avg. Finish FROM table WHERE Winnings = $1,400
CREATE TABLE INST, Here is a database schema( table schema);
What is the average finish for winnings of $1,400?.It is not neccessary to use all the tables.
SELECT SUM International mail FROM table WHERE Change = +35,7% AND Year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
How much international mail has a change of +35,7% later than 2008?.It is not neccessary to use all the tables.
SELECT position FROM table_name_56 WHERE club_province = "perpignan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of Perpignan?It is not neccessary to use all the tables.
SELECT Last season FROM table WHERE Team = scottish rocks
CREATE TABLE INST, Here is a database schema( table schema);
What is the last season that the Scottish Rocks played?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_60 WHERE opponent = "guillermo carry"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament did the opponent Guillermo Carry play?It is not neccessary to use all the tables.
SELECT state FROM table_name_58 WHERE royal_house = "ying"
CREATE TABLE INST, Here is a database schema( table schema);
What is the state for the royal house of ying?It is not neccessary to use all the tables.
SELECT AVG 2009 FROM table WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2.It is not neccessary to use all the tables.
SELECT Bills points FROM table WHERE Opponents = 14
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the bills score when their opponent had 14.It is not neccessary to use all the tables.
SELECT code FROM table_290017_1 WHERE subdivision_name___be____bgn_pcgn_ = "Homyel'skaya voblasts'"
CREATE TABLE INST, Here is a database schema( table schema);
Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_33 WHERE score = "35-14"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the game with a score of 35-14?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Production ( bbl /day) = 2,494,000 (10th)
CREATE TABLE INST, Here is a database schema( table schema);
Which country had a production (bbl/day) of 2,494,000 (10th)?.It is not neccessary to use all the tables.
SELECT COUNT Country FROM table WHERE Road race = Ottawa Marathon
CREATE TABLE INST, Here is a database schema( table schema);
What's the whole range of united states where road race is ottawa marathon.It is not neccessary to use all the tables.
SELECT Lens(35mmequiv.) zoom, aperture FROM table WHERE Model = s2600
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the lens zoom for aperture of model s2600.It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Points = 17 AND 1500 m = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete had 17 points and a 1500 m of 3?.It is not neccessary to use all the tables.
SELECT winner__number_of_titles_ FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "New York Cosmos (200 points)"
CREATE TABLE INST, Here is a database schema( table schema);
If the top team in regular season (points) is the New York Cosmos (200 points) what is the winner (number of titles)?It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE Champion = sakalai
CREATE TABLE INST, Here is a database schema( table schema);
what team was the 1st leg champion of sakalai.It is not neccessary to use all the tables.
SELECT Needs Neutral Wire? FROM table WHERE Open Source? = yes AND Protocol = zigbee
CREATE TABLE INST, Here is a database schema( table schema);
Does Zigbee need neutral wire when the open source is yes?.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Date = june 5, 2005
CREATE TABLE INST, Here is a database schema( table schema);
What Report has the Date of June 5, 2005?.It is not neccessary to use all the tables.
SELECT song_choice FROM table_21501518_1 WHERE original_artist = "Garth Brooks"
CREATE TABLE INST, Here is a database schema( table schema);
Whats the song of name with an original artist Garth BrooksIt is not neccessary to use all the tables.
SELECT SUM("Week") FROM table_65734 WHERE "Attendance" = '62,289'
CREATE TABLE INST, Here is a database schema( table schema);
How many weeks have an Attendance of 62,289?It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_15873014_3
CREATE TABLE INST, Here is a database schema( table schema);
How many games were played in the season?It is not neccessary to use all the tables.
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
CREATE TABLE INST, Here is a database schema( table schema);
Who has a friend that is from new york city?It is not neccessary to use all the tables.
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque"
CREATE TABLE INST, Here is a database schema( table schema);
What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?It is not neccessary to use all the tables.
SELECT league FROM table_1908049_1 WHERE year = "1998/99"
CREATE TABLE INST, Here is a database schema( table schema);
in the year 1998/99 what was the leagueIt is not neccessary to use all the tables.
SELECT MIN Seats FROM table WHERE Share of votes = 18% AND Share of seats = 3% AND General election < 1992
CREATE TABLE INST, Here is a database schema( table schema);
Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a General election smaller than 1992?.It is not neccessary to use all the tables.
SELECT Increase in Net Assets FROM table WHERE Net Assets at End of Year = $8,231,767
CREATE TABLE INST, Here is a database schema( table schema);
With the net assets at end of year of $8,231,767, what is the increase in net assets?.It is not neccessary to use all the tables.
SELECT original_title FROM table_name_24 WHERE language = "korean"
CREATE TABLE INST, Here is a database schema( table schema);
What is the original title for the Korean language film?It is not neccessary to use all the tables.
SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY Type DESC
CREATE TABLE INST, Here is a database schema( table schema);
Give me a bar chart for mean tonnage of each type, show by the bar in desc.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Pick = 112
CREATE TABLE INST, Here is a database schema( table schema);
Which Round is pick 112 in?.It is not neccessary to use all the tables.
SELECT Birth FROM table WHERE Death = october 1389
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?.It is not neccessary to use all the tables.
SELECT control FROM table_2076522_2 WHERE accreditation = "The Higher Learning Commission ( NCA ), CCNE"
CREATE TABLE INST, Here is a database schema( table schema);
What is the control for the school accredited by the higher learning commission ( nca ) ccne?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 demographic.dob_year < "2110" AND lab.label = "Asparate Aminotransferase (AST)"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose year of birth is less than 2110 and lab test name is asparate aminotransferase (ast)?It is not neccessary to use all the tables.
SELECT arrival FROM table_18332845_2 WHERE calling_at = "Wansford, Peterborough East"
CREATE TABLE INST, Here is a database schema( table schema);
What was the arrival for Wansford Peterborough East?It is not neccessary to use all the tables.
SELECT Population (2010 Census) FROM table WHERE Population 2000 Census = 920599
CREATE TABLE INST, Here is a database schema( table schema);
Name the population 2010 census for population 2000 census of 920599.It is not neccessary to use all the tables.
SELECT returning FROM table_name_7 WHERE show = "9 to 5"
CREATE TABLE INST, Here is a database schema( table schema);
When was the show 9 to 5 returning?It is not neccessary to use all the tables.
SELECT Cache FROM table WHERE Capacity = 600 gb
CREATE TABLE INST, Here is a database schema( table schema);
What is the Cache with a Capacity that is 600 gb?.It is not neccessary to use all the tables.
SELECT Presenter FROM table WHERE Date = 11 May
CREATE TABLE INST, Here is a database schema( table schema);
Name the presenter 11 may.It is not neccessary to use all the tables.
SELECT COUNT Number of electorates (2009) FROM table WHERE District = sheopur AND Constituency number = 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1?.It is not neccessary to use all the tables.
SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-35642')) AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY diagnosis.diagnosistime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was patient 011-35642 diagnosed with the first time until 4 years ago?It is not neccessary to use all the tables.
SELECT Dipole moment ( D ) FROM table WHERE Solvent = ethyl acetate (etoac)
CREATE TABLE INST, Here is a database schema( table schema);
What's the dipole moment of ethyl acetate (etoac)?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Years in Orlando = 2000
CREATE TABLE INST, Here is a database schema( table schema);
Which position was in Orlando in 2000?.It is not neccessary to use all the tables.
SELECT Won FROM table WHERE Try bonus = 8
CREATE TABLE INST, Here is a database schema( table schema);
what's the won with try bonus being 8.It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest total when there's less than 16 bronze and more than 6 silver?It is not neccessary to use all the tables.
SELECT Set 4 FROM table WHERE Set 1 = 25-18 AND Date = jun 2
CREATE TABLE INST, Here is a database schema( table schema);
What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?.It is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_51 WHERE race_name = "iv grand prix de caen"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winning drive of iv grand prix de caen?It is not neccessary to use all the tables.
SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
List all the policy types used by the customer enrolled in the most policies.It is not neccessary to use all the tables.
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s"
CREATE TABLE INST, Here is a database schema( table schema);
How many family friendly games are in the 1990s?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Venue = victoria park
CREATE TABLE INST, Here is a database schema( table schema);
What away team plays at Victoria Park?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Attempts = 888
CREATE TABLE INST, Here is a database schema( table schema);
In what year was the number of attempts 888?.It is not neccessary to use all the tables.
SELECT score FROM table_name_76 WHERE attendance > 18 OFFSET 630
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the Kings game attended by more than 18630 people?It is not neccessary to use all the tables.
SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which allergy type has most number of allergies?It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_46 WHERE player = "joe vagana" AND tries < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of points scored by Joe Vagana when making fewer than 2 tries?It is not neccessary to use all the tables.
SELECT COUNT(preliminaries) FROM table_12338595_1 WHERE interview = "8.488"
CREATE TABLE INST, Here is a database schema( table schema);
What is the preliminary score associated with the interview score of 8.488?It is not neccessary to use all the tables.
SELECT GVM (kg) Technical Capacity FROM table WHERE Model = 15.180E
CREATE TABLE INST, Here is a database schema( table schema);
If the model is 15.180e, what is the GVM (kg) Technical Capacity?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Average = 7757
CREATE TABLE INST, Here is a database schema( table schema);
Which team has 7757 as the average?.It is not neccessary to use all the tables.
SELECT SUM Touchdowns FROM table WHERE Extra points > 0 AND Field goals < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all the touchdowns when the player had more than 0 extra points and less than 0 field goals?.It is not neccessary to use all the tables.
SELECT COUNT Result FROM table WHERE Original title = Ani Ohev Otach Roza (אני אוהב אותך רוזה)
CREATE TABLE INST, Here is a database schema( table schema);
How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)?.It is not neccessary to use all the tables.
SELECT rank FROM table_name_29 WHERE bronze = "source: maltese olympic committee"
CREATE TABLE INST, Here is a database schema( table schema);
What rank is the nation that has a bronze of source: Maltese Olympic Committee?It is not neccessary to use all the tables.
SELECT AVG Half Marathon (men's) FROM table WHERE Marathon (women's) = 2 AND Total < 2
CREATE TABLE INST, Here is a database schema( table schema);
When the total winners was smaller than 2 and 2 woman won, what's the average of the men's half marathon winners?.It is not neccessary to use all the tables.
SELECT dismissals FROM table_13337302_16 WHERE player = "Peter McGlashan"
CREATE TABLE INST, Here is a database schema( table schema);
How many dismissals did the player Peter McGlashan have?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Engine = honda AND Sponsor = motorola
CREATE TABLE INST, Here is a database schema( table schema);
What is the Chassis of the Honda Engine with a Motorola sponsor?.It is not neccessary to use all the tables.