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_24901152_2 (score VARCHAR, outcome VARCHAR)
### Question:
When winner is the outcome what is the score?
### Answer:
SELECT score FROM table_24901152_2 WHERE outcome = "Winner" |
Below is an context that describes a sql 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 (away_team VARCHAR, venue VARCHAR)
### Question:
What is the away team's score at brunswick street oval?
### Answer:
SELECT away_team AS score FROM table_name_80 WHERE venue = "brunswick street 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 employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)
### Question:
display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.
### Answer:
SELECT first_name, last_name, salary, department_id, MAX(salary) FROM employees GROUP 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_48 (set_1 VARCHAR, set_2 VARCHAR)
### Question:
What is Set 1, when Set 2 is "21:18"?
### Answer:
SELECT set_1 FROM table_name_48 WHERE set_2 = "21: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_27 (away_team VARCHAR, home_team VARCHAR)
### Question:
What Away team is visiting Carlton?
### Answer:
SELECT away_team FROM table_name_27 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)
### Question:
Name the total number of first elected for sol bloom
### Answer:
SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom" |
Below is an context that describes a sql 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 (eurozone VARCHAR, population_m__luz_ VARCHAR)
### Question:
What is the Eurozone result for Population M (LUZ) of 3.08?
### Answer:
SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1715730_2 (nickname VARCHAR, founded VARCHAR)
### Question:
what is the nickname founded in 1902?
### Answer:
SELECT nickname FROM table_1715730_2 WHERE founded = 1902 |
Below is an context that describes a sql 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 (gold INTEGER, rank VARCHAR, silver VARCHAR)
### Question:
what is the average gold when rank is total and silver is more than 20?
### Answer:
SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 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_68 (position VARCHAR, height__cm_ VARCHAR, name VARCHAR)
### Question:
What position has a height (cm) greater than 180, and brian lawton as the name?
### Answer:
SELECT position FROM table_name_68 WHERE height__cm_ > 180 AND name = "brian lawton" |
Below is an context that describes a sql 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 (country VARCHAR, place VARCHAR, player VARCHAR)
### Question:
Which Country has a Place of t8 and byron nelson?
### Answer:
SELECT country FROM table_name_11 WHERE place = "t8" AND player = "byron nelson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_178381_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
### Question:
In what parish is the Askrova Bedehuskapell church?
### Answer:
SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = "Askrova bedehuskapell" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19401346_1 (title VARCHAR, original_air_date VARCHAR)
### Question:
What's the title of the episode originally aired on September 23, 2008?
### Answer:
SELECT title FROM table_19401346_1 WHERE original_air_date = "September 23, 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_12032893_1 (home_town VARCHAR, high_school VARCHAR)
### Question:
Which home town was the high school Catholic University located in?
### Answer:
SELECT home_town FROM table_12032893_1 WHERE high_school = "Catholic 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 city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
### Question:
Find the city with the largest population that uses English.
### Answer:
SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = "English" ORDER BY T1.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_31 (date VARCHAR, winning_score VARCHAR)
### Question:
Which Date has a Winning score of 69-68-68-70=275?
### Answer:
SELECT date FROM table_name_31 WHERE winning_score = 69 - 68 - 68 - 70 = 275 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23662356_3 (total_points_earned INTEGER, average VARCHAR)
### Question:
How many total points were earned from the couple that averaged 29.0 points?
### Answer:
SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.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_83 (date VARCHAR, surface VARCHAR, score VARCHAR)
### Question:
What date was the match on a hard surface with a score of 6–4, 2–6, 3–6?
### Answer:
SELECT date FROM table_name_83 WHERE surface = "hard" AND score = "6–4, 2–6, 3–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_10592536_8 (date_of_appointment VARCHAR, replaced_by VARCHAR)
### Question:
What is the date of appointment when replaced by is roy hodgson?
### Answer:
SELECT date_of_appointment FROM table_10592536_8 WHERE replaced_by = "Roy Hodgson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27603010_14 (team__number2 VARCHAR, team__number1 VARCHAR)
### Question:
Who was the team 2 that played against team 1 Atlético la Sabana?
### Answer:
SELECT team__number2 FROM table_27603010_14 WHERE team__number1 = "Atlético La Sabana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (service VARCHAR, unit VARCHAR, rank VARCHAR)
### Question:
Name the service for 7th marines rank of sergeant
### Answer:
SELECT service FROM table_name_20 WHERE unit = "7th marines" AND rank = "sergeant" |
Below is an context that describes a sql 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 (non_suited_match VARCHAR, number_of_decks INTEGER)
### Question:
Name the Non-Suited Match that has greater than 6 Number of Decks.
### Answer:
SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 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_24319661_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
### Question:
How many millions of people in the US watched when Kevin Bray was director?
### Answer:
SELECT us_viewers__million_ FROM table_24319661_3 WHERE directed_by = "Kevin Bray" |
Below is an context that describes a sql 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 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR)
### Question:
How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?
### Answer:
SELECT COUNT(females___percentage_) FROM table_name_1 WHERE females_rank < 21 AND state = "kerala" AND males_rank > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)
### Question:
Name the district for mike rogers
### Answer:
SELECT district FROM table_25030512_4 WHERE incumbent = "Mike Rogers" |
Below is an context that describes a 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_2 (position VARCHAR, player VARCHAR)
### Question:
Name the position for shorts
### Answer:
SELECT position FROM table_14342210_2 WHERE player = "Shorts" |
Below is an context that describes a sql 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 (leftfielder VARCHAR, year VARCHAR, shortstop VARCHAR, second_baseman VARCHAR)
### Question:
What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?
### Answer:
SELECT leftfielder FROM table_name_25 WHERE shortstop = "bill russell" AND second_baseman = "steve sax" AND year = 1983 |
Below is an context that describes a sql 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 (grid INTEGER, time VARCHAR, bike VARCHAR, laps VARCHAR)
### Question:
What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?
### Answer:
SELECT AVG(grid) FROM table_name_45 WHERE bike = "honda cbr1000rr" AND laps = 18 AND time = "+1:12.884" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26488540_1 (genre VARCHAR, artist VARCHAR)
### Question:
How many different genres appear for the Jimi Hendrix Experience?
### Answer:
SELECT COUNT(genre) FROM table_26488540_1 WHERE artist = "The Jimi Hendrix Experience" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28523_3 (gender VARCHAR, religious_affiliation VARCHAR, location VARCHAR)
### Question:
What is the gender of the Roman Catholic school is AL4?
### Answer:
SELECT gender FROM table_28523_3 WHERE religious_affiliation = "Roman Catholic" AND location = "AL4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR)
### Question:
When the home attendance is 3.123, what's the highest away attendance?
### Answer:
SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (model VARCHAR, top_speed VARCHAR)
### Question:
Which model has a top speed of 231km/h (143mph)?
### Answer:
SELECT model FROM table_name_37 WHERE top_speed = "231km/h (143mph)" |
Below is an context that describes a sql 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 (laps INTEGER, driver VARCHAR, grid VARCHAR)
### Question:
What was CHris Amon's highest lap when his grid was 4?
### Answer:
SELECT MAX(laps) FROM table_name_31 WHERE driver = "chris amon" AND 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_name_92 (record VARCHAR, week VARCHAR)
### Question:
What was the week 2's record?
### Answer:
SELECT record FROM table_name_92 WHERE week = "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_65 (score VARCHAR, to_par VARCHAR, player VARCHAR)
### Question:
What was Anders Forsbrand's score when the TO par is +4?
### Answer:
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13259009_2 (opponent VARCHAR, game_site VARCHAR)
### Question:
What team was the opponent at Mile High Stadium?
### Answer:
SELECT opponent FROM table_13259009_2 WHERE game_site = "Mile High 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_2781227_10 (college_junior_club_team VARCHAR, player VARCHAR)
### Question:
what educational institute does wes swinson attend
### Answer:
SELECT college_junior_club_team FROM table_2781227_10 WHERE player = "Wes Swinson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18600760_20 (longitude VARCHAR, township VARCHAR)
### Question:
What longitude is tatman township?
### Answer:
SELECT longitude FROM table_18600760_20 WHERE township = "Tatman" |
Below is an context that describes a sql 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 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)
### Question:
Tell me the tournament for outcome of winner and score of 4-6 6-3 10-5
### Answer:
SELECT tournament FROM table_name_90 WHERE outcome = "winner" AND score = "4-6 6-3 10-5" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (weeks_on_top VARCHAR, issue_date_s_ VARCHAR)
### Question:
With an issue date(s) of 12 September, what is in the column for Weeks on Top?
### Answer:
SELECT weeks_on_top FROM table_name_96 WHERE issue_date_s_ = "12 september" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
### Question:
What away team score has carlton home team?
### Answer:
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
### Question:
How many languages have elles as the film title used in nomination?
### Answer:
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles" |
Below is an context that describes a sql 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 (championship VARCHAR, score VARCHAR)
### Question:
Which Championship has a Score of 2–6, 4–6, 4–6?
### Answer:
SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–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_89 (overall INTEGER, player VARCHAR, round VARCHAR)
### Question:
Name the most overall for james davis and round more than 5
### Answer:
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 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_27279050_1 (poles VARCHAR, points VARCHAR, nation VARCHAR)
### Question:
How many pole position achieved 0 points from Mexico?
### Answer:
SELECT COUNT(poles) FROM table_27279050_1 WHERE points = "0" AND nation = "Mexico" |
Below is an context that describes a sql 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 (finish INTEGER, start VARCHAR, year VARCHAR)
### Question:
What is the lowest finish that has a start greater than 27, with a year after 1985?
### Answer:
SELECT MIN(finish) FROM table_name_62 WHERE start > 27 AND year > 1985 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
### Question:
What is Away Team, when Home Team is "Swindon Town"?
### Answer:
SELECT away_team FROM table_name_3 WHERE home_team = "swindon 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_name_81 (res VARCHAR, event VARCHAR)
### Question:
What is Res., when Event is "KOTC 11 - Domination"?
### Answer:
SELECT res FROM table_name_81 WHERE event = "kotc 11 - domination" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_210279_2 (area__km_2__ VARCHAR, barangay VARCHAR)
### Question:
what is the area where barangay is guadalupe viejo?
### Answer:
SELECT area__km_2__ FROM table_210279_2 WHERE barangay = "Guadalupe Viejo" |
Below is an context that describes a sql 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 (place VARCHAR, to_par VARCHAR, player VARCHAR)
### Question:
In what place did Adam Scott, who had a to par score of +1, finish?
### Answer:
SELECT place FROM table_name_17 WHERE to_par = "+1" AND player = "adam scott" |
Below is an context that describes a sql 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 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
### Question:
Which democratic incumbent is from the district of ohio 7?
### Answer:
SELECT incumbent FROM table_name_93 WHERE party = "democratic" AND district = "ohio 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_78 (volume VARCHAR, artist VARCHAR)
### Question:
shows for the artist Santana featuring the product g&b?
### Answer:
SELECT volume AS :issue FROM table_name_78 WHERE artist = "santana featuring the product g&b" |
Below is an context that describes a sql 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 (venue VARCHAR, winner VARCHAR)
### Question:
where did marie-laure taya win?
### Answer:
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya" |
Below is an context that describes a sql 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 (runner_up VARCHAR, semi_finalist__number1 VARCHAR)
### Question:
Who was the runner-up at the South Florida Semi-Finalist #1?
### Answer:
SELECT runner_up FROM table_name_96 WHERE semi_finalist__number1 = "south florida" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17416221_1 (provincial_capital VARCHAR, province VARCHAR)
### Question:
what is the number of provincial captial where the province is northern cape?
### Answer:
SELECT COUNT(provincial_capital) FROM table_17416221_1 WHERE province = "Northern Cape" |
Below is an context that describes a sql 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 (played VARCHAR, points VARCHAR, position VARCHAR)
### Question:
What is the total number played with 8 points and a position more than 6?
### Answer:
SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 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_12 (date_of_birth VARCHAR, years_at_club VARCHAR)
### Question:
What is the birthday of the player who has Years at Club of 1951?
### Answer:
SELECT date_of_birth FROM table_name_12 WHERE years_at_club = "1951" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10753917_1 (podiums VARCHAR, team VARCHAR, margin_of_defeat VARCHAR)
### Question:
Which podiums did the Williams team have with a margin of defeat of 2?
### Answer:
SELECT podiums FROM table_10753917_1 WHERE team = "Williams" AND margin_of_defeat = "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_63 (time VARCHAR, country VARCHAR)
### Question:
What is the time for the race with the United States?
### Answer:
SELECT time FROM table_name_63 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_23 (total_matches INTEGER, draw VARCHAR, swansea_win VARCHAR, competition VARCHAR)
### Question:
How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0?
### Answer:
SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = "fa cup" AND draw < 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_42 (result VARCHAR, game VARCHAR)
### Question:
What was the result of game 3?
### Answer:
SELECT result FROM table_name_42 WHERE game = "game 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_16 (heat INTEGER, rank VARCHAR)
### Question:
Which Heat has a Rank of 8?
### Answer:
SELECT MAX(heat) FROM table_name_16 WHERE rank = 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR)
### Question:
Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.
### Answer:
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 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_16 (cores VARCHAR, l2_cache VARCHAR)
### Question:
What cores has an L2 cache of low power?
### Answer:
SELECT cores FROM table_name_16 WHERE l2_cache = "low power" |
Below is an context that describes a sql 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 (venue VARCHAR, away_team VARCHAR)
### Question:
What is the name of the venue that away team footscray played at?
### Answer:
SELECT venue FROM table_name_91 WHERE away_team = "footscray" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (runner_up VARCHAR, tournament VARCHAR)
### Question:
Who is the Runner-up in Tournament of seiersberg
### Answer:
SELECT runner_up FROM table_name_95 WHERE tournament = "seiersberg" |
Below is an context that describes a sql 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 (team VARCHAR, high_assists VARCHAR)
### Question:
Name the team with high assists of nelson (5)
### Answer:
SELECT team FROM table_name_83 WHERE high_assists = "nelson (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_4 (against VARCHAR, team VARCHAR, lost VARCHAR)
### Question:
What is the total of all against values for the Corinthians with less than 3 lost?
### Answer:
SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 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_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
### Question:
What chassis did the porsche flat-4 use before 1958?
### Answer:
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958 |
Below is an context that describes a sql 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 (website VARCHAR, year_started VARCHAR)
### Question:
Which website was started in 2008?
### Answer:
SELECT website FROM table_name_25 WHERE year_started = 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_25 (year VARCHAR, uk_albums VARCHAR)
### Question:
15 albums were released in the UK during which year?
### Answer:
SELECT year FROM table_name_25 WHERE uk_albums = "15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14460937_2 (pos VARCHAR, member_association VARCHAR)
### Question:
how many pos with member association being china pr
### Answer:
SELECT COUNT(pos) FROM table_14460937_2 WHERE member_association = "China PR" |
Below is an context that describes a sql 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 (rank INTEGER, player VARCHAR, matches VARCHAR)
### Question:
what is the rank when the player is henry shefflin and the matches is higher than 4?
### Answer:
SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 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_19166421_1 (current_ratio VARCHAR, net_worth_to_fixed_assets VARCHAR)
### Question:
If the net worth of fixed assets is 621, what is the current ratio?
### Answer:
SELECT current_ratio FROM table_19166421_1 WHERE net_worth_to_fixed_assets = 621 |
Below is an context that describes a sql 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 (episode__number VARCHAR, eliminated_contestant VARCHAR)
### Question:
What episode # has govinda & david dhawan as the eliminated contestant?
### Answer:
SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan" |
Below is an context that describes a sql 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 (home_team VARCHAR, result VARCHAR)
### Question:
What is the Home Team in the game with a Result of 124-109?
### Answer:
SELECT home_team FROM table_name_48 WHERE result = "124-109" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR)
### Question:
What was the nationality of player picked no. 168?
### Answer:
SELECT nationality FROM table_2679061_9 WHERE pick__number = 168 |
Below is an context that describes a sql 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 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
### Question:
Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?
### Answer:
SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 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_92 (attendance VARCHAR, game_site VARCHAR)
### Question:
What was the Attendance of the Game at Hoosier Dome?
### Answer:
SELECT attendance FROM table_name_92 WHERE game_site = "hoosier dome" |
Below is an context that describes a sql 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 (last_update VARCHAR, name VARCHAR)
### Question:
for the name of jamar jackson what is the last update?
### Answer:
SELECT last_update FROM table_name_81 WHERE name = "jamar jackson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)
### Question:
who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster?
### Answer:
SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidster" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?
### Answer:
SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 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_81 (home VARCHAR, record VARCHAR)
### Question:
What is the home of the team with a 16-8 record?
### Answer:
SELECT home FROM table_name_81 WHERE record = "16-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 races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
### Question:
What are the names of races that were held after 2017 and the circuits were in the country of Spain?
### Answer:
SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017 |
Below is an context that describes a 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 (premiere VARCHAR, languages VARCHAR)
### Question:
Which premiere had languages in danish?
### Answer:
SELECT premiere FROM table_11323532_2 WHERE languages = "Danish" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23887174_1 (number_of_cantons__gavars_ VARCHAR, armenian_name VARCHAR)
### Question:
How many different numbers of cantons does the province with the Armenian name վասպուրական have?
### Answer:
SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական" |
Below is an context that describes a sql 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 (venue VARCHAR, team_2 VARCHAR)
### Question:
Team 2 Al-Ain played in what venue?
### Answer:
SELECT venue FROM table_name_89 WHERE team_2 = "al-ain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE medicine (id VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
### Question:
What is the id and trade name of the medicines can interact with at least 3 enzymes?
### Answer:
SELECT T1.id, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id 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_1342393_16 (candidates VARCHAR, first_elected VARCHAR)
### Question:
What is the candidates for first elected 1914
### Answer:
SELECT candidates FROM table_1342393_16 WHERE first_elected = 1914 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE pilot (Id VARCHAR)
### Question:
How many pilots are there?
### Answer:
SELECT COUNT(*) FROM pilot |
Below is an context that describes a sql 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 (year INTEGER, developer_s_ VARCHAR)
### Question:
What is the smallest year when Ubisoft Montreal was the developer (s)?
### Answer:
SELECT MIN(year) FROM table_name_38 WHERE developer_s_ = "ubisoft montreal" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (lane INTEGER, nationality VARCHAR, time VARCHAR)
### Question:
What is the lowest lane in the Czech Republic and a time larger than 21.05?
### Answer:
SELECT MIN(lane) FROM table_name_85 WHERE nationality = "czech republic" AND time > 21.05 |
Below is an context that describes a sql 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 (year INTEGER, team VARCHAR)
### Question:
What is the average year for Team Oreca?
### Answer:
SELECT AVG(year) FROM table_name_46 WHERE team = "team oreca" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)
### Question:
Find the ids of reviewers who didn't only give 4 star.
### Answer:
SELECT rID FROM Rating WHERE stars <> 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_38 (nationality VARCHAR, pick INTEGER)
### Question:
What nationality has a pick greater than 129?
### Answer:
SELECT nationality FROM table_name_38 WHERE pick > 129 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE DEPARTMENT (DNO VARCHAR, DName VARCHAR); CREATE TABLE MEMBER_OF (DNO VARCHAR, FacID VARCHAR); CREATE TABLE FACULTY (Lname VARCHAR, FacID VARCHAR)
### Question:
Find the last names of faculties who are members of computer science department.
### Answer:
SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science" |
Below is an context that describes a sql 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 (ships_in_class VARCHAR, class VARCHAR)
### Question:
Tell me the ships in classs for kuha class
### Answer:
SELECT ships_in_class FROM table_name_52 WHERE class = "kuha class" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_92 (lost VARCHAR, club VARCHAR)
### Question:
What did the loss come from a Club of mumbles rfc?
### Answer:
SELECT lost FROM table_name_92 WHERE club = "mumbles rfc" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
### Question:
What is the grid total for david coulthard with over 45 laps?
### Answer:
SELECT COUNT(grid) FROM table_name_85 WHERE driver = "david coulthard" AND laps > 45 |
Below is an context that describes a sql 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 (song VARCHAR, artist VARCHAR)
### Question:
What is the Song by Artist Robert Cogoi?
### Answer:
SELECT song FROM table_name_69 WHERE artist = "robert cogoi" |
Subsets and Splits