text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, losses VARCHAR)
### Question:
Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23?
### Answer:
SELECT MAX(position) FROM table_name_9 WHERE goals_against < 54 AND losses = 7 AND goal_difference > 23
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR)
### Question:
Who is the Opponent of the match with a Record of 0-1?
### Answer:
SELECT opponent FROM table_name_12 WHERE record = "0-1"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1918850_2 (surface VARCHAR, score_in_the_final VARCHAR)
### Question:
what is the surface of the final which had score 6-2, 6-3
### Answer:
SELECT surface FROM table_1918850_2 WHERE score_in_the_final = "6-2, 6-3"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (released VARCHAR, memory_type VARCHAR)
### Question:
Whas is the released date of the memory type ddr2-667?
### Answer:
SELECT released FROM table_name_42 WHERE memory_type = "ddr2-667"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE poker_player (Earnings INTEGER)
### Question:
What is the average earnings of poker players?
### Answer:
SELECT AVG(Earnings) FROM poker_player
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR)
### Question:
who won with a score of 199 (-14) on oct 31?
### Answer:
SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
### Question:
What was the final score for the match played in Venue H and the opponent was Newcastle United?
### Answer:
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
### Question:
What was the home team score at Melbourne's away match?
### Answer:
SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (venue VARCHAR, away_team VARCHAR)
### Question:
Where was the game played where North Melbourne was the away team?
### Answer:
SELECT venue FROM table_name_40 WHERE away_team = "north melbourne"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR)
### Question:
What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?
### Answer:
SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR)
### Question:
What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?
### Answer:
SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR)
### Question:
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?
### Answer:
SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (winning_team VARCHAR, fastest_lap VARCHAR)
### Question:
Which team had the fastest lap of 1:13.516?
### Answer:
SELECT winning_team FROM table_name_47 WHERE fastest_lap = "1:13.516"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE albums (title VARCHAR)
### Question:
List every album whose title starts with A in alphabetical order.
### Answer:
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (format VARCHAR, label VARCHAR)
### Question:
Which format was under the London Records label?
### Answer:
SELECT format FROM table_name_32 WHERE label = "london records"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
### Question:
What is sheffield united's away team?
### Answer:
SELECT away_team FROM table_name_74 WHERE home_team = "sheffield united"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR, team VARCHAR, tyres VARCHAR)
### Question:
What Chassis did Team BMS Scuderia Italia use with G Tyres and a Ferrari 037 3.5 v12 engine?
### Answer:
SELECT chassis FROM table_name_76 WHERE team = "bms scuderia italia" AND tyres = "g" AND engine = "ferrari 037 3.5 v12"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (party VARCHAR, district VARCHAR)
### Question:
What party has the district Georgia 7?
### Answer:
SELECT party FROM table_name_46 WHERE district = "georgia 7"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_184803_4 (commentator VARCHAR, spokespersons VARCHAR)
### Question:
who was the commentator when spokesperson was claude darget
### Answer:
SELECT commentator FROM table_184803_4 WHERE spokespersons = "Claude Darget"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### Question:
What is the average week with St. Louis Cardinals with less than 80,010 attendance?
### Answer:
SELECT AVG(week) FROM table_name_99 WHERE opponent = "st. louis cardinals" AND attendance < 80 OFFSET 010
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (record VARCHAR, result VARCHAR, opponent VARCHAR)
### Question:
Which Record has a Result of loss, and an Opponent of @ la clippers?
### Answer:
SELECT record FROM table_name_53 WHERE result = "loss" AND opponent = "@ la clippers"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
### Question:
Who were the opposing team when playing in the Portugal venue?
### Answer:
SELECT opponents FROM table_name_49 WHERE venue = "portugal"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (number INTEGER, date VARCHAR)
### Question:
What's the number of the game played on January 2, 1936?
### Answer:
SELECT MIN(number) FROM table_name_10 WHERE date = "january 2, 1936"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
### Question:
What was the score of the home team when Richmond was the away team?
### Answer:
SELECT home_team AS score FROM table_name_42 WHERE away_team = "richmond"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, grid VARCHAR, constructor VARCHAR)
### Question:
What is the average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button?
### Answer:
SELECT AVG(laps) FROM table_name_49 WHERE grid < 17 AND constructor = "williams - bmw" AND driver = "jenson button"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (loser VARCHAR, weight_division VARCHAR, time VARCHAR)
### Question:
Who was the loser of the heavyweight division fight that lasted a time of 2:24?
### Answer:
SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2:24"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (home_team VARCHAR, tie_no VARCHAR)
### Question:
What team was the home team when the tie no was 27?
### Answer:
SELECT home_team FROM table_name_23 WHERE tie_no = "27"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR, tie_no VARCHAR)
### Question:
What is the Home team of Tie no 11?
### Answer:
SELECT home_team FROM table_name_19 WHERE tie_no = "11"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (career VARCHAR)
### Question:
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
### Answer:
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (date VARCHAR, score VARCHAR)
### Question:
What is the Date of the tournament with a Score of 6-1 6-3?
### Answer:
SELECT date FROM table_name_22 WHERE score = "6-1 6-3"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR)
### Question:
How many times did drinking games win the poll?
### Answer:
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (Id VARCHAR)
### Question:
What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?
### Answer:
SELECT MAX(2009) FROM table_name_10 WHERE 2006 < 280.4 AND 2007 < 2.2 AND 2010 < 3.5
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE operate_company (group_equity_shareholding INTEGER)
### Question:
What is maximum group equity shareholding of the companies?
### Answer:
SELECT MAX(group_equity_shareholding) FROM operate_company
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (opponents_in_the_final VARCHAR, date VARCHAR, partnering VARCHAR, surface VARCHAR)
### Question:
Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?
### Answer:
SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = "bruno soares" AND surface = "clay" AND date = "august 1, 2010"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)
### Question:
How many civilians died in the conflict that had a total of 1,130 casualties?
### Answer:
SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19744915_16 (judges VARCHAR, couple VARCHAR)
### Question:
What is the judge's total for Roxanne and Daniel?
### Answer:
SELECT judges FROM table_19744915_16 WHERE couple = "Roxanne and Daniel"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR)
### Question:
What's the name of the train that goes to Bhubaneswar?
### Answer:
SELECT train_name FROM table_23477312_1 WHERE destination = "Bhubaneswar"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (country VARCHAR, player VARCHAR)
### Question:
What country is Steve Jones from?
### Answer:
SELECT country FROM table_name_55 WHERE player = "steve jones"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
### Question:
Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?
### Answer:
SELECT MAX(overall) FROM table_name_19 WHERE college = "oklahoma" AND pick__number < 4
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (losses VARCHAR, byes INTEGER)
### Question:
Of the teams that had more than 0 byes, what was the total number of losses?
### Answer:
SELECT COUNT(losses) FROM table_name_54 WHERE byes < 0
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (location VARCHAR, event VARCHAR)
### Question:
Where was the event Kage Kombat 16?
### Answer:
SELECT location FROM table_name_76 WHERE event = "kage kombat 16"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR)
### Question:
What is the district that has Bob Wilson as an incumbent?
### Answer:
SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
### Question:
When playing at the Kardinia Park; what was the home teams score?
### Answer:
SELECT home_team AS score FROM table_name_39 WHERE venue = "kardinia park"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (score VARCHAR, total VARCHAR)
### Question:
Which Score has a Total of 80–72?
### Answer:
SELECT score FROM table_name_55 WHERE total = "80–72"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR, venue VARCHAR)
### Question:
What was the result of the game with more than 12 goals at Pasadena?
### Answer:
SELECT result FROM table_name_80 WHERE goal > 12 AND venue = "pasadena"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR)
### Question:
What are the ids of documents which don't have expense budgets?
### Answer:
SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (date VARCHAR, result VARCHAR)
### Question:
What is the Date when the result is *non-conference game. #rankings from ap poll .?
### Answer:
SELECT date FROM table_name_65 WHERE result = "*non-conference game. #rankings from ap poll ."
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, player VARCHAR)
### Question:
What position did a. j. feeley play who was picked in round 5?
### Answer:
SELECT position FROM table_name_70 WHERE round = 5 AND player = "a. j. feeley"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR)
### Question:
What is City, when Country is "Kuwait"?
### Answer:
SELECT city FROM table_name_58 WHERE country = "kuwait"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (pick__number INTEGER, pl_gp INTEGER)
### Question:
Name the highest pick number for PI GP more than 55
### Answer:
SELECT MAX(pick__number) FROM table_name_28 WHERE pl_gp > 55
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_269888_1 (area__km²_ VARCHAR, population__2010_ VARCHAR)
### Question:
Name the area for population of 53542
### Answer:
SELECT area__km²_ FROM table_269888_1 WHERE population__2010_ = 53542
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
### Question:
Can you tell me the Record that has the Date of january 29?
### Answer:
SELECT record FROM table_name_57 WHERE date = "january 29"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27713030_12 (date VARCHAR, team VARCHAR)
### Question:
What was the date when Boston was the team?
### Answer:
SELECT date FROM table_27713030_12 WHERE team = "Boston"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR)
### Question:
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%
### Answer:
SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)
### Question:
What is the total number of unique official languages spoken in the countries that are founded before 1930?
### Answer:
SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (attendance INTEGER, decision VARCHAR, visitor VARCHAR)
### Question:
What was the lowest attendance at the game against chicago when conklin made the decision?
### Answer:
SELECT MIN(attendance) FROM table_name_21 WHERE decision = "conklin" AND visitor = "chicago"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (total VARCHAR, year_built VARCHAR)
### Question:
How many entries feature a year built of 2010?
### Answer:
SELECT COUNT(total) FROM table_name_24 WHERE year_built = 2010
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (position VARCHAR, school_country VARCHAR)
### Question:
What position does the player from arkansas play?
### Answer:
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR)
### Question:
In how many districts was the democratic incumbent elected in 1974?
### Answer:
SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR)
### Question:
What did United States place when the player was Raymond Floyd?
### Answer:
SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE singer (age INTEGER, country VARCHAR)
### Question:
What is the average, minimum, and maximum age of all singers from France?
### Answer:
SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
### Question:
How many different courses offered by Physics department?
### Answer:
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (score VARCHAR, team VARCHAR)
### Question:
For the game with team of @ Chicago, what was the final score?
### Answer:
SELECT score FROM table_name_19 WHERE team = "@ chicago"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Vehicles (vehicle_id VARCHAR)
### Question:
List all vehicle id
### Answer:
SELECT vehicle_id FROM Vehicles
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (score VARCHAR, result VARCHAR)
### Question:
Which score has a Result of 11–0?
### Answer:
SELECT score FROM table_name_65 WHERE result = "11–0"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)
### Question:
What is listed in game when the location attendance is listed as Keyarena 16,841?
### Answer:
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (capacity INTEGER, stadium VARCHAR)
### Question:
What is the highest capacity that has stadio marcello torre as the stadium?
### Answer:
SELECT MAX(capacity) FROM table_name_80 WHERE stadium = "stadio marcello torre"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR)
### Question:
Which platforms can you play Portal 2 on?
### Answer:
SELECT platform_s_ FROM table_name_88 WHERE game = "portal 2"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_82 (lane INTEGER, mark VARCHAR, heat VARCHAR)
### Question:
What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?
### Answer:
SELECT MAX(lane) FROM table_name_82 WHERE mark = "2:02.27 nr" AND heat < 2
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
### Question:
Which template type code is used by most number of documents?
### Answer:
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR)
### Question:
What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?
### Answer:
SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (points_against VARCHAR, try_bonus VARCHAR)
### Question:
What is Points Against, when Try Bonus is "Try bonus"?
### Answer:
SELECT points_against FROM table_name_77 WHERE try_bonus = "try bonus"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (date VARCHAR, home VARCHAR)
### Question:
Which date had a home team of the Wizards?
### Answer:
SELECT date FROM table_name_15 WHERE home = "wizards"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13258806_2 (attendance VARCHAR, result VARCHAR)
### Question:
What was the attendance at the game that resulted in w 24-20?
### Answer:
SELECT attendance FROM table_13258806_2 WHERE result = "W 24-20"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (team_2 VARCHAR)
### Question:
What was the 1st leg when team 2 was nov milenium?
### Answer:
SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR)
### Question:
When the result was l 13-7 ot, who was the opponent?
### Answer:
SELECT opponent FROM table_name_27 WHERE result = "l 13-7 ot"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14563349_11 (opponent VARCHAR, location VARCHAR)
### Question:
Who was the opposing team played at Riverfront Stadium?
### Answer:
SELECT opponent FROM table_14563349_11 WHERE location = "Riverfront Stadium"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (mountain_range VARCHAR, mountain_peak VARCHAR)
### Question:
Which mountain range includes Mount Hubbard?
### Answer:
SELECT mountain_range FROM table_name_64 WHERE mountain_peak = "mount hubbard"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (score VARCHAR, to_par VARCHAR)
### Question:
When the To par is E, what is the Score?
### Answer:
SELECT score FROM table_name_62 WHERE to_par = "e"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
### Question:
What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio?
### Answer:
SELECT place_of_birth FROM table_name_78 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. eustachio"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (perigee__km_ INTEGER, launch_date VARCHAR)
### Question:
What is the lowest Perigee with a Launch date of 1970-08-26?
### Answer:
SELECT MIN(perigee__km_) FROM table_name_30 WHERE launch_date = "1970-08-26"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_3005999_1 (route_number VARCHAR, origin VARCHAR, destination VARCHAR)
### Question:
How many route numbers occur for the origin of Birmingham and destination of Bristol?
### Answer:
SELECT COUNT(route_number) FROM table_3005999_1 WHERE origin = "Birmingham" AND destination = "Bristol"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2818164_2 (title VARCHAR, original_air_date VARCHAR)
### Question:
How many different titles does the episode originally aired on September 27, 1984 have?
### Answer:
SELECT COUNT(title) FROM table_2818164_2 WHERE original_air_date = "September 27, 1984"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1342013_9 (result VARCHAR, district VARCHAR)
### Question:
what's the result with dbeingtrict being florida 4
### Answer:
SELECT result FROM table_1342013_9 WHERE district = "Florida 4"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18143210_2 (number_of_seasons_in_top_division INTEGER, first_season_in_top_division VARCHAR)
### Question:
How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91?
### Answer:
SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2001348_1 (revising_convention_s_ VARCHAR, denunciations__september_2011_ VARCHAR)
### Question:
What were the revising conventions commentary with a denunciation of 21?
### Answer:
SELECT revising_convention_s_ FROM table_2001348_1 WHERE denunciations__september_2011_ = 21
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13570_1 (cytoplasm VARCHAR, nucleus VARCHAR)
### Question:
How many cytoplasms result in a blue nucleus?
### Answer:
SELECT COUNT(cytoplasm) FROM table_13570_1 WHERE nucleus = "Blue"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR)
### Question:
When Collingwood was the home team who was the opposing away team?
### Answer:
SELECT away_team FROM table_name_52 WHERE home_team = "collingwood"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR)
### Question:
Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1?
### Answer:
SELECT MIN(time) FROM table_name_66 WHERE nationality = "jamaica" AND lane > 4 AND rank < 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (division_southwest VARCHAR, division_north VARCHAR)
### Question:
Who won Division Southwest when Madžari Solidarnost won Division North?
### Answer:
SELECT division_southwest FROM table_name_4 WHERE division_north = "madžari solidarnost"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (draw VARCHAR, team VARCHAR)
### Question:
What is the Draw for the team of tramwajarz łódź?
### Answer:
SELECT draw FROM table_name_2 WHERE team = "tramwajarz łódź"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (version VARCHAR, genre VARCHAR, title VARCHAR)
### Question:
What is Version, when Genre is "Action", and when Title is "Hairball"?
### Answer:
SELECT version FROM table_name_39 WHERE genre = "action" AND title = "hairball"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR)
### Question:
who is the grand finalist where scores is 11.11 (77) – 10.8 (68)
### Answer:
SELECT grand_finalist FROM table_1139835_3 WHERE scores = "11.11 (77) – 10.8 (68)"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR)
### Question:
How much international mail has a change of +35,7% later than 2008?
### Answer:
SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE weekly_weather (low_temperature INTEGER, wind_speed_mph INTEGER)
### Question:
show the lowest low temperature and highest wind speed in miles per hour.
### Answer:
SELECT MIN(low_temperature), MAX(wind_speed_mph) FROM weekly_weather
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (last_win VARCHAR, club VARCHAR)
### Question:
When was the last win of Celtic?
### Answer:
SELECT last_win FROM table_name_89 WHERE club = "celtic"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22879323_10 (score VARCHAR, game VARCHAR)
### Question:
What was the score when the game was 80?
### Answer:
SELECT score FROM table_22879323_10 WHERE game = 80
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR)
### Question:
What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?
### Answer:
SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = "boy" AND congresswoman = "kirsten gillibrand"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (event VARCHAR, year INTEGER)
### Question:
What is the event in a year before 1989?
### Answer:
SELECT event FROM table_name_37 WHERE year < 1989
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)
### Question:
For all games with calgary as home, what is the average number of attendees?
### Answer:
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.