sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Scoring average FROM table WHERE Year < 1998 AND Wins > 3
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the scoring average for year less than 1998 and wins more than 3.It is not neccessary to use all the tables.
SELECT 02:00 AM FROM table WHERE Time = monday
CREATE TABLE INST, Here is a database schema( table schema);
Which show is on at 02:00 AM on Monday?.It is not neccessary to use all the tables.
SELECT COUNT -Butadiene FROM table WHERE 10 4 k /min −1 (30 °C) (± 1-2%) relative = 1.93
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of butadiene for 1.93.It is not neccessary to use all the tables.
SELECT railway_number_s_ FROM table_name_28 WHERE class = "d(rebuild)"
CREATE TABLE INST, Here is a database schema( table schema);
What's the railway number of a D(rebuild) class?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Format = cd maxi
CREATE TABLE INST, Here is a database schema( table schema);
Which region had the CD maxi format?.It is not neccessary to use all the tables.
SELECT artist FROM table_name_89 WHERE theme = "billboard #1"
CREATE TABLE INST, Here is a database schema( table schema);
What artist's song was performed in the week with theme of Billboard #1?It is not neccessary to use all the tables.
SELECT commander FROM table_11793221_4 WHERE complement = "167 off 2348 men"
CREATE TABLE INST, Here is a database schema( table schema);
Name the commander of 167 off 2348 menIt is not neccessary to use all the tables.
SELECT 1976 FROM table WHERE Tournament = australian open
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1976 value of the Australian Open?.It is not neccessary to use all the tables.
SELECT method FROM table_name_3 WHERE time = "5:00" AND record = "14–6–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the method when the time is 5:00 and the record is 14–6–1?It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Losses < 1 AND Teams = rams AND Games > 8
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?.It is not neccessary to use all the tables.
SELECT FCC info FROM table WHERE City of license = harmony township, new jersey
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me what is FCC info for harmony township, new jersey?.It is not neccessary to use all the tables.
SELECT 1st Member FROM table WHERE Election = 1895
CREATE TABLE INST, Here is a database schema( table schema);
Which 1st Member has an Election of 1895?.It is not neccessary to use all the tables.
SELECT DISTINCT course_offering.section_number FROM course, course_offering, semester WHERE course_offering.monday = 'N' AND course.course_id = course_offering.course_id AND course.department = 'ELI' AND course.number = 320 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.ye...
CREATE TABLE INST, Here is a database schema( table schema);
Next semester , are there any ELI 320 sections that are not on Monday ?It is not neccessary to use all the tables.
SELECT gt_winning_team FROM table_27743641_2 WHERE results = "Report"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the GT winning team when the results were "report"?It is not neccessary to use all the tables.
SELECT Liberal ticket FROM table WHERE Free Libertarian ticket = jack a. martin
CREATE TABLE INST, Here is a database schema( table schema);
The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket?.It is not neccessary to use all the tables.
SELECT h264 FROM table_26099252_1 WHERE theora = "2.3"
CREATE TABLE INST, Here is a database schema( table schema);
When theora is 2.3 how much is the h.264?It is not neccessary to use all the tables.
SELECT AVG Drawn FROM table WHERE Difference = 17 AND Points = 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of drawn with a difference of 17 and 22 points?.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Gold = 0 AND Rank > 14 AND Total = 1 AND Silver < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?.It is not neccessary to use all the tables.
SELECT COUNT Total Rebounds FROM table WHERE Player = herb estes
CREATE TABLE INST, Here is a database schema( table schema);
How many rebounds have a Player of herb estes?.It is not neccessary to use all the tables.
SELECT COUNT Home Town FROM table WHERE # = 32
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of home town for number being 32.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Acquisition via = trade AND School/Club Team = east
CREATE TABLE INST, Here is a database schema( table schema);
What season did School/Club Team, East have an Acquisition via of trade?.It is not neccessary to use all the tables.
SELECT race_title FROM table_name_8 WHERE team = "jps team bmw" AND circuit = "oran park raceway"
CREATE TABLE INST, Here is a database schema( table schema);
What is the race title of the Oran Park raceway circuit with team jps team bmw?It is not neccessary to use all the tables.
SELECT Class / type FROM table WHERE Location = trieste
CREATE TABLE INST, Here is a database schema( table schema);
What is the class/type at Trieste?.It is not neccessary to use all the tables.
SELECT County FROM table WHERE Median household income = $37,230
CREATE TABLE INST, Here is a database schema( table schema);
Which County has a Median household income of $37,230?.It is not neccessary to use all the tables.
SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = "13 March 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What manner of departure is listed with an appointment date of 13 march 2008It is not neccessary to use all the tables.
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
CREATE TABLE INST, Here is a database schema( table schema);
What character did Lisa Davina Phillip portray?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 73-71=144 AND Player = scott simpson
CREATE TABLE INST, Here is a database schema( table schema);
What is Place, when Score is "73-71=144", and when Player is "Scott Simpson"?.It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6
CREATE TABLE INST, Here is a database schema( table schema);
How many totals have a Bronze smaller than 3 a Nation of zimbabwe and a Silver smaller than 6?It is not neccessary to use all the tables.
SELECT Rounds FROM table WHERE Team = avanzza rosso
CREATE TABLE INST, Here is a database schema( table schema);
In what rounds was the featured team of Avanzza Rosso?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Laps < 130 AND Year = 1951
CREATE TABLE INST, Here is a database schema( table schema);
Name the rank for laps less than 130 and year of 1951.It is not neccessary to use all the tables.
SELECT MAX(free_throws) FROM table_23183195_5 WHERE steals = 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the most free throws for 4 stealsIt is not neccessary to use all the tables.
SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5
CREATE TABLE INST, Here is a database schema( table schema);
List the names of 5 users followed by the largest number of other users.It is not neccessary to use all the tables.
SELECT venue FROM table_name_64 WHERE score = "20½–11½"
CREATE TABLE INST, Here is a database schema( table schema);
what is the venue when the score is 20½–11½?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Time = 8:17
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after the fight that lasted 8:17?.It is not neccessary to use all the tables.
SELECT Academy Award FROM table WHERE Film = educating peter
CREATE TABLE INST, Here is a database schema( table schema);
What is the Academy Award for the Film Educating Peter?.It is not neccessary to use all the tables.
SELECT main_location FROM table_2076533_1 WHERE control = "Public" AND type = "Masters university"
CREATE TABLE INST, Here is a database schema( table schema);
Name the main location for public and masters universityIt is not neccessary to use all the tables.
SELECT Note FROM table WHERE Year > 2003
CREATE TABLE INST, Here is a database schema( table schema);
What was the note with a year after 2003?.It is not neccessary to use all the tables.
SELECT Local/Networked FROM table WHERE Show Name = nightline
CREATE TABLE INST, Here is a database schema( table schema);
What Local/Networked has a Show Name of nightline?.It is not neccessary to use all the tables.
SELECT Largest ethnic group (2002) FROM table WHERE Cyrillic Name Other Names = Пачир (Hungarian: Pacsér)
CREATE TABLE INST, Here is a database schema( table schema);
What are the largest ethnic groups where the cyrillic name and other names is пачир (hungarian: pacsér)?.It is not neccessary to use all the tables.
SELECT Writer FROM book ORDER BY Writer
CREATE TABLE INST, Here is a database schema( table schema);
List the writers of the books in ascending alphabetical order.It is not neccessary to use all the tables.
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T2.Revenue DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, give me the comparison about revenue over the name , and group by attribute founder by a bar chart, could you show Y from high to low order?It is not neccessary to use all the tables.
SELECT writer_s_ FROM table_name_5 WHERE film = "jehovah's witness"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the film Jehovah's Witness?It is not neccessary to use all the tables.
SELECT headquarters FROM table_1610301_1 WHERE code = "HY"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the headquarters of the place whose abbreviation is hy?It is not neccessary to use all the tables.
SELECT MAX Year named FROM table
CREATE TABLE INST, Here is a database schema( table schema);
When was the most recently named feature named?.It is not neccessary to use all the tables.
SELECT length FROM table_1773707_2 WHERE body_style = "500 E"
CREATE TABLE INST, Here is a database schema( table schema);
What's the length of the model with 500 E body style?It is not neccessary to use all the tables.
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'furosemide 10 mg/ml inj soln'
CREATE TABLE INST, Here is a database schema( table schema);
tell me the intake method for furosemide 10 mg/ml inj soln?It is not neccessary to use all the tables.
SELECT 2007 AS _08_season FROM table_name_49 WHERE club = "genoa c.f.c."
CREATE TABLE INST, Here is a database schema( table schema);
Which 2007–08 season has a Club of genoa c.f.c.?It is not neccessary to use all the tables.
SELECT MAX("Against") FROM table_37850 WHERE "Difference" = '- 20' AND "Position" < '17'
CREATE TABLE INST, Here is a database schema( table schema);
Difference of - 20, and a Position smaller than 17 is the highest against?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Location Attendance = madison square garden unknown AND High points = alonzo mourning (24)
CREATE TABLE INST, Here is a database schema( table schema);
What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Episode # = 9-10
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of episode number 9-10?.It is not neccessary to use all the tables.
SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"
CREATE TABLE INST, Here is a database schema( table schema);
On what day did tommy ellis drive?It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Lead = tony angiboust
CREATE TABLE INST, Here is a database schema( table schema);
What is the skip when Tony Angiboust was a lead?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_49 WHERE record = "4-3"
CREATE TABLE INST, Here is a database schema( table schema);
What visiting team has a record of 4-3?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_26 WHERE total > 73 AND gold > 44 AND bronze > 76
CREATE TABLE INST, Here is a database schema( table schema);
What was the average rank for team with more than 44 gold more and 76 bronze and a higher total than 73?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 53863) AND microbiologyevents.spec_type_desc = 'staph aureus screen' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.charttime) <=...
CREATE TABLE INST, Here is a database schema( table schema);
did any organisms were found in patient 53863's first staph aureus screen microbiology test until 03/2101?It is not neccessary to use all the tables.
SELECT DISTINCT address_type_code FROM customer_addresses
CREATE TABLE INST, Here is a database schema( table schema);
What are the distinct address type codes for all customer addresses?It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Date = October 27
CREATE TABLE INST, Here is a database schema( table schema);
How many points were there scored on October 27?.It is not neccessary to use all the tables.
SELECT category FROM table_name_41 WHERE year = 1991
CREATE TABLE INST, Here is a database schema( table schema);
Which category had a year of 1991?It is not neccessary to use all the tables.
SELECT SUM(swimsuit) FROM table_name_48 WHERE preliminaries < 8.27
CREATE TABLE INST, Here is a database schema( table schema);
What is the total swimsuit with Preliminaries smaller than 8.27?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE First elected = 1818
CREATE TABLE INST, Here is a database schema( table schema);
Who was the ran as an incumbent leader first in 1818?.It is not neccessary to use all the tables.
SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham"
CREATE TABLE INST, Here is a database schema( table schema);
what is the location when the year is less than 1998 and the international captain is david graham?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = Todd Wise
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player Todd Wise play in?.It is not neccessary to use all the tables.
SELECT winner FROM table_name_33 WHERE loser = "baltimore colts" AND location = "schaefer stadium" AND result = "42-3"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Winner when the Loser is the Baltimore Colts when the Location is Schaefer Stadium and when the Result is 42-3?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Rank > 2 AND Lane = 1 AND Nationality = hong kong
CREATE TABLE INST, Here is a database schema( table schema);
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_name_17 WHERE location_attendance = "philips arena 12,088"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high rebounds in Philips Arena 12088?It is not neccessary to use all the tables.
SELECT weight_at_birth FROM table_name_24 WHERE meaning = "god knows my journey"
CREATE TABLE INST, Here is a database schema( table schema);
How much did the baby who name means God knows my journey weigh at birth?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What date did the Away team, North Melbourne, play Geelong?.It is not neccessary to use all the tables.
SELECT 1896 No game FROM table WHERE 1894 WSU 10–0 Moscow = 1994 No game
CREATE TABLE INST, Here is a database schema( table schema);
When 1994 no game is the 1894 wsu 10–0 moscow what is the 1896 no game?.It is not neccessary to use all the tables.
SELECT Draw FROM table WHERE Language = English AND English Meaning = Eyes That Never Lie
CREATE TABLE INST, Here is a database schema( table schema);
What was the draw for the english meaning Eyes that Never Lie?.It is not neccessary to use all the tables.
SELECT SUM(area_km_2) FROM table_name_66 WHERE population = 542
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the areas for populations of 542?It is not neccessary to use all the tables.
SELECT MAX No. in series FROM table WHERE Title = "Mean Teacher"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number in the series is "mean teacher"?.It is not neccessary to use all the tables.
SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of customers who have both saving and checking account types.It is not neccessary to use all the tables.
SELECT COUNT Wins FROM table WHERE Top-10 = 2 AND Events > 8 AND Cuts made > 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of wins that has a top-10 of 2, and more events than 8, more cuts than 6?.It is not neccessary to use all the tables.
SELECT score FROM table_name_86 WHERE date = "23 july 1992"
CREATE TABLE INST, Here is a database schema( table schema);
I want the score for 23 july 1992It is not neccessary to use all the tables.
SELECT result FROM table_name_99 WHERE attendance = "bye"
CREATE TABLE INST, Here is a database schema( table schema);
Which Result has an Attendance of bye?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_1 WHERE venue = "lake oval"
CREATE TABLE INST, Here is a database schema( table schema);
What home team played at Lake Oval?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "28803"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients have diagnoses icd9 code 28803?It is not neccessary to use all the tables.
SELECT MAX Gore Hundred FROM table WHERE Spelthorne Hundred = 12743
CREATE TABLE INST, Here is a database schema( table schema);
When 12743 is the spelthorne what is the largest gore hundred?.It is not neccessary to use all the tables.
SELECT AVG(T1.salary), COUNT(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the number and averaged salary of all instructors who are in the department with the highest budget.It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1341663_11 WHERE incumbent = "Dawson Mathis"
CREATE TABLE INST, Here is a database schema( table schema);
How many parties are there in races involving Dawson Mathis?It is not neccessary to use all the tables.
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of members in ascending order of their rank in rounds.It is not neccessary to use all the tables.
SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom"
CREATE TABLE INST, Here is a database schema( table schema);
Which nominating festival did United Kingdom enter?It is not neccessary to use all the tables.
SELECT Opponent in the final FROM table WHERE Date = 19 february 2006
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent in the final of the match on 19 February 2006?.It is not neccessary to use all the tables.
SELECT results FROM table_1341423_9 WHERE district = "Florida 14"
CREATE TABLE INST, Here is a database schema( table schema);
How did the election in the Florida 14 district end?It is not neccessary to use all the tables.
SELECT AVG("Wins") FROM table_35458 WHERE "Team" = 'norton' AND "Year" = '1966' AND "Points" = '8'
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean number of wins for the norton team in 1966, when there are 8 points?It is not neccessary to use all the tables.
SELECT year FROM table_name_60 WHERE notes = "6.62 m"
CREATE TABLE INST, Here is a database schema( table schema);
What year had 6.62 m in the notes?It is not neccessary to use all the tables.
SELECT COUNT Division FROM table WHERE Reg. Season = 4th
CREATE TABLE INST, Here is a database schema( table schema);
How many teams placed 4th in the regular season?.It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Home team score = 31.9 (195)
CREATE TABLE INST, Here is a database schema( table schema);
How many people were in the crowd when the home team scored 31.9 (195)?.It is not neccessary to use all the tables.
SELECT COUNT("japanese title") FROM table_203_55
CREATE TABLE INST, Here is a database schema( table schema);
what are the total of super chinese games released ?It is not neccessary to use all the tables.
SELECT Ikavian FROM table WHERE Ijekavian = lijep
CREATE TABLE INST, Here is a database schema( table schema);
What's the Ikavian translation of the Ijekavian word lijep?.It is not neccessary to use all the tables.
SELECT Speed (GHz) FROM table WHERE model = W3540
CREATE TABLE INST, Here is a database schema( table schema);
What is the speed of the model whose number is W3540?.It is not neccessary to use all the tables.
SELECT party FROM table_1341930_18 WHERE incumbent = "James H. Morrison"
CREATE TABLE INST, Here is a database schema( table schema);
which affiliation is james h. morrison part ofIt is not neccessary to use all the tables.
SELECT Race FROM table WHERE Runners = 7 AND Odds = 1/3
CREATE TABLE INST, Here is a database schema( table schema);
Which Race has a Runners of 7 and Odds of 1/3?.It is not neccessary to use all the tables.
SELECT artist FROM table_name_41 WHERE year = "1953"
CREATE TABLE INST, Here is a database schema( table schema);
what artist won in 1953It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_1341930_5 WHERE district = "Arkansas 1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of party in the arkansas 1 districtIt is not neccessary to use all the tables.
SELECT 2005 FROM table WHERE 2013 = 1r AND 2011 = q2
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2005 value with 1r in 2013 and q2 in 2011?.It is not neccessary to use all the tables.
SELECT episode FROM table_19930660_3 WHERE rufus_guest = "Chris Addison"
CREATE TABLE INST, Here is a database schema( table schema);
Which episodes have Chris Addison as Rufus's guest?It is not neccessary to use all the tables.
SELECT "Apparatus" FROM table_79563 WHERE "Score-Final" < '75.5' AND "Score-Qualifying" < '18.7'
CREATE TABLE INST, Here is a database schema( table schema);
On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7?It is not neccessary to use all the tables.
SELECT laps FROM table_2267857_1 WHERE date = "October 26"
CREATE TABLE INST, Here is a database schema( table schema);
Name the laps of october 26It is not neccessary to use all the tables.
SELECT MAX Goals Against FROM table WHERE Club = dallas burn AND GA Average > 1.46
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?.It is not neccessary to use all the tables.