sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(total) FROM table_name_24 WHERE player = "seve ballesteros"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number for Seve Ballesteros?It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992"
CREATE TABLE INST, Here is a database schema( table schema);
How many titles were released on 21 October 1992?It is not neccessary to use all the tables.
SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13
CREATE TABLE INST, Here is a database schema( table schema);
Name the most win % for 13 drawnIt is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Venue = annecy, france
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year in Annecy, France?.It is not neccessary to use all the tables.
SELECT COUNT PF FROM table WHERE Skip = Kelly Scott
CREATE TABLE INST, Here is a database schema( table schema);
If the skip is Kelly Scott, what is the PF total number?.It is not neccessary to use all the tables.
SELECT COUNT Rnd FROM table WHERE Pole Position = James Hunt AND Fastest Lap = John Watson
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds were won with James Hunt as pole position and John Watson as fastest lap?.It is not neccessary to use all the tables.
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "European Union"
CREATE TABLE INST, Here is a database schema( table schema);
What length of stay is permitted in the European Union?It is not neccessary to use all the tables.
SELECT MAX Stolen Ends FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the most stolen ends?.It is not neccessary to use all the tables.
SELECT COUNT Heat FROM table WHERE Lane < 4 AND Name = christophe lebon
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of heat for christophe lebon when lane is less than 4?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 10.13 (73)
CREATE TABLE INST, Here is a database schema( table schema);
What away team has a home team score of 10.13 (73)?.It is not neccessary to use all the tables.
SELECT stadium FROM table_name_77 WHERE club = "seongnam ilhwa chunma"
CREATE TABLE INST, Here is a database schema( table schema);
Which stadium has Seongnam Ilhwa Chunma?It is not neccessary to use all the tables.
SELECT Latitude FROM table WHERE Water (sqmi) = 4.243
CREATE TABLE INST, Here is a database schema( table schema);
What was the lattitude for the area with 4.243 square miles of water?.It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Game > 29 AND Attendance > 18,584
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees?.It is not neccessary to use all the tables.
SELECT Reward FROM table WHERE Finish = 3rd Voted Out Day 8
CREATE TABLE INST, Here is a database schema( table schema);
Who received the reward on the episode where the finish was "3rd voted out day 8"?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_4 WHERE silver = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
How many years has Japan won silver?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_93 WHERE 2010 = "grand slam tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tournament for 2010 of grand slam tournamentsIt is not neccessary to use all the tables.
SELECT position_in_table FROM table_27495117_3 WHERE date_of_appointment = "17 January 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of appointment date 17 january 2011It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Position = offensive guard AND Pick < 154
CREATE TABLE INST, Here is a database schema( table schema);
Who is the team that has a pick less than 154 and an offensive guard position?.It is not neccessary to use all the tables.
SELECT Settlement FROM table WHERE Cyrillic Name Other Names = Мартонош (Hungarian: Martonos)
CREATE TABLE INST, Here is a database schema( table schema);
What settlement is also called мартонош (hungarian: martonos)?.It is not neccessary to use all the tables.
SELECT COUNT Miles (km) FROM table WHERE Manufacturer = Dodge
CREATE TABLE INST, Here is a database schema( table schema);
How many wins are with Dodge vehicles?.It is not neccessary to use all the tables.
SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro"
CREATE TABLE INST, Here is a database schema( table schema);
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?It is not neccessary to use all the tables.
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for the opponent being gerardi rinaldi in 2009?It is not neccessary to use all the tables.
SELECT original_name FROM table_1104312_5 WHERE population_at_2010_census = 210450
CREATE TABLE INST, Here is a database schema( table schema);
What are the original names of the districts where the population in the 2010 census was 210450?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Winter Olympics = 1960
CREATE TABLE INST, Here is a database schema( table schema);
With the Winter Olympics was 1960, what was the country?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Group position = 1st AND Result F–A = 2–0
CREATE TABLE INST, Here is a database schema( table schema);
Group position of 1st, and a Result F–A of 2–0 has what average attendance?.It is not neccessary to use all the tables.
SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3
CREATE TABLE INST, Here is a database schema( table schema);
Which ERP W is the lowest one that has a Frequency MHz of 91.3?It is not neccessary to use all the tables.
SELECT AVG(ends) FROM table_name_93 WHERE since = 2003 AND name = "márquez"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Ends with a Since of 2003 and a Name with márquez?It is not neccessary to use all the tables.
SELECT original_air_date FROM table_20704243_4 WHERE written_by = "Albert Kim"
CREATE TABLE INST, Here is a database schema( table schema);
When was the episode written by Albert Kim aired for the first time?It is not neccessary to use all the tables.
SELECT COUNT Universities FROM table WHERE % electricity reduction = 10%
CREATE TABLE INST, Here is a database schema( table schema);
When 10% is the percentage of electricity reduction how many sets of universities are there?.It is not neccessary to use all the tables.
SELECT document_name, access_count FROM documents ORDER BY access_count DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the document that has been accessed the greatest number of times as well as the count of how many times it has been accessed?It is not neccessary to use all the tables.
SELECT MIN 2007 FROM table WHERE 2004 = 78 AND 2006 < 80
CREATE TABLE INST, Here is a database schema( table schema);
Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?.It is not neccessary to use all the tables.
SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number of Venus Demilo's A-side?It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Team = r.j.macarthur onslow AND City / State = sydney , new south wales
CREATE TABLE INST, Here is a database schema( table schema);
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?.It is not neccessary to use all the tables.
SELECT high_points FROM table_name_51 WHERE high_rebounds = "ot"
CREATE TABLE INST, Here is a database schema( table schema);
What had the high points when OT had high rebounds?It is not neccessary to use all the tables.
SELECT in_office FROM table_name_58 WHERE member = "mark coulton"
CREATE TABLE INST, Here is a database schema( table schema);
What is the office held by member Mark Coulton?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_19 WHERE attendance = "28,800"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average week number for games that had 28800 fans in attendance?It is not neccessary to use all the tables.
SELECT english FROM table_26263954_1 WHERE revised_hepburn = "chiji"
CREATE TABLE INST, Here is a database schema( table schema);
when chiji is revised hepburn what are all the englishIt is not neccessary to use all the tables.
SELECT MAX Route FROM table WHERE Rank < 33 AND Elevation = 11,312 feet 3448 m
CREATE TABLE INST, Here is a database schema( table schema);
On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?.It is not neccessary to use all the tables.
SELECT AVG(vertical_relief__ft_) FROM table_name_87 WHERE peak_name = "tower near mead wood road entrance" AND elevation__ft_ > 1 OFFSET 410
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean vertical relief in feet when the Peak Name is Tower near mead wood road entrance and the elevation in feet is more than 1410?It is not neccessary to use all the tables.
SELECT COUNT(bronze_medals) FROM table_name_87 WHERE gold_medals = 2 AND total_medals > 4 AND silver_medals < 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of bronze medals when gold medals was 2 total medals more than 4 and silver medals less than 5It is not neccessary to use all the tables.
SELECT date FROM table_name_71 WHERE event = "ept copenhagen"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date for the Event ept copenhagen?It is not neccessary to use all the tables.
SELECT model_name FROM chip_model ORDER BY launch_year
CREATE TABLE INST, Here is a database schema( table schema);
List all the model names sorted by their launch year.It is not neccessary to use all the tables.
SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = "$2,628,457"
CREATE TABLE INST, Here is a database schema( table schema);
During the period in which gross sales totals for "The Show Girl Must Go On" reached $2628457 what did the numbers show for tickets sold/ available at the box office?It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_21249915_1 WHERE department = "La Paz"
CREATE TABLE INST, Here is a database schema( table schema);
How many total catagories are there for La Paz?It is not neccessary to use all the tables.
SELECT COUNT("South Asians 2011") FROM table_49793 WHERE "Province" = 'quebec' AND "South Asians 2001" < '59,510'
CREATE TABLE INST, Here is a database schema( table schema);
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?It is not neccessary to use all the tables.
SELECT model FROM table_name_30 WHERE total_production = 1347
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the model for total production of 1347It is not neccessary to use all the tables.
SELECT date FROM table_name_57 WHERE record = "15-27"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the game where the Cavaliers have a Record of 15-27?It is not neccessary to use all the tables.
SELECT player FROM table_name_58 WHERE pick < 161 AND college = "auburn university"
CREATE TABLE INST, Here is a database schema( table schema);
What is Player when Pick is less than 161 and when College is "Auburn University"?It is not neccessary to use all the tables.
SELECT DISTINCT department FROM course WHERE name LIKE '%Anthropology of Religion%'
CREATE TABLE INST, Here is a database schema( table schema);
Anthropology of Religion is in which department ?It is not neccessary to use all the tables.
SELECT COUNT Score FROM table WHERE Record = 10-3-4
CREATE TABLE INST, Here is a database schema( table schema);
How many different scores are there for the game with 10-3-4 record?.It is not neccessary to use all the tables.
SELECT COUNT(races) FROM table_name_15 WHERE wins > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Races when there were more than 8 wins?It is not neccessary to use all the tables.
SELECT Condition FROM table WHERE Partial thromboplastin time = prolonged or unaffected
CREATE TABLE INST, Here is a database schema( table schema);
Name the condition with partial thromboplastin time of prolonged or unaffected.It is not neccessary to use all the tables.
SELECT 1881 FROM table WHERE 1851 = 1961
CREATE TABLE INST, Here is a database schema( table schema);
What's the 1881 with 1961 in 1851?.It is not neccessary to use all the tables.
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"
CREATE TABLE INST, Here is a database schema( table schema);
How many deaths were there when the total casualties were 6?It is not neccessary to use all the tables.
SELECT Sub-Parish (Sokn) FROM table WHERE Location of the Church = fresvik
CREATE TABLE INST, Here is a database schema( table schema);
What is the Sub-Parish called that has a church located in Fresvik?.It is not neccessary to use all the tables.
SELECT monday FROM table_11019212_1 WHERE tuesday = "9:00-6:00"
CREATE TABLE INST, Here is a database schema( table schema);
what's the monday time with tuesday being 9:00-6:00It is not neccessary to use all the tables.
SELECT Song choice FROM table WHERE Original artist = elaine paige
CREATE TABLE INST, Here is a database schema( table schema);
What is the Song choice when Elaine Paige was the Original artist?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Record = 77-54
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance when the record was 77-54?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_83 WHERE away_team = "hereford united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie no of Hereford United's Away game?It is not neccessary to use all the tables.
SELECT Capacity FROM table WHERE Institution = University of Alberta
CREATE TABLE INST, Here is a database schema( table schema);
What is the capacity for the institution of university of alberta?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_13 WHERE date = "july 29"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor of the match on July 29?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Score > 66 AND Place = t4
CREATE TABLE INST, Here is a database schema( table schema);
What is the T4 Place Player with a Score of more than 66?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team that played Collingwood?.It is not neccessary to use all the tables.
SELECT moving_to FROM table_name_18 WHERE date_to = "30 june 2009" AND pos = "mf"
CREATE TABLE INST, Here is a database schema( table schema);
Where did the player in Pos mf move to until 30 june 2009 ?It is not neccessary to use all the tables.
SELECT MIN("Year of construction") FROM table_15896 WHERE "Name" = 'Spitallamm'
CREATE TABLE INST, Here is a database schema( table schema);
What is year of construction of spitallamm?It is not neccessary to use all the tables.
SELECT state FROM table_name_43 WHERE name = "li" AND title = "marquis"
CREATE TABLE INST, Here is a database schema( table schema);
In which state did Marquis Li rule?It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of points for newell's old boysIt is not neccessary to use all the tables.
SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38
CREATE TABLE INST, Here is a database schema( table schema);
Which range includes Mount Fukushima and is ranked 38?It is not neccessary to use all the tables.
SELECT Termini FROM table WHERE Junctions = i-35 fm 3338 sh 255
CREATE TABLE INST, Here is a database schema( table schema);
What's the termini of the route with junctions of i-35 fm 3338 sh 255?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Location = scotiabank place AND Points < 20 AND Game > 16 AND Opponent = montreal canadiens
CREATE TABLE INST, Here is a database schema( table schema);
Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?.It is not neccessary to use all the tables.
SELECT Event FROM table WHERE 2007–08 = dnp
CREATE TABLE INST, Here is a database schema( table schema);
What is the Event when DNP shows for 2007–08?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE 2003 = a
CREATE TABLE INST, Here is a database schema( table schema);
What is Tournament, when 2003 is "A"?.It is not neccessary to use all the tables.
SELECT MIN Gold FROM table WHERE Silver < 2 AND Nation = zimbabwe AND Bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest gold that has a silver less than 2, Zimbabwe as the nation, and a bronze less than 1?.It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE IATA = dac
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the airport with IATA code DAC?.It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_22 WHERE rank = "3"
CREATE TABLE INST, Here is a database schema( table schema);
How many total Gold medals did the nation ranked #3 receive?It is not neccessary to use all the tables.
SELECT Division North FROM table WHERE Division South = Kožuf AND Division Southwest = Ilinden Velmej
CREATE TABLE INST, Here is a database schema( table schema);
what is the division north when division south was kožuf and division southwest was ilinden velmej.It is not neccessary to use all the tables.
SELECT margin_of_victory FROM table_name_30 WHERE tournament = "travelers championship"
CREATE TABLE INST, Here is a database schema( table schema);
what is the margin of victory for the tournament travelers championship?It is not neccessary to use all the tables.
SELECT sample_pk, testclass FROM resultsdata15
CREATE TABLE INST, Here is a database schema( sampledata15);
how was a specific sample tested?. It is not neccessary to use all the tables.
SELECT Season # FROM table WHERE Director(s) = Donald Crombie AND Series # = 40
CREATE TABLE INST, Here is a database schema( table schema);
What is the season number of the episode directed by Donald Crombie and the series number is 40?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Crowd > 24,000 AND Home team score = 7.14 (56)
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the away team whose opponent scored 7.14 (56) in front of a crowd was larger than 24,000?.It is not neccessary to use all the tables.
SELECT Name, Floors FROM building ORDER BY Floors
CREATE TABLE INST, Here is a database schema( table schema);
Return a bar chart that the name as the X-axis, and the number of floors for all buildings as Y-axis, and ordered by the number of floors.It is not neccessary to use all the tables.
SELECT NHL Team FROM table WHERE Round = 5 AND Overall = #154
CREATE TABLE INST, Here is a database schema( table schema);
What is the NHL team for Round 5 and an overall ranking of #154?.It is not neccessary to use all the tables.
SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen"
CREATE TABLE INST, Here is a database schema( table schema);
How many season did sportfreunde siegen win best supported club?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par for the player with winnings of 49500?It is not neccessary to use all the tables.
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum for December when the record was 22-12-5?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = april 9
CREATE TABLE INST, Here is a database schema( table schema);
what team played on april 9.It is not neccessary to use all the tables.
SELECT team FROM table_name_69 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 20020"?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Decision = wall
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game that had a decision of wall?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_57 WHERE played = 114 AND average = 0.982
CREATE TABLE INST, Here is a database schema( table schema);
Total points with 114 played and average of 0.982?It is not neccessary to use all the tables.
SELECT 2001 FROM table WHERE 2006 = 2r AND 2010 = a
CREATE TABLE INST, Here is a database schema( table schema);
What is in 2001, that has the year 2006, 2r, and in 2010 an A?.It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE Final Record = 9–16–5
CREATE TABLE INST, Here is a database schema( table schema);
how many time is the final record is 9–16–5?.It is not neccessary to use all the tables.
SELECT season FROM table_name_60 WHERE location = "safeco field" AND decision = "l" AND opponent = "boston red sox"
CREATE TABLE INST, Here is a database schema( table schema);
What season was played at Safeco Field against the Boston Red Sox with a decision of L?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Position = Guard AND Player = Tal Brody
CREATE TABLE INST, Here is a database schema( table schema);
What is every class with a position of guard and Tal Brody as the player?.It is not neccessary to use all the tables.
SELECT COUNT(rank_by_average) FROM table_name_99 WHERE number_of_dances = 2 AND total_points > 37
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rank by average for 2 dances which have more than 37 total points?It is not neccessary to use all the tables.
SELECT power_output__kw_ FROM table_name_79 WHERE total_production = "2" AND builder__family_ = "zhuzhou" AND model = "hxd1d"
CREATE TABLE INST, Here is a database schema( table schema);
What is the power output (kw) of builder zhuzhou model hxd1d with a total production of 2?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Production = 2M5901
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode whose production code is 2m5901?.It is not neccessary to use all the tables.
SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3–4" AND record = "8–8–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Home has a Visitor of quebec nordiques and a Score of 3–4 and a Record of 8–8–1?It is not neccessary to use all the tables.
SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?It is not neccessary to use all the tables.
SELECT Lineup FROM table WHERE Match = 27
CREATE TABLE INST, Here is a database schema( table schema);
What is the Lineup from a Match that is 27?.It is not neccessary to use all the tables.
SELECT socket FROM table_name_28 WHERE part_number_s_ = "80526pz533256"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of socket is on the microprocessor with a part number of 80526pz533256?It is not neccessary to use all the tables.