sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Time/Retired FROM table WHERE Laps < 62 AND Constructor = ferrari
CREATE TABLE INST, Here is a database schema( table schema);
What time did the ferrari car that finished 62 laps have?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_61 WHERE championship = "palermo, italy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface of the palermo italy championship?It is not neccessary to use all the tables.
SELECT team FROM table_11094950_1 WHERE location = "Highland Township"
CREATE TABLE INST, Here is a database schema( table schema);
Which teams are located in highland township?It is not neccessary to use all the tables.
SELECT position FROM table_name_53 WHERE player = "magnus nygren"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Position when Player is "Magnus Nygren"?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE School = Brisbane Girls' Grammar School
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the school named Brisbane Girls' Grammar School?.It is not neccessary to use all the tables.
SELECT agency FROM table_name_32 WHERE birthday = "1998.11.09"
CREATE TABLE INST, Here is a database schema( table schema);
What's the agency of the member born on 1998.11.09?It is not neccessary to use all the tables.
SELECT circuit FROM table_name_58 WHERE winning_driver = "luigi villoresi" AND name = "lausanne grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
What circuit did Luigi Villoresi win the Lausanne Grand Prix?It is not neccessary to use all the tables.
SELECT MAX Assists FROM table WHERE Points = 129-3.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the most assists for points 129-3.9?.It is not neccessary to use all the tables.
SELECT distance FROM table_name_24 WHERE race = "sam's town 250"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance of the Sam's town 250 race?It is not neccessary to use all the tables.
SELECT COUNT Date FROM table WHERE Tie no = 12
CREATE TABLE INST, Here is a database schema( table schema);
How many dates are there for tie number 12?.It is not neccessary to use all the tables.
SELECT Polling organisation/client FROM table WHERE Others = 7%
CREATE TABLE INST, Here is a database schema( table schema);
When the others had a value of 7%, what was the Polling organisation/client?.It is not neccessary to use all the tables.
SELECT Indigenous mining production 2006 FROM table WHERE % of world demand = 3.4%
CREATE TABLE INST, Here is a database schema( table schema);
What is the indigenous mining production of the country that uses 3.4% of the world demand?.It is not neccessary to use all the tables.
SELECT MAX Extra points FROM table WHERE Position = Right halfback
CREATE TABLE INST, Here is a database schema( table schema);
Name the most extra points for right halfback.It is not neccessary to use all the tables.
SELECT result FROM table_name_55 WHERE competition = "1990 world cup qualifying"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the 1990 world cup qualifying competition?It is not neccessary to use all the tables.
SELECT winner_nominee_s_ FROM table_name_27 WHERE year = 2001
CREATE TABLE INST, Here is a database schema( table schema);
Who were the winner and nominees in 2001?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 prescriptions.drug = "Milrinone"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose drug name is milrinone?It is not neccessary to use all the tables.
SELECT Film FROM table WHERE Date = 22/3/06 AND Recipient = redhouse lane / perfect world
CREATE TABLE INST, Here is a database schema( table schema);
What is the film dated 22/3/06 and redhouse lane / perfect world was the recipient?.It is not neccessary to use all the tables.
SELECT Prothrombin time FROM table WHERE Partial thromboplastin time = Prolonged AND Bleeding time = Prolonged
CREATE TABLE INST, Here is a database schema( table schema);
If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick # < 278 AND Player = charles benson
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Pick # lower than 278 for Player Charles Benson?.It is not neccessary to use all the tables.
SELECT League FROM table WHERE School = reed
CREATE TABLE INST, Here is a database schema( table schema);
In what League is the Reed School?.It is not neccessary to use all the tables.
SELECT SUM Week FROM table WHERE Opponent = oakland raiders
CREATE TABLE INST, Here is a database schema( table schema);
On which week was the opponent the oakland raiders?.It is not neccessary to use all the tables.
SELECT COUNT(1 AS st_runner_up) FROM table_30007801_1 WHERE country_territory = "Jamaica"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of 1st runner up values for Jamaica?It is not neccessary to use all the tables.
SELECT "Date" FROM table_74977 WHERE "Record" = '14-28'
CREATE TABLE INST, Here is a database schema( table schema);
What date did the Indians have a record of 14-28?It is not neccessary to use all the tables.
SELECT series_1 FROM table_name_13 WHERE series_11 = "peter jones"
CREATE TABLE INST, Here is a database schema( table schema);
Which Series 1 has a Series 11 of peter jones?It is not neccessary to use all the tables.
SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 1
CREATE TABLE INST, Here is a database schema( table schema);
What shows for bronze when silver is 1 rank is smaller than 4 and gold is larger than 1?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE School = lacrosse
CREATE TABLE INST, Here is a database schema( table schema);
Where is the lacrosse school located?.It is not neccessary to use all the tables.
SELECT score_points FROM table_name_65 WHERE total = "olympic bronze medalist"
CREATE TABLE INST, Here is a database schema( table schema);
With Olympic Bronze Medalist as the total what are the score points?It is not neccessary to use all the tables.
SELECT country FROM table_name_94 WHERE iata = "osl"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Country when the IATA was osl?It is not neccessary to use all the tables.
SELECT Brian Moran FROM table WHERE Source = Survey USA AND Creigh Deeds = 26%
CREATE TABLE INST, Here is a database schema( table schema);
What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Candidates = Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%
CREATE TABLE INST, Here is a database schema( table schema);
Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?.It is not neccessary to use all the tables.
SELECT MAX("Transit Passengers") FROM table_19019 WHERE "Freight (Metric Tonnes)" = '171078'
CREATE TABLE INST, Here is a database schema( table schema);
Name the transit passengers for 171078It is not neccessary to use all the tables.
SELECT Money ( $ ) FROM table WHERE Player = larry nelson
CREATE TABLE INST, Here is a database schema( table schema);
How much did Larry Nelson win?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What did Melbourne score as the home team?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Lane < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rank for the lane before 2?.It is not neccessary to use all the tables.
SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?It is not neccessary to use all the tables.
SELECT score FROM table_name_79 WHERE date = "january 26"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on January 26?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_27882867_9 WHERE team = "Milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the location and attendance when they played milwaukee?It is not neccessary to use all the tables.
SELECT "Category" FROM table_10587 WHERE "Nominee" = 'michael stewart'
CREATE TABLE INST, Here is a database schema( table schema);
Which category was Michael Stewart a nominee in?It is not neccessary to use all the tables.
SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of IATA that has a Airport of berlin schönefeld airport?It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_2 WHERE rider = "aleix espargaro"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Grid, when Rider is Aleix Espargaro?It is not neccessary to use all the tables.
SELECT COUNT(high_rebounds) FROM table_22822559_4 WHERE date = "November 27"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total number of rebounds on november 27?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
CREATE TABLE INST, Here is a database schema( table schema);
How many customers have email that contains "gmail.com"?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE 2010 = 4r
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament had a 2010 finish of 4R?.It is not neccessary to use all the tables.
SELECT COUNT(bronze) FROM table_name_81 WHERE total < "11" AND rank = "11" AND gold < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes have a total less than 11 with 11 as the rank and a gold less than 1?It is not neccessary to use all the tables.
SELECT SUM(crowd) FROM table_name_18 WHERE home_team = "south melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the crowd for the home team of South Melbourne?It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Total > 1 AND Bronze < 3 AND Silver > 2 AND Gold > 2
CREATE TABLE INST, Here is a database schema( table schema);
When the total is larger than 1,and the bronze is less than 3, and silver larger than 2, and a gold larger than 2, what is the nation?.It is not neccessary to use all the tables.
SELECT time FROM table_name_15 WHERE week = 2
CREATE TABLE INST, Here is a database schema( table schema);
What time was the game in week 2?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Location Attendance = Madison Square Garden 19,763 AND Record = 39–38
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for madison square garden 19,763 and record is 39–38.It is not neccessary to use all the tables.
SELECT COUNT(captain) FROM table_29398373_2 WHERE team = "Barcelona"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of captains for barcelonaIt is not neccessary to use all the tables.
SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE South = esc holzkirchen AND West = esv buchloe AND North = ehc bayreuth
CREATE TABLE INST, Here is a database schema( table schema);
What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?.It is not neccessary to use all the tables.
SELECT date FROM table_name_87 WHERE home = "los angeles lakers"
CREATE TABLE INST, Here is a database schema( table schema);
When was the home Los Angeles Lakers?It is not neccessary to use all the tables.
SELECT Award Description(s) FROM table WHERE Year > 1994 AND Date = december 6
CREATE TABLE INST, Here is a database schema( table schema);
Which award description has a year later than 1994 with a date of December 6?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Comments
CREATE TABLE INST, Here is a database schema( table schema);
How many undeleted comments are there?.It is not neccessary to use all the tables.
SELECT score FROM table_name_68 WHERE club = "rsc anderlecht"
CREATE TABLE INST, Here is a database schema( table schema);
What scores did the RSC Anderlecht club have?It is not neccessary to use all the tables.
SELECT MAX(goals_for) FROM table_name_15 WHERE points = "47+9" AND played < 38
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were scored by the team that played less than 38 games and had points of 47+9?It is not neccessary to use all the tables.
SELECT species FROM table_name_22 WHERE genes > 2 OFFSET 030
CREATE TABLE INST, Here is a database schema( table schema);
What species has more than 2030 genes?It is not neccessary to use all the tables.
SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Homeport that has a Laid down on 14 december 1985?It is not neccessary to use all the tables.
SELECT cons FROM table_name_19 WHERE lib_dem = "8%" AND lead = "27%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the cons for lib dem of 8% and a lead of 27%It is not neccessary to use all the tables.
SELECT steals FROM table_23346303_4 WHERE player = "Jasmine Wynne"
CREATE TABLE INST, Here is a database schema( table schema);
How many steals did jasmine wynne have?It is not neccessary to use all the tables.
SELECT series_sorted FROM table_1620397_5 WHERE _number = 3
CREATE TABLE INST, Here is a database schema( table schema);
What series was sorted at number 3?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_38 WHERE opponent = "philadelphia eagles"
CREATE TABLE INST, Here is a database schema( table schema);
Opponent of Philadelphia eagles had what attendance?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score that played at Kardinia Park?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_44 WHERE score = "92-111"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Score of 92-111?It is not neccessary to use all the tables.
SELECT "Date" FROM table_47391 WHERE "Winning score" = '–7 (67-72-69-69=277)'
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the match with a winning score of 7 (67-72-69-69=277)?It is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"
CREATE TABLE INST, Here is a database schema( table schema);
How many titles are given for the episode directed by Joanna Kerns?It is not neccessary to use all the tables.
SELECT Performance Liaison FROM table WHERE Dramaturge = Chrisena Ricci
CREATE TABLE INST, Here is a database schema( table schema);
Who were the performance liaisons for the dramaturge Chrisena Ricci?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on April 13 2008 when Itabuna was the away team?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-60616' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1))
CREATE TABLE INST, Here is a database schema( table schema);
has patient 015-60616 been prescribed any medications in the first hospital encounter.It is not neccessary to use all the tables.
SELECT Father FROM table WHERE Spouse = ottokar ii AND Birth = 1204
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the father who was born in 1204 and married ottokar ii?.It is not neccessary to use all the tables.
SELECT h___a FROM table_name_4 WHERE date = "29 july 1992"
CREATE TABLE INST, Here is a database schema( table schema);
What was the H/A on 29 july 1992?It is not neccessary to use all the tables.
SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15.250"
CREATE TABLE INST, Here is a database schema( table schema);
What horizontal bar score also has a pommel horse score of 15.250?It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Endowment = $25.9M
CREATE TABLE INST, Here is a database schema( table schema);
Which institution has an endowment of $25.9m?.It is not neccessary to use all the tables.
SELECT date FROM table_name_77 WHERE record = "88-74"
CREATE TABLE INST, Here is a database schema( table schema);
Question does not make sense since there was no record of 88-74It is not neccessary to use all the tables.
SELECT Nationality / Opponent FROM table WHERE Competition = welsh rugby union challenge trophy AND Result = 38-29
CREATE TABLE INST, Here is a database schema( table schema);
Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?.It is not neccessary to use all the tables.
SELECT proto_germanic_origin FROM table_name_2 WHERE sound__phoneme_ = "/[[|j]]/"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Proto-Germanic origin of the phoneme /[[|j]]/?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_name_4 WHERE record = "35-28"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location/ attendance for a 35-28 record?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Opponent = chris barden
CREATE TABLE INST, Here is a database schema( table schema);
What is the event where the opponent was Chris Barden?.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id
CREATE TABLE INST, Here is a database schema( table schema);
For CS majors what are the upper level electives offered ?It is not neccessary to use all the tables.
SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year when chief justice Mark Cady was appointed/elected?It is not neccessary to use all the tables.
SELECT Order Part Number FROM table WHERE Mult. 1 = 10x
CREATE TABLE INST, Here is a database schema( table schema);
What is the oder part number for the model with 10x mult. 1?.It is not neccessary to use all the tables.
SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+"
CREATE TABLE INST, Here is a database schema( table schema);
What are the total casualties with 1200+ military and/or civilian wounded?It is not neccessary to use all the tables.
SELECT Tournament Winner FROM table WHERE Conference = Border Conference
CREATE TABLE INST, Here is a database schema( table schema);
When the Border Conference was held, who was the tournament winner?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Loss = tavárez
CREATE TABLE INST, Here is a database schema( table schema);
When did tavárez lose?.It is not neccessary to use all the tables.
SELECT home FROM table_name_56 WHERE date = "january 6"
CREATE TABLE INST, Here is a database schema( table schema);
Who played the home team during the game on January 6?It is not neccessary to use all the tables.
SELECT Exists? FROM table WHERE Director = ray jenkins
CREATE TABLE INST, Here is a database schema( table schema);
What is the Exists when Ray Jenkins is the director?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Institution = Calvin College
CREATE TABLE INST, Here is a database schema( table schema);
which categories fit under the institution calvin college?.It is not neccessary to use all the tables.
SELECT japanese_title FROM table_name_44 WHERE disc < 12 AND artist = "kōzō murashita"
CREATE TABLE INST, Here is a database schema( table schema);
Which Japanese title has a Disc smaller than 12 and an Artist of kōzō murashita?It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Game = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponents for game 5.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_59 WHERE developer_s_ = "bioware"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the developer(s) Bioware?It is not neccessary to use all the tables.
SELECT office FROM table_name_63 WHERE republican_ticket = "daniel h. conway"
CREATE TABLE INST, Here is a database schema( table schema);
Which Office has a Republican ticket of daniel h. conway?It is not neccessary to use all the tables.
SELECT Visitor FROM table 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 Venue FROM table WHERE Runs = 274
CREATE TABLE INST, Here is a database schema( table schema);
Where was the venue that had 274 runs?.It is not neccessary to use all the tables.
SELECT Programming FROM table WHERE Channel = 26.5
CREATE TABLE INST, Here is a database schema( table schema);
Which Programming is on Channel 26.5?.It is not neccessary to use all the tables.
SELECT 1978 FROM table WHERE 1976 = 62%
CREATE TABLE INST, Here is a database schema( table schema);
What 1978 has a 1976 of 62%?.It is not neccessary to use all the tables.
SELECT result FROM table_name_16 WHERE time = "7:00 pm"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score for the game played at 7:00 pm?It is not neccessary to use all the tables.
SELECT COUNT Try bonus FROM table WHERE Won = 11
CREATE TABLE INST, Here is a database schema( table schema);
what amount of try bonus where the game was won by 11?.It is not neccessary to use all the tables.
SELECT "Type" FROM table_44969 WHERE "Averaging Time" = '1-hour' AND "Standard" = '0.12 ppm (235 μg/m³)'
CREATE TABLE INST, Here is a database schema( table schema);
what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 g/m )?It is not neccessary to use all the tables.
SELECT AVG Total Goals FROM table WHERE League Cup Goals > 0 AND FA Cup Goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0?.It is not neccessary to use all the tables.
SELECT * FROM Posts WHERE OwnerUserId = '##userid##'
CREATE TABLE INST, Here is a database schema( table schema);
Show all posts based on User ID.It is not neccessary to use all the tables.