sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT date FROM table_name_26 WHERE partner = "pere riba"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the match where Daniel Gimeno-Traver's partner was pere riba?It is not neccessary to use all the tables.
SELECT SUM Inhabitants FROM table WHERE Party = five star movement AND Election < 2012
CREATE TABLE INST, Here is a database schema( table schema);
In the election earlier than 2012 how many Inhabitants had a Party of five star movement?.It is not neccessary to use all the tables.
SELECT MAX Silver FROM table WHERE Bronze < 3 AND Gold < 1 AND Total = 1 AND Nation = ireland
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?.It is not neccessary to use all the tables.
SELECT written_by FROM table_14847258_1 WHERE directed_by = "Steve Gomer"
CREATE TABLE INST, Here is a database schema( table schema);
When steve gomer is the director who is the writer?It is not neccessary to use all the tables.
SELECT Plant Patent Number FROM table WHERE Habit = standard AND Mutated From = yakata 7001
CREATE TABLE INST, Here is a database schema( table schema);
What's the patent number when it was mutated from Yakata 7001 and a standard habit?.It is not neccessary to use all the tables.
SELECT * FROM table_train_84 WHERE allergy_to_rifaximin = 1
CREATE TABLE INST, Here is a database schema( table schema);
allergy to rifaximinIt is not neccessary to use all the tables.
SELECT MIN(102) FROM table_name_78 WHERE "friendly" = "friendly" AND austria = "greece"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number for 102 when Friendly of friendly and an Austria of greece?It is not neccessary to use all the tables.
SELECT stu_gpa, stu_phone, stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the first name gpa and phone number of the top 5 students with highest gpa?It is not neccessary to use all the tables.
SELECT "Award" FROM table_66102 WHERE "Year" < '2005'
CREATE TABLE INST, Here is a database schema( table schema);
What award did they win before 2005?It is not neccessary to use all the tables.
SELECT Quantity made FROM table WHERE Quantity preserved = 4-4-0 — oooo — american
CREATE TABLE INST, Here is a database schema( table schema);
What is Quantitiy Made, when Quantity Preserved is "4-4-0 — oooo — american"?.It is not neccessary to use all the tables.
SELECT Album FROM table WHERE Year = 1995
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1995 Album?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when Fitzroy was the away team?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Run 2 = 2:06.62
CREATE TABLE INST, Here is a database schema( table schema);
What is Rank, when Run 2 is 2:06.62?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham"
CREATE TABLE INST, Here is a database schema( table schema);
What is Tie no when Home Team is "Gillingham"?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Wins > 16 AND Country = australia
CREATE TABLE INST, Here is a database schema( table schema);
What is the player from Australia's rank with more than 16 wins?.It is not neccessary to use all the tables.
SELECT Womens doubles FROM table WHERE Mens doubles = No competition
CREATE TABLE INST, Here is a database schema( table schema);
What was the competition when there was no competition for mens doubles?.It is not neccessary to use all the tables.
SELECT Nominated Work FROM table WHERE Result = nominated AND Award = drama league award AND Year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
What was the nominated work, nominated for the drama league award before 2007?.It is not neccessary to use all the tables.
SELECT Producer(s) FROM table WHERE Recipient = laura tunstall
CREATE TABLE INST, Here is a database schema( table schema);
Who produced Laura Tunstall?.It is not neccessary to use all the tables.
SELECT "% FPv" FROM table_7975 WHERE "First Pref votes" > '19,684' AND "Seats" = '9'
CREATE TABLE INST, Here is a database schema( table schema);
Which % FPv has First Pref votes larger than 19,684, and Seats of 9?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_23308178_8
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of points they had?It is not neccessary to use all the tables.
SELECT RnaG (MHz) FROM table WHERE Transmitter = Kippure
CREATE TABLE INST, Here is a database schema( table schema);
What is the rnag for kippure transmitter? .It is not neccessary to use all the tables.
SELECT Peak Position FROM table WHERE Oricon Albums Chart = Daily Charts
CREATE TABLE INST, Here is a database schema( table schema);
How many peak positions were there on the daily charts?.It is not neccessary to use all the tables.
SELECT Birthdate FROM table WHERE Defining characteristics = pink hair
CREATE TABLE INST, Here is a database schema( table schema);
What is the birth date of the member with the Defining characteristic of pink hair?.It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Game < 14
CREATE TABLE INST, Here is a database schema( table schema);
How many points was before game 14?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Data = 19:29
CREATE TABLE INST, Here is a database schema( table schema);
What date has a Data of 19:29?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = footscray
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has an Away team of footscray?.It is not neccessary to use all the tables.
SELECT Pinyin FROM table WHERE Foochow = Ciá-ìng-gâing
CREATE TABLE INST, Here is a database schema( table schema);
Name the pinyin for ciá-ìng-gâing.It is not neccessary to use all the tables.
SELECT Captain FROM table WHERE Kit manufacturer = fox leisure
CREATE TABLE INST, Here is a database schema( table schema);
Who is the captain of the team that has a kit manufacturer of Fox Leisure?.It is not neccessary to use all the tables.
SELECT MAX Vertical Drop (m) FROM table WHERE Length (m) = 1,200
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest vertical drop among the 1,200 meter long tracks?.It is not neccessary to use all the tables.
SELECT date_released FROM table_1881642_1 WHERE green_communist = "5.7%"
CREATE TABLE INST, Here is a database schema( table schema);
What date did the Green-Communists receive 5.7%?It is not neccessary to use all the tables.
SELECT Id AS "post_link", Tags, ViewCount, CreationDate, Title FROM Posts WHERE LastActivityDate > DATEADD(m, -12, GETDATE()) AND Tags LIKE '<##Tag##>' AND NOT Title LIKE '<##Tag##>' AND NOT Title LIKE '<##ExcludeTitle##>' ORDER BY ViewCount DESC
CREATE TABLE INST, Here is a database schema( table schema);
Most viewed posts by tag w/o tag in post title.It is not neccessary to use all the tables.
SELECT party FROM table_name_32 WHERE result = "retired democratic hold" AND first_elected < 1884 AND incumbent = "samuel dibble"
CREATE TABLE INST, Here is a database schema( table schema);
Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Location/Attendance = skydome
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent when they played at the Skydome?.It is not neccessary to use all the tables.
SELECT title FROM table_name_98 WHERE rank > 10 AND director = "walter hill"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10 FOR DIRECTOR WALTER HILL?It is not neccessary to use all the tables.
SELECT series FROM table_name_13 WHERE site = "ames" AND sport = "w gymnastics"
CREATE TABLE INST, Here is a database schema( table schema);
Which Series has a Site of ames and a Sport of w gymnastics?It is not neccessary to use all the tables.
SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville"
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment number for Rockville?It is not neccessary to use all the tables.
SELECT Engine Company FROM table WHERE Address = 89 rope ferry road
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the engine company that is located at 89 Rope Ferry Road?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson"
CREATE TABLE INST, Here is a database schema( table schema);
When Tom Watson placed t6 what was the 2 par?It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE 2nd leg = 72-89
CREATE TABLE INST, Here is a database schema( table schema);
What was the 1st leg score in the matchup with a 2nd leg of 72-89?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = July 28
CREATE TABLE INST, Here is a database schema( table schema);
What was the record in game played on July 28?.It is not neccessary to use all the tables.
SELECT COUNT(platelet_count) FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
CREATE TABLE INST, Here is a database schema( table schema);
How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?It is not neccessary to use all the tables.
SELECT album FROM table_name_20 WHERE lifetime_achievement_award = "paul mcguinness"
CREATE TABLE INST, Here is a database schema( table schema);
Which album awarded Paul McGuinness a Lifetime Achievement Award?It is not neccessary to use all the tables.
SELECT place FROM table_name_89 WHERE player = "seve ballesteros"
CREATE TABLE INST, Here is a database schema( table schema);
What Place has a Player of seve ballesteros?It is not neccessary to use all the tables.
SELECT Match FROM table WHERE Team = start gniezno
CREATE TABLE INST, Here is a database schema( table schema);
What was the match number for Start Gniezno?.It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Mountain Peak = mount elbert
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank Mount Elbert has?.It is not neccessary to use all the tables.
SELECT 1994 FROM table WHERE Tournament = sr
CREATE TABLE INST, Here is a database schema( table schema);
What result in 1994 has a SR as the tournament?.It is not neccessary to use all the tables.
SELECT Prize FROM table WHERE Winner = john shaw
CREATE TABLE INST, Here is a database schema( table schema);
What is Prize, when Winner is "John Shaw"?.It is not neccessary to use all the tables.
SELECT COUNT Grid FROM table WHERE Laps < 41 AND Driver = pedro de la rosa
CREATE TABLE INST, Here is a database schema( table schema);
How many grids have less than 41 laps and a Driver of pedro de la rosa?.It is not neccessary to use all the tables.
SELECT Composer(s) FROM table WHERE CHR chart peak = 2
CREATE TABLE INST, Here is a database schema( table schema);
Which composer had a CHR chart peak at #2?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_32 WHERE cardinalatial_order_and_title = "cardinal-bishop of albano"
CREATE TABLE INST, Here is a database schema( table schema);
What's the nationality of Cardinal-Bishop of Albano?It is not neccessary to use all the tables.
SELECT location FROM table_name_54 WHERE driver = "denny hulme"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location where Denny Hulme was the driver?It is not neccessary to use all the tables.
SELECT w_l FROM table_22825058_23 WHERE against = "Czech Republic"
CREATE TABLE INST, Here is a database schema( table schema);
Name the w/l for czech republicIt is not neccessary to use all the tables.
SELECT Office FROM table WHERE Term ended = January 3, 1993
CREATE TABLE INST, Here is a database schema( table schema);
What group was in office when the term ended in January 3, 1993?.It is not neccessary to use all the tables.
SELECT High Assists FROM table WHERE Location Attendance = American Airlines Center 19,585
CREATE TABLE INST, Here is a database schema( table schema);
Name the high assists for american airlines center 19,585.It is not neccessary to use all the tables.
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton"
CREATE TABLE INST, Here is a database schema( table schema);
where cfl team is winnipeg (3) via hamilton what are all the playerIt is not neccessary to use all the tables.
SELECT score_in_final FROM table_2362606_1 WHERE year = 1988
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the final in 1988?It is not neccessary to use all the tables.
SELECT COUNT Jianshu FROM table WHERE Total > 19.16 AND Athlete = nguyen huy thanh ( vie ) AND Qiangshu > 9.66
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of Jianshu when the total is more than 19.16, for Nguyen Huy Thanh ( vie ), and Qiangshu is more than 9.66?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game < 19 AND Points < 19 AND Score = 4–6
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?.It is not neccessary to use all the tables.
SELECT SUM Finale FROM table WHERE Chinese title = 女人唔易做
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total Finale of 女人唔易做?.It is not neccessary to use all the tables.
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
When North Melbourne is the Away team, what is the total number of the Crowd?It is not neccessary to use all the tables.
SELECT time FROM table_name_34 WHERE date = "july 18" AND loss = "lilly (3-3)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time on july 18 that has a Loss of lilly (3-3)?It is not neccessary to use all the tables.
SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Population when Per Capita Income is "$16330"?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 demographic.insurance = "Private" AND diagnoses.long_title = "Fever presenting with conditions classified elsewhere"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose insurance is private and diagnoses long title is fever presenting with conditions classified elsewhere?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE NHL team = Washington Capitals
CREATE TABLE INST, Here is a database schema( table schema);
What position was the player who was drafted by the Washington Capitals? .It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Yards < 197 AND Average < 32 AND Year = 1966
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?.It is not neccessary to use all the tables.
SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings"
CREATE TABLE INST, Here is a database schema( table schema);
What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?It is not neccessary to use all the tables.
SELECT district FROM table_1341568_39 WHERE incumbent = "Curt Weldon"
CREATE TABLE INST, Here is a database schema( table schema);
What districts does incumbent Curt Weldon hold?It is not neccessary to use all the tables.
SELECT Halang FROM table WHERE Rera = ʒo²
CREATE TABLE INST, Here is a database schema( table schema);
Which Halang has a Rera of ʒo²?.It is not neccessary to use all the tables.
SELECT platform_s_ FROM table_name_50 WHERE game = "red dead redemption"
CREATE TABLE INST, Here is a database schema( table schema);
Which platform was Red Dead Redemption for?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Games = 2013 nassau
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record of the 2013 Nassau Games?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_78 WHERE attendance < 751
CREATE TABLE INST, Here is a database schema( table schema);
Who did they play when there were only 751 in attendance?It is not neccessary to use all the tables.
SELECT year FROM table_name_81 WHERE position = "1/22 promoted" AND leading_scorer = "james dean (27)"
CREATE TABLE INST, Here is a database schema( table schema);
what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)?It is not neccessary to use all the tables.
SELECT HMOs FROM table WHERE Conventional plans = 3% AND Year = 2005
CREATE TABLE INST, Here is a database schema( table schema);
Which HMO has a conventional plan of 3% in 2005?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the minimum wins.It is not neccessary to use all the tables.
SELECT unit FROM table_18933037_3 WHERE mission_target = "Same target; Linebacker II Offensive"
CREATE TABLE INST, Here is a database schema( table schema);
When same target; linebacker ii offensive is the same target what is the unit?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Season # = 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of Season #15?.It is not neccessary to use all the tables.
SELECT MAX(1 AS _credit) FROM table_148535_2 WHERE hand = "Three of a Kind"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most 1 credit for three of a kindIt is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE Location = davao
CREATE TABLE INST, Here is a database schema( table schema);
Which frequency is located in Davao?.It is not neccessary to use all the tables.
SELECT gt_winning_team FROM table_27743641_2 WHERE gtc_winning_team = "No. 54 Black Swan Racing"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the GT winning team when the GTC winning team was No. 54 Black Swan Racing?It is not neccessary to use all the tables.
SELECT Runner(s)-up FROM table WHERE Date = may 24, 1999
CREATE TABLE INST, Here is a database schema( table schema);
Who is Runner(s)-up that has a Date of may 24, 1999?.It is not neccessary to use all the tables.
SELECT MIN Fum. rec TD FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least fum rec td.It is not neccessary to use all the tables.
SELECT SUM Founded FROM table WHERE Club = stade tunisien AND Capacity > 18,000
CREATE TABLE INST, Here is a database schema( table schema);
How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?.It is not neccessary to use all the tables.
SELECT Province FROM table WHERE Period = 1941-1946
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the province of 1941-1946.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game > 40 AND Opponent = new york rangers
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record of the Game after 40 with New York Rangers as Opponent?.It is not neccessary to use all the tables.
SELECT player FROM table_name_17 WHERE year > 2008 AND position = "wide receiver"
CREATE TABLE INST, Here is a database schema( table schema);
Which player played wide receiver after 2008?It is not neccessary to use all the tables.
SELECT County FROM table WHERE Irish name = Carna
CREATE TABLE INST, Here is a database schema( table schema);
What is the county for the Irish name Carna?.It is not neccessary to use all the tables.
SELECT player FROM table_name_24 WHERE country = "united states" AND money___$__ = 356
CREATE TABLE INST, Here is a database schema( table schema);
What Player is from the Country United States and Money ($) of 356?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Unit = vyazniki assemblage
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the non mammal of the unit vyazniki assemblage?.It is not neccessary to use all the tables.
SELECT Overall FROM table WHERE Pick # < 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the Overall of the pick less than 20?.It is not neccessary to use all the tables.
SELECT name FROM table_21536557_2 WHERE time__cet_ = "09:58"
CREATE TABLE INST, Here is a database schema( table schema);
Who is every name for time(cet) of 09:58?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 81-60
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game with a record of 81-60?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Venue = jeonju
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the competition held at Jeonju?.It is not neccessary to use all the tables.
SELECT COUNT Average FROM table WHERE Place < 1
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TOTAL AVERAGE WITH A PLACE SMALLER THAN 1?.It is not neccessary to use all the tables.
SELECT Opposing Teams FROM table WHERE Date = 08/02/1969
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opposing teams on 08/02/1969?.It is not neccessary to use all the tables.
SELECT SUM Golden Tickets FROM table WHERE Callback Venue = georgia international convention center
CREATE TABLE INST, Here is a database schema( table schema);
How many golden tickets for the georgia international convention center?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Location = aberdeen
CREATE TABLE INST, Here is a database schema( table schema);
In what country is Aberdeen?.It is not neccessary to use all the tables.
SELECT background FROM table_12286195_1 WHERE result = "13 The celebrity Apprentice (2008-03-27)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the background of the celebrity who had the result 13 the celebrity apprentice (2008-03-27)?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE School = ohio state AND Points = 412
CREATE TABLE INST, Here is a database schema( table schema);
What position does the winner from Ohio State with 412 points play?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Location Attendance = rose garden 20,020
CREATE TABLE INST, Here is a database schema( table schema);
What is Team, when Location Attendance is "Rose Garden 20,020"?.It is not neccessary to use all the tables.
SELECT year FROM table_name_35 WHERE director = "lee phillips"
CREATE TABLE INST, Here is a database schema( table schema);
When was Lee Phillips the director?It is not neccessary to use all the tables.