sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MIN(game) FROM table_22871316_11 WHERE date = "April 30"
CREATE TABLE INST, Here is a database schema( table schema);
How many games are on the date of April 30?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Surface = clay AND Tournament = morocco f5, rabat , morocco
CREATE TABLE INST, Here is a database schema( table schema);
Which Outcome has a Surface of clay, and a Tournament of morocco f5, rabat , morocco?.It is not neccessary to use all the tables.
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 ORDER BY COUNT(date) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those dates with a max temperature greater than or equal to 80, I want to know the number of days on the day of the week interval using a bar chart, could you show from high to low by the Y?It is not neccessary to use all the tables.
SELECT brazil_scorers FROM table_name_11 WHERE score = "3-3"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the Brazil scorers who scored 3-3?It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?It is not neccessary to use all the tables.
SELECT result FROM table_name_73 WHERE opponent = "ayr united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the game against Ayr United?It is not neccessary to use all the tables.
SELECT AVG Founded FROM table WHERE Coach = unknown AND Location = enfield
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year that the club located in enfield was founded with an unknown coach?.It is not neccessary to use all the tables.
SELECT LNER Class FROM table WHERE Class = 3
CREATE TABLE INST, Here is a database schema( table schema);
What LNER Class has a Class of 3?.It is not neccessary to use all the tables.
SELECT player FROM table_name_45 WHERE conv = "14"
CREATE TABLE INST, Here is a database schema( table schema);
which player has a conv of 14?It is not neccessary to use all the tables.
SELECT callback_date FROM table_22897967_1 WHERE audition_venue = "Amway Arena"
CREATE TABLE INST, Here is a database schema( table schema);
Name the callback date for amway arenaIt is not neccessary to use all the tables.
SELECT location FROM table_name_28 WHERE ihsaa_class = "aaa" AND mascot = "panthers"
CREATE TABLE INST, Here is a database schema( table schema);
What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?It is not neccessary to use all the tables.
SELECT record FROM table_name_24 WHERE location = "boston garden" AND date = "fri. nov. 9"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when Location is "Boston Garden" and when Date is "Fri. Nov. 9"?It is not neccessary to use all the tables.
SELECT MAX Grid FROM table WHERE Laps = 65
CREATE TABLE INST, Here is a database schema( table schema);
What is biggest grid when the laps are 65?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Province or Country of birth = manitoba
CREATE TABLE INST, Here is a database schema( table schema);
Which supercentenarians were born in Manitoba?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Customer_Payments)
CREATE TABLE INST, Here is a database schema( table schema);
List the number of customers that did not have any payment history.It is not neccessary to use all the tables.
SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 AND points > 5
CREATE TABLE INST, Here is a database schema( table schema);
How many losses when goals against are more than 17 goal difference is more than 2 and points are more than 5?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Week < 17 AND Record = bye
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance before Week 17 with a Record of Bye?.It is not neccessary to use all the tables.
SELECT Women's doubles FROM table WHERE Men's doubles = david eddy eddy sutton AND Men's singles = david eddy
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Women's doubles in the year that David Eddy Eddy Sutton won the Men's doubles, and that David Eddy won the Men's singles?.It is not neccessary to use all the tables.
SELECT name FROM table_name_89 WHERE rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of Rank 5?It is not neccessary to use all the tables.
SELECT socialist_labor_ticket FROM table_name_78 WHERE office = "secretary of state"
CREATE TABLE INST, Here is a database schema( table schema);
Which Socialist Labor ticket has a Office of secretary of state?It is not neccessary to use all the tables.
SELECT precincts FROM table_name_86 WHERE county = "passaic"
CREATE TABLE INST, Here is a database schema( table schema);
Which Precincts has a County of passaic?It is not neccessary to use all the tables.
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Goals Against by a team with more than 5 wins?It is not neccessary to use all the tables.
SELECT other_account_details, COUNT(other_account_details) FROM Accounts GROUP BY other_account_details
CREATE TABLE INST, Here is a database schema( table schema);
Bar chart x axis other account details y axis how many other account detailsIt is not neccessary to use all the tables.
SELECT Opponent in the final FROM table WHERE Tournament = blenheim
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent in the final of the Tournament of Blenheim?.It is not neccessary to use all the tables.
SELECT Capital FROM table WHERE Population Census 2009 = 596268
CREATE TABLE INST, Here is a database schema( table schema);
What capital has a population of 596268?.It is not neccessary to use all the tables.
SELECT MAX(diameter__km_) FROM table_name_4 WHERE name = "alma-merghen planitia" AND year_named < 1997
CREATE TABLE INST, Here is a database schema( table schema);
Which Diameter (km) has a Name of alma-merghen planitia and a Year named smaller than 1997?It is not neccessary to use all the tables.
SELECT title FROM table_28582091_2 WHERE production_code = "2J5515"
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode with production code 2J5515?It is not neccessary to use all the tables.
SELECT Voice actor (Harmony Gold OVA Dub) FROM table WHERE Voice actor (ADV TV/Sentai OVA dub) = kim prause
CREATE TABLE INST, Here is a database schema( table schema);
Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause?.It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_70 WHERE time = "3:12.40"
CREATE TABLE INST, Here is a database schema( table schema);
what is the rank when the time is 3:12.40?It is not neccessary to use all the tables.
SELECT Game Site FROM table WHERE Record = 2-3
CREATE TABLE INST, Here is a database schema( table schema);
Where is the game site for the game that had a packers record of 2-3?.It is not neccessary to use all the tables.
SELECT IATA FROM table WHERE Country = france AND ICAO = lfrn
CREATE TABLE INST, Here is a database schema( table schema);
What is the IATA when France was the country, and the ICAO was lfrn?.It is not neccessary to use all the tables.
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Find the ids and first names of the 3 teachers that have the most number of assessment notes?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team in the game played at arden street oval?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA"
CREATE TABLE INST, Here is a database schema( table schema);
How many students does LORIA ONDERSMA teaches?It is not neccessary to use all the tables.
SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'
CREATE TABLE INST, Here is a database schema( table schema);
What is department name and office for the professor whose last name is Heffington?It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Rank < 13 AND Time > 11.13 AND Country = bahamas AND Heat > 2
CREATE TABLE INST, Here is a database schema( table schema);
who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?.It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Result = win AND Score = 3-1
CREATE TABLE INST, Here is a database schema( table schema);
What is the competition that had a win result and a score of 3-1?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 5.6 (36)
CREATE TABLE INST, Here is a database schema( table schema);
Which away team had a score of 5.6 (36)?.It is not neccessary to use all the tables.
SELECT Award FROM table WHERE Year < 2013 AND Title of work = saber AND Category = best action
CREATE TABLE INST, Here is a database schema( table schema);
What was awarded before 2013 to the Saber in the category of Best Action?.It is not neccessary to use all the tables.
SELECT Turbo FROM table WHERE L2 cache = 4 × 256 kb AND Release date = june 2013 AND Model number = core i7-4770s
CREATE TABLE INST, Here is a database schema( table schema);
What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013, and a Model number of core i7-4770s?.It is not neccessary to use all the tables.
SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag"
CREATE TABLE INST, Here is a database schema( table schema);
Which engine has daimler benz ag as an entrant?It is not neccessary to use all the tables.
SELECT SUM(matches) FROM table_name_67 WHERE overs < 59.1 AND economy_rate > 6.78
CREATE TABLE INST, Here is a database schema( table schema);
How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?It is not neccessary to use all the tables.
SELECT term_in_office FROM table_name_73 WHERE electorate = "indi"
CREATE TABLE INST, Here is a database schema( table schema);
What term did an Electorate of indi have in office?It is not neccessary to use all the tables.
SELECT goals FROM table_1218784_1 WHERE season = "2005-06"
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were scored in the 2005-06 season?It is not neccessary to use all the tables.
SELECT count(*) FROM Fires WHERE FIRE_YEAR = 2006 AND FIRE_SIZE > 100
CREATE TABLE INST, Here is a database schema( fires);
How many fires were more than 100 acres in 2006?. It is not neccessary to use all the tables.
SELECT name FROM table_1585609_2 WHERE date_of_designation = "2002-04-01"
CREATE TABLE INST, Here is a database schema( table schema);
Name thenames for 2002-04-01It is not neccessary to use all the tables.
SELECT MIN Pos FROM table WHERE Points (total 500) = 279
CREATE TABLE INST, Here is a database schema( table schema);
At what position is the association with 279 points?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = may 25, 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the opponent on May 25, 2007?.It is not neccessary to use all the tables.
SELECT AVG(myspace) FROM table_name_62 WHERE site = "linkedin" AND orkut > 3
CREATE TABLE INST, Here is a database schema( table schema);
What myspace has linkedin as the site with an orkit greater than 3?It is not neccessary to use all the tables.
SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is Hungary's time with a heat higher than 2 and two lanes?It is not neccessary to use all the tables.
SELECT SUM(events) FROM table_name_97 WHERE rank > 5
CREATE TABLE INST, Here is a database schema( table schema);
the sum of Events that has a Rank larger than 5 is 3It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Opponent = andre roberts
CREATE TABLE INST, Here is a database schema( table schema);
What is the method when the opponent is Andre Roberts?.It is not neccessary to use all the tables.
SELECT track_s_ FROM table_name_86 WHERE date = "18 november 1985"
CREATE TABLE INST, Here is a database schema( table schema);
Which Track(s) is on 18 november 1985?It is not neccessary to use all the tables.
SELECT rating FROM table_23799417_2 WHERE rating / SHARE(18 AS –49) = 3.6
CREATE TABLE INST, Here is a database schema( table schema);
What is the rating if the rating/share (18-49) is 3.6?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has an Away team of st kilda?.It is not neccessary to use all the tables.
SELECT T1.country, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T1.country ORDER BY T2.rating DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Please give me a bar chart to show the total number of singers who sang the top 3 most highly rated songs from different countries.It is not neccessary to use all the tables.
SELECT townland FROM table_30120761_1 WHERE area__acres__ = 131
CREATE TABLE INST, Here is a database schema( table schema);
What are all of the townlands that have exactly 131 acres.It is not neccessary to use all the tables.
SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney"
CREATE TABLE INST, Here is a database schema( table schema);
What is the city location of the tournament currently known as the Medibank International Sydney?It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_72 WHERE time_retired = "+4 laps"
CREATE TABLE INST, Here is a database schema( table schema);
How many grids had a Time/Retired of +4 laps?It is not neccessary to use all the tables.
SELECT MAX Goals FROM table WHERE Points < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest amount of goals when the points are less than 0?.It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE Original airdate = january 24, 1999 AND Year < 1999
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?.It is not neccessary to use all the tables.
SELECT MIN(pick) FROM table_name_11 WHERE player = "terry jones"
CREATE TABLE INST, Here is a database schema( table schema);
What's terry jones' lowest pick?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE WC Matches = 15
CREATE TABLE INST, Here is a database schema( table schema);
in which country whe wc maches was 15.It is not neccessary to use all the tables.
SELECT school FROM table_11677691_2 WHERE player = "Ha'Sean Clinton-Dix"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO?It is not neccessary to use all the tables.
SELECT COUNT Rank(Timeslot) FROM table WHERE Airdate = March 30, 2011
CREATE TABLE INST, Here is a database schema( table schema);
what is the total rank on airdate march 30, 2011?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Location = Cassell Coliseum • Blacksburg, VA
CREATE TABLE INST, Here is a database schema( table schema);
What was the time of the games that took place at the cassell coliseum • blacksburg, va?.It is not neccessary to use all the tables.
SELECT written_by FROM table_29219286_1 WHERE directed_by = "Milan Cheylov"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that was directed by Milan Cheylov?It is not neccessary to use all the tables.
SELECT Color FROM table WHERE Scientific name = chamaeleo calyptratus
CREATE TABLE INST, Here is a database schema( table schema);
What is the color of the Chamaeleo Calyptratus?.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.diagnosis = "MORBID OBESITY/SDA" AND lab.fluid = "Pleural"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose primary disease is morbid obesity/sda and lab test fluid is pleural?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Loss = saarloos (7-7)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the game that had a loss of Saarloos (7-7)?.It is not neccessary to use all the tables.
SELECT "Race" FROM table_39147 WHERE "Date" = '10/10/2008'
CREATE TABLE INST, Here is a database schema( table schema);
What is the race on 10/10/2008?It is not neccessary to use all the tables.
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'acetaminophen w/codeine') AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY cost.hadm_id) AS t1
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum cost of a hospital that involves a drug named acetaminophen w/codeine until 2 years ago?It is not neccessary to use all the tables.
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission"
CREATE TABLE INST, Here is a database schema( table schema);
List the status for the operator Toronto transit commission.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Grand Prix = Belgian Grand Prix
CREATE TABLE INST, Here is a database schema( table schema);
What was the constructor in the Belgian Grand Prix round?.It is not neccessary to use all the tables.
SELECT grade FROM table_name_54 WHERE chin_up__reps_ = "9-10"
CREATE TABLE INST, Here is a database schema( table schema);
Which grade did the chin-up (reps) 9-10 receive?It is not neccessary to use all the tables.
SELECT hometown FROM table_11677100_4 WHERE school = "Brighton High school"
CREATE TABLE INST, Here is a database schema( table schema);
What town is Brighton High School in?It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Event = Clipsal 500
CREATE TABLE INST, Here is a database schema( table schema);
What circuit was the Clipsal 500 on?.It is not neccessary to use all the tables.
SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the mail date of the document with id 7?It is not neccessary to use all the tables.
SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100
CREATE TABLE INST, Here is a database schema( table schema);
Show all cities without a branch having more than 100 memberships.It is not neccessary to use all the tables.
SELECT IATA FROM table WHERE Airport = leonardo da vinci-fiumicino airport
CREATE TABLE INST, Here is a database schema( table schema);
What is the IATA of Leonardo da Vinci-Fiumicino Airport?.It is not neccessary to use all the tables.
SELECT grid FROM table_name_9 WHERE points = "14"
CREATE TABLE INST, Here is a database schema( table schema);
What was the grid number of the team and driver with 14 points?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM (SELECT city FROM airports GROUP BY city HAVING COUNT(*) > 3)
CREATE TABLE INST, Here is a database schema( table schema);
How many cities are there that have more than 3 airports?It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Format = 7" single AND Date = 1988
CREATE TABLE INST, Here is a database schema( table schema);
Which Label has a Format of 7" single, and a Date of 1988?.It is not neccessary to use all the tables.
SELECT date FROM table_name_58 WHERE venue = "princes park"
CREATE TABLE INST, Here is a database schema( table schema);
If the Venue was princes park which Date did the game take place on?It is not neccessary to use all the tables.
SELECT COUNT Provincial capital FROM table WHERE Population (2013) = 1162900
CREATE TABLE INST, Here is a database schema( table schema);
what is the numbe of provincial captial where the population is 1162900?.It is not neccessary to use all the tables.
SELECT Area km 2 FROM table WHERE Population = 71
CREATE TABLE INST, Here is a database schema( table schema);
What is the Area of the Parish with a Population of 71?.It is not neccessary to use all the tables.
SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = "bulgaria"
CREATE TABLE INST, Here is a database schema( table schema);
Name the athlete for bulgaria with rank less than 22It is not neccessary to use all the tables.
SELECT Represent FROM table WHERE Height (mtr.) = 1.76
CREATE TABLE INST, Here is a database schema( table schema);
Which country had a contestant that was 1.76 meters tall?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Scored > 1
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game with a higher score than 1 played?.It is not neccessary to use all the tables.
SELECT SUM Laps FROM table WHERE Grid < 14 AND Driver = ricardo zonta
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did Ricardo Zonta drive with a grid less than 14?.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE League Cup goals = 4 AND FA Cup goals = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0?.It is not neccessary to use all the tables.
SELECT type FROM table_name_18 WHERE group = "movies"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type of station that is in the movies group?It is not neccessary to use all the tables.
SELECT Opponent' FROM table WHERE Date = february 6, 1988
CREATE TABLE INST, Here is a database schema( table schema);
What was the Opponent on February 6, 1988?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Opposition = lyon
CREATE TABLE INST, Here is a database schema( table schema);
What round had the opponent Lyon?.It is not neccessary to use all the tables.
SELECT team_record FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy"
CREATE TABLE INST, Here is a database schema( table schema);
What was the team record after the Frankfurt Galaxy matchup?It is not neccessary to use all the tables.
SELECT after_1_year FROM table_name_40 WHERE after_3_years = "80%"
CREATE TABLE INST, Here is a database schema( table schema);
Which After 1 year has an After 3 years of 80%?It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_95 WHERE lost < 12 AND played > 20 AND Avg.points > 1.73
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Lost smaller than 12 and a Played larger than 20 and an Avg Points larger than 1.73?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_13169136_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the most recent year?It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_41 WHERE player = "gene littler"
CREATE TABLE INST, Here is a database schema( table schema);
How many totals does gene littler have?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Week > 13 AND Date = december 8, 1991
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game after Week 13 on December 8, 1991?.It is not neccessary to use all the tables.