sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Country FROM table WHERE Year = 2012
CREATE TABLE INST, Here is a database schema( table schema);
What was the country in the year 2012?.It is not neccessary to use all the tables.
SELECT * FROM Votes WHERE VoteTypeId = 11
CREATE TABLE INST, Here is a database schema( table schema);
Questions with ongoing undelete votes.It is not neccessary to use all the tables.
SELECT title FROM table_23918997_1 WHERE directed_by = "Rowan Woods"
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode directed by Rowan Woods?It is not neccessary to use all the tables.
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)"
CREATE TABLE INST, Here is a database schema( table schema);
What kilometer (Layac-basis) has a Barangay of general lim (capot)?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = fred haas
CREATE TABLE INST, Here is a database schema( table schema);
Where is Fred Haas from?.It is not neccessary to use all the tables.
SELECT MIN Cuts made FROM table WHERE Tournament = masters tournament AND Top-25 < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = wrexham
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game for the Wrexham away team?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE School/Club Team = mcgill
CREATE TABLE INST, Here is a database schema( table schema);
What is the Player from McGill?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_10 WHERE result = "124-101"
CREATE TABLE INST, Here is a database schema( table schema);
Which Home Team has a Result of 124-101?It is not neccessary to use all the tables.
SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859?It is not neccessary to use all the tables.
SELECT "Place" FROM table_43970 WHERE "Weapon" = '35mm/small arms fire'
CREATE TABLE INST, Here is a database schema( table schema);
What is Place, when Weapon is '35mm/Small arms fire'?It is not neccessary to use all the tables.
SELECT result FROM table_name_61 WHERE nominated_work = "white valentine"
CREATE TABLE INST, Here is a database schema( table schema);
Did the nominated work of white valentine win an award?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Winner = s. loeb AND Length = 13.04km AND Stage = ss12
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?.It is not neccessary to use all the tables.
SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10
CREATE TABLE INST, Here is a database schema( table schema);
How many goals when more than 10 games played?It is not neccessary to use all the tables.
SELECT COUNT Year named FROM table WHERE Longitude = 36.8e AND Diameter (km) > 697
CREATE TABLE INST, Here is a database schema( table schema);
How many years correspond to longitude of 36.8e and diameter greater than 697?.It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Tournament = hershey
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome for the Hershey tournament?.It is not neccessary to use all the tables.
SELECT COUNT(total_pld) FROM table_name_14 WHERE team = "arsenal"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of PLD for Team Arsenal?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = moorabbin oval
CREATE TABLE INST, Here is a database schema( table schema);
What did the team score while away in moorabbin oval?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Time = 6:52.74
CREATE TABLE INST, Here is a database schema( table schema);
What rank did rower have with the time of 6:52.74?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_22 WHERE rebounds = "al harrington (9)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the 1st Year Al Harrington (9) the leader in Rebounds?It is not neccessary to use all the tables.
SELECT COUNT(viewers__in_millions_) FROM table_2102898_1 WHERE broadcast_date = "21March1970"
CREATE TABLE INST, Here is a database schema( table schema);
On broadcast date is 21march1970 how many people tuned in?It is not neccessary to use all the tables.
SELECT written_by FROM table_11411026_2 WHERE us_viewers__millions_ = "19.01"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote an episode watched by 19.01 million US viewers?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Incumbent = Robert Bauman
CREATE TABLE INST, Here is a database schema( table schema);
What are all the results where Robert Bauman is the incumbent politician?.It is not neccessary to use all the tables.
SELECT laps FROM table_2175858_1 WHERE race_time = "3:03:50"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps were completed in the race with time of 3:03:50?It is not neccessary to use all the tables.
SELECT Opponents Conference FROM table WHERE Result = L, 62-10
CREATE TABLE INST, Here is a database schema( table schema);
Which opponents conference has the result L, 62-10?.It is not neccessary to use all the tables.
SELECT School FROM table WHERE Enrollment > 473 AND IHSAA Class = aaa AND # / County = 72 scott
CREATE TABLE INST, Here is a database schema( table schema);
What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class?.It is not neccessary to use all the tables.
SELECT nebraska FROM table_name_25 WHERE year = "2004"
CREATE TABLE INST, Here is a database schema( table schema);
Which Nebraska has 2004 year?It is not neccessary to use all the tables.
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
How many people were in the crowd with the away team being collingwood?It is not neccessary to use all the tables.
SELECT MAX(gayndah) FROM table_12526990_1 WHERE perry = 304
CREATE TABLE INST, Here is a database schema( table schema);
What is the gayndah when perry is 304?It is not neccessary to use all the tables.
SELECT Company FROM table WHERE release date = 2008-09-18 18 september 2008
CREATE TABLE INST, Here is a database schema( table schema);
Who is the company that released the album on 2008-09-18 18 September 2008?.It is not neccessary to use all the tables.
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes had a viewership of 2.65 million?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of lake oval's score?.It is not neccessary to use all the tables.
SELECT winner FROM table_name_76 WHERE win__number > 1 AND points < 94
CREATE TABLE INST, Here is a database schema( table schema);
What is Winner when Win # is greater than 1 and when Points is less than 94?It is not neccessary to use all the tables.
SELECT Left Office FROM table WHERE Name = ke ʻ eaumoku pāpa ʻ iahiahi
CREATE TABLE INST, Here is a database schema( table schema);
On what date did ke ʻ eaumoku pāpa ʻ iahiahi leave office?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Draw > 4
CREATE TABLE INST, Here is a database schema( table schema);
Who is the artist that drew higher than 4?.It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_14 WHERE total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Gold when Total is less than 1?It is not neccessary to use all the tables.
SELECT result FROM table_name_5 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 result FROM table_26842217_4 WHERE site = "Bryant-Denny Stadium • Tuscaloosa, AL"
CREATE TABLE INST, Here is a database schema( table schema);
What were the results in the bryant-denny stadium • tuscaloosa al?It is not neccessary to use all the tables.
SELECT Game FROM table WHERE Opponents = 14
CREATE TABLE INST, Here is a database schema( table schema);
In which game did the opponents score 14 points?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_96 WHERE game = 75
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent for game 75?It is not neccessary to use all the tables.
SELECT SUM(game) FROM table_name_61 WHERE high_assists = "paul (9)"
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of the games that had paul (9) for high assists?It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Format = digipak album AND Date = june 29, 1999
CREATE TABLE INST, Here is a database schema( table schema);
What Catalog released on June 29, 1999 has a Digipak Album Format?.It is not neccessary to use all the tables.
SELECT COUNT(pos) FROM table_1924975_1 WHERE q1 + q2_time = "2.34.736"
CREATE TABLE INST, Here is a database schema( table schema);
when the q1+q2 time was 2.34.736 what was the total pos number?It is not neccessary to use all the tables.
SELECT Rowers FROM table WHERE Country = canada
CREATE TABLE INST, Here is a database schema( table schema);
Who is the rower from Canada?.It is not neccessary to use all the tables.
SELECT leading_scorer FROM table_name_61 WHERE date = "20 november 2007"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the leading scorer of the game on 20 November 2007?It is not neccessary to use all the tables.
SELECT 1st leg FROM table WHERE Agg. = 2-1
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st leg of the team with a 2-1 agg.?.It is not neccessary to use all the tables.
SELECT "Won" FROM table_19114 WHERE "Tries for" = '84'
CREATE TABLE INST, Here is a database schema( table schema);
what's the won with tries for being 84It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Capacity = 13800
CREATE TABLE INST, Here is a database schema( table schema);
What stadium has capacity for 13800?.It is not neccessary to use all the tables.
SELECT COUNT(regular_season) FROM table_2361788_1 WHERE year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of regular season for 2007It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = punt road oval
CREATE TABLE INST, Here is a database schema( table schema);
What date did the VFL play Punt Road Oval?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = glenferrie oval
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team score at Glenferrie Oval?.It is not neccessary to use all the tables.
SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9
CREATE TABLE INST, Here is a database schema( table schema);
Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6 and a Chimoré Municipality (%) of 5.1 and an Entre Ríos Municipality (%) smaller than 0.9?It is not neccessary to use all the tables.
SELECT year FROM table_name_62 WHERE qual = "120.006"
CREATE TABLE INST, Here is a database schema( table schema);
The Qual of 120.006 took place in what year?It is not neccessary to use all the tables.
SELECT years FROM table_name_74 WHERE total = "101 (16)"
CREATE TABLE INST, Here is a database schema( table schema);
What years have 101 (16) as the total?It is not neccessary to use all the tables.
SELECT episodes FROM table_name_47 WHERE tv_station = "ntv" AND japanese_title = "たったひとつの恋"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes when the tv station is ntv and the japanese title is たったひとつの恋?It is not neccessary to use all the tables.
SELECT stadium FROM table_21436373_12 WHERE type_of_record = "Total attendance-Regular season"
CREATE TABLE INST, Here is a database schema( table schema);
where was the total attendance-regular season record madeIt is not neccessary to use all the tables.
SELECT Deputy FROM table WHERE Name = elizabeth black
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the Deputy when the Name was elizabeth black?.It is not neccessary to use all the tables.
SELECT AVG Points for Higher FROM table WHERE Points for Ordinary = 0 AND Grade = ng AND Points for Foundation < 0
CREATE TABLE INST, Here is a database schema( table schema);
What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?.It is not neccessary to use all the tables.
SELECT condition FROM table_name_53 WHERE bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged" AND prothrombin_time = "unaffected"
CREATE TABLE INST, Here is a database schema( table schema);
Which Condition has a Bleeding time of unaffected, and a Partial thromboplastin time of prolonged, and a Prothrombin time of unaffected?It is not neccessary to use all the tables.
SELECT Id, PostHistoryTypeId, CreationDate, UserId FROM PostHistory WHERE PostId IN ('##IdPostList##') ORDER BY PostId, CreationDate
CREATE TABLE INST, Here is a database schema( table schema);
Select Post History by List of Ids.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Year < 2002 AND Chassis = reynard 2ki
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the reynard 2ki chassis before 2002?.It is not neccessary to use all the tables.
SELECT MAX(mccain_number) FROM table_20684390_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum McCain population turnout number?It is not neccessary to use all the tables.
SELECT original_title FROM table_name_56 WHERE year = "1996 (11th)" AND winner_and_nominees = "breaking the waves"
CREATE TABLE INST, Here is a database schema( table schema);
What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?It is not neccessary to use all the tables.
SELECT DISTINCT course_offering.end_time, course_offering.start_time, semester.semester, semester.year FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'CAAS' AND course.number = 438 AND semester.semester = 'semester0' AND semester.semester_id = course_offering.semester AND semester.year = year0
CREATE TABLE INST, Here is a database schema( table schema);
CAAS 438 is offered at what morning times ?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_1 WHERE tournament = "hershey"
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome for the Hershey tournament?It is not neccessary to use all the tables.
SELECT MIN(age_40_49) FROM table_169693_1
CREATE TABLE INST, Here is a database schema( table schema);
Name the least age 40-49It is not neccessary to use all the tables.
SELECT player FROM table_name_4 WHERE money___$__ = "187,500" AND score = 66 - 75 - 71 - 69 = 281
CREATE TABLE INST, Here is a database schema( table schema);
what player has $187500 and score 66-75-71-69=281It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_name_36 WHERE result = "l 26-16" AND week < 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?It is not neccessary to use all the tables.
SELECT orbital_period FROM table_name_69 WHERE center_to_center_distance = "6,900 to 46,300 km"
CREATE TABLE INST, Here is a database schema( table schema);
center-to-center distance of 6900 to 46300 km involves which orbital period?It is not neccessary to use all the tables.
SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of services that have been used for more than 2 times in first notification of loss.It is not neccessary to use all the tables.
SELECT COUNT Purse( $ ) FROM table WHERE Winner = Jimmy Powell (2)
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of purse( $ ) where winner is jimmy powell (2).It is not neccessary to use all the tables.
SELECT state FROM table_name_32 WHERE representative = "jimmy quillen"
CREATE TABLE INST, Here is a database schema( table schema);
Which state does Jimmy Quillen represent?It is not neccessary to use all the tables.
SELECT developer FROM table_name_59 WHERE platform = "xbox 360"
CREATE TABLE INST, Here is a database schema( table schema);
Which developer has xbox 360 as the platform?It is not neccessary to use all the tables.
SELECT "role" FROM table_202_74 ORDER BY id LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the first character she played in her first movie ?It is not neccessary to use all the tables.
SELECT record FROM table_name_86 WHERE score = "28-43"
CREATE TABLE INST, Here is a database schema( table schema);
For the game ending with a score of 28-43 what is the listed as the final record?It is not neccessary to use all the tables.
SELECT rider FROM table_name_84 WHERE speed = "104.630mph"
CREATE TABLE INST, Here is a database schema( table schema);
Which rider had a speed of 104.630mph?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Date = march 2, 1997
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface on march 2, 1997?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 12-17
CREATE TABLE INST, Here is a database schema( table schema);
On what date did they have a record of 12-17?.It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many golds have a Bronze of 0 a Total larger than 1 a Nation of chad and a Silver larger than 0?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Result = L 3-6
CREATE TABLE INST, Here is a database schema( table schema);
Type the record details if any result has L 3-6 in it?.It is not neccessary to use all the tables.
SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Interregnum ended for the person with a Duration of 3 months 6 days?It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Venue = barcelona, spain
CREATE TABLE INST, Here is a database schema( table schema);
Which Notes has a Venue of barcelona, spain?.It is not neccessary to use all the tables.
SELECT first_elected FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara"
CREATE TABLE INST, Here is a database schema( table schema);
What year was incumbent barratt o'hara first elected?It is not neccessary to use all the tables.
SELECT open_cup FROM table_1243601_1 WHERE year = "2004"
CREATE TABLE INST, Here is a database schema( table schema);
What was the open cup results in 2004?It is not neccessary to use all the tables.
SELECT year FROM table_name_63 WHERE league = "usisl indoor"
CREATE TABLE INST, Here is a database schema( table schema);
What years did the Nashville Metros have Usisl Indoor League?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Laps < 21 AND Manufacturer = aprilia AND Grid < 17 AND Rider = thomas luthi
CREATE TABLE INST, Here is a database schema( table schema);
what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?.It is not neccessary to use all the tables.
SELECT ε__m_−1_cm_−1__ FROM table_26428602_1 WHERE color = "orange"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ε (m −1 cm −1 ) of the orange flourescent dye?It is not neccessary to use all the tables.
SELECT MIN Inhabitants FROM table WHERE Party = democratic party AND Municipality = florence AND Election < 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009?.It is not neccessary to use all the tables.
SELECT brigade FROM table_name_63 WHERE name = "al-hamra ('arab al-hamra)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the brigade when Al-Hamra ('arab al-hamra) shows for name?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = class_senator_vote WHERE T1.sex = "M" AND T2.election_cycle = "Fall"
CREATE TABLE INST, Here is a database schema( table schema);
Count the number of male students who had class senator votes in the fall election cycle.It is not neccessary to use all the tables.
SELECT 2010 FROM table WHERE 2013 = grand slam tournaments
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 value of the 2013 Grand Slam Tournaments?.It is not neccessary to use all the tables.
SELECT partner FROM table_name_94 WHERE score_in_final = "6–1, 6–2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Partner has a Score in Final of 6–1 6–2?It is not neccessary to use all the tables.
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of revenue , and group by attribute name, and sort in asc by the x-axis.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = ed oliver
CREATE TABLE INST, Here is a database schema( table schema);
Name the place for ed oliver.It is not neccessary to use all the tables.
SELECT grid FROM table_name_67 WHERE time = "+0.180"
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid with a +0.180 time?It is not neccessary to use all the tables.
SELECT rank_final FROM table_name_41 WHERE year < 2007
CREATE TABLE INST, Here is a database schema( table schema);
What was the rank final before 2007?It is not neccessary to use all the tables.
SELECT MAX Gold FROM table WHERE Total > 32
CREATE TABLE INST, Here is a database schema( table schema);
For countries that won more than 32 gold medals, what was the highest number of golds?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_47 WHERE score = "6–5 (10)"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the game with a score of 6–5 (10)?It is not neccessary to use all the tables.
SELECT money_requested__£_ FROM table_name_39 WHERE company_or_product_name = "neurotica"
CREATE TABLE INST, Here is a database schema( table schema);
How much money did the company Neurotica request?It is not neccessary to use all the tables.