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_93 (against INTEGER, position VARCHAR, drawn VARCHAR, lost VARCHAR)
### Question:
Which Against has a Drawn smaller than 5, a Lost of 3, and a Position of 3?
### Answer:
SELECT MIN(against) FROM table_name_93 WHERE drawn < 5 AND lost = 3 AND position = 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_30 (single___pack_name VARCHAR, genre VARCHAR, artist VARCHAR)
### Question:
What is the name of the available rock single/pack by REO Speedwagon?
### Answer:
SELECT single___pack_name FROM table_name_30 WHERE genre = "rock" AND artist = "reo speedwagon" |
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_16028499_2 (game_site VARCHAR, date VARCHAR)
### Question:
Where was the game site on October 29, 1989?
### Answer:
SELECT game_site FROM table_16028499_2 WHERE date = "October 29, 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_12834315_4 (stock VARCHAR, colt_model_no VARCHAR)
### Question:
Name the stock for colt model mt6601
### Answer:
SELECT stock FROM table_12834315_4 WHERE colt_model_no = "MT6601" |
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 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
### Question:
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
### Answer:
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552 |
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 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
### Question:
Which intergiro classification is there for team Polti at stage 14?
### Answer:
SELECT intergiro_classification FROM table_name_53 WHERE trofeo_fast_team = "team polti" AND stage = "14" |
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_13259034_2 (game_site VARCHAR, date VARCHAR)
### Question:
Where did the teams play on October 16, 1977?
### Answer:
SELECT game_site FROM table_13259034_2 WHERE date = "October 16, 1977" |
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_43 (time VARCHAR, res VARCHAR)
### Question:
When there was a draw, what was the time?
### Answer:
SELECT time FROM table_name_43 WHERE res = "draw" |
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 (score VARCHAR, stadium VARCHAR, date VARCHAR)
### Question:
What was the score at CN Centre on April 5, 2008?
### Answer:
SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 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 table_1137696_3 (winning_driver VARCHAR, grand_prix VARCHAR)
### Question:
Who is the driver of the european grand prix?
### Answer:
SELECT winning_driver FROM table_1137696_3 WHERE grand_prix = "European grand_prix" |
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_61 (played INTEGER, draws VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, losses VARCHAR)
### Question:
Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?
### Answer:
SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6 |
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 (Id VARCHAR)
### Question:
What 1998 has 2r as a 1993, and 1r as a 1990?
### Answer:
SELECT 1998 FROM table_name_46 WHERE 1993 = "2r" AND 1990 = "1r" |
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_41 (draws VARCHAR, wins VARCHAR, against VARCHAR)
### Question:
What is the total number of draws when there is 1 Win, and less than 1728 against matches?
### Answer:
SELECT COUNT(draws) FROM table_name_41 WHERE wins = 1 AND against < 1728 |
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 (grid INTEGER, time_retired VARCHAR)
### Question:
Which grid has a Time/Retired of +5.004?
### Answer:
SELECT MIN(grid) FROM table_name_95 WHERE time_retired = "+5.004" |
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_17 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
### Question:
Name the most bronze for silver more than 6 and total less than 127 with gold less than 11
### Answer:
SELECT MAX(bronze) FROM table_name_17 WHERE silver > 6 AND total < 127 AND gold < 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_95 (rank INTEGER, total VARCHAR, silver VARCHAR)
### Question:
What is the rank of the team with 11 total medals and more than 4 silver medals has?
### Answer:
SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 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_21 (position VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)
### Question:
What position is there when the main contestant is Vishal Singh and the scores are 1 + 7 + 5 = 13?
### Answer:
SELECT position FROM table_name_21 WHERE main_contestant = "vishal singh" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13 |
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_8 (start VARCHAR, stage VARCHAR)
### Question:
What is the start of stage 11?
### Answer:
SELECT start FROM table_name_8 WHERE stage = 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_1012730_2 (team_s_ VARCHAR, top_5 VARCHAR, wins VARCHAR)
### Question:
What teams had 9 in the top 5 and 1 wins?
### Answer:
SELECT team_s_ FROM table_1012730_2 WHERE top_5 = 9 AND wins = 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_71 (language VARCHAR, television_service VARCHAR, content VARCHAR, hdtv VARCHAR)
### Question:
What is Language, when Content is Sport, when HDTV is No, and when Television Service is ESPN America?
### Answer:
SELECT language FROM table_name_71 WHERE content = "sport" AND hdtv = "no" AND television_service = "espn america" |
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_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR)
### Question:
Who was the opponent when there was 81 rushing yards?
### Answer:
SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 81 |
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 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)
### Question:
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
### Answer:
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006 |
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 (series_ep VARCHAR, netflix VARCHAR)
### Question:
Which series episode has a Netflix episode of S03E16?
### Answer:
SELECT series_ep FROM table_name_55 WHERE netflix = "s03e16" |
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_83 (east VARCHAR, west VARCHAR)
### Question:
What is the east with ev landsberg as the west?
### Answer:
SELECT east FROM table_name_83 WHERE west = "ev landsberg" |
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 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR)
### Question:
Who was the opponent when they played at Delta Center with a record of 27-13?
### Answer:
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13" |
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_17118006_2 (department VARCHAR, irrigated_ha VARCHAR)
### Question:
What department irrigated 2170 Ha?
### Answer:
SELECT department FROM table_17118006_2 WHERE irrigated_ha = 2170 |
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 (date VARCHAR, attendance INTEGER)
### Question:
Which Date has an Attendance larger than 1,858?
### Answer:
SELECT date FROM table_name_32 WHERE attendance > 1 OFFSET 858 |
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_1253396_5 (goals_for VARCHAR, overall_record VARCHAR)
### Question:
The Dallas Burn had a 12-9-7 record and what number of goals for?
### Answer:
SELECT goals_for FROM table_1253396_5 WHERE overall_record = "12-9-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_name_49 (type VARCHAR, category VARCHAR, attribute VARCHAR)
### Question:
Tell me the type for category of mouse and attribute of ondblclick
### Answer:
SELECT type FROM table_name_49 WHERE category = "mouse" AND attribute = "ondblclick" |
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 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR)
### Question:
What was the highest match when the away opponent was Dalian Shide Siwu?
### Answer:
SELECT MAX(match) FROM table_name_53 WHERE opponent_team = "dalian shide siwu" AND home_away = "away" |
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 (team VARCHAR, qual_2 VARCHAR)
### Question:
Which team has a second qualification time of 1:01.936?
### Answer:
SELECT team FROM table_name_40 WHERE qual_2 = "1:01.936" |
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 (round INTEGER, pick__number INTEGER)
### Question:
What is the highest round that had a pick lower than 8?
### Answer:
SELECT MAX(round) FROM table_name_58 WHERE pick__number < 8 |
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 (rider VARCHAR, time VARCHAR)
### Question:
Name the Rider which has a Time of +59.304?
### Answer:
SELECT rider FROM table_name_33 WHERE time = "+59.304" |
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_22297140_3 (team VARCHAR, replaced_by VARCHAR)
### Question:
Which team had a manager replaced by Ebrahim Talebi?
### Answer:
SELECT team FROM table_22297140_3 WHERE replaced_by = "Ebrahim Talebi" |
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_22862203_2 (location VARCHAR, date VARCHAR)
### Question:
Where was the game on jan. 16/06 played?
### Answer:
SELECT location FROM table_22862203_2 WHERE date = "Jan. 16/06" |
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_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
### Question:
Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th?
### Answer:
SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND position = "4th" |
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_29 (score VARCHAR, golden_point_s__scorer VARCHAR)
### Question:
What is the Score of Golden Point(s) scorer Adam Reynolds?
### Answer:
SELECT score FROM table_name_29 WHERE golden_point_s__scorer = "adam reynolds" |
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 Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)
### Question:
Who are the customers that had more than 1 policy? List the customer details and id.
### Answer:
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 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_31 (reg_season VARCHAR, division VARCHAR)
### Question:
Which Reg Season has a Division of 2?
### Answer:
SELECT reg_season FROM table_name_31 WHERE division = 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_77 (years_at_club VARCHAR, debut_year VARCHAR, games VARCHAR, goals VARCHAR)
### Question:
What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950?
### Answer:
SELECT years_at_club FROM table_name_77 WHERE games > 28 AND goals > 225 AND debut_year > 1950 |
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_36 (distance VARCHAR, venue VARCHAR)
### Question:
In what Distance has a Venue of sale?
### Answer:
SELECT distance FROM table_name_36 WHERE venue = "sale" |
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_28967275_2 (episode_title VARCHAR, series__number VARCHAR)
### Question:
What is the title of the episode with series number 14?
### Answer:
SELECT episode_title FROM table_28967275_2 WHERE series__number = 14 |
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_21690339_1 (country VARCHAR, _percentage_of_imports_from_russia VARCHAR)
### Question:
What country had 20% imports from russia?
### Answer:
SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = "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_47 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
### Question:
What is the to par of player Tim Herron from the United States with a t3 place?
### Answer:
SELECT to_par FROM table_name_47 WHERE country = "united states" AND place = "t3" AND player = "tim herron" |
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 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR)
### Question:
What group on the island of Faray has a Height (m) of 32 and a Population of 0?
### Answer:
SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray" |
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_68 (class VARCHAR, points VARCHAR)
### Question:
What Class has 36 Points?
### Answer:
SELECT class FROM table_name_68 WHERE points = 36 |
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_31 (method VARCHAR, time VARCHAR)
### Question:
What was the method when the fight's time was 1:52?
### Answer:
SELECT method FROM table_name_31 WHERE time = "1:52" |
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_71 (game INTEGER, record VARCHAR)
### Question:
What was the game number when record is 59-15?
### Answer:
SELECT MIN(game) FROM table_name_71 WHERE record = "59-15" |
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 (year INTEGER, position VARCHAR, venue VARCHAR)
### Question:
What is the average year they finished 5th in santiago, chile?
### Answer:
SELECT AVG(year) FROM table_name_57 WHERE position = "5th" AND venue = "santiago, chile" |
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_75 (gross_tonnage INTEGER, ship VARCHAR, material VARCHAR, date_commissioned VARCHAR)
### Question:
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
### Answer:
SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk" |
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_63 (attendance INTEGER, opponents VARCHAR, falcons_points VARCHAR)
### Question:
What is the average attendance of the game with 38 opponent and less than 14 Falcons points?
### Answer:
SELECT AVG(attendance) FROM table_name_63 WHERE opponents = 38 AND falcons_points < 14 |
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_2784232_1 (approximate_translation VARCHAR, morphological_category VARCHAR)
### Question:
What are the approximate translations when the morphological category is masc. sing. active participle?
### Answer:
SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = "masc. sing. active participle" |
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_3 (year VARCHAR, result VARCHAR)
### Question:
In which year did he finish 8th?
### Answer:
SELECT year FROM table_name_3 WHERE result = "8th" |
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_13 (tournament VARCHAR)
### Question:
What is the tournament that had Grand Slam Tournaments in 1976?
### Answer:
SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments" |
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_23285849_7 (date VARCHAR, record VARCHAR)
### Question:
What was the date of the game when the record was 27-14?
### Answer:
SELECT date FROM table_23285849_7 WHERE record = "27-14" |
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_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)
### Question:
What is the pos with more than 1 tier during Pokal Slovenije 1. round?
### Answer:
SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round" |
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_36 (round INTEGER, name VARCHAR, overall VARCHAR)
### Question:
With an Overall less than 171, what is the Round pick of Lance Moon?
### Answer:
SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171 |
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 (Id VARCHAR)
### Question:
What is the 2006 total with a 2010 value greater than 417.9?
### Answer:
SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9 |
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_97 (year INTEGER, event VARCHAR)
### Question:
what year was the memphis event?
### Answer:
SELECT SUM(year) FROM table_name_97 WHERE event = "memphis" |
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_25055040_22 (sprint_classification VARCHAR, youth_classification VARCHAR, most_courageous VARCHAR)
### Question:
When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?
### Answer:
SELECT sprint_classification FROM table_25055040_22 WHERE youth_classification = "Peter Sagan" AND most_courageous = "Thomas Rabou" |
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 (bronze INTEGER, nation VARCHAR, total VARCHAR)
### Question:
What's the bronze count for South Africa (RSA) with a total more than 16?
### Answer:
SELECT MAX(bronze) FROM table_name_64 WHERE nation = "south africa (rsa)" AND total > 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_2668329_25 (party VARCHAR, district VARCHAR)
### Question:
What party won the Virginia 4 district?
### Answer:
SELECT party FROM table_2668329_25 WHERE district = "Virginia 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_28 (fineness VARCHAR, year INTEGER)
### Question:
What was the fineness prior to 2007?
### Answer:
SELECT fineness FROM table_name_28 WHERE year < 2007 |
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 (total INTEGER, country VARCHAR, year_s__won VARCHAR)
### Question:
What is United States total in the year(s) won of 2000 , 2005 , 2006?
### Answer:
SELECT MIN(total) FROM table_name_1 WHERE country = "united states" AND year_s__won = "2000 , 2005 , 2006" |
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 (points VARCHAR, date VARCHAR)
### Question:
How many Points have a Date of march 19, 2009?
### Answer:
SELECT COUNT(points) FROM table_name_7 WHERE date = "march 19, 2009" |
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 (week VARCHAR, result VARCHAR)
### Question:
What is the week with w 31-21 result?
### Answer:
SELECT week FROM table_name_7 WHERE result = "w 31-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_name_61 (team VARCHAR, game VARCHAR, date VARCHAR)
### Question:
Who was the Team that was played against on February 24 and a game after game 55?
### Answer:
SELECT team FROM table_name_61 WHERE game > 55 AND date = "february 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_32 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### Question:
What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
### Answer:
SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = "tim schenken" |
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 (date VARCHAR, record VARCHAR)
### Question:
Name the date for record 3-3
### Answer:
SELECT date FROM table_name_64 WHERE record = "3-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_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR)
### Question:
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13
### Answer:
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13" |
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_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR)
### Question:
What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?
### Answer:
SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535 |
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_27685921_1 (visitors__total_ VARCHAR, exhibitors__total_ VARCHAR)
### Question:
how many people come to visit when the 1654 exhibitions
### Answer:
SELECT COUNT(visitors__total_) FROM table_27685921_1 WHERE exhibitors__total_ = 1654 |
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 (year_named VARCHAR, longitude VARCHAR)
### Question:
What is Year Named, when Longitude is 227.5E?
### Answer:
SELECT year_named FROM table_name_42 WHERE longitude = "227.5e" |
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 (total VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
### Question:
What is the total when gold is 1, and rank is more than 4, and bronze is 0?
### Answer:
SELECT COUNT(total) FROM table_name_1 WHERE gold = 1 AND rank > 4 AND bronze = 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_27539808_5 (points INTEGER, game VARCHAR)
### Question:
What is the lowest number of points for game 32?
### Answer:
SELECT MIN(points) FROM table_27539808_5 WHERE game = 32 |
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_24565004_7 (nationality² VARCHAR, goals¹ VARCHAR)
### Question:
What is the nationality of the player who scored 13 goals
### Answer:
SELECT nationality² FROM table_24565004_7 WHERE goals¹ = 13 |
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_1618358_1 (over_gdp__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR)
### Question:
When the stamp duty reserve tax is 3,669 what is the percentage over gdp?
### Answer:
SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE stamp_duty_reserve_tax = "3,669" |
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_36 (venue VARCHAR, opponent VARCHAR)
### Question:
Opponent of at new york giants had what venue?
### Answer:
SELECT venue FROM table_name_36 WHERE opponent = "at new york giants" |
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_26 (average_ratings VARCHAR, romaji_title VARCHAR)
### Question:
What's the average rating when the Romanji title was Mendol?
### Answer:
SELECT average_ratings FROM table_name_26 WHERE romaji_title = "mendol" |
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 (goals_conceded INTEGER, points VARCHAR, draws VARCHAR)
### Question:
Which Goals conceded has Points of 6 and Draws larger than 0?
### Answer:
SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 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_1341568_48 (status VARCHAR, incumbent VARCHAR)
### Question:
What was the result of the election in the district whose incumbent is Tom Foley?
### Answer:
SELECT status FROM table_1341568_48 WHERE incumbent = "Tom Foley" |
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_22665117_1 (authorizing_agency VARCHAR, district_name VARCHAR)
### Question:
If the district name is the Academy of Flint, what is the authorizing agency?
### Answer:
SELECT authorizing_agency FROM table_22665117_1 WHERE district_name = "Academy of Flint" |
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_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR)
### Question:
What is the position of the player with a height of 205 and shirt no 8?
### Answer:
SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8 |
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 (host_team VARCHAR, date VARCHAR)
### Question:
What was the name of the host team dated December 16?
### Answer:
SELECT host_team FROM table_name_39 WHERE date = "december 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_name_60 (quantity INTEGER, year VARCHAR, model VARCHAR)
### Question:
Name the sum of quantity for before 2011 model slf-230
### Answer:
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230" |
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_16 (prime_mover VARCHAR, model VARCHAR)
### Question:
What is the prime mover of the locomotive with a fa-2 model?
### Answer:
SELECT prime_mover FROM table_name_16 WHERE model = "fa-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_66 (record VARCHAR, opponent VARCHAR, week VARCHAR)
### Question:
What was the record the the match against vs. calgary stampeders before week 15?
### Answer:
SELECT record FROM table_name_66 WHERE opponent = "vs. calgary stampeders" AND week < 15 |
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 (driver VARCHAR, engine VARCHAR)
### Question:
Who was the driver of the Ford EDB 3.0 v8 engine?
### Answer:
SELECT driver FROM table_name_82 WHERE engine = "ford edb 3.0 v8" |
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 (discovery VARCHAR, operator_s_ VARCHAR)
### Question:
Which Discoveryhas an Operator(s) of lundin?
### Answer:
SELECT discovery FROM table_name_4 WHERE operator_s_ = "lundin" |
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_83 (score VARCHAR, opponent VARCHAR)
### Question:
What is the score of the match with the sydney roosters as the opponent?
### Answer:
SELECT score FROM table_name_83 WHERE opponent = "sydney roosters" |
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_14 (couple VARCHAR, average VARCHAR)
### Question:
What is the couples name where the average is 15.9?
### Answer:
SELECT couple FROM table_19744915_14 WHERE average = "15.9" |
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_1566850_8 (date VARCHAR, centerfold_model VARCHAR)
### Question:
When was Kalin Olson listed as the centerfold model?
### Answer:
SELECT date FROM table_1566850_8 WHERE centerfold_model = "Kalin Olson" |
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_19704392_1 (rpm VARCHAR, standard_speed__6th_gear_ VARCHAR)
### Question:
when standard speed (6th gear) is 88, what is the rpm?
### Answer:
SELECT rpm FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "88" |
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_56 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)
### Question:
What is the listed surface for the Championship of Toronto that had a runner-up outcome?
### Answer:
SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto" |
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_1748444_1 (builder VARCHAR, number VARCHAR)
### Question:
Name the number of builders for number 96
### Answer:
SELECT COUNT(builder) FROM table_1748444_1 WHERE number = "96" |
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 (hoop INTEGER, all_around INTEGER)
### Question:
What is the average hoop when the all around is less than 9.7?
### Answer:
SELECT AVG(hoop) FROM table_name_37 WHERE all_around < 9.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_name_8 (attenmdance VARCHAR, stadium VARCHAR)
### Question:
What was the attendance at war memorial stadium?
### Answer:
SELECT attenmdance FROM table_name_8 WHERE stadium = "war memorial 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 Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR)
### Question:
Show the location name for document "Robin CV".
### Answer:
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV" |
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 (record VARCHAR, date VARCHAR)
### Question:
What was the record on july 24?
### Answer:
SELECT record FROM table_name_95 WHERE date = "july 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_33 (score VARCHAR, country VARCHAR, player VARCHAR)
### Question:
How did Justin Leonard of the United States score?
### Answer:
SELECT score FROM table_name_33 WHERE country = "united states" AND player = "justin leonard" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.