sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of editors that are on at least two journal committees.It is not neccessary to use all the tables.
SELECT Phase FROM table WHERE Round = matchday 4
CREATE TABLE INST, Here is a database schema( table schema);
Which phase is for the Matchday 4 Round?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/a"
CREATE TABLE INST, Here is a database schema( table schema);
How many total rounds have the results of win and n/a as the method?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
Which venue did the match where Collingwood was the home team take place?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team score = 14.21 (105)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the away team scored 14.21 (105)?.It is not neccessary to use all the tables.
SELECT Poles FROM table WHERE Team(s) = #08 Miller Racing
CREATE TABLE INST, Here is a database schema( table schema);
What are the poles is #08 Miller racing?.It is not neccessary to use all the tables.
SELECT SUM Total Pld FROM table WHERE 2007–08 Pts = 36 AND 2008–09 Pts < 55
CREATE TABLE INST, Here is a database schema( table schema);
What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?.It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Score = 274 (–14) AND Location = tennessee
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the winner when the Score was 274 (–14) in tennessee?.It is not neccessary to use all the tables.
SELECT Opposing Teams FROM table WHERE Date = 24/11/1979
CREATE TABLE INST, Here is a database schema( table schema);
On 24/11/1979, what is the opposing teams?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Round = 17
CREATE TABLE INST, Here is a database schema( table schema);
who was the opponent with round 17?.It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Score = 6–4, 4–6, 7–6 (7–4)
CREATE TABLE INST, Here is a database schema( table schema);
Who are the opponents of Mike Byron and partner in matches where the score was 6–4, 4–6, 7–6 (7–4)?.It is not neccessary to use all the tables.
SELECT SIXTH FROM table WHERE FOURTH = western australia AND FIRST = tasmania
CREATE TABLE INST, Here is a database schema( table schema);
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?.It is not neccessary to use all the tables.
SELECT COUNT Wins FROM table WHERE Tournament = u.s. open AND Top-25 < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?.It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Date = december 5, 2005
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the number of weeks for december 5, 2005.It is not neccessary to use all the tables.
SELECT record FROM table_name_68 WHERE game = 50
CREATE TABLE INST, Here is a database schema( table schema);
What was the Record on Game 50?It is not neccessary to use all the tables.
SELECT "Type" FROM table_49273 WHERE "Opened" = '1982'
CREATE TABLE INST, Here is a database schema( table schema);
Which type opened in 1982?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Candidates = Edwin Gray (DR)
CREATE TABLE INST, Here is a database schema( table schema);
What is the party for the candidates edwin gray (dr)?.It is not neccessary to use all the tables.
SELECT General classification FROM table WHERE Team classification = mapei-clas AND Stage = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the general classification of Mapei-clas in stage 12?.It is not neccessary to use all the tables.
SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sprint classification for michael barryIt is not neccessary to use all the tables.
SELECT COUNT(number_of_electorates__2009_) FROM table_name_97 WHERE name = "govindpura"
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of electorates (2009) when the name is govindpura?It is not neccessary to use all the tables.
SELECT track FROM table_name_28 WHERE artist = "lcd soundsystem"
CREATE TABLE INST, Here is a database schema( table schema);
What is the track that from lcd soundsystem?It is not neccessary to use all the tables.
SELECT date_of_birth__age_ FROM table_name_26 WHERE club_province = "ulster" AND position = "centre"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of birth for the player from Ulster and plays at Centre position?It is not neccessary to use all the tables.
SELECT Victim(s) FROM table WHERE Executed person = Linroy Bottoson
CREATE TABLE INST, Here is a database schema( table schema);
What's the name of Linroy Bottoson's victim?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_18 WHERE laps = 58
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the driver for 58 lapsIt is not neccessary to use all the tables.
SELECT record FROM table_name_86 WHERE high_rebounds = "marcus camby (15)" AND high_assists = "baron davis (7)"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when High Rebounds is "Marcus Camby (15)" and when High Assists is "Baron Davis (7)"?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Nationality = martinique AND Games = 1997 bridgetown
CREATE TABLE INST, Here is a database schema( table schema);
On what date were the 1997 Bridgetown games in which a Martinique girl competed?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM table_203_405 WHERE "attendance" >= 50000
CREATE TABLE INST, Here is a database schema( table schema);
how many games during the season were attended by at least 50,000 people ?It is not neccessary to use all the tables.
SELECT original_airdate FROM table_name_65 WHERE episode__number = "29 (7)"
CREATE TABLE INST, Here is a database schema( table schema);
When did Episode 29 (7) originally air?It is not neccessary to use all the tables.
SELECT Shop_Name, LOCATION FROM shop ORDER BY Shop_Name
CREATE TABLE INST, Here is a database schema( table schema);
What are the names and location of the shops in ascending alphabetical order of name.It is not neccessary to use all the tables.
SELECT MAX(students) FROM table_name_13 WHERE city = "campbell" AND pupil_teacher_ratio > 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25?It is not neccessary to use all the tables.
SELECT no_s_ FROM table_name_29 WHERE school_club_team_country = "virginia"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the player who came from Virginia?It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Home team = minehead
CREATE TABLE INST, Here is a database schema( table schema);
minehead has what tie number?.It is not neccessary to use all the tables.
SELECT white FROM table_name_96 WHERE amerindian = "4,87%"
CREATE TABLE INST, Here is a database schema( table schema);
WHich Category in White has a Amerindian of 487%?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Wind* = n/a
CREATE TABLE INST, Here is a database schema( table schema);
Which Nationality has a Wind* of n/a?.It is not neccessary to use all the tables.
SELECT SUM Labour Party FROM table WHERE Fianna Fáil = 3 AND Total > 9 AND Green Party > 2
CREATE TABLE INST, Here is a database schema( table schema);
How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party?.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.expire_flag = "0" AND procedures.icd9_code = "12"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose death status is 0 and procedure icd9 code is 12?It is not neccessary to use all the tables.
SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3
CREATE TABLE INST, Here is a database schema( table schema);
Who is performer 4 on episode 3 where Jim Sweeney was performer 1?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_16 WHERE score = "2-8"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Opponent when the Score is 2-8?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Last airdate = may 6, 1987
CREATE TABLE INST, Here is a database schema( table schema);
Which season last aired on May 6, 1987?.It is not neccessary to use all the tables.
SELECT T1.birth_country FROM hall_of_fame as T2 JOIN player as T1 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" AND T2.yearid >= 1871
CREATE TABLE INST, Here is a database schema( hall of fame);
What are the birth places of players won on hall of fame since 1871?. It is not neccessary to use all the tables.
SELECT "Burglary" FROM table_28284 WHERE "Forcible rape" = '1233'
CREATE TABLE INST, Here is a database schema( table schema);
How many burglary crimes were committed if the forcible rapes were 1233?It is not neccessary to use all the tables.
SELECT Driving Force EX FROM table WHERE GT Force = yes AND G27 Racing Wheel = 16
CREATE TABLE INST, Here is a database schema( table schema);
GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex?.It is not neccessary to use all the tables.
SELECT "Incumbent" FROM table_38384 WHERE "First elected" > '1884'
CREATE TABLE INST, Here is a database schema( table schema);
Which Incumbent has a First elected larger than 1884?It is not neccessary to use all the tables.
SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for episode 26 in the series?It is not neccessary to use all the tables.
SELECT skip FROM table_name_40 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 height FROM table_14966667_19 WHERE name = "Braxton Kelley"
CREATE TABLE INST, Here is a database schema( table schema);
How tall is Braxton Kelley?It is not neccessary to use all the tables.
SELECT MAX(tor_fløysvik) FROM table_28677723_14 WHERE karianne_gulliksen = 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the most for fløysvik for 8It is not neccessary to use all the tables.
SELECT Long scale FROM table WHERE Power notation = 10 12
CREATE TABLE INST, Here is a database schema( table schema);
For a power notation of 10 12, what is the long scale?.It is not neccessary to use all the tables.
SELECT COUNT("Rank") FROM table_40649 WHERE "Matches" = '205'
CREATE TABLE INST, Here is a database schema( table schema);
How many ranks had 205 matches?It is not neccessary to use all the tables.
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and price , and group by attribute headquarter, rank by the X in desc.It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Constructor = Alta
CREATE TABLE INST, Here is a database schema( table schema);
Name the chassis for alta.It is not neccessary to use all the tables.
SELECT MIN Championship FROM table WHERE FA Cup = 0 AND League Cup = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest championship when the FA Cup is 0 and the League Cup is 1?.It is not neccessary to use all the tables.
SELECT Fourth quarter FROM table WHERE Rank < 4 AND Second quarter = exxon mobil 341,140.3
CREATE TABLE INST, Here is a database schema( table schema);
When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?.It is not neccessary to use all the tables.
SELECT opponent_in_final FROM table_name_72 WHERE surface = "hard" AND location = "wellington, new zealand" AND date = "6 february 2000"
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent In Final when Surface is Hard when Location is Wellington New Zealand and when Date is 6 February 2000?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE CFL Team = BC Lions
CREATE TABLE INST, Here is a database schema( table schema);
Which player is on the BC Lions? .It is not neccessary to use all the tables.
SELECT "Date" FROM table_59322 WHERE "Rank #" = '5' AND "Opponent#" = 'stanford'
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the game played where the opponent was Stanford, ranked #5?It is not neccessary to use all the tables.
SELECT Results FROM table WHERE Incumbent = Grace Napolitano
CREATE TABLE INST, Here is a database schema( table schema);
What were the result(s) of the election featuring grace napolitano as the incumbent?.It is not neccessary to use all the tables.
SELECT _number FROM table_2305948_1 WHERE name = "Eddie Guerrero"
CREATE TABLE INST, Here is a database schema( table schema);
What are the rank/s of Eddie Guerrero?It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN area ON student_record.course_id = area.course_id WHERE area.area LIKE '%hardware%' AND student_record.student_id = 1
CREATE TABLE INST, Here is a database schema( table schema);
Have I completed any hardware courses yet ?It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE School/Club Team = north carolina AND Pick > 131
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a School/Club Team of north carolina, and a Pick larger than 131?.It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE Team 2 = gombe united f.c.
CREATE TABLE INST, Here is a database schema( table schema);
What is Team 1 where Team 2 is gombe united f.c.?.It is not neccessary to use all the tables.
SELECT race_time FROM table_2260452_1 WHERE team = "Billy Ballew Motorsports"
CREATE TABLE INST, Here is a database schema( table schema);
If the team is Billy Ballew Motorsports what is the race time?It is not neccessary to use all the tables.
SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters"
CREATE TABLE INST, Here is a database schema( table schema);
Which New/Returning/Same Network has a Previous Network of nbc and a Show of blockbusters?It is not neccessary to use all the tables.
SELECT paper_type FROM table_25468520_1 WHERE date_of_issue = "July 8"
CREATE TABLE INST, Here is a database schema( table schema);
What is the paper type for the date of issue July 8?It is not neccessary to use all the tables.
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data"
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?It is not neccessary to use all the tables.
SELECT Gregorian Months FROM table WHERE Season in Tamil = இளவேனில்
CREATE TABLE INST, Here is a database schema( table schema);
What is every Gregorian month when the season in Tamil is இளவேனில்?.It is not neccessary to use all the tables.
SELECT COUNT(dismissals) FROM table_19870086_24 WHERE innings = 8
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest number of dismissals in a match with 8 inningsIt is not neccessary to use all the tables.
SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'specific gravity') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65401) AND STRFTIME('%y-%m', labevents.charttime) = '2105-06'
CREATE TABLE INST, Here is a database schema( table schema);
how many times does in 06/2105 patient 65401 get a specific gravity test?It is not neccessary to use all the tables.
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
CREATE TABLE INST, Here is a database schema( table schema);
What are the cities whose population is between 160000 and 900000?It is not neccessary to use all the tables.
SELECT COUNT Pick # FROM table WHERE Player = Michal Pivonka
CREATE TABLE INST, Here is a database schema( table schema);
What is Michal Pivonka's pick number?.It is not neccessary to use all the tables.
SELECT SUM(bronze) FROM table_name_9 WHERE rank = "10" AND gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes had a rank of 10 and 0 gold?It is not neccessary to use all the tables.
SELECT week_4 FROM table_name_80 WHERE week_3 = "cidney carson"
CREATE TABLE INST, Here is a database schema( table schema);
Which week 4 had a week 3 of Cidney Carson?It is not neccessary to use all the tables.
SELECT SUM Rd 7 FROM table WHERE Position > 1 AND Rd 6 < 48 AND Team = tc motorsport AND Rd 8 < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of values of Rd 7 with RD 6 less than 48 and Rd 8 less than 4 for TC Motorsport in a position greater than 1?.It is not neccessary to use all the tables.
SELECT actor FROM table_name_43 WHERE year = 1966
CREATE TABLE INST, Here is a database schema( table schema);
Which actor won in 1966?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Date = august 11, 1996
CREATE TABLE INST, Here is a database schema( table schema);
Which competition was on August 11, 1996?.It is not neccessary to use all the tables.
SELECT win__percentage FROM table_name_4 WHERE conference = "metro"
CREATE TABLE INST, Here is a database schema( table schema);
What is Metro's win percentage?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = Kentucky
CREATE TABLE INST, Here is a database schema( table schema);
Name the record for kentucky.It is not neccessary to use all the tables.
SELECT Socket FROM table WHERE Voltage = 2.0v AND Model number = pentium ii 333
CREATE TABLE INST, Here is a database schema( table schema);
What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?.It is not neccessary to use all the tables.
SELECT home_record FROM table_22993636_2 WHERE percentage = ".168"
CREATE TABLE INST, Here is a database schema( table schema);
What's the home record of the team with percentage of .168?It is not neccessary to use all the tables.
SELECT date FROM table_name_54 WHERE region = "europe" AND format = "cd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for a CD format with a Region of Europe?It is not neccessary to use all the tables.
SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan"
CREATE TABLE INST, Here is a database schema( table schema);
What episode # has govinda & david dhawan as the eliminated contestant?It is not neccessary to use all the tables.
SELECT date FROM table_name_15 WHERE surface = "clay" AND score = "6-3 2-6 6-4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the match on clay with score of 6-3 2-6 6-4?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Year = 2013 AND Country = egypt
CREATE TABLE INST, Here is a database schema( table schema);
What is the location for Egypt in 2013?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_48213 WHERE "Away team" = 'newport county'
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the away team is newport county?It is not neccessary to use all the tables.
SELECT date FROM table_1231316_5 WHERE nation = "Nigeria"
CREATE TABLE INST, Here is a database schema( table schema);
Nigeria competed on July2 1999.It is not neccessary to use all the tables.
SELECT D 43 FROM table WHERE D 48 = d 9
CREATE TABLE INST, Here is a database schema( table schema);
Name the D 43 with D 48 of d 9.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Name = jens kruppa AND Lane > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank of Jens Kruppa in a lane larger than 2?.It is not neccessary to use all the tables.
SELECT Location / State FROM table WHERE Team = castrol perkins motorsport AND Winner = russell ingall
CREATE TABLE INST, Here is a database schema( table schema);
Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_23248910_5 WHERE record = "5-2"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?It is not neccessary to use all the tables.
SELECT MIN Bronze Medals FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What's the smallest number of bronze medals that any one if the ensembles has? .It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_99 WHERE bronze > 0 AND gold = 0 AND nation = "united states (usa)" AND silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the average total when bronze is more than 0 gold is 0 the nation is united states (usa) and silver is 0?It is not neccessary to use all the tables.
SELECT MIN Merconorte FROM table WHERE InterLiga = 2 AND Matches > 260 AND Superliga > 7
CREATE TABLE INST, Here is a database schema( table schema);
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7.It is not neccessary to use all the tables.
SELECT COUNT(score) FROM table_name_72 WHERE event = "36 arrow finals"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total score for the 36 arrow finals event?It is not neccessary to use all the tables.
SELECT date FROM table_name_87 WHERE h___a = "whalley range"
CREATE TABLE INST, Here is a database schema( table schema);
When did the game in whalley range take place?It is not neccessary to use all the tables.
SELECT Municipality FROM table WHERE County = Finnmark AND Population > 6187.0
CREATE TABLE INST, Here is a database schema( table schema);
Which municipalities located in the county of Finnmark have populations bigger than 6187.0?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Round = 3 AND Record = 2–0
CREATE TABLE INST, Here is a database schema( table schema);
Which Time has a Round of 3, and a Record of 2–0?.It is not neccessary to use all the tables.
SELECT runner_up FROM table_name_43 WHERE tier = "tier ii" AND winner = "gigi fernández natalia zvereva 5–7, 6–1, 6–4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Runner-up with the tier was tier ii and a Winner of gigi fernández natalia zvereva 5–7 6–1 6–4?It is not neccessary to use all the tables.
SELECT MAX TF1 # FROM table WHERE Official # > 47 AND Air date (France) = 13 july 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?.It is not neccessary to use all the tables.
SELECT team FROM table_28884858_2 WHERE capacity_percentage = "102.3%"
CREATE TABLE INST, Here is a database schema( table schema);
What team had a capacity of 102.3%?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Date = February 27
CREATE TABLE INST, Here is a database schema( table schema);
What team was the game on February 27 played against?.It is not neccessary to use all the tables.