sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT no_10 FROM table_name_94 WHERE no_8 = "jackson" AND no_9 = "jayden"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the No. 10 which has a No. 8 of jackson and a No. 9 of jayden?It is not neccessary to use all the tables.
|
SELECT visiting_team FROM table_name_12 WHERE final_score = "14-34"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which visiting team had a final score of 14-34?It is not neccessary to use all the tables.
|
SELECT COUNT Population (2011) FROM table WHERE Population (2006) < 7083 AND Population density < 342.8 AND Change (%) = 5 AND Area (km²) > 4.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the Population (2011) when the Population (2006) was less than 7083, and the Population density less than 342.8, and the Change (%) of 5, and an Area (km²) larger than 4.5?.It is not neccessary to use all the tables.
|
SELECT venue FROM table_name_98 WHERE away_team = "carlton"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Where did carlton play while away?It is not neccessary to use all the tables.
|
SELECT Position FROM table WHERE Years for Grizzlies = 1998-1999
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What position did the person who was with the grizzlies in 1998-1999 play?.It is not neccessary to use all the tables.
|
SELECT Supporting Actress FROM table WHERE Leading Actress = Diane Keaton
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the supporting actress in a film with Diane Keaton as the leading actress?.It is not neccessary to use all the tables.
|
SELECT AVG(price), AVG(cases) FROM wine WHERE year = 2009 AND grape = "Zinfandel"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Give the average price and case of wines made from Zinfandel grapes in the year 2009.It is not neccessary to use all the tables.
|
SELECT week FROM table_name_57 WHERE game_site = "giants stadium"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which week has giants stadium as the game site?It is not neccessary to use all the tables.
|
SELECT MIN(game) FROM table_27722734_12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What number was the first game?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_81 WHERE country = "canada"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Canada's score?It is not neccessary to use all the tables.
|
SELECT Kickoff (ET) FROM table WHERE Result = w 34–23
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Kickoff (ET) has a Result of w 34–23?.It is not neccessary to use all the tables.
|
SELECT "Score" FROM table_60082 WHERE "Country" = 'united states' AND "Player" = 'bob tway'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Score, when Country is 'United States', and when Player is 'Bob Tway'?It is not neccessary to use all the tables.
|
SELECT name FROM table_name_57 WHERE length = "51.89 (2.043)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which name is 51.89 (2.043) long?It is not neccessary to use all the tables.
|
SELECT T2.city FROM customers AS T1 JOIN addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the city with the most customers?It is not neccessary to use all the tables.
|
SELECT to_par FROM table_name_42 WHERE score = 67 - 68 - 76 = 211
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the to par when the score is 67-68-76=211?It is not neccessary to use all the tables.
|
SELECT COUNT Province FROM table WHERE County = Fenghuang
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the country is fenghuang how many provinces are there? .It is not neccessary to use all the tables.
|
SELECT SUM Enrollment FROM table WHERE Year Joined = 1958 AND Location = clarksville
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the enrollement for the year joined 1958 in clarksville?.It is not neccessary to use all the tables.
|
SELECT COUNT Lost FROM table WHERE Pens < 51 AND Tries = 3 AND Start = 45
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts?.It is not neccessary to use all the tables.
|
SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which District has a First elected of 1856 and an Incumbent of william kellogg?It is not neccessary to use all the tables.
|
SELECT Attendance FROM table WHERE Week = 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance like for week 8?.It is not neccessary to use all the tables.
|
SELECT producer FROM table_18943444_1 WHERE product = "磊磊牌嬰幼兒配方乳粉"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the producers of 磊磊牌嬰幼兒配方乳粉 ?It is not neccessary to use all the tables.
|
SELECT High rebounds FROM table WHERE Date = November 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who did the most high rebounds in the game played on November 1?.It is not neccessary to use all the tables.
|
SELECT SUM Issue Price FROM table WHERE Year = 2008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the issue price in the year 2008?.It is not neccessary to use all the tables.
|
SELECT Shooting FROM table WHERE Athlete (NOC) = Luis Siri
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's Luis Siri's shooting score?.It is not neccessary to use all the tables.
|
SELECT margin_of_victory FROM table_name_71 WHERE winning_score = –10(69 - 68 - 74 - 67 = 278)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?It is not neccessary to use all the tables.
|
SELECT rank FROM table_name_41 WHERE premiere = "september 12, 1979"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the rank for the episode that premiered on September 12 1979?It is not neccessary to use all the tables.
|
SELECT MAX Events FROM table WHERE Earnings = $113,259 AND Average > 229.5
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Events has Earnings of $113,259, and an Average larger than 229.5?.It is not neccessary to use all the tables.
|
SELECT MAX(points) FROM table_27539272_4 WHERE record = "1-3-1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the most points for 1-3-1 recordIt is not neccessary to use all the tables.
|
SELECT Application FROM table WHERE Developed by = Caligari Corporation
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the application for caligari corporation.It is not neccessary to use all the tables.
|
SELECT Title FROM table WHERE Track = 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which title has a Track of 3?.It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_38 WHERE date = "november 1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the opponent on November 1?It is not neccessary to use all the tables.
|
SELECT Directed by FROM table WHERE Title = "Freaky Friday"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who directed "Freaky Friday"?.It is not neccessary to use all the tables.
|
SELECT city FROM table_name_50 WHERE iata = "kul"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which city's IATA is KUL?It is not neccessary to use all the tables.
|
SELECT MIN(touchdowns) FROM table_name_41 WHERE yards = 1318
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lease amount of touchdowns with 1318 yards?It is not neccessary to use all the tables.
|
SELECT MIN First elected FROM table WHERE Incumbent = Chester W. Taylor
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the lowest first elected for chester w. taylor.It is not neccessary to use all the tables.
|
SELECT "Character" FROM table_13070 WHERE "Rank" = 'intelligence officer'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Character has a Rank of intelligence officer?It is not neccessary to use all the tables.
|
SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the D42 associated with a D47 of d 27?It is not neccessary to use all the tables.
|
SELECT placing FROM table_24915874_1 WHERE jockey = "Damien Oliver"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the placing when the jockey was Damien Oliver?It is not neccessary to use all the tables.
|
SELECT Location FROM table WHERE Winning Driver = Bill Vukovich II
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the location is the winning driver is Bill Vukovich II?.It is not neccessary to use all the tables.
|
SELECT "Issue Date(s)" FROM table_75167 WHERE "Artist" = 'men at work'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Issue Date(s) has an Artist of men at work?It is not neccessary to use all the tables.
|
SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest age (years) that the 1st place had a performance of 62.20m?It is not neccessary to use all the tables.
|
SELECT home_team AS score FROM table_name_62 WHERE home_team = "footscray"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Footscray's Home team score?It is not neccessary to use all the tables.
|
SELECT COUNT Others # FROM table WHERE Kerry % = 44.6% AND Bush # > 163,650
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many votes did Others receive where Kerry has 44.6%, and Bush more than 163,650 votes?.It is not neccessary to use all the tables.
|
SELECT years FROM table_name_21 WHERE soap_opera = "glenroe" AND actor = "mick lally"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the years when the soap opera is glenroe and the actor is mick lally?It is not neccessary to use all the tables.
|
SELECT Long FROM table WHERE Player = charles frederick
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the long for charles frederick.It is not neccessary to use all the tables.
|
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-22988')) AND microlab.culturesite = 'other' AND STRFTIME('%y', microlab.culturetakentime) <= '2103' ORDER BY microlab.culturetakentime LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
has there been any organism found until 2103 during the first other microbiology test of patient 031-22988?It is not neccessary to use all the tables.
|
SELECT Report FROM table WHERE Score = 0-0 AND Away team = sydney fc
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What report has a score of 0-0 with Sydney FC?.It is not neccessary to use all the tables.
|
SELECT chassis FROM table_name_40 WHERE points > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What chassis has more than 0 points?It is not neccessary to use all the tables.
|
SELECT SUM("2nd (m)") FROM table_38298 WHERE "Nationality" = 'aut' AND "Rank" = '4' AND "1st (m)" < '122.5'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?It is not neccessary to use all the tables.
|
SELECT Crew FROM table WHERE Duration = 12 minutes
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the crew for the duration of 12 minutes?.It is not neccessary to use all the tables.
|
SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the status where the notes are possible jr synonym of sapeornis?It is not neccessary to use all the tables.
|
SELECT location FROM table_29285076_2 WHERE date = "March 17"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
At what location was the March 17 race held?It is not neccessary to use all the tables.
|
SELECT AVG(top_25) FROM table_name_27 WHERE wins > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average top-25 value for majors that have more than 0 wins?It is not neccessary to use all the tables.
|
SELECT college FROM table_20170644_1 WHERE player = "Étienne Légaré"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What college did étienne légaré play for?It is not neccessary to use all the tables.
|
SELECT Title FROM table WHERE No. in series = 155
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the title of episode 155 in the series?.It is not neccessary to use all the tables.
|
SELECT * FROM employees WHERE NOT employee_id IN (SELECT employee_id FROM job_history)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is all the information about employees who have never had a job in the past?It is not neccessary to use all the tables.
|
SELECT MIN Weeks at number 1 FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
error (see notes).It is not neccessary to use all the tables.
|
SELECT COUNT Nationality FROM table WHERE Pick = 179
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many different nationalities is pick number 179?.It is not neccessary to use all the tables.
|
SELECT AVG("January") FROM table_5376 WHERE "Game" = '50'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which January has a Game of 50?It is not neccessary to use all the tables.
|
SELECT Entrant FROM table WHERE Engine = climax straight-4 AND Points > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Entrant has an Engine of climax straight-4, and Points larger than 0?.It is not neccessary to use all the tables.
|
SELECT 2010 FROM table WHERE 2012 = 2r AND Tournament = miami masters
|
CREATE TABLE INST, Here is a database schema( table schema);
|
WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?.It is not neccessary to use all the tables.
|
SELECT release_date FROM table_name_19 WHERE isbn = 0 AND year = 1992
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was release date in 1992 with the ISBN #0?It is not neccessary to use all the tables.
|
SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many marriages between women have % same-sex marriages of 1.06?It is not neccessary to use all the tables.
|
SELECT builder FROM table_name_84 WHERE built = "1920"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the builder in 1920?It is not neccessary to use all the tables.
|
SELECT COUNT Week FROM table WHERE Date = september 8, 1980 AND Attendance > 55,045
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4.It is not neccessary to use all the tables.
|
SELECT record FROM table_name_99 WHERE home = "detroit" AND visitor = "mtl. maroons"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What record has detroit as the home and mtl. maroons as the visitor?It is not neccessary to use all the tables.
|
SELECT 1991 AS _1992 FROM table_14390413_1 WHERE team = "River Plate"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the 1991-1992 for river plateIt is not neccessary to use all the tables.
|
SELECT to_par FROM table_name_25 WHERE winning_score = 69 - 67 - 72 - 64 = 272
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the to par of the match with a winning score 69-67-72-64=272?It is not neccessary to use all the tables.
|
SELECT Est. FROM table WHERE State/Province = illinois AND City = chicago AND League = nfl
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what year was the NFL team in chicago illinois established?.It is not neccessary to use all the tables.
|
SELECT * FROM table_test_2 WHERE health_coverage = 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
having a health coverageIt is not neccessary to use all the tables.
|
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Score of 6–4 and a Opponent of @ marlins had what record?It is not neccessary to use all the tables.
|
SELECT Time FROM table WHERE Notes = sa/b AND Athlete = frida svensson
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the time of frida svensson's race that had sa/b under the notes?.It is not neccessary to use all the tables.
|
SELECT Team 1 FROM table WHERE Team 2 = lomé i
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who played as Team 1 against Lomé i?.It is not neccessary to use all the tables.
|
SELECT COUNT In Service Dates FROM table WHERE Owner(s) (2009) = Hoosier Energy AND Location = Petersburg
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the number for service dates for hoosier energy for petersburg.It is not neccessary to use all the tables.
|
SELECT Athlete FROM table WHERE React = 0.248
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Athlete has a Reaction of 0.248?.It is not neccessary to use all the tables.
|
SELECT median_house__hold_income FROM table_1447085_1 WHERE place = "Woodside"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the median household income for Woodside?It is not neccessary to use all the tables.
|
SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the names of the workshop groups that have bookings with status code "stop"?It is not neccessary to use all the tables.
|
SELECT COUNT Season FROM table WHERE Position = 4th
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the season for position 4th.It is not neccessary to use all the tables.
|
SELECT COUNT Byes FROM table WHERE Against < 1544 AND Wins = 13 AND Draws > 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?.It is not neccessary to use all the tables.
|
SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which product has been ordered most number of times?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_9 WHERE away_team = "hull city"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What score has hull city as the away team?It is not neccessary to use all the tables.
|
SELECT Set 1 FROM table WHERE Set 3 = 25–21
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the first set with a third set of 25–21?.It is not neccessary to use all the tables.
|
SELECT "Date" FROM table_37147 WHERE "Opponent" = 'austria'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What day was the opponent Austria?It is not neccessary to use all the tables.
|
SELECT "Total Passengers" FROM table_19025 WHERE "Freight (Metric Tonnes)" = '827'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what's the total passengers with freight (metric tonnes) being 827It is not neccessary to use all the tables.
|
SELECT COUNT Seats in Congress FROM table WHERE Electoral District = Ucayali
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of seats in congress when the electoral district is Ucayali?.It is not neccessary to use all the tables.
|
SELECT agg FROM table_name_94 WHERE team_2 = "cementarnica"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the agg when team 2 was Cementarnica?It is not neccessary to use all the tables.
|
SELECT "Stadium" FROM table_19945 WHERE "Attendance" = '75,406'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the stadium where the attendance was 75,406?It is not neccessary to use all the tables.
|
SELECT Time/Retired FROM table WHERE Laps = 55
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the time/retired when the laps is 55?.It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Decision = parent AND Home = philadelphia AND Visitor = pittsburgh
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?.It is not neccessary to use all the tables.
|
SELECT Serial no. FROM table WHERE Type of payload = van allen belts exploration
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For the payload of Van Allen Belts Exploration what's the serial number?.It is not neccessary to use all the tables.
|
SELECT COUNT(builder) FROM table_1748444_1 WHERE number = "96"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the number of builders for number 96It is not neccessary to use all the tables.
|
SELECT In service FROM table WHERE Origin = brazil AND Versions = c-95
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many C-95 aircrafts originating in Brazil are currently in service?.It is not neccessary to use all the tables.
|
SELECT COUNT Position FROM table WHERE Points = 56
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many team position scored 56 points?.It is not neccessary to use all the tables.
|
SELECT MAX Population (2002 census data) FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the most population 2002.It is not neccessary to use all the tables.
|
SELECT written_by FROM table_23235679_1 WHERE no_in_series = 88
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name who wrote number 88It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Name = orangeville
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the date for Orangeville?.It is not neccessary to use all the tables.
|
SELECT Disposals FROM table WHERE Marks = 134
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of disposals when marks is 134?.It is not neccessary to use all the tables.
|
SELECT MAX 2nd FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What time was the highest for 2nd finishers?.It is not neccessary to use all the tables.
|
SELECT "Country" FROM table_12274 WHERE "Total" < '291' AND "Finish" = '4'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What country had a total less than 291 and a 4 Finish?It is not neccessary to use all the tables.
|
SELECT COUNT Skip (Club) FROM table WHERE PF = 40
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total mumber of skip (club) entries when the pf is 40?.It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.