sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Result FROM table WHERE Competition = 1982 president's cup
CREATE TABLE INST, Here is a database schema( table schema);
What is the result when the competition is 1982 president's cup?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Prize money = £7,500
CREATE TABLE INST, Here is a database schema( table schema);
What is the round when the prize money is £7,500?.It is not neccessary to use all the tables.
SELECT MIN Christer Tornell FROM table WHERE Karianne Gulliksen = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is listed under chister tornell when karianne gulliksen is 7?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Runs = 477
CREATE TABLE INST, Here is a database schema( table schema);
What player has 477 runs?.It is not neccessary to use all the tables.
SELECT COUNT Outcome FROM table WHERE Surface = Grass AND Partner = Chuck McKinley AND Year = 1962
CREATE TABLE INST, Here is a database schema( table schema);
How many outcomes were there for matches played with Chuck McKinley on grass in 1962?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at Victoria Park?It is not neccessary to use all the tables.
SELECT "Score" FROM table_77611 WHERE "Date" = 'january 12'
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the game on January 12?It is not neccessary to use all the tables.
SELECT year FROM table_name_4 WHERE position = "2nd" AND notes = "-63kg" AND venue = "manchester"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Position of 2nd and Notes of -63kg and a Venue of manchester?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Event = +105 kg AND Clean & Jerk < 227.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the total that had an event of +105 kg and clean & jerk less than 227.5?.It is not neccessary to use all the tables.
SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay = "15"
CREATE TABLE INST, Here is a database schema( table schema);
what is average age of patients whose ethnicity is hispanic/latino - puerto rican and days of hospital stay is 15?It is not neccessary to use all the tables.
SELECT AVG New council FROM table WHERE Election result < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average new council number when the election result is smaller than 0?.It is not neccessary to use all the tables.
SELECT Package/Option FROM table WHERE Television service = sky wwe 24/7
CREATE TABLE INST, Here is a database schema( table schema);
Which package/option has sky wwe 24/7 television service?.It is not neccessary to use all the tables.
SELECT team FROM table_name_59 WHERE home_city = "terni"
CREATE TABLE INST, Here is a database schema( table schema);
What team is from terni?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = ben crenshaw
CREATE TABLE INST, Here is a database schema( table schema);
Ben Crenshaw has what To par?.It is not neccessary to use all the tables.
SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'
CREATE TABLE INST, Here is a database schema( table schema);
Show the name and phone for customers with a mailshot with outcome code 'No Response'.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Nation = kenya AND Rank = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of kenya, which is ranked 2?.It is not neccessary to use all the tables.
SELECT Collaboration FROM table WHERE Indication = non-hodgkin lymphoma
CREATE TABLE INST, Here is a database schema( table schema);
What company collaborated in non-hodgkin lymphoma?.It is not neccessary to use all the tables.
SELECT score FROM table_name_46 WHERE visitor = "montreal canadiens" AND date = "february 18"
CREATE TABLE INST, Here is a database schema( table schema);
What's the score on february 18 when the visitors are the montreal canadiens?It is not neccessary to use all the tables.
SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the id and type code for the template used by the most documents?It is not neccessary to use all the tables.
SELECT planet FROM table_180802_3 WHERE transcription = "wan suk"
CREATE TABLE INST, Here is a database schema( table schema);
Which planet has the transcription of wan suk?It is not neccessary to use all the tables.
SELECT 2011 Passengers (in millions) FROM table WHERE 2012 Passengers (in millions) = 6.640
CREATE TABLE INST, Here is a database schema( table schema);
How many passengers (in millions) in 2011 flew through along the route that had 6.640 million passengers in 2012?.It is not neccessary to use all the tables.
SELECT Station FROM table WHERE Programming = me-tv
CREATE TABLE INST, Here is a database schema( table schema);
Which station has programming of Me-TV?.It is not neccessary to use all the tables.
SELECT "State (class)" FROM table_22349 WHERE "Date of successors formal installation" = 'May 11, 1966'
CREATE TABLE INST, Here is a database schema( table schema);
What was the state (class) where the new successor was formally installed on May 11, 1966?It is not neccessary to use all the tables.
SELECT year FROM table_name_90 WHERE position = "forward" AND name = "iman mcfarland"
CREATE TABLE INST, Here is a database schema( table schema);
In what year of school is the forward Iman McFarland?It is not neccessary to use all the tables.
SELECT points_for FROM table_name_59 WHERE club = "castres"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the Castres have?It is not neccessary to use all the tables.
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213
CREATE TABLE INST, Here is a database schema( table schema);
What was the place when the score was 67-73-73=213?It is not neccessary to use all the tables.
SELECT SUM To par FROM table WHERE Total > 149 AND Country = united states AND Year(s) won = 1997
CREATE TABLE INST, Here is a database schema( table schema);
How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?.It is not neccessary to use all the tables.
SELECT date_of_release FROM table_name_15 WHERE title = "god & guns"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was god & guns released?It is not neccessary to use all the tables.
SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = "Paris"
CREATE TABLE INST, Here is a database schema( table schema);
How many instances is paris the unlock?It is not neccessary to use all the tables.
SELECT male_population_2001 FROM table_19589113_5 WHERE growth_rate_1991_01 = "36.16"
CREATE TABLE INST, Here is a database schema( table schema);
What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?It is not neccessary to use all the tables.
SELECT strongs_transliteration FROM table_1242447_1 WHERE hebrew_word = "יוֹחָנָן"
CREATE TABLE INST, Here is a database schema( table schema);
What is the strongs transliteration of the hebrew word יוֹחָנָן?It is not neccessary to use all the tables.
SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%"
CREATE TABLE INST, Here is a database schema( table schema);
How many villages had 21.7% of slovenes in 1991?It is not neccessary to use all the tables.
SELECT score FROM table_name_27 WHERE tie_no = "6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for Tie no. 6?It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_93 WHERE erp_w = 80
CREATE TABLE INST, Here is a database schema( table schema);
What Call sign shows an ERP W of 80?It is not neccessary to use all the tables.
SELECT MAX Goals scored FROM table WHERE Position = 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the most goals scored for position 4.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Name = hardy brown
CREATE TABLE INST, Here is a database schema( table schema);
Which College has a Name of hardy brown?.It is not neccessary to use all the tables.
SELECT floors FROM table_name_89 WHERE location = "tower hill"
CREATE TABLE INST, Here is a database schema( table schema);
Which Floors has a Location of tower hill?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, state AS STATE_0, state AS STATE_1 WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND date_day.day_number = ...
CREATE TABLE INST, Here is a database schema( table schema);
i want a flight from MONTREAL QUEBEC to SAN DIEGO CALIFORNIA that leaves sundayIt is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Silver = 0 AND Rank = 8 AND Gold > 1
CREATE TABLE INST, Here is a database schema( table schema);
What's the total of rank 8 when Silver medals are 0 and gold is more than 1?.It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Rank > 11 AND Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals?.It is not neccessary to use all the tables.
SELECT record FROM table_name_88 WHERE score = "l 97–99 (ot)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Score of l 97–99 (ot)?It is not neccessary to use all the tables.
SELECT Nickname FROM table WHERE Established = 1773
CREATE TABLE INST, Here is a database schema( table schema);
What is the nickname of the college established in 1773?.It is not neccessary to use all the tables.
SELECT Tamil Months FROM table WHERE Season in English = Monsoon
CREATE TABLE INST, Here is a database schema( table schema);
What are all Tamil months when the season in English is monsoon?.It is not neccessary to use all the tables.
SELECT MIN(first_elected) FROM table_1341522_50 WHERE incumbent = "Jim McDermott"
CREATE TABLE INST, Here is a database schema( table schema);
What year was incumbent jim mcdermott first elected?It is not neccessary to use all the tables.
SELECT record FROM table_name_57 WHERE time = "4:15"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after the bout lasting 4:15?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE French Open = 1999
CREATE TABLE INST, Here is a database schema( table schema);
Who won the French Open in 1999?.It is not neccessary to use all the tables.
SELECT ethernet_ports FROM table_name_86 WHERE name = "u150"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ethernet ports of the u150 appliance?It is not neccessary to use all the tables.
SELECT average FROM table_27922491_11 WHERE runs = 313
CREATE TABLE INST, Here is a database schema( table schema);
What is the average for the player with 313 runs?It is not neccessary to use all the tables.
SELECT Men's doubles FROM table WHERE Women's singles = pernille nedergaard
CREATE TABLE INST, Here is a database schema( table schema);
Who won the men's doubles the year Pernille Nedergaard won the women's singles?.It is not neccessary to use all the tables.
SELECT COUNT(title_and_source) FROM table_26538035_1 WHERE developer = "Clover Studio"
CREATE TABLE INST, Here is a database schema( table schema);
How many titles/sources have a developer of Clover Studio?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Date = 12 september 1998
CREATE TABLE INST, Here is a database schema( table schema);
Which venue was used on 12 September 1998?.It is not neccessary to use all the tables.
SELECT city, GDP FROM city ORDER BY GDP LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which city has the lowest GDP? Please list the city name and its GDP.It is not neccessary to use all the tables.
SELECT location FROM table_name_71 WHERE state = "oregon" AND rank < 121 AND mountain_peak = "mount mcloughlin"
CREATE TABLE INST, Here is a database schema( table schema);
Which location is in Oregon ranked under 121 and contains Mount McLoughlin?It is not neccessary to use all the tables.
SELECT final FROM table_name_34 WHERE no2 = "alzira ricardo b."
CREATE TABLE INST, Here is a database schema( table schema);
What was the final of play No. 2 Alzira Ricardo B.?It is not neccessary to use all the tables.
SELECT MAX(episodes) FROM table_22837363_1 WHERE viewers__in_millions_ = "5.74"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest amount of episodes for the season with 5.74 million viewers?It is not neccessary to use all the tables.
SELECT From FROM table WHERE Date From = 2007-08-08
CREATE TABLE INST, Here is a database schema( table schema);
What was the from for the Date From of 2007-08-08?.It is not neccessary to use all the tables.
SELECT high_assists FROM table_name_42 WHERE date = "february 27"
CREATE TABLE INST, Here is a database schema( table schema);
What is the High assists with a Date that is february 27?It is not neccessary to use all the tables.
SELECT COUNT Season no. FROM table WHERE U.S. Viewers (millions) = 12.30
CREATE TABLE INST, Here is a database schema( table schema);
What was the number of season number entries that had US Viewers of 12.30 million?.It is not neccessary to use all the tables.
SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1.93 for Svetlana Shkolina?It is not neccessary to use all the tables.
SELECT COUNT(weight) FROM table_22496374_1 WHERE home_town = "San Francisco, CA"
CREATE TABLE INST, Here is a database schema( table schema);
How many weight stats are there for players from San Francisco CA?It is not neccessary to use all the tables.
SELECT MAX(draws) FROM table_name_81 WHERE port_fairy_fl = "hawkesdale" AND wins > 9
CREATE TABLE INST, Here is a database schema( table schema);
How many draws when the Port Fairy FL is Hawkesdale and there are more than 9 wins?It is not neccessary to use all the tables.
SELECT T3.activity_name FROM faculty AS T1 JOIN faculty_participates_in AS T2 ON T1.facid = T2.facid JOIN activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the activities Mark Giuliano is involved inIt is not neccessary to use all the tables.
SELECT 2001 FROM table WHERE 1989 = a AND Tournament = u.s. open
CREATE TABLE INST, Here is a database schema( table schema);
What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?.It is not neccessary to use all the tables.
SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Event = rip curl pro mademoiselle
CREATE TABLE INST, Here is a database schema( table schema);
The event rip curl pro mademoiselle is in which location?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = january 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the game on January 22?.It is not neccessary to use all the tables.
SELECT goals FROM table_name_5 WHERE score = "26-28"
CREATE TABLE INST, Here is a database schema( table schema);
What were the goals in the game with the 26-28 final score?It is not neccessary to use all the tables.
SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of every song and how many weeks was each song at #1 for Rihanna in 2012?It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?It is not neccessary to use all the tables.
SELECT length FROM table_name_46 WHERE barrel_length = "750mm / 29.5 in"
CREATE TABLE INST, Here is a database schema( table schema);
What is Length when Barrel Length is 750mm / 29.5 in?It is not neccessary to use all the tables.
SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'
CREATE TABLE INST, Here is a database schema( table schema);
Where does the customer with the first name Linda live? And what is her email?It is not neccessary to use all the tables.
SELECT COUNT Wins FROM table WHERE Points = 39+1 AND Draws < 7
CREATE TABLE INST, Here is a database schema( table schema);
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?.It is not neccessary to use all the tables.
SELECT location FROM table_19283806_4 WHERE district = "12th"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location that has the 12th district?It is not neccessary to use all the tables.
SELECT "Event" FROM table_59078 WHERE "Position" = '8th'
CREATE TABLE INST, Here is a database schema( table schema);
What is the event that is in 8th position?It is not neccessary to use all the tables.
SELECT rank FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ranking of the UEFA Euro 2012 qualifying Group A competition?It is not neccessary to use all the tables.
SELECT Cart FROM table WHERE Shield animal = serpent
CREATE TABLE INST, Here is a database schema( table schema);
What cart has a serpent shield animal?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_77 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team's score in the match at Victoria Park?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Result = w 12-3 AND Week > 12
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of attendane for a result of w 12-3 and week more than 12.It is not neccessary to use all the tables.
SELECT Name, COUNT(Name) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY Name
CREATE TABLE INST, Here is a database schema( table schema);
Compare the number of the names of phones by a bar chart.It is not neccessary to use all the tables.
SELECT ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) AS monthsAgo, COUNT(*) FROM Posts AS P INNER JOIN PostTags AS PT ON P.Id = PT.PostId INNER JOIN Tags AS T ON PT.TagId = T.Id WHERE ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURREN...
CREATE TABLE INST, Here is a database schema( table schema);
Year on year growth by month for a tag.It is not neccessary to use all the tables.
SELECT deficit___surplus_ FROM table_15624586_2 WHERE _percentage_of_world_demand = "5.2%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the deficit (-surplus) of the country who use 5.2% of the world demand of uranium?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM products WHERE price >= 180
CREATE TABLE INST, Here is a database schema( table schema);
Compute the number of products with a price larger than or equal to $180.It is not neccessary to use all the tables.
SELECT MAX Total Medals FROM table WHERE Gold Medals = 0 AND Ensemble = east 80 indoor percussion
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?.It is not neccessary to use all the tables.
SELECT team FROM table_name_79 WHERE rider = "adam barclay"
CREATE TABLE INST, Here is a database schema( table schema);
What team has adam barclay as the rider?It is not neccessary to use all the tables.
SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow"
CREATE TABLE INST, Here is a database schema( table schema);
Who are the foreign players on team/s that play in Moscow?It is not neccessary to use all the tables.
SELECT record FROM table_name_67 WHERE home = "warriors"
CREATE TABLE INST, Here is a database schema( table schema);
Which record was for Warriors at home?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE High assists = Jameer Nelson (10)
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when jameer nelson (10) had the high assists?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Entrant = arrows racing team AND Year > 1982
CREATE TABLE INST, Here is a database schema( table schema);
What was arrows racing team's highest points after 1982?.It is not neccessary to use all the tables.
SELECT Max. downstream throughput ( Mbit/s ) FROM table WHERE Profile = 8b
CREATE TABLE INST, Here is a database schema( table schema);
List all mbit/s with profiles of 8b..It is not neccessary to use all the tables.
SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never"
CREATE TABLE INST, Here is a database schema( table schema);
What catalogue is the song It's Now or Never?It is not neccessary to use all the tables.
SELECT club FROM table_13564702_3 WHERE tries_for = "83"
CREATE TABLE INST, Here is a database schema( table schema);
Name the club when tries for is 83It is not neccessary to use all the tables.
SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least runs conceded for brett leeIt is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Rank > 5 AND Bronze > 6 AND Gold < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?.It is not neccessary to use all the tables.
SELECT team FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team at the rose garden 20565It is not neccessary to use all the tables.
SELECT Call sign FROM table WHERE Frequency MHz < 95.9 AND ERP W = 10
CREATE TABLE INST, Here is a database schema( table schema);
What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?.It is not neccessary to use all the tables.
SELECT MAX(episodes) FROM table_14855908_3 WHERE region_4 = "March 4, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were put out in Region 4 on March 4, 2010?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = hof
CREATE TABLE INST, Here is a database schema( table schema);
What's the date for HOF week?.It is not neccessary to use all the tables.
SELECT college FROM table_name_11 WHERE pick < 6 AND pba_team = "shell turbo chargers"
CREATE TABLE INST, Here is a database schema( table schema);
Which college has a pick below 6 for the PBA team the Shell Turbo Chargers?It is not neccessary to use all the tables.
SELECT AVG Year completed FROM table WHERE Floors = 10
CREATE TABLE INST, Here is a database schema( table schema);
What year was the building completed that has 10 floors?.It is not neccessary to use all the tables.
SELECT "League" FROM table_72150 WHERE "Mascot" = 'Raiders'
CREATE TABLE INST, Here is a database schema( table schema);
Which leagues have Raiders as their mascot?It is not neccessary to use all the tables.