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_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR)
### Question:
Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
### Answer:
SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr" |
Below is an context that describes a 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 (purse VARCHAR, date VARCHAR)
### Question:
What is the Purse on January 3, 2010?
### Answer:
SELECT purse FROM table_name_33 WHERE date = "january 3, 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_16162581_1 (pinyin VARCHAR, date__ce_ VARCHAR)
### Question:
Name the pinyin for 657 date
### Answer:
SELECT pinyin FROM table_16162581_1 WHERE date__ce_ = "657" |
Below is an context that describes a 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 (record VARCHAR, date VARCHAR)
### Question:
What is the record on January 18?
### Answer:
SELECT record FROM table_name_41 WHERE date = "january 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_7 (nhl_team VARCHAR, round VARCHAR, overall VARCHAR)
### Question:
What is the NHL team for Round 5 and an overall ranking of #154?
### Answer:
SELECT nhl_team FROM table_name_7 WHERE round = "5" AND overall = "#154" |
Below is an context that describes a 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 (position VARCHAR, college VARCHAR)
### Question:
What is the position of the player who went to college of notre dame?
### Answer:
SELECT position FROM table_name_78 WHERE college = "notre dame" |
Below is an context that describes a 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 (super_g VARCHAR, career VARCHAR)
### Question:
What Super G has a Career of 1980–1996?
### Answer:
SELECT super_g FROM table_name_25 WHERE career = "1980–1996" |
Below is an context that describes a 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 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
### Question:
Name the most silver with bronze more than 1 and gold more than 1 with total less than 7
### Answer:
SELECT MAX(silver) FROM table_name_46 WHERE bronze > 1 AND total < 7 AND gold > 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_11 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
### Question:
what is the highest bronze when silver is less than 1 and gold is more than 0?
### Answer:
SELECT MAX(bronze) FROM table_name_11 WHERE silver < 1 AND gold > 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_30 (game INTEGER, series VARCHAR)
### Question:
Which Game has a Series of bruins lead 3–1?
### Answer:
SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 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 Church (Open_Date INTEGER)
### Question:
How many churches opened before 1850 are there?
### Answer:
SELECT COUNT(*) FROM Church WHERE Open_Date < 1850 |
Below is an context that describes a 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 (opponents_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
### Question:
Name the opponents for outcome of runner-up and date of august 7, 2011
### Answer:
SELECT opponents_in_the_final FROM table_name_19 WHERE outcome = "runner-up" AND date = "august 7, 2011" |
Below is an context that describes a 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 (laps VARCHAR, driver VARCHAR)
### Question:
How many laps did Jacques Villeneuve have?
### Answer:
SELECT laps FROM table_name_60 WHERE driver = "jacques villeneuve" |
Below is an context that describes a 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 (Id VARCHAR)
### Question:
Which 2003 has a 2012 of 1–4?
### Answer:
SELECT 2003 FROM table_name_24 WHERE 2012 = "1–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_14342210_12 (touchdowns INTEGER, player VARCHAR)
### Question:
How many touchdowns did Redden score?
### Answer:
SELECT MIN(touchdowns) FROM table_14342210_12 WHERE player = "Redden" |
Below is an context that describes a 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 (team VARCHAR, race_2 VARCHAR)
### Question:
What is Team, when Race 2 is "5"?
### Answer:
SELECT team FROM table_name_41 WHERE race_2 = "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_5 (opponent VARCHAR, attendance VARCHAR)
### Question:
What opponent has 76,202 attendance ?
### Answer:
SELECT opponent FROM table_name_5 WHERE attendance = "76,202" |
Below is an context that describes a 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 (tyre VARCHAR, fastest_lap VARCHAR, circuit VARCHAR)
### Question:
What is the tyre for the circuit of Prince George, which had Jim Clark as the fastest lap?
### Answer:
SELECT tyre FROM table_name_82 WHERE fastest_lap = "jim clark" AND circuit = "prince george" |
Below is an context that describes a 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_44 (last_cf INTEGER, team VARCHAR, cf_appearances VARCHAR, cf_wins VARCHAR)
### Question:
What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?
### Answer:
SELECT AVG(last_cf) FROM table_name_44 WHERE cf_appearances < 4 AND cf_wins < 1 AND team = "st. louis blues" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16849531_2 (protein_identity VARCHAR, length__bp_aa_ VARCHAR)
### Question:
What is the protein identity with a length of 5304bp/377aa?
### Answer:
SELECT protein_identity FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18734298_1 (title VARCHAR, production_code VARCHAR)
### Question:
What is the title of the production code 1acx09?
### Answer:
SELECT title FROM table_18734298_1 WHERE production_code = "1ACX09" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24453847_2 (team_record VARCHAR, week VARCHAR)
### Question:
What was the Rhein Fire team record on week 8?
### Answer:
SELECT team_record FROM table_24453847_2 WHERE week = 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_30 (week VARCHAR, attendance INTEGER)
### Question:
How many weeks had an attendance larger than 84,816?
### Answer:
SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816 |
Below is an context that describes a 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 (round VARCHAR, name VARCHAR)
### Question:
Round that greg huntington went in?
### Answer:
SELECT round FROM table_name_54 WHERE name = "greg huntington" |
Below is an context that describes a 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 (a_side VARCHAR, catalog_number VARCHAR)
### Question:
What is the A-side for catalog 902?
### Answer:
SELECT a_side FROM table_name_87 WHERE catalog_number = "902" |
Below is an context that describes a 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_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)
### Question:
How many games have more than 288 goals and less than 34 losses?
### Answer:
SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34 |
Below is an context that describes a 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 (date VARCHAR, record VARCHAR)
### Question:
what day was the score 39-14
### Answer:
SELECT date FROM table_name_58 WHERE record = "39-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_28 (west VARCHAR, south VARCHAR)
### Question:
What was west when ev fürstenfeldbruck was south?
### Answer:
SELECT west FROM table_name_28 WHERE south = "ev fürstenfeldbruck" |
Below is an context that describes a 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 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR)
### Question:
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?
### Answer:
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" |
Below is an context that describes a 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 (lead VARCHAR, second VARCHAR, season VARCHAR)
### Question:
What is the Lead when the Second was marc kennedy, in the 2012–13 season?
### Answer:
SELECT lead FROM table_name_66 WHERE second = "marc kennedy" AND season = "2012–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_13 (date VARCHAR, opponent VARCHAR, game_site VARCHAR, week VARCHAR)
### Question:
Game site of shea stadium, and a Week smaller than 10, and a Opponent of baltimore colts happened on what date?
### Answer:
SELECT date FROM table_name_13 WHERE game_site = "shea stadium" AND week < 10 AND opponent = "baltimore colts" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)
### Question:
What was the vote tally on the episode aired May 5, 2005?
### Answer:
SELECT vote FROM table_1272844_2 WHERE air_date = "May 5, 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 customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR)
### Question:
Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"
### Answer:
SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" |
Below is an context that describes a 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 (time VARCHAR, method VARCHAR)
### Question:
What is Time, when Method is "submission (knees)"?
### Answer:
SELECT time FROM table_name_14 WHERE method = "submission (knees)" |
Below is an context that describes a 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, points_against VARCHAR)
### Question:
What team has 102 Points against?
### Answer:
SELECT team FROM table_name_61 WHERE points_against = "102" |
Below is an context that describes a 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 (nationality VARCHAR, round VARCHAR, position VARCHAR)
### Question:
What is the nationality of the player with a round after 4 and plays right wing?
### Answer:
SELECT nationality FROM table_name_41 WHERE round > 4 AND position = "right wing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24348134_3 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
### Question:
List the number of tournament winners when iona , siena & niagara won in the regular season.
### Answer:
SELECT COUNT(tournament_winner) FROM table_24348134_3 WHERE regular_season_winner = "Iona , Siena & Niagara" |
Below is an context that describes a 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_44 (genre VARCHAR, year VARCHAR)
### Question:
What is the genre for the year 2012 (16th)?
### Answer:
SELECT genre FROM table_name_44 WHERE year = "2012 (16th)" |
Below is an context that describes a 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 (gold INTEGER, silver INTEGER)
### Question:
Name the sum of gold which has a silver more than 1
### Answer:
SELECT SUM(gold) FROM table_name_23 WHERE silver > 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_50 (surface VARCHAR, date VARCHAR)
### Question:
What was the surface for the game that was played on 12-Apr-2005?
### Answer:
SELECT surface FROM table_name_50 WHERE date = "12-apr-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_9 (loss VARCHAR, time VARCHAR)
### Question:
Who lost with a time of 2:42?
### Answer:
SELECT loss FROM table_name_9 WHERE time = "2:42" |
Below is an context that describes a 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_51 (nationality VARCHAR, name VARCHAR)
### Question:
Anastasija Reiberger from Germany had what 4.00?
### Answer:
SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" |
Below is an context that describes a 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 (method VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
### Question:
What is the method in the round 2 win over Nick Gilardi?
### Answer:
SELECT method FROM table_name_75 WHERE round = "2" AND res = "win" AND opponent = "nick gilardi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE member (address VARCHAR, Membership_card VARCHAR)
### Question:
Which address do not have any member with the black membership card?
### Answer:
SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black' |
Below is an context that describes a 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 (record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR)
### Question:
Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team?
### Answer:
SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND 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_2135222_2 (area VARCHAR, population VARCHAR)
### Question:
How many areas have a population of 703379?
### Answer:
SELECT COUNT(area) FROM table_2135222_2 WHERE population = 703379 |
Below is an context that describes a 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 (crowd INTEGER, venue VARCHAR)
### Question:
What was the size of the crowd at the game played at Junction Oval?
### Answer:
SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19643196_1 (year VARCHAR, transmission VARCHAR, model VARCHAR)
### Question:
What year had an Allison B400R transmission and a model of BRT?
### Answer:
SELECT year FROM table_19643196_1 WHERE transmission = "Allison B400R" AND model = "BRT" |
Below is an context that describes a 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_51 (recnet VARCHAR, frequency VARCHAR)
### Question:
What is listed for the RECNet that also has a Frequency of 91.1 FM?
### Answer:
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm" |
Below is an context that describes a 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 (place VARCHAR, country VARCHAR)
### Question:
Where did Trinidad and Tobago play?
### Answer:
SELECT place FROM table_name_99 WHERE country = "trinidad and tobago" |
Below is an context that describes a 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 (losses VARCHAR, goals_for VARCHAR, games_played VARCHAR)
### Question:
How many losses did the team with 22 goals for andmore than 8 games played have?
### Answer:
SELECT COUNT(losses) FROM table_name_52 WHERE goals_for = 22 AND games_played > 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_84 (chinese__traditional_ VARCHAR, english_title VARCHAR)
### Question:
What is the traditional Chinese name for the record Beautiful?
### Answer:
SELECT chinese__traditional_ FROM table_name_84 WHERE english_title = "beautiful" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
### Question:
Name the total number for % popular vote for # of seats won for 83
### Answer:
SELECT COUNT(_percentage_of_popular_vote) FROM table_19769687_3 WHERE _number_of_seats_won = 83 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE artist (age INTEGER, country VARCHAR)
### Question:
What is the average and minimum age of all artists from United States.
### Answer:
SELECT AVG(age), MIN(age) FROM artist WHERE country = 'United States' |
Below is an context that describes a 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 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
### Question:
What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
### Answer:
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57 |
Below is an context that describes a 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 (population INTEGER, city VARCHAR)
### Question:
What is the population of Kragerø?
### Answer:
SELECT MIN(population) FROM table_name_17 WHERE city = "kragerø" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25107064_2 (stolen_ends INTEGER, country VARCHAR, Germany VARCHAR)
### Question:
Name the stolen ends for germany
### Answer:
SELECT MIN(stolen_ends) FROM table_25107064_2 WHERE country = Germany |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27755603_2 (location_attendance VARCHAR, high_assists VARCHAR)
### Question:
Where was the game in which Will Bynum (5) did the high assists played?
### Answer:
SELECT location_attendance FROM table_27755603_2 WHERE high_assists = "Will Bynum (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_25 (type VARCHAR, characters VARCHAR)
### Question:
What type has the characters 廣丙?
### Answer:
SELECT type FROM table_name_25 WHERE characters = "廣丙" |
Below is an context that describes a 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 (affiliation VARCHAR, district VARCHAR)
### Question:
What is the affiliation for the Cuddalore District?
### Answer:
SELECT affiliation FROM table_name_18 WHERE district = "cuddalore district" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_255812_1 (area__km²_ VARCHAR, income_class__2007_ VARCHAR)
### Question:
What are all the vicinity (km²) where profits magnificence (2007) is 2nd
### Answer:
SELECT area__km²_ FROM table_255812_1 WHERE income_class__2007_ = "2nd" |
Below is an context that describes a 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 (gold VARCHAR, bronze VARCHAR, rank VARCHAR)
### Question:
Tell me the total number of gold for bronze more than 0 and total more than 100
### Answer:
SELECT COUNT(gold) FROM table_name_2 WHERE bronze > 0 AND rank = "total" AND "total" > 100 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
### Question:
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
### Answer:
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22897453_1 (kr_narayanan__votes_ VARCHAR, kr_narayanan__values_ VARCHAR)
### Question:
Name the kr narayanan votes for values being 936 for kr
### Answer:
SELECT kr_narayanan__votes_ FROM table_22897453_1 WHERE kr_narayanan__values_ = 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_80 (no_result INTEGER, lost VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR)
### Question:
What is the low no result with more than 5 loss and a win ration lesser than 58.06?
### Answer:
SELECT MIN(no_result) FROM table_name_80 WHERE lost > 5 AND _percentage_win_[a_] < 58.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_2562572_7 (urban_settlement VARCHAR, city___municipality VARCHAR)
### Question:
What was the urban settlement when the city / municipality was kovin?
### Answer:
SELECT urban_settlement FROM table_2562572_7 WHERE city___municipality = "Kovin" |
Below is an context that describes a 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 (year INTEGER, winner VARCHAR)
### Question:
What was the lowest year for TCU?
### Answer:
SELECT MIN(year) FROM table_name_79 WHERE winner = "tcu" |
Below is an context that describes a 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 (rowers VARCHAR, notes VARCHAR)
### Question:
What rowers have FA as the notes?
### Answer:
SELECT rowers FROM table_name_41 WHERE notes = "fa" |
Below is an context that describes a 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 (pick__number INTEGER, college VARCHAR)
### Question:
What is the highest Pick # for the College of Maryland-Eastern Shore?
### Answer:
SELECT MAX(pick__number) FROM table_name_97 WHERE college = "maryland-eastern shore" |
Below is an context that describes a 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 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR)
### Question:
What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.
### Answer:
SELECT issue_price FROM table_name_46 WHERE artist = "john mardon" AND year = 2000 AND mintage = "included in steam buggy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26263322_1 (result VARCHAR, background VARCHAR)
### Question:
How many times was the background university student?
### Answer:
SELECT COUNT(result) FROM table_26263322_1 WHERE background = "University Student" |
Below is an context that describes a 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 (winner VARCHAR, third_place VARCHAR)
### Question:
Was the third place winner Yannick Noah?
### Answer:
SELECT winner FROM table_name_87 WHERE third_place = "yannick noah" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1266602_2 (driver_s_ VARCHAR, team VARCHAR)
### Question:
Who drove for Phil Parsons Racing team?
### Answer:
SELECT driver_s_ FROM table_1266602_2 WHERE team = "Phil Parsons Racing" |
Below is an context that describes a 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 (podiums VARCHAR, wins VARCHAR, season VARCHAR)
### Question:
What is the value for Podiums when the value for Wins is 2, and when the Season is 2008?
### Answer:
SELECT podiums FROM table_name_62 WHERE wins = "2" AND season = 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_name_47 (total_casualties VARCHAR, total_deaths VARCHAR, military_deaths VARCHAR)
### Question:
What is the total number of casualties when there are 12 total deaths and more than 1 military death?
### Answer:
SELECT total_casualties FROM table_name_47 WHERE total_deaths = 12 AND military_deaths > 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_59 (react INTEGER, name VARCHAR, lane VARCHAR)
### Question:
What is the average react of bryan barnett, who has a lane less than 2?
### Answer:
SELECT AVG(react) FROM table_name_59 WHERE name = "bryan barnett" AND lane < 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_1875157_1 (poles INTEGER, year VARCHAR)
### Question:
How many poles in the year 2000
### Answer:
SELECT MAX(poles) FROM table_1875157_1 WHERE year = 2000 |
Below is an context that describes a 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_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
### Question:
What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010?
### Answer:
SELECT category FROM table_name_44 WHERE result = "nominated" AND year = 2010 AND award = "kids' choice awards mexico" AND recipient_s_ = "joe jonas" |
Below is an context that describes a 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 (champion VARCHAR, course VARCHAR, date VARCHAR)
### Question:
WHAT CHAMPION HAD RICHMOND RIVER COURSE ON JUNE 13?
### Answer:
SELECT champion FROM table_name_39 WHERE course = "richmond river" AND date = "june 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_45 (date VARCHAR, home_team VARCHAR)
### Question:
On what date was Hawthorn the home team?
### Answer:
SELECT date FROM table_name_45 WHERE home_team = "hawthorn" |
Below is an context that describes a 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 (director VARCHAR, role VARCHAR)
### Question:
Which Director has a Role of melissa?
### Answer:
SELECT director FROM table_name_80 WHERE role = "melissa" |
Below is an context that describes a 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 (audio VARCHAR, just_ratio VARCHAR)
### Question:
what is the value of the audio with a just ratio 21:20
### Answer:
SELECT audio FROM table_name_28 WHERE just_ratio = "21: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_77 (score VARCHAR, game VARCHAR, series VARCHAR)
### Question:
What is the score for the game larger than 4 in series 3-2?
### Answer:
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-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_1408397_3 (malayalam_മലയാളം VARCHAR, _number VARCHAR)
### Question:
What is the Malayalam word that is listed as #10 in the table?
### Answer:
SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE _number = 10 |
Below is an context that describes a 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 (company VARCHAR, author VARCHAR, play VARCHAR)
### Question:
Which company has an author of Aristophanes and play of Plutus?
### Answer:
SELECT company FROM table_name_74 WHERE author = "aristophanes" AND play = "plutus" |
Below is an context that describes a 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 (team VARCHAR, pick VARCHAR)
### Question:
What team picked 80?
### Answer:
SELECT team FROM table_name_94 WHERE pick = 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_12740151_8 (price___usd__ VARCHAR, l3 VARCHAR)
### Question:
What's the price (in USD) of the model whose L3 is 18 mb?
### Answer:
SELECT price___usd__ FROM table_12740151_8 WHERE l3 = "18 MB" |
Below is an context that describes a 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 (runner_s__up VARCHAR, tournament VARCHAR)
### Question:
Who is the runner-up at the Chicago challenge?
### Answer:
SELECT runner_s__up FROM table_name_68 WHERE tournament = "chicago challenge" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2182654_6 (no_in_season INTEGER, written_by VARCHAR)
### Question:
What s the episode number in the season that was written by Nancy Oliver?
### Answer:
SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
### Question:
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.
### Answer:
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id |
Below is an context that describes a 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_73 (replaced_by VARCHAR, date_of_appointment VARCHAR)
### Question:
I want the replaced for date of appointment being 12 october 2007
### Answer:
SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 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_28 (start_date VARCHAR, party VARCHAR)
### Question:
Name the start date with party of pd
### Answer:
SELECT start_date FROM table_name_28 WHERE party = "pd" |
Below is an context that describes a 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_44 (year VARCHAR, team VARCHAR)
### Question:
What are the years that Andretti Autosport is a team?
### Answer:
SELECT COUNT(year) FROM table_name_44 WHERE team = "andretti autosport" |
Below is an context that describes a 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 (episode__number INTEGER, viewers__millions_ VARCHAR, rating VARCHAR)
### Question:
What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers?
### Answer:
SELECT MIN(episode__number) FROM table_name_89 WHERE rating / SHARE(18 AS –49) = 0.9 / 4 AND viewers__millions_ > 3.79 |
Below is an context that describes a 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 (event VARCHAR, name VARCHAR)
### Question:
Which event was Ye Shiwen in?
### Answer:
SELECT event FROM table_name_23 WHERE name = "ye shiwen" |
Below is an context that describes a 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 (date VARCHAR, game VARCHAR)
### Question:
What was the date of game 75?
### Answer:
SELECT date FROM table_name_93 WHERE game = 75 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2850912_10 (nhl_team VARCHAR, player VARCHAR)
### Question:
Which team drafted Ron Annear?
### Answer:
SELECT nhl_team FROM table_2850912_10 WHERE player = "Ron Annear" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR)
### Question:
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
### Answer:
SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray" |
Below is an context that describes a 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 (Id VARCHAR)
### Question:
What is the 2006 that has a 2r in 2004, and a 2r in 2005?
### Answer:
SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27533947_1 (players VARCHAR, grand_average VARCHAR)
### Question:
If the grand average is 12.76-202, who is the player?
### Answer:
SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.