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_33 (field_goals VARCHAR, extra_points VARCHAR, points VARCHAR, touchdowns VARCHAR)
### Question:
How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?
### Answer:
SELECT COUNT(field_goals) FROM table_name_33 WHERE points > 5 AND touchdowns > 2 AND extra_points < 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_1431467_4 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Who were all candidate when incumbent was D. Wyatt Aiken?
### Answer:
SELECT candidates FROM table_1431467_4 WHERE incumbent = "D. Wyatt Aiken" |
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_87 (year INTEGER, cause VARCHAR, death_toll VARCHAR)
### Question:
Which Year has a cause of firedamp and a Death toll larger than 11?
### Answer:
SELECT SUM(year) FROM table_name_87 WHERE cause = "firedamp" AND death_toll > 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_27910411_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
What date did the episode with 8.28 million u.s. viewers originally air?
### Answer:
SELECT original_air_date FROM table_27910411_1 WHERE us_viewers__millions_ = "8.28" |
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_91 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
### Question:
What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?
### Answer:
SELECT MIN(grid) FROM table_name_91 WHERE laps = 25 AND manufacturer = "honda" AND time_retired = "+54.103" |
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_13416000_3 (first_driver_s_ VARCHAR, country VARCHAR)
### Question:
How many entries are there for first driver for Canada?
### Answer:
SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada" |
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 (year INTEGER, category VARCHAR)
### Question:
Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?
### Answer:
SELECT MAX(year) FROM table_name_58 WHERE category = "best original song (รอเธอหันมา – โฟกัส จิระกุล)" |
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 (date VARCHAR, record VARCHAR)
### Question:
What date has 79-48 as the record?
### Answer:
SELECT date FROM table_name_47 WHERE record = "79-48" |
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_1427998_1 (playoffs VARCHAR, league VARCHAR, regular_season VARCHAR)
### Question:
What is the playoff result when the league is USISL and the regular season record is 1st, pacific.
### Answer:
SELECT playoffs FROM table_1427998_1 WHERE league = "USISL" AND regular_season = "1st, Pacific" |
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_87 (entrant VARCHAR, points VARCHAR, chassis VARCHAR)
### Question:
with lola t86/50 chassis and less than 7 points what is the entrant?
### Answer:
SELECT entrant FROM table_name_87 WHERE points < 7 AND chassis = "lola t86/50" |
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 MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR)
### Question:
Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
### Answer:
SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500 |
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_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
### Question:
Tell me the total number of Grid for Bob Evans and Laps less than 68
### Answer:
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "bob evans" AND laps < 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_5 (architecture_and_modelling VARCHAR, unit_test VARCHAR, projects_templates VARCHAR)
### Question:
Which Architecture and modelling has a Unit test of no, and a Projects templates of limited?
### Answer:
SELECT architecture_and_modelling FROM table_name_5 WHERE unit_test = "no" AND projects_templates = "limited" |
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 (championship VARCHAR, name VARCHAR, total VARCHAR, league_cup VARCHAR)
### Question:
What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?
### Answer:
SELECT championship FROM table_name_10 WHERE total = 2 AND league_cup > 0 AND name = "jem karacan" |
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 (team_2 VARCHAR)
### Question:
What is the 2nd leg for Barcelona Team 2?
### Answer:
SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona" |
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 instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
### Question:
How many instrument does the musician with last name "Heilo" use?
### Answer:
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" |
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_67 (league INTEGER, total INTEGER)
### Question:
What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?
### Answer:
SELECT MIN(league) FROM table_name_67 WHERE total > 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_68 (total VARCHAR, rank VARCHAR, bronze VARCHAR)
### Question:
Name the total number of total for rank of 7 and bronze less than 1
### Answer:
SELECT COUNT(total) FROM table_name_68 WHERE rank = "7" AND bronze < 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_61 (result VARCHAR, date VARCHAR)
### Question:
Tell me the result for 2008-12-23
### Answer:
SELECT result FROM table_name_61 WHERE date = "2008-12-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_28220778_21 (score VARCHAR, date VARCHAR)
### Question:
What is every score when the date is January 2?
### Answer:
SELECT score FROM table_28220778_21 WHERE date = "January 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_1341604_11 (party VARCHAR, incumbent VARCHAR)
### Question:
Name the party for jack thomas brinkley
### Answer:
SELECT party FROM table_1341604_11 WHERE incumbent = "Jack Thomas Brinkley" |
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_11214772_2 (semi_finalist__number2 VARCHAR, year VARCHAR)
### Question:
Which team was the second semi finalist in 2007?
### Answer:
SELECT semi_finalist__number2 FROM table_11214772_2 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_66 (date VARCHAR, round VARCHAR)
### Question:
What is the date of the second round?
### Answer:
SELECT date FROM table_name_66 WHERE round = "second 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_1676073_13 (points_for VARCHAR, points VARCHAR)
### Question:
What is the points for when the total points is 6?
### Answer:
SELECT points_for FROM table_1676073_13 WHERE points = "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_53 (Id VARCHAR)
### Question:
I want to know the 2001 that has a 2004 of a and 2003 of a with 2012 of 3r
### Answer:
SELECT 2001 FROM table_name_53 WHERE 2004 = "a" AND 2003 = "a" AND 2012 = "3r" |
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_29542147_2 (l INTEGER)
### Question:
What is the highest L of the tournament?
### Answer:
SELECT MAX(l) FROM table_29542147_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_78 (serials_issued VARCHAR, design VARCHAR)
### Question:
Which serials were issued with a design of black on yellow?
### Answer:
SELECT serials_issued FROM table_name_78 WHERE design = "black on yellow" |
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 (to_par VARCHAR, country VARCHAR, score VARCHAR)
### Question:
What is the to par for Australia and a 73-69-71=213 score?
### Answer:
SELECT to_par FROM table_name_43 WHERE country = "australia" AND score = 73 - 69 - 71 = 213 |
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_29154676_1 (season_no VARCHAR, written_by VARCHAR)
### Question:
How many episodes were written by Warren Leight?
### Answer:
SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = "Warren Leight" |
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 (venue VARCHAR, score VARCHAR, date VARCHAR)
### Question:
What Venue on October 27, 2005 had a Score of 5-0?
### Answer:
SELECT venue FROM table_name_65 WHERE score = "5-0" AND date = "october 27, 2005" |
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 (make__model VARCHAR, numbers__quantity_ordered_ VARCHAR)
### Question:
Which Make/ Model that Numbers (Quantity Ordered) of 1461–1500 (40 buses)?
### Answer:
SELECT make__model FROM table_name_36 WHERE numbers__quantity_ordered_ = "1461–1500 (40 buses)" |
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 (college VARCHAR, player VARCHAR)
### Question:
What college did john sullivan attend?
### Answer:
SELECT college FROM table_name_28 WHERE player = "john sullivan" |
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_79 (winners VARCHAR, year VARCHAR)
### Question:
Who is listed as the Winners with a Year of 2005?
### Answer:
SELECT winners FROM table_name_79 WHERE year = "2005" |
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 (notes VARCHAR, rank VARCHAR)
### Question:
What are the notes for the contestants that were ranked #1?
### Answer:
SELECT notes FROM table_name_80 WHERE 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_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
### Question:
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
### Answer:
SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 1994" |
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_21058836_1 (record VARCHAR, game VARCHAR)
### Question:
What was the record for game 9?
### Answer:
SELECT record FROM table_21058836_1 WHERE game = 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_18 (track VARCHAR, year VARCHAR)
### Question:
What's the track for 1982?
### Answer:
SELECT track FROM table_name_18 WHERE year = 1982 |
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 (date VARCHAR, winning_score VARCHAR)
### Question:
What day was the winning score –16 (67-70-69-66=272)?
### Answer:
SELECT date FROM table_name_16 WHERE winning_score = –16(67 - 70 - 69 - 66 = 272) |
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_24887326_7 (date VARCHAR, away_team VARCHAR)
### Question:
What is the date of the game played with Birmingham City as the away team?
### Answer:
SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City" |
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 (position VARCHAR, round VARCHAR, school_club_team VARCHAR)
### Question:
What is the position of the player with a round less than 20 from the school/club Washington?
### Answer:
SELECT position FROM table_name_17 WHERE round < 20 AND school_club_team = "washington" |
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_48 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
### Question:
How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?
### Answer:
SELECT COUNT(total) FROM table_name_48 WHERE bronze > 13 AND rank = "8" AND silver < 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_40 (player VARCHAR, econ VARCHAR)
### Question:
Tell me the player with econ of 4.23
### Answer:
SELECT player FROM table_name_40 WHERE econ = "4.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_70 (place VARCHAR, points INTEGER)
### Question:
What is the total number for a place with points smaller than 12?
### Answer:
SELECT COUNT(place) FROM table_name_70 WHERE points < 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_45 (Id VARCHAR)
### Question:
What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?
### Answer:
SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.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_22825679_1 (percentage VARCHAR, team VARCHAR)
### Question:
Name the percentage for georgia
### Answer:
SELECT percentage FROM table_22825679_1 WHERE team = "Georgia" |
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_20170644_1 (cfl_team VARCHAR, position VARCHAR)
### Question:
What team was in position OL?
### Answer:
SELECT cfl_team FROM table_20170644_1 WHERE position = "OL" |
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_6 (record VARCHAR, leading_scorer VARCHAR)
### Question:
What is the record when the leading scorer is Antawn Jamison (14)?
### Answer:
SELECT record FROM table_name_6 WHERE leading_scorer = "antawn jamison (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_59 (location VARCHAR, unit VARCHAR)
### Question:
What country is the Jiufotang Formation located in?
### Answer:
SELECT location FROM table_name_59 WHERE unit = "jiufotang formation" |
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 (bits_precision INTEGER, total_bits INTEGER)
### Question:
What's the lowest bits precision when the total bits are less than 16?
### Answer:
SELECT MIN(bits_precision) FROM table_name_32 WHERE total_bits < 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_4 (rank INTEGER, time VARCHAR)
### Question:
What is the lowest ranking for 8:13.67?
### Answer:
SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67" |
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_86 (date VARCHAR, record VARCHAR)
### Question:
What is the Date of the game with a Record of 2–3–1?
### Answer:
SELECT date FROM table_name_86 WHERE record = "2–3–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_13 (opponent VARCHAR, res VARCHAR, time VARCHAR)
### Question:
Who is the opponent of the match with a win result and a time of 3:02?
### Answer:
SELECT opponent FROM table_name_13 WHERE res = "win" AND time = "3:02" |
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_2342078_6 (original_airdate VARCHAR, written_by VARCHAR)
### Question:
Name the airdate for the episode written by howard ostroff
### Answer:
SELECT original_airdate FROM table_2342078_6 WHERE written_by = "Howard Ostroff" |
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_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)
### Question:
Where the displacement(s) is 10.5L is, what is the engine family?
### Answer:
SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "10.5L" |
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 (points VARCHAR, year VARCHAR, chassis VARCHAR)
### Question:
How many points does the year after 1986 with a AGS JH23B chassis have?
### Answer:
SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b" |
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 (location_attendance VARCHAR, high_assists VARCHAR)
### Question:
Where did Ben Gordon (8) have the high assists?
### Answer:
SELECT location_attendance FROM table_name_55 WHERE high_assists = "ben gordon (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_7 (player VARCHAR, country VARCHAR)
### Question:
Who plays for Zimbabwe?
### Answer:
SELECT player FROM table_name_7 WHERE country = "zimbabwe" |
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_29701419_2 (total_appearances INTEGER, total_goals VARCHAR)
### Question:
What is the total appearances when the total goals is 289?
### Answer:
SELECT MIN(total_appearances) FROM table_29701419_2 WHERE total_goals = 289 |
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 (years VARCHAR, jersey_number_s_ VARCHAR, position VARCHAR)
### Question:
What years did the player with the jersey number 33 and played position pf play?
### Answer:
SELECT years FROM table_name_4 WHERE jersey_number_s_ = 33 AND position = "pf" |
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 (place VARCHAR, score VARCHAR)
### Question:
Which Place has a Score of 71-70=141?
### Answer:
SELECT place FROM table_name_7 WHERE score = 71 - 70 = 141 |
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_2509113_2 (sipe_sipe_municipality INTEGER, language VARCHAR)
### Question:
What is the Sipe Sipe Municipality minimum if the language is Quechua?
### Answer:
SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = "Quechua" |
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_1965650_4 (nationality VARCHAR, player VARCHAR)
### Question:
How many nationalities does Tom Colley have?
### Answer:
SELECT COUNT(nationality) FROM table_1965650_4 WHERE player = "Tom Colley" |
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_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR)
### Question:
What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?
### Answer:
SELECT party FROM table_2668401_17 WHERE result = "Re-elected" AND first_elected = "1797" AND district = "Virginia 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 table_name_96 (final VARCHAR, rank VARCHAR)
### Question:
What final was ranked 4?
### Answer:
SELECT final FROM table_name_96 WHERE rank = "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_89 (tournament VARCHAR, total VARCHAR, team VARCHAR)
### Question:
How many tournament titles for texas with over 0 total?
### Answer:
SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = "texas" |
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_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
### Question:
What is the date of appointment for the date of vacancy of 22 august 2010?
### Answer:
SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 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_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR)
### Question:
What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?
### Answer:
SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz" |
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_15002177_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
### Question:
How many mixed doubles were there in the year that Olga Koseli won the women's singles?
### Answer:
SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli" |
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 (opponent VARCHAR, loss VARCHAR)
### Question:
Which opponent has a loss of wells (1-3)?
### Answer:
SELECT opponent FROM table_name_95 WHERE loss = "wells (1-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_68 (score VARCHAR, date VARCHAR)
### Question:
What was the final score for the match held on April 11, 2007?
### Answer:
SELECT score FROM table_name_68 WHERE date = "april 11, 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_20 (city_of_license VARCHAR, class VARCHAR)
### Question:
What city has the A Class licence?
### Answer:
SELECT city_of_license FROM table_name_20 WHERE class = "a" |
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_15700367_2 (name VARCHAR, overs_bowled VARCHAR)
### Question:
Name the name for when overs bowled is 31.2
### Answer:
SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.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_94 (yearly_cost_for_paid_account VARCHAR, monthly_cost_for_paid_account VARCHAR, userpics_paid VARCHAR)
### Question:
What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50?
### Answer:
SELECT yearly_cost_for_paid_account FROM table_name_94 WHERE monthly_cost_for_paid_account = "5 usd" AND userpics_paid = "50" |
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_24887326_7 (home_team VARCHAR, away_team VARCHAR)
### Question:
Who was the home team when the away team was fulham?
### Answer:
SELECT home_team FROM table_24887326_7 WHERE away_team = "Fulham" |
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_86 (date VARCHAR, record VARCHAR, game VARCHAR, team VARCHAR)
### Question:
When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?
### Answer:
SELECT date FROM table_name_86 WHERE game > 4 AND team = "san antonio" AND record = "4-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_35 (visitor VARCHAR, home VARCHAR)
### Question:
Who was the visitor when phoenix was at home?
### Answer:
SELECT visitor FROM table_name_35 WHERE home = "phoenix" |
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_27671835_3 (new_membership_total INTEGER, members_lost INTEGER)
### Question:
What is the new membership total if the members lost is bigger than 1.0?
### Answer:
SELECT MAX(new_membership_total) FROM table_27671835_3 WHERE members_lost > 1.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_96 (goals_against INTEGER, club VARCHAR, ga_average VARCHAR)
### Question:
What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?
### Answer:
SELECT MAX(goals_against) FROM table_name_96 WHERE club = "dallas burn" AND ga_average > 1.46 |
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 (winning_score VARCHAR, date VARCHAR)
### Question:
What's the winning score on Feb 12, 1978?
### Answer:
SELECT winning_score FROM table_name_49 WHERE date = "feb 12, 1978" |
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 (avg_g INTEGER, gp_gs VARCHAR, gain VARCHAR)
### Question:
What's the lowest avg/g for a GP-GS of 12-12 and a gain less than 16?
### Answer:
SELECT MIN(avg_g) FROM table_name_10 WHERE gp_gs = "12-12" AND gain < 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_13 (score VARCHAR, venue VARCHAR, opponent VARCHAR)
### Question:
Name the score at mcg venue and footscray opponent
### Answer:
SELECT score FROM table_name_13 WHERE venue = "mcg" AND opponent = "footscray" |
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 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Question:
what is the grid when the driver is mario andretti and the laps is less than 54?
### Answer:
SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 |
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 (react INTEGER, rank INTEGER)
### Question:
What is the average react for a rank more than 8?
### Answer:
SELECT AVG(react) FROM table_name_36 WHERE rank > 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_17200372_2 (departure VARCHAR, going_to VARCHAR)
### Question:
Name the departure for spalding
### Answer:
SELECT departure FROM table_17200372_2 WHERE going_to = "Spalding" |
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 (winner VARCHAR, score VARCHAR)
### Question:
Who wins with a score 7–6(4), 6–4
### Answer:
SELECT winner FROM table_name_1 WHERE score = "7–6(4), 6–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_2562113_1 (enrollment INTEGER, nickname VARCHAR)
### Question:
What is the enrollment for the hawks?
### Answer:
SELECT MAX(enrollment) FROM table_2562113_1 WHERE nickname = "Hawks" |
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_2553861_1 (league VARCHAR, playoffs VARCHAR)
### Question:
Name the league for conference finals
### Answer:
SELECT league FROM table_2553861_1 WHERE playoffs = "Conference Finals" |
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 Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
### Question:
Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.
### Answer:
SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars |
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_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR)
### Question:
who is the the pole position with grand prix being italian grand prix
### Answer:
SELECT pole_position FROM table_12161822_5 WHERE grand_prix = "Italian 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_1771753_3 (driver VARCHAR, season VARCHAR)
### Question:
When 2005 is the season how many drivers are there?
### Answer:
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005" |
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_12407546_1 (athlete__noc_ VARCHAR, swimming VARCHAR)
### Question:
Who's the player with 2:05.63 (1296 pts) swimming score?
### Answer:
SELECT athlete__noc_ FROM table_12407546_1 WHERE swimming = "2:05.63 (1296 pts)" |
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_87 (points INTEGER, games INTEGER)
### Question:
What is the sum of the points when there are fewer than 4 games?
### Answer:
SELECT SUM(points) FROM table_name_87 WHERE games < 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_23 (home VARCHAR, record VARCHAR)
### Question:
Who was the home team when the record was 36–21–8?
### Answer:
SELECT home FROM table_name_23 WHERE record = "36–21–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_9 (song VARCHAR, artist VARCHAR)
### Question:
What song was made by the sex pistols?
### Answer:
SELECT song FROM table_name_9 WHERE artist = "sex pistols" |
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 (scored INTEGER, points VARCHAR, played VARCHAR)
### Question:
What is the lowest score of the team with 19 points and less than 18 played?
### Answer:
SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18 |
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_59 (catches VARCHAR, player VARCHAR)
### Question:
How many catches does hh dippenaar have?
### Answer:
SELECT catches FROM table_name_59 WHERE player = "hh dippenaar" |
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 COUNTRIES (continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (Continent VARCHAR, ContId VARCHAR); CREATE TABLE car_makers (Country VARCHAR)
### Question:
How many car makers are there in each continents? List the continent name and the count.
### Answer:
SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent |
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 Employee (salary INTEGER)
### Question:
What is average and maximum salary of all employees.
### Answer:
SELECT AVG(salary), MAX(salary) FROM Employee |
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 (state_served VARCHAR, party VARCHAR, representative VARCHAR)
### Question:
Which state did Samuel Thatcher of the Federalist party represent?
### Answer:
SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher" |
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 (points__pts_ INTEGER, won__pg_ INTEGER)
### Question:
What is the average number of points of the team with more than 17 pg won?
### Answer:
SELECT AVG(points__pts_) FROM table_name_26 WHERE won__pg_ > 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.