text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
### Question:
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
### Answer:
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 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 car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR)
### Question:
How many countries has more than 2 car makers ?
### Answer:
SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid 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_73 (date_of_appointment VARCHAR, replaced_by VARCHAR)
### Question:
What was the date of appointment for the replaced manager, reiner geyer?
### Answer:
SELECT date_of_appointment FROM table_name_73 WHERE replaced_by = "reiner geyer" |
Below is an context that describes a sql 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 (away_team VARCHAR, tie_no VARCHAR)
### Question:
Who was the away team when 6 was the tie no?
### Answer:
SELECT away_team FROM table_name_69 WHERE tie_no = "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_72 (rookie_of_the_year VARCHAR, season VARCHAR)
### Question:
Who was the Rookie of the Year for the Season in 2000?
### Answer:
SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
### Question:
What is the lowest silver that has 1 as the rank, with a bronze greater than 5?
### Answer:
SELECT MIN(silver) FROM table_name_76 WHERE rank = 1 AND bronze > 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_23 (score VARCHAR, opponent VARCHAR)
### Question:
What is the score for the opponent Vancouver Canucks?
### Answer:
SELECT score FROM table_name_23 WHERE opponent = "vancouver canucks" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)
### Question:
Find the number of rooms for different block code?
### Answer:
SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22355_26 (gold INTEGER)
### Question:
What is the maximum number of golds?
### Answer:
SELECT MAX(gold) FROM table_22355_26 |
Below is an context that describes a sql 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 (score VARCHAR, result VARCHAR)
### Question:
Which score has a Result of 11–0?
### Answer:
SELECT score FROM table_name_73 WHERE result = "11–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_7 (year VARCHAR, award VARCHAR, category VARCHAR)
### Question:
Which Year has an Award of 17th bangkok critics assembly awards, and a Category of best original score?
### Answer:
SELECT year FROM table_name_7 WHERE award = "17th bangkok critics assembly awards" AND category = "best original score" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12962773_10 (position VARCHAR, height VARCHAR)
### Question:
What position was played by the player who was 2.12 meters tall?
### Answer:
SELECT position FROM table_12962773_10 WHERE height = "2.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_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR)
### Question:
What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?
### Answer:
SELECT SUM(points) FROM table_name_39 WHERE club = "nevėžis-2 kėdainiai" AND goals_conceded > 35 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21457754_2 (races INTEGER)
### Question:
Name the most races
### Answer:
SELECT MAX(races) FROM table_21457754_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_44 (attendance INTEGER, record VARCHAR, points VARCHAR)
### Question:
What is the Attendance of the game with a Record of 37–21–12 and less than 86 Points?
### Answer:
SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86 |
Below is an context that describes a sql 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 (round VARCHAR, opponent VARCHAR, venue VARCHAR)
### Question:
what round saw wakefield trinity wildcats u21 as the opponenet at belle vue?
### Answer:
SELECT round FROM table_name_19 WHERE opponent = "wakefield trinity wildcats u21" AND venue = "belle vue" |
Below is an context that describes a sql 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 (class VARCHAR, wins VARCHAR, year VARCHAR)
### Question:
In 1992, what class has higher wins than 0?
### Answer:
SELECT class FROM table_name_58 WHERE wins > 0 AND year = 1992 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24431264_16 (player VARCHAR, points VARCHAR)
### Question:
What player had 1420 points coming in?
### Answer:
SELECT player FROM table_24431264_16 WHERE points = 1420 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1342198_25 (party VARCHAR, incumbent VARCHAR)
### Question:
What party was Dewey Short associated with?
### Answer:
SELECT party FROM table_1342198_25 WHERE incumbent = "Dewey Short" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (year VARCHAR, supplier VARCHAR)
### Question:
What is the Year for Supplier Kooga?
### Answer:
SELECT year FROM table_name_97 WHERE supplier = "kooga" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_75 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, singer VARCHAR)
### Question:
Which song has a ending theme, and is sung by miriam yeung?
### Answer:
SELECT name_of_the_song FROM table_name_75 WHERE kind_of_the_song = "ending theme" AND singer = "miriam yeung" |
Below is an context that describes a sql 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 (displacement_ VARCHAR, _configuration VARCHAR, max_speed VARCHAR, car_model VARCHAR)
### Question:
What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?
### Answer:
SELECT displacement_ & _configuration FROM table_name_36 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1137704_2 (date VARCHAR, grand_prix VARCHAR)
### Question:
what of the total number of date where grand prix is portuguese grand prix
### Answer:
SELECT COUNT(date) FROM table_1137704_2 WHERE grand_prix = "Portuguese grand_prix" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
### Question:
What club has more than 35 goals, more than 7 draws, and 20 losses?
### Answer:
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 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 WINE (Grape VARCHAR, Appelation VARCHAR, Name VARCHAR, Score INTEGER)
### Question:
List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.
### Answer:
SELECT Grape, Appelation, Name FROM WINE WHERE Score > 93 ORDER BY 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_14 (decision VARCHAR, visitor VARCHAR)
### Question:
Name the decision for boston bruins visitor
### Answer:
SELECT decision FROM table_name_14 WHERE visitor = "boston bruins" |
Below is an context that describes a sql 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 (result VARCHAR, competition VARCHAR, venue VARCHAR)
### Question:
What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?
### Answer:
SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2731431_1 (parent VARCHAR, peak VARCHAR)
### Question:
What is the parent for peak cima tosa?
### Answer:
SELECT parent FROM table_2731431_1 WHERE peak = "Cima Tosa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_242813_2 (season INTEGER, pitcher VARCHAR)
### Question:
Name the most season for old hoss radbourn
### Answer:
SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn" |
Below is an context that describes a sql 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 (d__max_ INTEGER, morse_taper_number INTEGER)
### Question:
What is the minimum D (max) when the Morse Taper number is less than 0?
### Answer:
SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 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_69 (city VARCHAR, built VARCHAR, spire__m_ VARCHAR, roof___m__ VARCHAR)
### Question:
What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?
### Answer:
SELECT city FROM table_name_69 WHERE spire__m_ = "105" AND roof___m__ < 96 AND built = 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_99 (year VARCHAR, comp VARCHAR)
### Question:
What year was the comp 33?
### Answer:
SELECT year FROM table_name_99 WHERE comp = "33" |
Below is an context that describes a sql 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 (median_family_income VARCHAR, median_household_income VARCHAR)
### Question:
What is the Median family income when the Median household income is $38,137?
### Answer:
SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR)
### Question:
How many medals for spain with 1 silver?
### Answer:
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR)
### Question:
what is the team with the best of 1:43.134?
### Answer:
SELECT team FROM table_name_75 WHERE best = "1:43.134" |
Below is an context that describes a sql 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 (type VARCHAR, model VARCHAR, brand VARCHAR, modem VARCHAR, storage VARCHAR)
### Question:
What is the type of the RCA RW-2110, which has 2 MB of storage and a v.90 modem?
### Answer:
SELECT type FROM table_name_88 WHERE modem = "v.90" AND storage = "2 mb" AND brand = "rca" AND model = "rw-2110" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (seasons INTEGER, name VARCHAR)
### Question:
What is the number of seasons coached by Kathy Graham?
### Answer:
SELECT MIN(seasons) FROM table_name_2 WHERE name = "kathy graham" |
Below is an context that describes a 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, date_of_vacancy VARCHAR)
### Question:
What is the date of appointment when the date of vacancy is 21 december 2007?
### Answer:
SELECT date_of_appointment FROM table_10592536_8 WHERE date_of_vacancy = "21 December 2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (home_team VARCHAR, away_team VARCHAR)
### Question:
Who is the home team when hawthorn is the away side?
### Answer:
SELECT home_team FROM table_name_66 WHERE away_team = "hawthorn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (gamecenter VARCHAR, attendance VARCHAR)
### Question:
Name the gamecenter with attendance of 78,551
### Answer:
SELECT gamecenter FROM table_name_48 WHERE attendance = "78,551" |
Below is an context that describes a sql 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 (commissioned VARCHAR, project VARCHAR, status VARCHAR)
### Question:
What is the commissioned with a 636.3 project, and ordered status?
### Answer:
SELECT commissioned FROM table_name_24 WHERE project = "636.3" AND status = "ordered" |
Below is an context that describes a sql 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 (vs_terran VARCHAR, vs_zerg VARCHAR)
### Question:
What is the score vs. Terran when the score vs. Zerg is 69?
### Answer:
SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1315616_1 (date VARCHAR, mediator VARCHAR, red_team_host VARCHAR)
### Question:
On what date was Keiichi Ubukata the mediator and Mitsuko Mori the red team host?
### Answer:
SELECT date FROM table_1315616_1 WHERE mediator = "Keiichi Ubukata" AND red_team_host = "Mitsuko Mori" |
Below is an context that describes a sql 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 (place VARCHAR, player VARCHAR)
### Question:
What place did Lee Westwood finish in?
### Answer:
SELECT place FROM table_name_74 WHERE player = "lee westwood" |
Below is an context that describes a sql 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 (title VARCHAR, magazine_type VARCHAR, frequency VARCHAR)
### Question:
What is the name of the video game magazine that was issued bimonthly?
### Answer:
SELECT title FROM table_name_36 WHERE magazine_type = "video game" AND frequency = "bimonthly" |
Below is an context that describes a sql 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 (rank_points VARCHAR, total VARCHAR, shooter VARCHAR)
### Question:
What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?
### Answer:
SELECT rank_points FROM table_name_12 WHERE total = "17" AND shooter = "lalita yauhleuskaya ( aus )" |
Below is an context that describes a sql 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 (team_1 VARCHAR, team_2 VARCHAR)
### Question:
What is Team 1 where Team 2 is al tahrir?
### Answer:
SELECT team_1 FROM table_name_13 WHERE team_2 = "al tahrir" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2026548_1 (explanation VARCHAR, vice_president VARCHAR)
### Question:
Name the explanation for alben w. barkley
### Answer:
SELECT explanation FROM table_2026548_1 WHERE vice_president = "Alben W. Barkley" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17340355_7 (date VARCHAR, team VARCHAR)
### Question:
What day(s) did the team play indiana?
### Answer:
SELECT date FROM table_17340355_7 WHERE team = "Indiana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR)
### Question:
How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?
### Answer:
SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%" |
Below is an context that describes a sql 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 (europe VARCHAR, title VARCHAR)
### Question:
Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman
### Answer:
SELECT europe FROM table_name_79 WHERE title = "z.h.p. unlosing ranger vs darkdeath evilman" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (played VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
### Question:
Name the played with losing bonus of 2 and points for of 706
### Answer:
SELECT played FROM table_name_99 WHERE losing_bonus = "2" AND points_for = "706" |
Below is an context that describes a sql 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 (date VARCHAR, away VARCHAR)
### Question:
What was victoria's away date?
### Answer:
SELECT date FROM table_name_18 WHERE away = "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_43 (qual_1 VARCHAR, best VARCHAR)
### Question:
Who had a qual 1 best of 1:01.704?
### Answer:
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.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_name_32 (make VARCHAR, driver VARCHAR)
### Question:
What make of car did Brian Vickers drive?
### Answer:
SELECT make FROM table_name_32 WHERE driver = "brian vickers" |
Below is an context that describes a sql 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 (set_4 VARCHAR, set_1 VARCHAR, set_2 VARCHAR)
### Question:
What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25?
### Answer:
SELECT set_4 FROM table_name_33 WHERE set_1 = "19-25" AND set_2 = "23-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 Video_games (Id VARCHAR)
### Question:
How many video games exist?
### Answer:
SELECT COUNT(*) FROM Video_games |
Below is an context that describes a sql 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 (draw INTEGER, place VARCHAR, points VARCHAR)
### Question:
what is the average draw when the place is 5 and points more than 15?
### Answer:
SELECT AVG(draw) FROM table_name_62 WHERE place = 5 AND points > 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_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR)
### Question:
Which Player has a To par of –2, and a Country of wales?
### Answer:
SELECT player FROM table_name_7 WHERE to_par = "–2" AND country = "wales" |
Below is an context that describes a sql 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 (frequency_mhz VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
### Question:
Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap?
### Answer:
SELECT frequency_mhz FROM table_name_92 WHERE erp_w > 4 AND call_sign = "w218ap" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27723228_7 (high_assists VARCHAR, score VARCHAR)
### Question:
Name the high assists for w 107–99 (ot)
### Answer:
SELECT high_assists FROM table_27723228_7 WHERE score = "W 107–99 (OT)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16034882_4 (points VARCHAR, club VARCHAR)
### Question:
How many points did piritas klaipėda get?
### Answer:
SELECT points FROM table_16034882_4 WHERE club = "Piritas Klaipėda" |
Below is an context that describes a sql 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 (role VARCHAR, notes VARCHAR, title VARCHAR)
### Question:
What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?
### Answer:
SELECT role FROM table_name_26 WHERE notes = "antagonist" AND title = "salud, dinero y amor" |
Below is an context that describes a 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, original_title VARCHAR)
### Question:
How many languages have le roman de renart as the original title?
### Answer:
SELECT COUNT(languages) FROM table_22073745_1 WHERE original_title = "Le Roman de Renart" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12275551_1 (mens_singles VARCHAR, womens_singles VARCHAR)
### Question:
Who won the mens singles when sayaka sato won the womens singles?
### Answer:
SELECT mens_singles FROM table_12275551_1 WHERE womens_singles = "Sayaka Sato" |
Below is an context that describes a sql 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, country VARCHAR)
### Question:
What player is from Fiji?
### Answer:
SELECT player FROM table_name_67 WHERE country = "fiji" |
Below is an context that describes a sql 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 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR)
### Question:
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
### Answer:
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Accounts (statement_id VARCHAR, account_details VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
### Question:
Show statement id, statement detail, account detail for accounts.
### Answer:
SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_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_96 (league INTEGER, player VARCHAR, total VARCHAR)
### Question:
How many league cups for m patrick maria with 0 total?
### Answer:
SELECT SUM(league) FROM table_name_96 WHERE player = "m patrick maria" AND total < 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_88 (year VARCHAR, entrant VARCHAR)
### Question:
Which year is that has a Entrant of belond equa-flow / calif. muffler?
### Answer:
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler" |
Below is an context that describes a sql 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 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR)
### Question:
What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?
### Answer:
SELECT MIN(land___sqmi__) FROM table_name_27 WHERE longitude = -99.172785 AND water__sqmi_ < 0.973 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27902171_6 (high_points VARCHAR, team VARCHAR)
### Question:
Who had highest points during game against the Utah Jazz?
### Answer:
SELECT high_points FROM table_27902171_6 WHERE team = "Utah Jazz" |
Below is an context that describes a sql 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 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)
### Question:
Count the Draw which has Lost of 0, and a Goals Scored larger than 0?
### Answer:
SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goals_scored > 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_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR)
### Question:
What is the top speed of the SLK200K that produces 122kw (163hp)?
### Answer:
SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)
### Question:
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
### Answer:
SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
### Question:
What team was home, when the record was 24–16–6?
### Answer:
SELECT home FROM table_name_77 WHERE record = "24–16–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_27 (rebounds VARCHAR, name VARCHAR)
### Question:
Can you tell me the Rebounds that has the Name of pom baskets jena?
### Answer:
SELECT rebounds FROM table_name_27 WHERE name = "pom baskets jena" |
Below is an context that describes a sql 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 (number_of_broadband_subscribers VARCHAR, population VARCHAR)
### Question:
How many broadband subscribers are there where the population is ~3,644,070?
### Answer:
SELECT number_of_broadband_subscribers FROM table_name_24 WHERE population = "~3,644,070" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_29 (Id VARCHAR)
### Question:
What in 2013 has a 2009 of 3r?
### Answer:
SELECT 2013 FROM table_name_29 WHERE 2009 = "3r" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR)
### Question:
Name the number of gregorian calenda rof gemini
### Answer:
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini" |
Below is an context that describes a sql 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 (format VARCHAR, country VARCHAR, date VARCHAR)
### Question:
what is the format for the country united kingdom on 20 october 2008?
### Answer:
SELECT format FROM table_name_28 WHERE country = "united kingdom" AND date = "20 october 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_24162080_3 (date_of_appointment VARCHAR, team VARCHAR)
### Question:
When 1. fc köln is the team what is the date of appointment?
### Answer:
SELECT date_of_appointment FROM table_24162080_3 WHERE team = "1. FC Köln" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR)
### Question:
what is the title of the episode with the director pamela fryman and the production code 2alh07?
### Answer:
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07" |
Below is an context that describes a sql 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 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
### Question:
What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?
### Answer:
SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND 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_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR)
### Question:
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is "Flying Dutchman"?
### Answer:
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23575917_4 (davids_team VARCHAR, lees_team VARCHAR)
### Question:
Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz
### Answer:
SELECT davids_team FROM table_23575917_4 WHERE lees_team = "Jack Dee and Peter Serafinowicz" |
Below is an context that describes a sql 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 (record VARCHAR, date VARCHAR)
### Question:
What is the Record for April 13?
### Answer:
SELECT record FROM table_name_14 WHERE date = "april 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_24 (loss VARCHAR, record VARCHAR)
### Question:
What's the Loss for the game that had a 22-24 record?
### Answer:
SELECT loss FROM table_name_24 WHERE record = "22-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_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR)
### Question:
Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?
### Answer:
SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "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_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR)
### Question:
How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2?
### Answer:
SELECT COUNT(malaysia_cup) FROM table_name_8 WHERE total > 3 AND player = "ivan yusoff" AND league < 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_42 (tournament VARCHAR)
### Question:
Which tournament had a 2010 finish of 4R?
### Answer:
SELECT tournament FROM table_name_42 WHERE 2010 = "4r" |
Below is an context that describes a sql 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 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR)
### Question:
When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669?
### Answer:
SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669" |
Below is an context that describes a sql 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 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
### Question:
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
### Answer:
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 2 AND rank < 4 AND silver < 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (rank INTEGER, time VARCHAR)
### Question:
What is the top rank with a time of 2:19.86?
### Answer:
SELECT MAX(rank) FROM table_name_25 WHERE time = "2:19.86" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)
### Question:
What is the name of the museum that had no visitor yet?
### Answer:
SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit) |
Below is an context that describes a sql 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 (attendance VARCHAR, home_team VARCHAR)
### Question:
On what day was there a Home game for Gillingham?
### Answer:
SELECT attendance FROM table_name_4 WHERE home_team = "gillingham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341640_11 (party VARCHAR, candidates VARCHAR)
### Question:
What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%?
### Answer:
SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.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_16 (date VARCHAR, away_team VARCHAR)
### Question:
WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON?
### Answer:
SELECT date FROM table_name_16 WHERE away_team = "workington" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13940275_5 (points VARCHAR, played VARCHAR, points_against VARCHAR)
### Question:
what's the points with played being 22 and points against being 319
### Answer:
SELECT points FROM table_13940275_5 WHERE played = "22" AND points_against = "319" |
Below is an context that describes a sql 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 (winning_driver VARCHAR, winning_constructor VARCHAR, date VARCHAR)
### Question:
Name the Winning driver of mercedes on 22 august?
### Answer:
SELECT winning_driver FROM table_name_91 WHERE winning_constructor = "mercedes" AND date = "22 august" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.