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 phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR)
### Question:
List the names of phones that are not on any market.
### Answer:
SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market) |
Below is an context that describes a sql 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 (week INTEGER, points_against VARCHAR, points_for VARCHAR, opponent VARCHAR)
### Question:
Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?
### Answer:
SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = "philadelphia eagles" AND points_against > 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_36 (away_team VARCHAR, home_team VARCHAR)
### Question:
Name the away team score for home team of university
### Answer:
SELECT away_team AS score FROM table_name_36 WHERE home_team = "university" |
Below is an context that describes a sql 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 (mascot VARCHAR, county VARCHAR, location VARCHAR)
### Question:
What is the mascot of the school in New Washington in 10 Clark county?
### Answer:
SELECT mascot FROM table_name_50 WHERE county = "10 clark" AND location = "new 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_1965650_11 (player VARCHAR, pick__number VARCHAR)
### Question:
How many players have the pick number 166?
### Answer:
SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE store_district (store_id VARCHAR); CREATE TABLE district (district_id VARCHAR, city_population VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR)
### Question:
Find all the stores in the district with the most population.
### Answer:
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (bronze INTEGER, total VARCHAR, gold VARCHAR)
### Question:
How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?
### Answer:
SELECT SUM(bronze) FROM table_name_70 WHERE total > 2 AND gold > 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_73 (home_team VARCHAR, venue VARCHAR)
### Question:
Who was the home team at the game held at the Junction Oval?
### Answer:
SELECT home_team FROM table_name_73 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_18018248_2 (club VARCHAR, draws VARCHAR)
### Question:
Which clubs had draws of 9?
### Answer:
SELECT club FROM table_18018248_2 WHERE draws = 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_65 (last_64 VARCHAR, total VARCHAR)
### Question:
Which Last 64 has a Total of £34,600?
### Answer:
SELECT last_64 FROM table_name_65 WHERE total = "£34,600" |
Below is an context that describes a sql 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 (result VARCHAR, venue VARCHAR)
### Question:
Did the Bulls win or lose at Valley Parade?
### Answer:
SELECT result FROM table_name_84 WHERE venue = "valley parade" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1463383_1 (left_bloc VARCHAR, social_democratic VARCHAR)
### Question:
What are all percentages of Left Block when there is a 28.7% Social Democratic?
### Answer:
SELECT left_bloc FROM table_1463383_1 WHERE social_democratic = "28.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_26914854_3 (team VARCHAR, incoming_manager VARCHAR)
### Question:
What is the team when the incoming manager is martin allen?
### Answer:
SELECT team FROM table_26914854_3 WHERE incoming_manager = "Martin Allen" |
Below is an context that describes a sql 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 (country VARCHAR, edition VARCHAR)
### Question:
What was the nationality of the winner for the 20th Edition?
### Answer:
SELECT country FROM table_name_84 WHERE edition = "20th" |
Below is an context that describes a sql 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 (record VARCHAR, loss VARCHAR)
### Question:
What was the Rockies record at their game that had a loss of Hernandez (3–5)?
### Answer:
SELECT record FROM table_name_21 WHERE loss = "hernandez (3–5)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (total INTEGER, finish VARCHAR)
### Question:
Which Total has a Finish of t59?
### Answer:
SELECT MIN(total) FROM table_name_81 WHERE finish = "t59" |
Below is an context that describes a sql 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 (player VARCHAR, position VARCHAR)
### Question:
Who plays the right wing position?
### Answer:
SELECT player FROM table_name_66 WHERE 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_name_60 (rank INTEGER, publication VARCHAR, year VARCHAR)
### Question:
Where did Day & Age rank in the Rolling Stone in 2008?
### Answer:
SELECT SUM(rank) FROM table_name_60 WHERE publication = "rolling stone" AND year = 2008 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE song (Singer_ID VARCHAR); CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR)
### Question:
Show the names of singers that have more than one song.
### Answer:
SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name 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_56 (score VARCHAR, opponent_in_the_final VARCHAR)
### Question:
What was the score of the game against Divij Sharan?
### Answer:
SELECT score FROM table_name_56 WHERE opponent_in_the_final = "divij sharan" |
Below is an context that describes a sql 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 (opponent VARCHAR, result VARCHAR, type VARCHAR)
### Question:
Who did Tony Oakey win against when he had type of w pts 12?
### Answer:
SELECT opponent FROM table_name_54 WHERE result = "win" AND type = "w pts 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_61 (wins INTEGER, played VARCHAR, goals_against VARCHAR, points VARCHAR, goal_difference VARCHAR)
### Question:
What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?
### Answer:
SELECT AVG(wins) FROM table_name_61 WHERE points > 32 AND goal_difference < 23 AND goals_against = 36 AND played < 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE election (District VARCHAR)
### Question:
Show all the distinct districts for elections.
### Answer:
SELECT DISTINCT District FROM election |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_240936_2 (region_2__uk_ VARCHAR, region_4__australia_ VARCHAR)
### Question:
What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?
### Answer:
SELECT region_2__uk_ FROM table_240936_2 WHERE region_4__australia_ = "July 31, 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_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
### Question:
For the category of most popular star with a result of won for 2007, what was the award?
### Answer:
SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND 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_21 (margin_of_victory VARCHAR, winning_score VARCHAR)
### Question:
What was the margin of victory when the winning score was −5 (69-69-73=211)?
### Answer:
SELECT margin_of_victory FROM table_name_21 WHERE winning_score = −5(69 - 69 - 73 = 211) |
Below is an context that describes a sql 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 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR)
### Question:
What were the total number of entries in 2001 that had a front row smaller than 13?
### Answer:
SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 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_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR)
### Question:
What is the April 28th rank when the Final is 20, and Mar 17 is 22?
### Answer:
SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22" |
Below is an context that describes a sql 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 (chassis VARCHAR, year VARCHAR)
### Question:
What is shown for Chassis for the year of 2007?
### Answer:
SELECT chassis FROM table_name_70 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_98 (studio VARCHAR, rank VARCHAR)
### Question:
What is the Studio of the Rank 10 Film?
### Answer:
SELECT studio FROM table_name_98 WHERE rank = 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_26 (record VARCHAR, home VARCHAR)
### Question:
Can you tell me the Record that has the Home of ny islanders?
### Answer:
SELECT record FROM table_name_26 WHERE home = "ny islanders" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)
### Question:
What is the home team's score for the game at Junction Oval?
### Answer:
SELECT home_team AS score FROM table_name_42 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_name_9 (class VARCHAR, erp_w VARCHAR)
### Question:
What class is ERP W of 800?
### Answer:
SELECT class FROM table_name_9 WHERE erp_w = 800 |
Below is an context that describes a sql 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 (draw INTEGER, match INTEGER)
### Question:
What is the average number of draws for teams with more than 10 matches?
### Answer:
SELECT AVG(draw) FROM table_name_47 WHERE match > 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_46 (total INTEGER, rank VARCHAR)
### Question:
What is the sum of Total when rank is 2?
### Answer:
SELECT SUM(total) FROM table_name_46 WHERE rank = "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 Player_Attributes (preferred_foot VARCHAR, overall_rating INTEGER)
### Question:
What is the average rating for right-footed players and left-footed players?
### Answer:
SELECT preferred_foot, AVG(overall_rating) FROM Player_Attributes GROUP BY preferred_foot |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (games VARCHAR, name VARCHAR)
### Question:
What is the game named derartu tulu category:articles with hcards?
### Answer:
SELECT games FROM table_name_15 WHERE name = "derartu tulu category:articles with hcards" |
Below is an context that describes a sql 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 (score VARCHAR, game VARCHAR, record VARCHAR)
### Question:
What is the score for a game after 34 with a record of 31-11?
### Answer:
SELECT score FROM table_name_53 WHERE game > 34 AND record = "31-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_48 (score VARCHAR, team VARCHAR)
### Question:
What score is the team of charlotte?
### Answer:
SELECT score FROM table_name_48 WHERE team = "charlotte" |
Below is an context that describes a sql 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 (president VARCHAR, media_officer VARCHAR)
### Question:
Name the President has a Media Officer of pete marshall/ nazar striletski?
### Answer:
SELECT president FROM table_name_25 WHERE media_officer = "pete marshall/ nazar striletski" |
Below is an context that describes a sql 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 (opponent VARCHAR, record VARCHAR)
### Question:
Who is the opponent of the team with a 1-1-0 record?
### Answer:
SELECT opponent FROM table_name_53 WHERE record = "1-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_19072602_3 (team_usa VARCHAR, match_no VARCHAR)
### Question:
When 14 is the match number how many usa teams are there?
### Answer:
SELECT COUNT(team_usa) FROM table_19072602_3 WHERE match_no = 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_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
### Question:
Which Number of households has a Median household income of $32,806, and a Population larger than 11,291?
### Answer:
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291 |
Below is an context that describes a sql 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 (tie_no VARCHAR, away_team VARCHAR)
### Question:
Which Tie # has an Away team of slough town?
### Answer:
SELECT tie_no FROM table_name_66 WHERE away_team = "slough town" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15081939_4 (province VARCHAR, evening_gown VARCHAR)
### Question:
How many provinces have evening gown score of 8.49
### Answer:
SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = "8.49" |
Below is an context that describes a sql 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 (regulations VARCHAR, winning_drivers VARCHAR)
### Question:
What regulations have carlos arzani as the winning driver?
### Answer:
SELECT regulations FROM table_name_13 WHERE winning_drivers = "carlos arzani" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2610582_3 (station_type VARCHAR, callsign VARCHAR)
### Question:
What is the station type of DWMC-TV?
### Answer:
SELECT station_type FROM table_2610582_3 WHERE callsign = "DWMC-TV" |
Below is an context that describes a sql 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 (score VARCHAR, partner VARCHAR)
### Question:
what is the score when the partner is alexandra fusai?
### Answer:
SELECT score FROM table_name_67 WHERE partner = "alexandra fusai" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (date VARCHAR, winning_score VARCHAR)
### Question:
When was the winning score –12 (69-66-72-65=272)?
### Answer:
SELECT date FROM table_name_72 WHERE winning_score = –12(69 - 66 - 72 - 65 = 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_name_58 (population_2000_census VARCHAR, area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)
### Question:
What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?
### Answer:
SELECT COUNT(population_2000_census) FROM table_name_58 WHERE area__km²_ = 464.5 AND population_density_2010___km²_ > 1840 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25604014_5 (no_in_season VARCHAR, directed_by VARCHAR)
### Question:
How many episodes directed by david carson?
### Answer:
SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = "David Carson" |
Below is an context that describes a sql 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 (high_points VARCHAR, game VARCHAR)
### Question:
What are the high points from a game of 30?
### Answer:
SELECT high_points FROM table_name_59 WHERE game = 30 |
Below is an context that describes a sql 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 (rank INTEGER, total INTEGER)
### Question:
what is the highest rank with a total less than 1?
### Answer:
SELECT MAX(rank) FROM table_name_68 WHERE total < 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_14395920_2 (points_classification VARCHAR, young_rider_classification VARCHAR)
### Question:
Who led the points classification when Roman Kreuziger led the young rider classification?
### Answer:
SELECT points_classification FROM table_14395920_2 WHERE young_rider_classification = "Roman Kreuziger" |
Below is an context that describes a sql 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 (home_team VARCHAR, tie_no VARCHAR)
### Question:
What is Home Team, when Tie No is "7"?
### Answer:
SELECT home_team FROM table_name_5 WHERE tie_no = "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_2076608_1 (founded VARCHAR, enrollment VARCHAR)
### Question:
What is the total number of schools founded that have an enrollment of 5634?
### Answer:
SELECT COUNT(founded) FROM table_2076608_1 WHERE enrollment = "5634" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1007688_1 (typhus VARCHAR, smallpox VARCHAR)
### Question:
What are all the typhus number when smallpox is 4
### Answer:
SELECT typhus FROM table_1007688_1 WHERE smallpox = 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_64 (champion VARCHAR, third VARCHAR, season VARCHAR)
### Question:
Which Champion has a Third of blaho blahoyeve, and a Season of 1995-96?
### Answer:
SELECT champion FROM table_name_64 WHERE third = "blaho blahoyeve" AND season = "1995-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_2260452_1 (date VARCHAR, driver VARCHAR)
### Question:
What was the date if the driver was Robert Pressley?
### Answer:
SELECT date FROM table_2260452_1 WHERE driver = "Robert Pressley" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29332810_14 (team_classification VARCHAR, aggressive_rider VARCHAR)
### Question:
What is aggressive rider Richie Porte's team classifaction?
### Answer:
SELECT team_classification FROM table_29332810_14 WHERE aggressive_rider = "Richie Porte" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (prominence__m_ INTEGER, elevation__m_ VARCHAR)
### Question:
COunt the sum of Prominence (m) of an Elevation (m) of 2,024?
### Answer:
SELECT SUM(prominence__m_) FROM table_name_69 WHERE elevation__m_ = 2 OFFSET 024 |
Below is an context that describes a sql 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 (opponent VARCHAR, round VARCHAR)
### Question:
Who was the opponent during the second round?
### Answer:
SELECT opponent FROM table_name_64 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_name_6 (venue VARCHAR, date VARCHAR, away_team VARCHAR)
### Question:
Tell me the venue for 8 june 1931 for st kilda away team
### Answer:
SELECT venue FROM table_name_6 WHERE date = "8 june 1931" AND away_team = "st kilda" |
Below is an context that describes a sql 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 (date VARCHAR, opponent VARCHAR)
### Question:
What date has dallas cowboys as the opponent?
### Answer:
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (name VARCHAR, assumed_office VARCHAR, district VARCHAR)
### Question:
What is the name of the Senator in the O District who assumed office in 2013?
### Answer:
SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = "o" |
Below is an context that describes a sql 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 (player VARCHAR, score VARCHAR)
### Question:
Which player has a score of 68-69-73=210
### Answer:
SELECT player FROM table_name_8 WHERE score = 68 - 69 - 73 = 210 |
Below is an context that describes a sql 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 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
### Question:
What is the Transfer fee, when the Transfer window is "winter", and when the item "Moving to" is Northwich Victoria?
### Answer:
SELECT transfer_fee FROM table_name_94 WHERE transfer_window = "winter" AND moving_to = "northwich victoria" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)
### Question:
Who was the turbine manufacturer for the Wheatland county?
### Answer:
SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE phone (Accreditation_level VARCHAR)
### Question:
Find the accreditation level that more than 3 phones use.
### Answer:
SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING COUNT(*) > 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_33 (nationality VARCHAR, round VARCHAR)
### Question:
What is the nationality of the player in round 7?
### Answer:
SELECT nationality FROM table_name_33 WHERE round = "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_27 (date VARCHAR, goal VARCHAR)
### Question:
What was the date of the game with a goal of 7?
### Answer:
SELECT date FROM table_name_27 WHERE goal = 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_14532_1 (area__km²_ INTEGER, region VARCHAR)
### Question:
What is the area of Tuscany?
### Answer:
SELECT MAX(area__km²_) FROM table_14532_1 WHERE region = "Tuscany" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15847691_2 (points_against INTEGER, attendance VARCHAR)
### Question:
What is the maximum number of points against when the attendance was 47678?
### Answer:
SELECT MAX(points_against) FROM table_15847691_2 WHERE attendance = 47678 |
Below is an context that describes a sql 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 (laps INTEGER, grid VARCHAR)
### Question:
what is the highest laps when the grid is 1?
### Answer:
SELECT MAX(laps) FROM table_name_94 WHERE grid = 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_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
### Question:
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
### Answer:
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "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_11323532_2 (channel VARCHAR, country_region VARCHAR)
### Question:
What was the number of channels in New Zealand?
### Answer:
SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = "New Zealand" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17001658_5 (high_assists VARCHAR, team VARCHAR)
### Question:
Who had the most assists and how many did they have in the game against Miami?
### Answer:
SELECT high_assists FROM table_17001658_5 WHERE team = "Miami" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
### Question:
Which tournament had an outcome of winner, a hard surface, and happened on August 26, 2006?
### Answer:
SELECT tournament FROM table_name_76 WHERE outcome = "winner" AND surface = "hard" AND date = "august 26, 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_33 (wins VARCHAR, runners_up VARCHAR)
### Question:
How many wins did the 8 time runner-up have?
### Answer:
SELECT wins FROM table_name_33 WHERE runners_up = "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_79 (segment_c VARCHAR, episode VARCHAR, segment_a VARCHAR)
### Question:
Which Segment C that has an Episode lower than 230, and a Segment A consisting of wax figures?
### Answer:
SELECT segment_c FROM table_name_79 WHERE episode < 230 AND segment_a = "wax figures" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR)
### Question:
Show the players and the years played.
### Answer:
SELECT Player, Years_Played FROM player |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR)
### Question:
Who is the home captain that played at Edgbaston?
### Answer:
SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston" |
Below is an context that describes a sql 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 (date VARCHAR, format VARCHAR, catalog VARCHAR)
### Question:
What is the release date of a CD with the catalog number ALCA-9206?
### Answer:
SELECT date FROM table_name_87 WHERE format = "cd" AND catalog = "alca-9206" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_261895_1 (founded INTEGER, nickname VARCHAR)
### Question:
under belles, which is the most possible created?
### Answer:
SELECT MAX(founded) FROM table_261895_1 WHERE nickname = "Belles" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18365784_3 (going_to VARCHAR, calling_at VARCHAR)
### Question:
What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?
### Answer:
SELECT going_to FROM table_18365784_3 WHERE calling_at = "Boston, Sleaford, Nottingham Victoria" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (jersey__number VARCHAR, weight__kg_ VARCHAR, height__cm_ VARCHAR, name VARCHAR)
### Question:
Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?
### Answer:
SELECT COUNT(jersey__number) FROM table_name_98 WHERE height__cm_ = 183 AND name = "paul stastny" AND weight__kg_ < 93 |
Below is an context that describes a sql 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 (venue VARCHAR, home_team VARCHAR)
### Question:
What was the venue where Fitzroy played as the home team?
### Answer:
SELECT venue FROM table_name_87 WHERE home_team = "fitzroy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342480_5 (points VARCHAR, position VARCHAR, starter VARCHAR)
### Question:
Name the number of points for right halfback and starter being yes
### Answer:
SELECT COUNT(points) FROM table_14342480_5 WHERE position = "Right halfback" AND starter = "yes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE people (Birth_Place VARCHAR)
### Question:
List each birth place along with the number of people from there.
### Answer:
SELECT Birth_Place, COUNT(*) FROM people GROUP BY Birth_Place |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20095300_1 (name VARCHAR, number VARCHAR)
### Question:
What horse has the number 25?
### Answer:
SELECT name FROM table_20095300_1 WHERE number = 25 |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What is 2004, when 2005 is "Not Tier I"?
### Answer:
SELECT 2004 FROM table_name_31 WHERE 2005 = "not tier i" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What is the 1999 finish for the tournament in Rome?
### Answer:
SELECT 1999 FROM table_name_24 WHERE tournament = "rome" |
Below is an context that describes a sql 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 (date VARCHAR, game VARCHAR)
### Question:
On what day was Game 48 played?
### Answer:
SELECT date FROM table_name_39 WHERE game = 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_23486853_5 (attendance INTEGER)
### Question:
What was the largest attended game?
### Answer:
SELECT MAX(attendance) FROM table_23486853_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_21350772_2 (gas_name VARCHAR)
### Question:
What is the 100 year for Carbon Dioxide?
### Answer:
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19001916_2 (country VARCHAR, supply_point VARCHAR)
### Question:
In how many countries is Itaipu a supply point for electricity?
### Answer:
SELECT COUNT(country) FROM table_19001916_2 WHERE supply_point = "Itaipu" |
Below is an context that describes a sql 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 (transfer_fee VARCHAR, ends VARCHAR)
### Question:
What was the transfer fee for the player with an ends of 2007?
### Answer:
SELECT transfer_fee FROM table_name_79 WHERE ends = 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_22379931_2 (winning_driver VARCHAR, winning_team VARCHAR)
### Question:
Who was the driver for the winning team Lawson Team Impul?
### Answer:
SELECT winning_driver FROM table_22379931_2 WHERE winning_team = "Lawson Team Impul" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17039232_3 (replaced_by VARCHAR, position_in_table VARCHAR)
### Question:
Name the replaced by for position in table is 1st
### Answer:
SELECT replaced_by FROM table_17039232_3 WHERE position_in_table = "1st" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (overall INTEGER, college VARCHAR, pick VARCHAR)
### Question:
What is the sum of Overall, when College is "Arkansas State", and when Pick is less than 17?
### Answer:
SELECT SUM(overall) FROM table_name_22 WHERE college = "arkansas state" AND pick < 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.