sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT ht FROM table_13869651_3 WHERE model_number = "Athlon X2 5200B"
CREATE TABLE INST, Here is a database schema( table schema);
What is the HT value of threw Athlon x2 5200b model?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tournament = McDonald's LPGA Championship
CREATE TABLE INST, Here is a database schema( table schema);
When was the mcdonald's lpga championship?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "29" AND prescriptions.route = "NU"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients who stayed in hospital for more than 29 days had nu roue of drug administration?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Position = defensive back AND Pick # = 101
CREATE TABLE INST, Here is a database schema( table schema);
What round pick was pick number 101 who plays defensive back?.It is not neccessary to use all the tables.
SELECT MAX(total_amount_of_trees) FROM table_10342194_3 WHERE district = "Leninsky"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total amount of trees when district is leninsky?It is not neccessary to use all the tables.
SELECT team__b_ FROM table_1594772_2 WHERE match_date = "Oct 30, 1989"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for oct 30 1989It is not neccessary to use all the tables.
SELECT Tipuani Municipality FROM table WHERE Tacacoma Municipality = 6
CREATE TABLE INST, Here is a database schema( table schema);
tipuani municipality when tacacoma municipality is 6?.It is not neccessary to use all the tables.
SELECT MAX Performances FROM table WHERE Role = geoffrey fitton
CREATE TABLE INST, Here is a database schema( table schema);
Name the most performances for geoffrey fitton.It is not neccessary to use all the tables.
SELECT AVG Grid FROM table WHERE Laps < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid with a number of laps smaller than 8?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = seoul AND Result = 8-0
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the venue of Seoul that resulted in 8-0?.It is not neccessary to use all the tables.
SELECT MIN Date FROM table WHERE Score = 2-2
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest date of the game with a score of 2-2?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_17 WHERE home_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
What team is travelling to play Hawthorn?It is not neccessary to use all the tables.
SELECT COUNT Lost FROM table WHERE Against = 46
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of lost for against being 46.It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE No. in series = 137
CREATE TABLE INST, Here is a database schema( table schema);
When 137 is the number in series what is the production code?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament is listed as A in 1972 and 2R in 1975?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Position = 2nd
CREATE TABLE INST, Here is a database schema( table schema);
How many years have a position of 2nd?.It is not neccessary to use all the tables.
SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest average with less than 3 places less than 433 total points and a rank less than 2?It is not neccessary to use all the tables.
SELECT COUNT Runs FROM table WHERE Average < 27.22
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of runs where the average is less than 27.22?.It is not neccessary to use all the tables.
SELECT MIN(avg_attendance) FROM table_2380212_1 WHERE regular_season = "3rd, Central"
CREATE TABLE INST, Here is a database schema( table schema);
How many people saw the 3rd, Central regular season on average?It is not neccessary to use all the tables.
SELECT Date of vacancy FROM table WHERE Team = aberdeen
CREATE TABLE INST, Here is a database schema( table schema);
What is Aberdeen team's date of vacancy?.It is not neccessary to use all the tables.
SELECT record FROM table_name_18 WHERE home = "st. louis"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the team with a St. Louis home?It is not neccessary to use all the tables.
SELECT Alternate FROM table WHERE Nation = sweden
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Alternate for Sweden?.It is not neccessary to use all the tables.
SELECT volume AS :issue FROM table_name_75 WHERE weeks_on_top < 5 AND issue_date_s_ = "10 july - 24 july"
CREATE TABLE INST, Here is a database schema( table schema);
What is Volume:Issue when Weeks on Top is less than 5 and when Issue Date(s) are 10 July - 24 July?It is not neccessary to use all the tables.
SELECT AVG(T2.price) FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation WHERE T1.county = "Sonoma"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average price of wines produced in appelations in Sonoma County?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest amount of spectators when St Kilda was the away team?.It is not neccessary to use all the tables.
SELECT MIN Population (2011) FROM table WHERE District = Prakasam
CREATE TABLE INST, Here is a database schema( table schema);
What was the minimum population in 2011 of the district of Prakasam?.It is not neccessary to use all the tables.
SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne"
CREATE TABLE INST, Here is a database schema( table schema);
What 1953 has 2 for 1947 and dne as 1938?It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Score = 1-2
CREATE TABLE INST, Here is a database schema( table schema);
What are the most points scored in a game where the score was 1-2?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Team = boston celtics AND Round = 7
CREATE TABLE INST, Here is a database schema( table schema);
Name the college that has 7 rounds and boston celtics team.It is not neccessary to use all the tables.
SELECT series_1 FROM table_name_60 WHERE series_5 = "peter jones"
CREATE TABLE INST, Here is a database schema( table schema);
Who in series 1 corresponds with Peter Jones in series 5?It is not neccessary to use all the tables.
SELECT COUNT Division FROM table WHERE Nickname = Skyhawks
CREATE TABLE INST, Here is a database schema( table schema);
How many teams have skyhawks as a nickname?.It is not neccessary to use all the tables.
SELECT First Downs FROM table WHERE Points Against = 0
CREATE TABLE INST, Here is a database schema( table schema);
Name the first downs for points against being 0.It is not neccessary to use all the tables.
SELECT Birthplace FROM table WHERE Real Name = charles 'chuck' connors
CREATE TABLE INST, Here is a database schema( table schema);
What Birthplace's Real Name is Charles 'Chuck' Connors?.It is not neccessary to use all the tables.
SELECT London Borough FROM table WHERE Pakistani Population = 7797
CREATE TABLE INST, Here is a database schema( table schema);
What's the London borough with 7797 Pakistani citizens?.It is not neccessary to use all the tables.
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has?It is not neccessary to use all the tables.
SELECT q.Id, q.Score, q.ViewCount, q.AnswerCount, q.Title, q.Tags, q.Body, a.Id, a.Score, a.Body FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN PostTags ON PostTags.PostId = q.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND Tags.TagName = 'mercurial'...
CREATE TABLE INST, Here is a database schema( table schema);
Trying to find an answer about `hg pull --force`. I know I've read an answer about `hg pull --force`, let me see if I can find it... Found it! Thank you for having this Data Explorer site!It is not neccessary to use all the tables.
SELECT party FROM table_2668243_25 WHERE incumbent = "John S. Barbour"
CREATE TABLE INST, Here is a database schema( table schema);
What party did john s. barbour represent?It is not neccessary to use all the tables.
SELECT MIN(rank) FROM table_name_24 WHERE gross = "$54,215,416"
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank is the lowest one that has a Gross of $54215416?It is not neccessary to use all the tables.
SELECT round FROM table_name_54 WHERE name = "greg huntington"
CREATE TABLE INST, Here is a database schema( table schema);
Round that greg huntington went in?It is not neccessary to use all the tables.
SELECT second FROM table_name_59 WHERE city = "regina" AND skip = "michelle englot"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT?It is not neccessary to use all the tables.
SELECT location FROM table_name_91 WHERE event = "ufc: fight for the troops"
CREATE TABLE INST, Here is a database schema( table schema);
What location was the event ufc: fight for the troops?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Venue = afg arena, st. gallen AND Score = 1–0
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1–0?.It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Venue = a AND Scorers = di matteo, m. hughes
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers?.It is not neccessary to use all the tables.
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B...
CREATE TABLE INST, Here is a database schema( table schema);
what are the four common procedures for patients 40s since 2100?It is not neccessary to use all the tables.
SELECT Timeslot FROM table WHERE Translation = ბრაზილიის უბანი
CREATE TABLE INST, Here is a database schema( table schema);
At what time is the ბრაზილიის უბანი shown?.It is not neccessary to use all the tables.
SELECT Traditional Chinese FROM table WHERE Area = 181
CREATE TABLE INST, Here is a database schema( table schema);
What is the traditional Chinese character set for the location that has an area of 181?.It is not neccessary to use all the tables.
SELECT no_5 FROM table_name_76 WHERE no_8 = "chloe" AND no_2 = "olivia" AND no_1 = "emma" AND no_4 = "ava"
CREATE TABLE INST, Here is a database schema( table schema);
When Chloe was number 8 Olivia was number 2 Emma was number 1 and Ava was number 4 who was number 5?It is not neccessary to use all the tables.
SELECT wins FROM table_name_82 WHERE podiums = "0" AND team = "team autotecnica"
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did Team Autotecnica with 0 podiums have?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'adv eff blood agent nec'))
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients who have been diagnosed with adv eff blood agent nec.It is not neccessary to use all the tables.
SELECT platform FROM table_name_55 WHERE current_version = "0.6.2"
CREATE TABLE INST, Here is a database schema( table schema);
What Platform has a Current Version 0.6.2?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = milos raonic
CREATE TABLE INST, Here is a database schema( table schema);
Name the score with opponent of milos raonic.It is not neccessary to use all the tables.
SELECT SUM Loses FROM table WHERE Year > 1972 AND Competition = nswrfl AND Draws = 0 AND Wins = 16
CREATE TABLE INST, Here is a database schema( table schema);
What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE College = USC
CREATE TABLE INST, Here is a database schema( table schema);
what's the position with college being usc.It is not neccessary to use all the tables.
SELECT Lunar landing site FROM table WHERE Lunar landing date = 19 November 1969
CREATE TABLE INST, Here is a database schema( table schema);
Name the lunar landing site for 19 november 1969.It is not neccessary to use all the tables.
SELECT COUNT(nightly_rank) FROM table_17004367_3 WHERE episode_number_production_number = "06 1-06"
CREATE TABLE INST, Here is a database schema( table schema);
what is the nightly rank where the episode number production number is 06 1-06?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Opponents = darija jurak anaïs laurendon
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome when darija jurak anaïs laurendon was the opponent?.It is not neccessary to use all the tables.
SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty"
CREATE TABLE INST, Here is a database schema( table schema);
Which office has kieran o'doherty as the conservative ticket?It is not neccessary to use all the tables.
SELECT AVG Extra points FROM table WHERE Points < 6
CREATE TABLE INST, Here is a database schema( table schema);
Whicih Extra points are the average ones that have Points smaller than 6?.It is not neccessary to use all the tables.
SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id
CREATE TABLE INST, Here is a database schema( table schema);
What are the names themes and number of singers for every concert ?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_49 WHERE runner_s__up = "bob charles"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Runner(s)-up of bob charles?It is not neccessary to use all the tables.
SELECT yards FROM table_name_32 WHERE player = "rob turner"
CREATE TABLE INST, Here is a database schema( table schema);
How many Yards did Player Rob Turner collect?It is not neccessary to use all the tables.
SELECT Cause of death FROM table WHERE Date of death = 1956-09-07
CREATE TABLE INST, Here is a database schema( table schema);
What is the Cause of death of the Officer with a Date of death of 1956-09-07?.It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Catalog = 660-51-015
CREATE TABLE INST, Here is a database schema( table schema);
What was the format for catalog 660-51-015?.It is not neccessary to use all the tables.
SELECT AVG Height (cm) FROM table WHERE Position = d AND Birthplace = new hope, minnesota
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_26 WHERE 1984 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a 1984 of 1r?It is not neccessary to use all the tables.
SELECT SUM("Points") FROM table_15120 WHERE "Chassis" = 'reynard 92d'
CREATE TABLE INST, Here is a database schema( table schema);
What is the total sum of points of entrants with a reynard 92d chassis?It is not neccessary to use all the tables.
SELECT writer FROM table_23705843_1 WHERE ratings__millions_ = "2.61"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the writer when the ratings was 2.61 million?It is not neccessary to use all the tables.
SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'
CREATE TABLE INST, Here is a database schema( table schema);
Can you list the courses that are worth 12 credits ?It is not neccessary to use all the tables.
SELECT home_captain FROM table_name_99 WHERE venue = "edgbaston"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_56830 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 Royal house FROM table WHERE Name = shaokang
CREATE TABLE INST, Here is a database schema( table schema);
What royal house did Shaokang belong to?.It is not neccessary to use all the tables.
SELECT "High assists" FROM table_76287 WHERE "Game" < '13' AND "Score" = 'w 75-66'
CREATE TABLE INST, Here is a database schema( table schema);
who had the high assists when the game was less than 13 and the score was w 75-66?It is not neccessary to use all the tables.
SELECT 2010–11 FROM table WHERE Event = autumn gold
CREATE TABLE INST, Here is a database schema( table schema);
WHich in 2010–11 has an Event of autumn gold?.It is not neccessary to use all the tables.
SELECT 1851 FROM table WHERE 1881 = 764
CREATE TABLE INST, Here is a database schema( table schema);
What's the 1851 when 1881 had 764?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_7 WHERE away_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
When the away team was st kilda what did the home team score?It is not neccessary to use all the tables.
SELECT lastname FROM list WHERE classroom = 111
CREATE TABLE INST, Here is a database schema( table schema);
Find the last names of students studying in room 111.It is not neccessary to use all the tables.
SELECT "Team" FROM table_35434 WHERE "Last match" = 'palmeiras 4-2 portuguesa'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of team with Palmeiras 4-2 portuguesa as the last match?It is not neccessary to use all the tables.
SELECT record FROM table_name_72 WHERE game = 19
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Record that has the Game of 19?It is not neccessary to use all the tables.
SELECT COUNT Draws FROM table WHERE Against = 797 AND Wins > 10
CREATE TABLE INST, Here is a database schema( table schema);
When against is 797 and wins is more than 10, what is the sum of draws?.It is not neccessary to use all the tables.
SELECT Res. FROM table WHERE Method = submission (armbar)
CREATE TABLE INST, Here is a database schema( table schema);
What was the resolution for the match that ended by Submission (armbar)?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_17 WHERE event = "iscf - southeast championships"
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent when Event is "ISCF - Southeast Championships"?It is not neccessary to use all the tables.
SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T2.Headquarter
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the sum of code , and group by attribute headquarter, order in ascending by the X-axis.It is not neccessary to use all the tables.
SELECT score FROM table_name_63 WHERE competition = "friendly match"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the friendly match?It is not neccessary to use all the tables.
SELECT sector FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "79.6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sector when the population change 2002-2012 (%) is 79.6?It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE # = 3
CREATE TABLE INST, Here is a database schema( table schema);
When 3 is the number what is the highest total?.It is not neccessary to use all the tables.
SELECT memory___ram__ FROM table_name_40 WHERE operating_system_version = "maemo 5"
CREATE TABLE INST, Here is a database schema( table schema);
How much memory (RAM) does the Maemo 5 operating system have?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 18.20 (128)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the home team scored 18.20 (128)?.It is not neccessary to use all the tables.
SELECT builder FROM table_name_90 WHERE works_number > 199 AND date = "4/1906"
CREATE TABLE INST, Here is a database schema( table schema);
Name the builder for 4/1906 and works number more than 199It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Time = 1:27.37.22
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rider who had the time of 1:27.37.22?.It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Date = august 20, 1965
CREATE TABLE INST, Here is a database schema( table schema);
What Catalog came out on August 20, 1965?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Place = t10 AND Score = 72-71=143
CREATE TABLE INST, Here is a database schema( table schema);
Name the To par for t10 place and score of 72-71=143.It is not neccessary to use all the tables.
SELECT Total Time FROM table WHERE Navigator = vandenberg
CREATE TABLE INST, Here is a database schema( table schema);
What is the total time of the vehicle having a navigator of Vandenberg?.It is not neccessary to use all the tables.
SELECT SUM Grid FROM table WHERE Driver = cristiano da matta AND Points < 33
CREATE TABLE INST, Here is a database schema( table schema);
Which Grid has a Driver of cristiano da matta, and Points smaller than 33?.It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Player = Harold Duvall
CREATE TABLE INST, Here is a database schema( table schema);
Which school did harold duvall attend?.It is not neccessary to use all the tables.
SELECT COUNT Pumpers FROM table WHERE Cars = 1 AND Staffing = volunteer AND Brigade = grovedale AND Tankers < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?.It is not neccessary to use all the tables.
SELECT Employed FROM table WHERE Position held = mathematics & prefect master
CREATE TABLE INST, Here is a database schema( table schema);
What are the years employed shown for mathematics & prefect master?.It is not neccessary to use all the tables.
SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1.93 for Svetlana Shkolina?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose admission type is newborn?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Crowd > 22,000 AND Home team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team score when the crowd is larger than 22,000 and hawthorn is the home team?.It is not neccessary to use all the tables.
SELECT result FROM table_name_48 WHERE role_episode = "outstanding achievement in drama" AND year < 1995
CREATE TABLE INST, Here is a database schema( table schema);
What result has outstanding achievement in drama as the role/episode with a year prior to 1995?It is not neccessary to use all the tables.