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_25716397_1 (title VARCHAR, written_by VARCHAR)
### Question:
How many titles does the episode written by Joe Toplyn have?
### Answer:
SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = "Joe Toplyn" |
Below is an context that describes a sql 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 (time VARCHAR, nationality VARCHAR)
### Question:
What was Great Britain's total time?
### Answer:
SELECT COUNT(time) FROM table_name_4 WHERE nationality = "great britain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2500440_1 (name VARCHAR, change___percentage_ VARCHAR)
### Question:
What place is there a change of -19.3?
### Answer:
SELECT COUNT(name) FROM table_2500440_1 WHERE change___percentage_ = "-19.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 Player (weight INTEGER)
### Question:
What is the average weight of all players?
### Answer:
SELECT AVG(weight) 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_60 (tournament VARCHAR)
### Question:
Which tournament had 2r in 2010?
### Answer:
SELECT tournament FROM table_name_60 WHERE 2010 = "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_name_61 (team_1 VARCHAR, agg VARCHAR)
### Question:
Which teams had an aggregate score of 3-4?
### Answer:
SELECT team_1 FROM table_name_61 WHERE agg = "3-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_61 (Id VARCHAR)
### Question:
Which 2009 has a 2012 larger than 9,265?
### Answer:
SELECT MAX(2009) FROM table_name_61 WHERE 2012 > 9 OFFSET 265 |
Below is an context that describes a sql 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 (date_of_birth__age_ VARCHAR, caps VARCHAR)
### Question:
When was the player born who has 1 caps?
### Answer:
SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 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_22669816_1 (length VARCHAR, winning_driver VARCHAR)
### Question:
What length was won by Roger McCluskey?
### Answer:
SELECT length FROM table_22669816_1 WHERE winning_driver = "Roger McCluskey" |
Below is an context that describes a sql 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 (points INTEGER, grid VARCHAR)
### Question:
What are grid 4's average points?
### Answer:
SELECT AVG(points) FROM table_name_25 WHERE grid = 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_20669355_2 (height__ft_ VARCHAR, country VARCHAR)
### Question:
How tall is the contestant from Aruba?
### Answer:
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (municipality VARCHAR, candidate VARCHAR)
### Question:
Candidate of kimmo kiljunen belongs to which municipality?
### Answer:
SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen" |
Below is an context that describes a sql 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 (week VARCHAR, date VARCHAR, attendance VARCHAR)
### Question:
What is the week with a date of October 9, 1983, and attendance smaller than 40,492?
### Answer:
SELECT COUNT(week) FROM table_name_27 WHERE date = "october 9, 1983" AND attendance < 40 OFFSET 492 |
Below is an context that describes a sql 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 (nickname VARCHAR, institution VARCHAR)
### Question:
What is the nickname of Columbia University?
### Answer:
SELECT nickname FROM table_name_62 WHERE institution = "columbia 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_22050544_3 (elapsed_time VARCHAR, event VARCHAR)
### Question:
How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?
### Answer:
SELECT COUNT(elapsed_time) FROM table_22050544_3 WHERE event = "$16.50 Fixed-Limit Badugi" |
Below is an context that describes a sql 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 (original_title VARCHAR, director VARCHAR)
### Question:
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?
### Answer:
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17012578_37 (Ends VARCHAR, pa VARCHAR)
### Question:
How many values are in the ends won cell corresponding to a PA of 39?
### Answer:
SELECT COUNT(Ends) AS won FROM table_17012578_37 WHERE pa = 39 |
Below is an context that describes a sql 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 (kerry_number INTEGER, bush_number VARCHAR)
### Question:
How many votes did Kerry get in the county that gave Bush 189,605 votes?
### Answer:
SELECT AVG(kerry_number) FROM table_name_46 WHERE bush_number = 189 OFFSET 605 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (res VARCHAR, time VARCHAR)
### Question:
What is the result for the match that was only 2:48 long?
### Answer:
SELECT res FROM table_name_63 WHERE time = "2: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_name_57 (crowd INTEGER, away_team VARCHAR)
### Question:
What was the lowest crowd seen at a game that Richmond was the Away team in?
### Answer:
SELECT MIN(crowd) FROM table_name_57 WHERE away_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)
### Question:
List the names, color descriptions and product descriptions of products with category "Herbs".
### Answer:
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26129220_2 (term_limited INTEGER, senator VARCHAR)
### Question:
What is the term limit for Senator Tom Niehaus?
### Answer:
SELECT MIN(term_limited) FROM table_26129220_2 WHERE senator = "Tom Niehaus" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR)
### Question:
What was the surface type at Takao Suzuki?
### Answer:
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28243691_2 (institution VARCHAR, location VARCHAR)
### Question:
What school is located in Huntsville, Texas?
### Answer:
SELECT institution FROM table_28243691_2 WHERE location = "Huntsville, 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_name_32 (record VARCHAR, date VARCHAR)
### Question:
On the date of June 8 what was the record?
### Answer:
SELECT record FROM table_name_32 WHERE date = "june 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_1594772_2 (winner VARCHAR, match_date VARCHAR)
### Question:
Name the winner for date of nov 5, 1987
### Answer:
SELECT winner FROM table_1594772_2 WHERE match_date = "Nov 5, 1987" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1160660_1 (date_founded VARCHAR, acronym VARCHAR)
### Question:
What year was USF founded?
### Answer:
SELECT date_founded FROM table_1160660_1 WHERE acronym = "USF" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR)
### Question:
Which Score has a Game larger than 47, and a January smaller than 25?
### Answer:
SELECT score FROM table_name_19 WHERE game > 47 AND january < 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_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)
### Question:
Which Total has a Date of 1602, and Greater Doubles smaller than 16?
### Answer:
SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 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_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR)
### Question:
What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2?
### Answer:
SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND 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 table_name_30 (total VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
### Question:
When the tom watson is playing for the United States and the To par is under 14, what's the total?
### Answer:
SELECT total FROM table_name_30 WHERE country = "united states" AND to_par < 14 AND player = "tom watson" |
Below is an context that describes a sql 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 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
### Question:
What Transfer window that has a Transfer fee of free, with a Moving to of derby county?
### Answer:
SELECT transfer_window FROM table_name_54 WHERE transfer_fee = "free" AND moving_to = "derby county" |
Below is an context that describes a sql 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 (class VARCHAR, race VARCHAR, length VARCHAR)
### Question:
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
### Answer:
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (name VARCHAR, Code VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE stay (Patient VARCHAR)
### Question:
Find the name of medication used on the patient who stays in room 111?
### Answer:
SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 |
Below is an context that describes a sql 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 (crowd INTEGER, away_team VARCHAR)
### Question:
What were the most in attendance in Richmond?
### Answer:
SELECT MAX(crowd) FROM table_name_61 WHERE away_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (position VARCHAR, caps VARCHAR, player VARCHAR)
### Question:
What is Position, when Caps is Example, and When Player is Shane Kelly?
### Answer:
SELECT position FROM table_name_66 WHERE caps = "example" AND player = "shane kelly" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21133193_1 (gdp_per_capita__us INTEGER, languages VARCHAR)
### Question:
Name the most gdp per capita latvian
### Answer:
SELECT MAX(gdp_per_capita__us) AS $_ FROM table_21133193_1 WHERE languages = "Latvian" |
Below is an context that describes a sql 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 (name VARCHAR, debut VARCHAR)
### Question:
What is the name of the player that had a debut in round 6?
### Answer:
SELECT name FROM table_name_96 WHERE debut = "round 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_21 (loss VARCHAR, attendance VARCHAR)
### Question:
What was the loss of the game attended by 29,704?
### Answer:
SELECT loss FROM table_name_21 WHERE attendance = "29,704" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25428629_1 (opponent VARCHAR, location VARCHAR)
### Question:
If the location is Yangon, Myanmar, what is the opponent total number?
### Answer:
SELECT COUNT(opponent) FROM table_25428629_1 WHERE location = "Yangon, Myanmar" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Building VARCHAR, FacID VARCHAR)
### Question:
Which building does the instructor who teaches the most number of courses live in?
### Answer:
SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR)
### Question:
Who had the most high assists from Milwaukee?
### Answer:
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee" |
Below is an context that describes a sql 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 (city_location VARCHAR, round VARCHAR, circuit VARCHAR)
### Question:
For which location was the round smaller than 11 and the circuit streets of denver?
### Answer:
SELECT city_location FROM table_name_93 WHERE round < 11 AND circuit = "streets of denver" |
Below is an context that describes a sql 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 (player VARCHAR, college VARCHAR, pick VARCHAR)
### Question:
What is the Pick 3 Player from East College?
### Answer:
SELECT player FROM table_name_67 WHERE college = "east" AND pick = 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_50 (city VARCHAR, location VARCHAR)
### Question:
What city was located in the Netherlands?
### Answer:
SELECT city FROM table_name_50 WHERE location = "netherlands" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27170987_5 (league_apps VARCHAR, total_goals VARCHAR)
### Question:
How many league apps did the player with 11 team goals have?
### Answer:
SELECT league_apps FROM table_27170987_5 WHERE total_goals = 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_76 (school VARCHAR, enrollment INTEGER)
### Question:
What School has an Enrollement smaller than 301?
### Answer:
SELECT school FROM table_name_76 WHERE enrollment < 301 |
Below is an context that describes a sql 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 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
### Question:
What college did Jamie Butt go to?
### Answer:
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR)
### Question:
At what tournament did pete sampras begin his lead?
### Answer:
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "Pete Sampras" |
Below is an context that describes a sql 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 (decile INTEGER, roll VARCHAR, area VARCHAR)
### Question:
Name the highest Decile for roll more than 325 and area of warkworth
### Answer:
SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth" |
Below is an context that describes 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 (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)
### Question:
Show all artist names with an average exhibition attendance over 200.
### Answer:
SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200 |
Below is an context that describes a sql 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 (date VARCHAR, opponent VARCHAR)
### Question:
When was the opponent Bye?
### Answer:
SELECT date FROM table_name_52 WHERE opponent = "bye" |
Below is an context that describes a sql 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 (longitude INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR)
### Question:
What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005?
### Answer:
SELECT MIN(longitude) FROM table_name_31 WHERE latitude = 46.843963 AND water__sqmi_ < 0.052000000000000005 |
Below is an context that describes a sql 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 (viewers__m_ INTEGER, share INTEGER)
### Question:
what is the lowest viewers (m) when the share is more than 13?
### Answer:
SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 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_17 (overall INTEGER, round VARCHAR, name VARCHAR)
### Question:
What is the lowest overall draft pick number for terry daniels who was picked in round 10?
### Answer:
SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11959669_3 (high_assists VARCHAR, date VARCHAR)
### Question:
Who had the highest assists on November 4
### Answer:
SELECT high_assists FROM table_11959669_3 WHERE date = "November 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_18 (start VARCHAR, laps VARCHAR)
### Question:
What is the start of lap 55?
### Answer:
SELECT start FROM table_name_18 WHERE laps = 55 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (seasons INTEGER, total_points INTEGER)
### Question:
What is the number of seasons for the team with a total fewer than 24?
### Answer:
SELECT SUM(seasons) FROM table_name_45 WHERE total_points < 24 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (work VARCHAR, result VARCHAR, year VARCHAR)
### Question:
what is the work when the result is won and the year is before 2003?
### Answer:
SELECT work FROM table_name_36 WHERE result = "won" AND year < 2003 |
Below is an context that describes a sql 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 (attendance INTEGER, date VARCHAR)
### Question:
What was the Attendance high on August 28?
### Answer:
SELECT MAX(attendance) FROM table_name_26 WHERE date = "august 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_90 (points INTEGER, entrant VARCHAR, year VARCHAR)
### Question:
How many points for the cooper car company after 1959?
### Answer:
SELECT SUM(points) FROM table_name_90 WHERE entrant = "cooper car company" AND year > 1959 |
Below is an context that describes a sql 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 (played VARCHAR)
### Question:
Which Played has a Club of club?
### Answer:
SELECT played FROM table_name_94 WHERE "club" = "club" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE teacher (Hometown VARCHAR)
### Question:
Show different hometown of teachers and the number of teachers from each hometown.
### Answer:
SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown |
Below is an context that describes a sql 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 (week INTEGER, location VARCHAR)
### Question:
What is the highest week for a game that was located at the Molson Stadium?
### Answer:
SELECT MAX(week) FROM table_name_66 WHERE location = "molson stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25058562_2 (birth_date VARCHAR, player VARCHAR)
### Question:
Name the birth date for taavi sadam
### Answer:
SELECT birth_date FROM table_25058562_2 WHERE player = "Taavi Sadam" |
Below is an context that describes a sql 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 (total_goals INTEGER, name VARCHAR)
### Question:
What is the total goals for Mark Ward?
### Answer:
SELECT MIN(total_goals) FROM table_name_64 WHERE name = "mark ward" |
Below is an context that describes a sql 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 (team VARCHAR, start VARCHAR, finish VARCHAR)
### Question:
What team had a finish of 25 in a smaller than 28?
### Answer:
SELECT team FROM table_name_82 WHERE start < 28 AND finish = 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_65 (score VARCHAR, date VARCHAR)
### Question:
What is Score, when Date is May 7, 2006?
### Answer:
SELECT score FROM table_name_65 WHERE date = "may 7, 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_4 (position INTEGER, played INTEGER)
### Question:
What is the smallest positioned with more than 9 played?
### Answer:
SELECT MIN(position) FROM table_name_4 WHERE played > 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_95 (points INTEGER, record VARCHAR, march VARCHAR)
### Question:
Record of 42–16–8, and a March larger than 5 has what average points?
### Answer:
SELECT AVG(points) FROM table_name_95 WHERE record = "42–16–8" AND march > 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_63 (venue VARCHAR, opponent VARCHAR)
### Question:
Where did Zimbabwe play?
### Answer:
SELECT venue FROM table_name_63 WHERE opponent = "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_name_86 (city VARCHAR, stadium VARCHAR)
### Question:
What city houses the Ciro Vigorito stadium?
### Answer:
SELECT city FROM table_name_86 WHERE stadium = "ciro vigorito" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
### Question:
Which person whose friends have the oldest average age?
### Answer:
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) 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_59 (score VARCHAR, player VARCHAR)
### Question:
What was Eduardo Romero's score?
### Answer:
SELECT score FROM table_name_59 WHERE player = "eduardo romero" |
Below is an context that describes a sql 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 (result VARCHAR, attendance VARCHAR)
### Question:
What was the score when 50,514 people were in attendance?
### Answer:
SELECT result FROM table_name_54 WHERE attendance = "50,514" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20774360_2 (regular_season_record__w_l_ VARCHAR, standing VARCHAR)
### Question:
Name the regular season record for standing 11th
### Answer:
SELECT regular_season_record__w_l_ FROM table_20774360_2 WHERE standing = "11th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25244412_1 (renewable_electricity__gw INTEGER, state VARCHAR)
### Question:
What is the maximum renewable energy (gw×h) for the state of Delaware?
### Answer:
SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = "Delaware" |
Below is an context that describes a 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 (colours VARCHAR, jockey VARCHAR)
### Question:
What are Andrew McNamara's colors?
### Answer:
SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE ASSESSMENT_NOTES (Id VARCHAR)
### Question:
How many assessment notes are there in total?
### Answer:
SELECT COUNT(*) FROM ASSESSMENT_NOTES |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13336122_5 (original_air_date VARCHAR, written_by VARCHAR)
### Question:
what is the original air date for the episoe written by vanessa reisen?
### Answer:
SELECT original_air_date FROM table_13336122_5 WHERE written_by = "Vanessa Reisen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)
### Question:
How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?
### Answer:
SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
### Question:
How many events does the tournament with a top-10 of 2 and more than 5 cuts have?
### Answer:
SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 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_16423070_4 (golf VARCHAR, soccer VARCHAR)
### Question:
how many teams won at golf when wooster won soccer
### Answer:
SELECT COUNT(golf) FROM table_16423070_4 WHERE soccer = "Wooster" |
Below is an context that describes a sql 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 (record VARCHAR, date VARCHAR)
### Question:
What is the record on October 30?
### Answer:
SELECT record FROM table_name_74 WHERE date = "october 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_80 (team_name VARCHAR, schools VARCHAR)
### Question:
What is the name of the team from goreville vienna school?
### Answer:
SELECT team_name FROM table_name_80 WHERE schools = "goreville vienna" |
Below is an context that describes a sql 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 (date VARCHAR, visitor VARCHAR, points VARCHAR, home VARCHAR)
### Question:
What Date has Points smaller than 80, Home of Los Angeles, and a Visitor of Pittsburgh?
### Answer:
SELECT date FROM table_name_76 WHERE points < 80 AND home = "los angeles" AND visitor = "pittsburgh" |
Below is an context that describes a sql 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 (bronze INTEGER, silver INTEGER)
### Question:
with silver count at 0, what is the lowest bronze count?
### Answer:
SELECT MIN(bronze) FROM table_name_82 WHERE silver < 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 enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)
### Question:
Find names of all students who took some course and the course description.
### Answer:
SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2857352_3 (network VARCHAR, virtual_channel VARCHAR)
### Question:
How many networks run on virtual channel 23.4?
### Answer:
SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = "23.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_175442_1 (scientific_name VARCHAR, common_name VARCHAR)
### Question:
Name the scientific name for veiled chameleon
### Answer:
SELECT scientific_name FROM table_175442_1 WHERE common_name = "Veiled chameleon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19744915_15 (rank VARCHAR, couple VARCHAR)
### Question:
What is Michael and Melanie's rank?
### Answer:
SELECT rank FROM table_19744915_15 WHERE couple = "Michael and Melanie" |
Below is an context that describes a sql 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 (finish INTEGER, team VARCHAR, start VARCHAR)
### Question:
When the team is penske and they start under 9, what's the average finish time?
### Answer:
SELECT AVG(finish) FROM table_name_80 WHERE team = "penske" AND start < 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_26 (to_par INTEGER, score VARCHAR)
### Question:
Name the sum To par for score of 71-74-71-72=288
### Answer:
SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288 |
Below is an context that describes a sql 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 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
### Question:
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
### Answer:
SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" 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_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR)
### Question:
Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?
### Answer:
SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE performance (LOCATION VARCHAR)
### Question:
Show the locations that have at least two performances.
### Answer:
SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 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_23 (lost INTEGER, games INTEGER)
### Question:
What's the total Lost with Games that's less than 4?
### Answer:
SELECT SUM(lost) FROM table_name_23 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_28 (time VARCHAR, rank VARCHAR, country VARCHAR)
### Question:
What is the Time of the Rowers from Finland with a Rank of less than 4?
### Answer:
SELECT time FROM table_name_28 WHERE rank < 4 AND country = "finland" |
Below is an context that describes a sql 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 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR)
### Question:
What is province of community with height larger than 1.8 and is in el cibao region?
### Answer:
SELECT province, _community FROM table_name_82 WHERE geographical_regions = "el cibao" AND height > 1.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_28 (score VARCHAR, competition VARCHAR)
### Question:
WHAT IS THE SCORE FOR 2010 fifa world cup qualification?
### Answer:
SELECT score FROM table_name_28 WHERE competition = "2010 fifa world cup qualification" |
Subsets and Splits