sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT MAX Attendance FROM table WHERE Opponent = arsenal | CREATE TABLE INST, Here is a database schema( table schema); | Whose attendance was the highest when the team played Arsenal?.It is not neccessary to use all the tables. |
SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22 | CREATE TABLE INST, Here is a database schema( table schema); | How many silver medals were won when there were 4 gold and 22 in total?It is not neccessary to use all the tables. |
SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force | CREATE TABLE INST, Here is a database schema( table schema); | Please show the police forces and the number of counties with each police force.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_64 WHERE result = "w 24-14" | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent had the result of W 24-14?It is not neccessary to use all the tables. |
SELECT DISTINCT commod FROM resultsdata15 WHERE concen != "" | CREATE TABLE INST, Here is a database schema( sampledata15); | Provide the list of products with pesticide residues detected.. It is not neccessary to use all the tables. |
SELECT COUNT Losses FROM table WHERE Golden Rivers = hay AND Byes > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total losses when Hay is the golden river and there are more than 2 byes?.It is not neccessary to use all the tables. |
SELECT Candidates FROM table WHERE First elected = 1998 | CREATE TABLE INST, Here is a database schema( table schema); | Name the candidates for 1998.It is not neccessary to use all the tables. |
SELECT Directed by FROM table WHERE No. in season = 12 | CREATE TABLE INST, Here is a database schema( table schema); | Who directed episode 12 in season 3?.It is not neccessary to use all the tables. |
SELECT career FROM table_name_94 WHERE average > 0.361 AND player = "tymerlan huseynov" | CREATE TABLE INST, Here is a database schema( table schema); | What years did Tymerlan Huseynov whose average is larger than 0.361 play?It is not neccessary to use all the tables. |
SELECT 1998 FROM table WHERE 2007 = 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the 1998 value if the 2007 value is 8?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Date = April 1 | CREATE TABLE INST, Here is a database schema( table schema); | What company plays on april 1?.It is not neccessary to use all the tables. |
SELECT "HDI 2012" FROM table_28575 WHERE "Country" = 'Dominica' | CREATE TABLE INST, Here is a database schema( table schema); | Name the hdi 2012 for dominicaIt is not neccessary to use all the tables. |
SELECT Total Votes FROM table WHERE Party Name = DMK | CREATE TABLE INST, Here is a database schema( table schema); | What is DMK's total number of votes?.It is not neccessary to use all the tables. |
SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department LIKE '%ORTHO%' AND program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | CREATE TABLE INST, Here is a database schema( table schema); | What options do I have for my Core in ORTHO ?It is not neccessary to use all the tables. |
SELECT Record description FROM table WHERE Achievement = m (ft) AND Type = mi-10r AND Pilot = v.p. koloshenko AND Date = 28 may 1965 | CREATE TABLE INST, Here is a database schema( table schema); | Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team = melbourne | CREATE TABLE INST, Here is a database schema( table schema); | What was the away team that played against Melbourne?.It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_8 WHERE record = "86-71" | CREATE TABLE INST, Here is a database schema( table schema); | what game had a score of 86-71It is not neccessary to use all the tables. |
SELECT engine FROM table_name_71 WHERE model = "s430" | CREATE TABLE INST, Here is a database schema( table schema); | Which Engine has a Model of s430?It is not neccessary to use all the tables. |
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2003 value with a 1r in 1998 a 14 in 1994 and a 7-12 career?It is not neccessary to use all the tables. |
SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'sigir' | CREATE TABLE INST, Here is a database schema( table schema); | how many papers does sigir have ?It is not neccessary to use all the tables. |
SELECT round FROM table_name_17 WHERE venue = "a" AND result = "1-2" AND date = "7 december 2004" | CREATE TABLE INST, Here is a database schema( table schema); | What is the round of the match at venue A with a result of 1-2 on 7 December 2004?It is not neccessary to use all the tables. |
SELECT AVG(bronze) FROM table_name_5 WHERE nation = "canada" AND rank < 6 | CREATE TABLE INST, Here is a database schema( table schema); | Which Bronze has a Nation of canada and a Rank smaller than 6?It is not neccessary to use all the tables. |
SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" | CREATE TABLE INST, Here is a database schema( table schema); | How long does student Linda Smith spend on the restaurant in total?It is not neccessary to use all the tables. |
SELECT AVG(rank) FROM table_name_36 WHERE tally = "4-0" | CREATE TABLE INST, Here is a database schema( table schema); | Which Rank has a Tally of 4-0?It is not neccessary to use all the tables. |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.insurance = "Medicare" | CREATE TABLE INST, Here is a database schema( table schema); | what is the average age of patients whose admission type is emergency and insurance is medicare?It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE ZAN 1 = 19 | CREATE TABLE INST, Here is a database schema( table schema); | What driver has 19 as the zan 1?.It is not neccessary to use all the tables. |
SELECT time FROM table_name_69 WHERE rider = "noriyuki haga" | CREATE TABLE INST, Here is a database schema( table schema); | What is noriyuki haga's time?It is not neccessary to use all the tables. |
SELECT Roll FROM table WHERE Area = mahia | CREATE TABLE INST, Here is a database schema( table schema); | Which roll has an Area of mahia?.It is not neccessary to use all the tables. |
SELECT partner FROM table_name_12 WHERE date = "6 july 1987" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the partner of the tournament on 6 July 1987?It is not neccessary to use all the tables. |
SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Median family income when the Median household income is $38137?It is not neccessary to use all the tables. |
SELECT "Result" FROM table_23658 WHERE "Conference Record" = '7-2' | CREATE TABLE INST, Here is a database schema( table schema); | How did the season with 7-2 conference record ed?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Record = 33-47 | CREATE TABLE INST, Here is a database schema( table schema); | Name the score for record 33-47.It is not neccessary to use all the tables. |
SELECT AVG Attendance FROM table WHERE Opponent = brewers AND Score = 6–3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average attendance when Brewers are the opponent with a score of 6–3?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Total = 8 (24) | CREATE TABLE INST, Here is a database schema( table schema); | Which player has a total of 8 (24)?.It is not neccessary to use all the tables. |
SELECT site FROM table_name_94 WHERE opponent = "iowa" | CREATE TABLE INST, Here is a database schema( table schema); | Where did the game(s) against Iowa take place?It is not neccessary to use all the tables. |
SELECT City FROM table WHERE IATA = nkg | CREATE TABLE INST, Here is a database schema( table schema); | Which city's IATA is nkg?.It is not neccessary to use all the tables. |
SELECT release date FROM table WHERE Notes = Bonus interview with Peter Purves | CREATE TABLE INST, Here is a database schema( table schema); | What is the release date of the bonus interview with Peter Purves?.It is not neccessary to use all the tables. |
SELECT SUM(lost) FROM table_name_42 WHERE name = "ev bruckberg" AND drawn > 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many losses did ev bruckberg have when the drawn was more than 1?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE To par = +2 | CREATE TABLE INST, Here is a database schema( table schema); | What Player had a To Par of +2?.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th" | CREATE TABLE INST, Here is a database schema( table schema); | Which venue led to a result of 13th and had an extra of Long Race?It is not neccessary to use all the tables. |
SELECT circuit FROM table_26267607_2 WHERE round = "1" | CREATE TABLE INST, Here is a database schema( table schema); | Round 1 is in what circuit?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Date = october 4, 1993 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result on October 4, 1993?.It is not neccessary to use all the tables. |
SELECT results FROM table_name_48 WHERE first_elected < 1982 | CREATE TABLE INST, Here is a database schema( table schema); | What are the results of a first elected prior to year 1982?It is not neccessary to use all the tables. |
SELECT SUM Fastest Laps FROM table WHERE Poles = 0 AND Podiums = 0 AND Seasons = 1995 | CREATE TABLE INST, Here is a database schema( table schema); | What's the fastest laps during the 1995 season having poles & podiums at 0?.It is not neccessary to use all the tables. |
SELECT County FROM table WHERE IHSAA Class = aaa AND Enrollment < 799 | CREATE TABLE INST, Here is a database schema( table schema); | Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?.It is not neccessary to use all the tables. |
SELECT postcodedistrict FROM table_name_76 WHERE location = "eden park" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the Post code district that is in Eden Park?It is not neccessary to use all the tables. |
SELECT record FROM table_name_89 WHERE class = "3a" AND sport = "volleyball" | CREATE TABLE INST, Here is a database schema( table schema); | What is the team's record in 3a volleyball?It is not neccessary to use all the tables. |
SELECT First Appearance FROM table WHERE Played by = Obdul Reid | CREATE TABLE INST, Here is a database schema( table schema); | What is the first appearance of the character played by Obdul Reid?.It is not neccessary to use all the tables. |
SELECT points FROM table_14342367_7 WHERE player = "Albert Herrnstein" | CREATE TABLE INST, Here is a database schema( table schema); | How many points did Albert Herrnstein make?It is not neccessary to use all the tables. |
SELECT Website FROM table WHERE Ofsted < 106478 AND Locality = atherton | CREATE TABLE INST, Here is a database schema( table schema); | What website has an Ofsted less than 106478 in Atherton?.It is not neccessary to use all the tables. |
SELECT "Date" FROM table_60685 WHERE "Score" = '6–4, 6–4' AND "Opponent" = 'leonardo tavares' | CREATE TABLE INST, Here is a database schema( table schema); | What date was the match against leonardo tavares with a score of 6 4, 6 4?It is not neccessary to use all the tables. |
SELECT "Position" FROM table_36574 WHERE "F/Laps" = 'test driver' | CREATE TABLE INST, Here is a database schema( table schema); | Which position had f/laps that was test driver?It is not neccessary to use all the tables. |
SELECT SUM(draws) FROM table_name_72 WHERE against > 1228 AND wins < 1 | CREATE TABLE INST, Here is a database schema( table schema); | What's the sum of draws for against larger than 1228 with fewer than 1 wins?It is not neccessary to use all the tables. |
SELECT result FROM table_name_84 WHERE date = "bye" | CREATE TABLE INST, Here is a database schema( table schema); | What was the result when they had their bye week?It is not neccessary to use all the tables. |
SELECT MAX(theaters) FROM table_name_83 WHERE rank > 7 | CREATE TABLE INST, Here is a database schema( table schema); | Name the Theaters that has a Rank larger than 7?It is not neccessary to use all the tables. |
SELECT MAX Position FROM table WHERE Club = Sheffield Eagles | CREATE TABLE INST, Here is a database schema( table schema); | What position did the sheffield eagles finish in?.It is not neccessary to use all the tables. |
SELECT "Name of Deity" FROM table_44784 WHERE "Name of the State where found in India" = 'bihar' | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the deity that the state of Bihar was named after?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE To par = –3 AND Score = 73-68=141 | CREATE TABLE INST, Here is a database schema( table schema); | what player has To par of –3, and a Score of 73-68=141?.It is not neccessary to use all the tables. |
SELECT MAX Release date FROM table WHERE Label = ariola AND Country = spain | CREATE TABLE INST, Here is a database schema( table schema); | What was the latest release date for Ariola in Spain?.It is not neccessary to use all the tables. |
SELECT MAX(round) FROM table_18095719_2 WHERE circuit = "AVUS" | CREATE TABLE INST, Here is a database schema( table schema); | What round was circuit Avus?It is not neccessary to use all the tables. |
SELECT COUNT engine type FROM table WHERE model = 2.4 AWD | CREATE TABLE INST, Here is a database schema( table schema); | How many have are model 2.4 awd?.It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE County = rockingham | CREATE TABLE INST, Here is a database schema( table schema); | Where was the county of rockingham?.It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_name_28 WHERE winner = "phil anderson" | CREATE TABLE INST, Here is a database schema( table schema); | What is the latest year when Phil Anderson won?It is not neccessary to use all the tables. |
SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of the land in sq mi with an ansi code less than 1036538 a 2010 population less than 42 a longitude greater than -99.442872 and more than 0.882 sq mi of water?It is not neccessary to use all the tables. |
SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID | CREATE TABLE INST, Here is a database schema( table schema); | Show the names of trains and locations of railways they are in.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Total = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result for the total of 12?.It is not neccessary to use all the tables. |
SELECT _percentage_yes FROM table_256286_45 WHERE no_votes = 199174 | CREATE TABLE INST, Here is a database schema( table schema); | What was the percentage of yes votes for the measure where the no votes number 199174?It is not neccessary to use all the tables. |
SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets" | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest attendance for the game after week 1 against the New York Jets?It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Away team = essendon | CREATE TABLE INST, Here is a database schema( table schema); | In what venue was the hosted away team Essendon?.It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE To par = e | CREATE TABLE INST, Here is a database schema( table schema); | Which country has a to par of e?.It is not neccessary to use all the tables. |
SELECT Proto-Austronesian FROM table WHERE Proto-Oceanic = *pine, *papine | CREATE TABLE INST, Here is a database schema( table schema); | Name the proto-austrronesian for *pine, *papine.It is not neccessary to use all the tables. |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND flight.departure_time > 1800 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0 | CREATE TABLE INST, Here is a database schema( table schema); | what nonstop flights between ATLANTA and WASHINGTON leave ATLANTA after 1800 o'clock pmIt is not neccessary to use all the tables. |
SELECT a330 FROM table_name_62 WHERE a310 = "b10" | CREATE TABLE INST, Here is a database schema( table schema); | What is the A330 for A310 B10?It is not neccessary to use all the tables. |
SELECT Mountains classification FROM table WHERE Stage = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which mountains classification is listed under stage 3?.It is not neccessary to use all the tables. |
SELECT COUNT(average) FROM table_name_6 WHERE caps < 69 AND scotland_career = "1986–1998" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average cap number in scotland in 1986–1998 leass than 69?It is not neccessary to use all the tables. |
SELECT Speed FROM table WHERE Points = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What was the speed of the rider that earned 1 point?.It is not neccessary to use all the tables. |
SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2 | CREATE TABLE INST, Here is a database schema( table schema); | How many bronze's on average for nations with over 1 total less than 2 golds ranked 2nd?It is not neccessary to use all the tables. |
SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2011 when the Tournament was the grand slam tournaments?It is not neccessary to use all the tables. |
SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the incumbent when henry e. barbour ran?It is not neccessary to use all the tables. |
SELECT country FROM table_name_56 WHERE player = "jack nicklaus" | CREATE TABLE INST, Here is a database schema( table schema); | What is Country when Player is "Jack Nicklaus"?It is not neccessary to use all the tables. |
SELECT status FROM table_name_16 WHERE opposing_teams = "italy" | CREATE TABLE INST, Here is a database schema( table schema); | What is Status when Opposing Teams is "Italy"?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Top-5 > 1 AND Top-25 = 13 AND Wins = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.icd9_code = "3727" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients with government insurance had the procedure icd9 code as 3727?It is not neccessary to use all the tables. |
SELECT notes FROM table_name_86 WHERE time = "7:38.87" | CREATE TABLE INST, Here is a database schema( table schema); | what is the notes for the athlete with the time of 7:38.87?It is not neccessary to use all the tables. |
SELECT Res. FROM table WHERE Type = ko AND Opponent = cliff beckett | CREATE TABLE INST, Here is a database schema( table schema); | What was the resolution for KO opposing Cliff Beckett?.It is not neccessary to use all the tables. |
SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%" | CREATE TABLE INST, Here is a database schema( table schema); | how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%It is not neccessary to use all the tables. |
SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous" | CREATE TABLE INST, Here is a database schema( table schema); | Name the result for already famousIt is not neccessary to use all the tables. |
SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = "t10" AND player = "denny shute" AND to_par > 12 | CREATE TABLE INST, Here is a database schema( table schema); | Which average money has a Place of t10 and a Player of denny shute and a To par larger than 12?It is not neccessary to use all the tables. |
SELECT MAX(january) FROM table_27539272_7 WHERE record = "15-29-3" | CREATE TABLE INST, Here is a database schema( table schema); | On what day in January was the record 15-29-3?It is not neccessary to use all the tables. |
SELECT Driver FROM table WHERE Chassis = t45 t44 AND Rounds = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What was the driver with chassis of t45 t44 and rounds of 7?.It is not neccessary to use all the tables. |
SELECT MIN Pick FROM table WHERE Team = boston celtics | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest pick number for the Boston Celtics?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the Country that has the Score of 69-72-67-71=279?It is not neccessary to use all the tables. |
SELECT ont FROM table_name_5 WHERE nb = "10" AND normal_total = "77" | CREATE TABLE INST, Here is a database schema( table schema); | Name the Ont of N.B. of 10 and normal total of 77It is not neccessary to use all the tables. |
SELECT country FROM table_name_34 WHERE winner = "ole ellefsæter" | CREATE TABLE INST, Here is a database schema( table schema); | What country was ole ellefsæter from?It is not neccessary to use all the tables. |
SELECT installation_date FROM table_21821014_1 WHERE location = "El Paso, Texas" | CREATE TABLE INST, Here is a database schema( table schema); | What was the installation date in El Paso Texas?It is not neccessary to use all the tables. |
SELECT COUNT FL Cup Goals FROM table WHERE Division = one AND Other Apps > 3 AND FA Cup Goals > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?.It is not neccessary to use all the tables. |
SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 | CREATE TABLE INST, Here is a database schema( table schema); | Create a bar chart showing the number of meter 200 across meter 200It is not neccessary to use all the tables. |
SELECT "Non-Resident Head of Mission" FROM table_62108 WHERE "Local Location" = 'warsaw' AND "Mission" = 'poland' | CREATE TABLE INST, Here is a database schema( table schema); | What is Non-Resident Head of Mission, when Local Location is 'Warsaw', and when Mission is 'Poland'?It is not neccessary to use all the tables. |
SELECT 2007 FROM table WHERE 2006 = 236 | CREATE TABLE INST, Here is a database schema( table schema); | What 2007 has 236 for 2006?.It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Player = mike dennis | CREATE TABLE INST, Here is a database schema( table schema); | What position does Mike Dennis play?.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.