sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Womens Singles FROM table WHERE Year Location = 1999 Rio de Janeiro
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of womens singles for 1999 rio de janeiro.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
I want the away team score for away team of fitzroy.It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_36 WHERE time = "2:25.65" AND lane > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3?It is not neccessary to use all the tables.
SELECT clay FROM table_name_36 WHERE record = "2–0" AND hard = "1–0"
CREATE TABLE INST, Here is a database schema( table schema);
Which clay has a Record of 2–0 and a Hard 1–0?It is not neccessary to use all the tables.
SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY Sex
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart shows the distribution of Sex and the sum of Weight , and group by attribute Sex, could you list X-axis from low to high order?It is not neccessary to use all the tables.
SELECT Dominant religion (2002) FROM table WHERE Largest ethnic group (2002) = Slovaks AND Type = village
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village?.It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_92 WHERE team = "vitória" AND played > 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of points team vitória which had more than 38 played had?It is not neccessary to use all the tables.
SELECT AVG Rating FROM table WHERE Night Rank = 11 AND Timeslot Rank > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4?.It is not neccessary to use all the tables.
SELECT MIN Other Black Population FROM table WHERE Black African Population = 37811
CREATE TABLE INST, Here is a database schema( table schema);
How much is the other black population when the black African population is 37811?.It is not neccessary to use all the tables.
SELECT longitude FROM table_name_27 WHERE latitude = "61.0s"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Longitude of the 61.0s Latitude?It is not neccessary to use all the tables.
SELECT Weight FROM table WHERE Name = billy miller category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
What is the Weight for the Name Billy Miller Category:Articles with hcards?.It is not neccessary to use all the tables.
SELECT AVG Round FROM table WHERE School/Club Team = memphis
CREATE TABLE INST, Here is a database schema( table schema);
In what Round was the Memphis Player drafted?.It is not neccessary to use all the tables.
SELECT Home Games FROM table WHERE Team = Seattle Seahawks
CREATE TABLE INST, Here is a database schema( table schema);
What is the number listed in home games when the team is Seattle Seahawks?.It is not neccessary to use all the tables.
SELECT Finalist FROM table WHERE Week = march 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the finalist in the week of March 12?.It is not neccessary to use all the tables.
SELECT Termination of Mission FROM table WHERE Appointed by = woodrow wilson AND Representative = benton mcmillin
CREATE TABLE INST, Here is a database schema( table schema);
Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin.It is not neccessary to use all the tables.
SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = "boise state"
CREATE TABLE INST, Here is a database schema( table schema);
What is CFL Team when Pick # is greater than 34 and when College is Boise State?It is not neccessary to use all the tables.
SELECT Playoffs FROM table WHERE Division = 2 AND Regular Season = 4th, southeast
CREATE TABLE INST, Here is a database schema( table schema);
Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?.It is not neccessary to use all the tables.
SELECT SUM(release_date) FROM table_name_32 WHERE media = "cd" AND country = "uk" AND music_label = "eg records"
CREATE TABLE INST, Here is a database schema( table schema);
What is the release date of the CD by EG Records in the UK?It is not neccessary to use all the tables.
SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175"
CREATE TABLE INST, Here is a database schema( table schema);
What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?It is not neccessary to use all the tables.
SELECT save FROM table_name_32 WHERE opponent = "sinon bulls" AND loss = "jeriome robertson"
CREATE TABLE INST, Here is a database schema( table schema);
Who earned the save in the game against the Sinon Bulls when Jeriome Robertson took the loss?It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Date performed = august 13 AND Position = safe
CREATE TABLE INST, Here is a database schema( table schema);
What Status has a Date performed of august 13, and a Position of safe?.It is not neccessary to use all the tables.
SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of high schoolers who have likes and numbers of likes for each.It is not neccessary to use all the tables.
SELECT "Mixed doubles" FROM table_71163 WHERE "Men's singles" = 'simon santoso' AND "Year" > '2008'
CREATE TABLE INST, Here is a database schema( table schema);
Who participated in the Mixed Doubles when Simon Santoso participated in the Men's Singles after 2008?It is not neccessary to use all the tables.
SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'
CREATE TABLE INST, Here is a database schema( table schema);
What are the resident details containing the substring 'Miss'?It is not neccessary to use all the tables.
SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa"
CREATE TABLE INST, Here is a database schema( table schema);
Listed with a continent of Africa and before 2009 this structure is called what?It is not neccessary to use all the tables.
SELECT score FROM table_name_57 WHERE date = "february 10"
CREATE TABLE INST, Here is a database schema( table schema);
What score has February 10 as the date?It is not neccessary to use all the tables.
SELECT MAX(silver) FROM table_name_55 WHERE rank = 9 AND nation = "germany" AND gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Entries = 25,883
CREATE TABLE INST, Here is a database schema( table schema);
Which event had 25,883 entries? .It is not neccessary to use all the tables.
SELECT Away FROM table WHERE Time = 14:00
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away with a Time that is 14:00?.It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Attendance with a Result that is w 24-21?It is not neccessary to use all the tables.
SELECT "Industrial Use (m 3 /p/yr)(in %)" FROM table_76025 WHERE "Total Freshwater Withdrawal (km 3 /yr)" < '82.75' AND "Agricultural Use (m 3 /p/yr)(in %)" = '1363(92%)'
CREATE TABLE INST, Here is a database schema( table schema);
What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?It is not neccessary to use all the tables.
SELECT COUNT(score) FROM table_27756164_8 WHERE team = "Orlando"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the team is Orlando?It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_22 WHERE losses < 12 AND goals_against < 50 AND goal_difference > 11 AND played < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest points for positions with under 12 losses goals against under 50 goal difference over 11 and under 30 played?It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_70 WHERE pick < 10 AND name = "larry hendershot"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds have a Pick smaller than 10 and a Name of larry hendershot?It is not neccessary to use all the tables.
SELECT date FROM table_name_78 WHERE game = "game 7"
CREATE TABLE INST, Here is a database schema( table schema);
On what day was Game 7 of this season played?It is not neccessary to use all the tables.
SELECT english_translation FROM table_1740431_3 WHERE tamil_months = "mārkazhi, tai"
CREATE TABLE INST, Here is a database schema( table schema);
What is every English translation when Tamil months is M rkazhi, Tai?It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Year < 1992 AND Nominated work = yerma
CREATE TABLE INST, Here is a database schema( table schema);
What categories had a Nominated work of yerma before 1992?.It is not neccessary to use all the tables.
SELECT team FROM table_name_56 WHERE series = "astc round 1"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TEAM WITH astc round 1?It is not neccessary to use all the tables.
SELECT Trainer FROM table WHERE Time = 1:09.40
CREATE TABLE INST, Here is a database schema( table schema);
Who trained the horse with time of 1:09.40?.It is not neccessary to use all the tables.
SELECT 2007 FROM table_name_23 WHERE 2008 = "153"
CREATE TABLE INST, Here is a database schema( table schema);
With a 2008 result of 153 what is the result for 2007?It is not neccessary to use all the tables.
SELECT cfl_team FROM table_23619005_3 WHERE position = "SB"
CREATE TABLE INST, Here is a database schema( table schema);
What CFL team was the player playing on SB position drafted for?It is not neccessary to use all the tables.
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year retired of the locomotive which had the quantity made of 25?It is not neccessary to use all the tables.
SELECT AVG("Attendance") FROM table_55985 WHERE "Date" = 'october 9, 1983'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance on October 9, 1983?It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Grand Prix = Monaco Grand Prix
CREATE TABLE INST, Here is a database schema( table schema);
Who was on the pole position at the monaco grand prix?.It is not neccessary to use all the tables.
SELECT T2.name, T1.category_id FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id ORDER BY T2.name
CREATE TABLE INST, Here is a database schema( table schema);
List the genre name and genre id using a bar chart, and show from low to high by the bar please.It is not neccessary to use all the tables.
SELECT Years in Orlando FROM table WHERE School/Club Team = Penn State
CREATE TABLE INST, Here is a database schema( table schema);
Name the years in orlando for penn state.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_5 WHERE opponents = 16
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent with 16 points?It is not neccessary to use all the tables.
SELECT party FROM table_name_94 WHERE name = "madeleine plamondon"
CREATE TABLE INST, Here is a database schema( table schema);
Which party is Madeleine Plamondon a member of?It is not neccessary to use all the tables.
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976
CREATE TABLE INST, Here is a database schema( table schema);
How many championships did the team or teams established in 1976 win?It is not neccessary to use all the tables.
SELECT SUM(wins) FROM table_name_51 WHERE draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the number of wins for teams with more than 0 draws?It is not neccessary to use all the tables.
SELECT COUNT League Cup FROM table WHERE FA Cup < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many league cups have an FA Cup less than 0?.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_97 WHERE champion = "robert coombes" AND date = "may 7"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT YEAR WAS ROBERT COOMBES CHAMPION ON MAY 7?It is not neccessary to use all the tables.
SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l"
CREATE TABLE INST, Here is a database schema( table schema);
Which First has a Position of c and Bats of l?It is not neccessary to use all the tables.
SELECT SUM Design flow (LPM) FROM table WHERE Partner = app AND Construction Start = 2008 january AND Population Served > 3500
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?.It is not neccessary to use all the tables.
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp"
CREATE TABLE INST, Here is a database schema( table schema);
What Australian Marquee team is Michael Beauchamp a captain of?It is not neccessary to use all the tables.
SELECT date FROM table_27756314_8 WHERE team = "Orlando"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for the game with team orlando?It is not neccessary to use all the tables.
SELECT "RECNet" FROM table_41559 WHERE "City of license" = 'elk lake'
CREATE TABLE INST, Here is a database schema( table schema);
What RECNet has elk lake as the city of license?It is not neccessary to use all the tables.
SELECT candidates FROM table_1342256_40 WHERE district = "South Carolina 4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the candidate for south carolina 4?It is not neccessary to use all the tables.
SELECT total FROM table_name_5 WHERE silver = "0" AND competitors = "31"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Total the Year Yugoslavia had 0 Silver medals and 31 Competitors?It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many ranks have a Bronze smaller than 8 and a Total smaller than 7 and a Gold smaller than 1?It is not neccessary to use all the tables.
SELECT COUNT(region) FROM table_name_14 WHERE name = "malartic" AND area__km_2__ < 159.31
CREATE TABLE INST, Here is a database schema( table schema);
What was the region for Malartic with 159.31 km2?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Year = 2013
CREATE TABLE INST, Here is a database schema( table schema);
What is Winner, when Year is 2013?.It is not neccessary to use all the tables.
SELECT date FROM table_name_93 WHERE japan = "0.61 million"
CREATE TABLE INST, Here is a database schema( table schema);
Which date had Japanese sales of 0.61 million?It is not neccessary to use all the tables.
SELECT MIN(runners) FROM table_name_34 WHERE dist__f_ = 10.5
CREATE TABLE INST, Here is a database schema( table schema);
Name the least runners with dist of 10.5It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Player = alexandre jacques
CREATE TABLE INST, Here is a database schema( table schema);
What is the Nationality for alexandre jacques?.It is not neccessary to use all the tables.
SELECT location FROM table_name_31 WHERE score = "3–2" AND record = "3–2–3"
CREATE TABLE INST, Here is a database schema( table schema);
Which location has a Score of 3–2 and a Record of 3–2–3?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Content = televendite
CREATE TABLE INST, Here is a database schema( table schema);
What Country's content is Televendite?.It is not neccessary to use all the tables.
SELECT MIN League Cup Goals FROM table WHERE Name = tyrone thompson AND FLT Goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many league cup goals for tyrone thompson with 0 FLT goals?.It is not neccessary to use all the tables.
SELECT COUNT(city___municipality) FROM table_2562572_2 WHERE urban_settlement = "Srbobran"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of cities/municipalities having an urban settlement of Srbobran?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Opponents = antonia xenia tout nataša zorić
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the tournament when antonia xenia tout nataša zorić was the opponenet?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_53 WHERE record = "1-1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for the game that has a record of 1-1?It is not neccessary to use all the tables.
SELECT score FROM table_11960610_10 WHERE location_attendance = "United Center 22,097"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of united center 22097?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = Eugene Worley
CREATE TABLE INST, Here is a database schema( table schema);
What district is eugene worley from?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE First Year = 1950 AND Publisher = ec comics AND Last Year = 1953
CREATE TABLE INST, Here is a database schema( table schema);
Which EC Comics title ran from 1950 to 1953?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick < 41 AND School/Club Team = ohio state
CREATE TABLE INST, Here is a database schema( table schema);
Which position has a pick less than 41 from Ohio State?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE League = 3rd liga AND Away = 4-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the home with a league 3rd liga, and an away of 4-0?.It is not neccessary to use all the tables.
SELECT bats FROM table_name_88 WHERE first = "todd"
CREATE TABLE INST, Here is a database schema( table schema);
How many bats does Todd have?It is not neccessary to use all the tables.
SELECT nominee FROM table_name_73 WHERE award_ceremony = "tony award" AND category = "best performance by a leading actor in a musical"
CREATE TABLE INST, Here is a database schema( table schema);
Which Nominee has an Award Ceremony of tony award and a Category of the best performance by a leading actor in a musical?It is not neccessary to use all the tables.
SELECT MAX(new_points) FROM table_20855452_4 WHERE points = 2200
CREATE TABLE INST, Here is a database schema( table schema);
What was the max when they score 2200?It is not neccessary to use all the tables.
SELECT L3 cache FROM table WHERE Release price ( USD ) = $440
CREATE TABLE INST, Here is a database schema( table schema);
What is the L3 cache of the processor with a release price of $440?.It is not neccessary to use all the tables.
SELECT SUM FAC / LC Apps FROM table WHERE PL Apps < 25 AND UEFA YC < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the FAC/LC apps with less than 25 PC apps and a UEFA YC less than 0?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Start = 3 AND Finish = 26 AND Year = 1955
CREATE TABLE INST, Here is a database schema( table schema);
What was Jack McGrath's rank in 1955 when he started at 3 and finished at 26?.It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Place = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the athlete for 3.It is not neccessary to use all the tables.
SELECT Mall name FROM table WHERE Stores = 140
CREATE TABLE INST, Here is a database schema( table schema);
Which Mall has 140 stores?.It is not neccessary to use all the tables.
SELECT role FROM table_name_22 WHERE pick__number = 10
CREATE TABLE INST, Here is a database schema( table schema);
What role did Pick # 10 have?It is not neccessary to use all the tables.
SELECT MAX(grid) FROM table_name_28 WHERE time_retired = "engine" AND laps < 66
CREATE TABLE INST, Here is a database schema( table schema);
What is the top grid that laps less than 66 and a retried engine?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Extra points = 4
CREATE TABLE INST, Here is a database schema( table schema);
What position did the player who scored 4 extra points play?.It is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Away team score = 8.15 (63)
CREATE TABLE INST, Here is a database schema( table schema);
What is the crowd size of the game where the away team scored 8.15 (63)?.It is not neccessary to use all the tables.
SELECT County FROM table WHERE % (2040) > 1.8 AND % (2000) < 4.1 AND % (1960) < 3.2 AND Rank = 13
CREATE TABLE INST, Here is a database schema( table schema);
Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?.It is not neccessary to use all the tables.
SELECT COUNT(average) FROM table_name_34 WHERE balls_faced > 297 AND innings > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of averages having a balls faced over 297 and more than 7 innings?It is not neccessary to use all the tables.
SELECT Teaching language FROM table WHERE Duration (years) < 2 AND ECTS Credit Points < 65
CREATE TABLE INST, Here is a database schema( table schema);
What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?.It is not neccessary to use all the tables.
SELECT turnout__percentage FROM table_name_11 WHERE ngilu = "3,429"
CREATE TABLE INST, Here is a database schema( table schema);
What's listed for the Turnout % with a Ngilu of 3429?It is not neccessary to use all the tables.
SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-29"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Poles < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many points are associated with 0 poles?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_62 WHERE date = "october 11, 1953"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Opponent that has the Date of october 11 1953?It is not neccessary to use all the tables.
SELECT D 47 + FROM table WHERE D 46 O = majority→
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the D 47 for D 46 O of majority→.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game = 2
CREATE TABLE INST, Here is a database schema( table schema);
On what day was game 2 played?.It is not neccessary to use all the tables.
SELECT MIN Game FROM table WHERE Batting 2nd = new zealand 6/133 (18)
CREATE TABLE INST, Here is a database schema( table schema);
what is the game when batting 2nd is new zealand 6/133 (18)?.It is not neccessary to use all the tables.
SELECT MAX Population FROM table WHERE Country/territory/entity = seychelles AND Rank < 13
CREATE TABLE INST, Here is a database schema( table schema);
Name the most population for seychelles and rank less than 13.It is not neccessary to use all the tables.
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair"
CREATE TABLE INST, Here is a database schema( table schema);
What Week 3 has a Week 4 of gina blair?It is not neccessary to use all the tables.