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_11406866_2 (opponent VARCHAR, date VARCHAR)
### Question:
what is the total number of opponent where date is november 23, 1980
### Answer:
SELECT COUNT(opponent) FROM table_11406866_2 WHERE date = "November 23, 1980" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26223231_1 (poles VARCHAR, wins VARCHAR)
### Question:
When there are 2 wins, how many poles are?
### Answer:
SELECT poles FROM table_26223231_1 WHERE wins = 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_78 (site_stadium VARCHAR, score VARCHAR)
### Question:
Which site/stadium was the score 1-2?
### Answer:
SELECT site_stadium FROM table_name_78 WHERE score = "1-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_34 (conductor VARCHAR, production VARCHAR)
### Question:
Who was the Conductor of the Three Pintos (Die Drei Pintos) Production?
### Answer:
SELECT conductor FROM table_name_34 WHERE production = "the three pintos (die drei pintos)" |
Below is an context that describes a sql 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 (wounded VARCHAR, complement VARCHAR)
### Question:
How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
### Answer:
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men" |
Below is an context that describes a sql 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 (tms VARCHAR, season VARCHAR)
### Question:
which Tms has a Season of 2013?
### Answer:
SELECT tms FROM table_name_59 WHERE season = "2013" |
Below is an context that describes a sql 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 (surface VARCHAR, score VARCHAR)
### Question:
What is the Surface of the match with a Score of 2–6, 6–4, 7–6?
### Answer:
SELECT surface FROM table_name_30 WHERE score = "2–6, 6–4, 7–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_36 (start VARCHAR, laps VARCHAR, rank VARCHAR)
### Question:
What is the start number for a rank 11 race with less than 200 laps?
### Answer:
SELECT start FROM table_name_36 WHERE laps < 200 AND rank = "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_25548505_1 (production_code VARCHAR, directed_by VARCHAR)
### Question:
What is the production code of the episode directed by Michael McDonald?
### Answer:
SELECT production_code FROM table_25548505_1 WHERE directed_by = "Michael McDonald" |
Below is an context that describes a sql 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 (venue VARCHAR, extra VARCHAR, result VARCHAR)
### Question:
Which venue had an extra of Team Competition and a result of 1st?
### Answer:
SELECT venue FROM table_name_48 WHERE extra = "team competition" AND result = "1st" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
### Question:
What is the Outcome when christophe rochus was partner, on 31 july 2005?
### Answer:
SELECT outcome FROM table_name_38 WHERE partner = "christophe rochus" AND date = "31 july 2005" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (Id VARCHAR)
### Question:
what is 2003 when 2005 is did not qualify?
### Answer:
SELECT 2003 FROM table_name_37 WHERE 2005 = "did not qualify" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_171236_2 (population VARCHAR, official_name VARCHAR)
### Question:
What is the population in Westfield?
### Answer:
SELECT COUNT(population) FROM table_171236_2 WHERE official_name = "Westfield" |
Below is an context that describes a sql 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 (player VARCHAR, cross_code_debut VARCHAR)
### Question:
What is the Player with a Cross Code Debut of RL Test GB v France?
### Answer:
SELECT player FROM table_name_25 WHERE cross_code_debut = "rl test gb v france" |
Below is an context that describes a sql 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 (rally_name VARCHAR, surface VARCHAR)
### Question:
Which Rally Name has a Surface of asphalt and gravel?
### Answer:
SELECT rally_name FROM table_name_17 WHERE surface = "asphalt and gravel" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)
### Question:
Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?
### Answer:
SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 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 ship (Name VARCHAR, Nationality VARCHAR)
### Question:
Show the name of ships whose nationality is either United States or United Kingdom.
### Answer:
SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom" |
Below is an context that describes 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 (employee_name VARCHAR, role_code VARCHAR)
### Question:
Show the names of all the employees with role "HR".
### Answer:
SELECT employee_name FROM Employees WHERE role_code = "HR" |
Below is an context that describes a sql 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 (venue VARCHAR, score VARCHAR)
### Question:
what venue saw a score of 285?
### Answer:
SELECT venue FROM table_name_17 WHERE score = "285" |
Below is an context that describes a sql 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 (points INTEGER, poles INTEGER)
### Question:
What is the points sum of the series with less than 0 poles?
### Answer:
SELECT SUM(points) FROM table_name_28 WHERE poles < 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_58 (high_rebounds VARCHAR, location_attendance VARCHAR)
### Question:
What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?
### Answer:
SELECT high_rebounds FROM table_name_58 WHERE location_attendance = "conseco fieldhouse 11,964" |
Below is an context that describes a sql 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 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
### Question:
What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?
### Answer:
SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" AND gold < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (venue VARCHAR, away_team VARCHAR)
### Question:
What was the Venue of the North Melbourne Away Team?
### Answer:
SELECT venue FROM table_name_33 WHERE away_team = "north melbourne" |
Below is an context that describes a sql 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 (home_team VARCHAR, away_team VARCHAR)
### Question:
What is the home team score when the away team is Collingwood?
### Answer:
SELECT home_team AS score FROM table_name_96 WHERE away_team = "collingwood" |
Below is an context that describes a sql 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 (result VARCHAR, year VARCHAR, tournament VARCHAR)
### Question:
What is the result of the World Race Walking Cup tournament played before the year 2010?
### Answer:
SELECT result FROM table_name_20 WHERE year > 2010 AND tournament = "world race walking cup" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (frequency__inbound_outbound_ VARCHAR, train_name VARCHAR)
### Question:
What is the frequency of the train named Garib nwaz exp?
### Answer:
SELECT frequency__inbound_outbound_ FROM table_name_10 WHERE train_name = "garib nwaz exp" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR, date VARCHAR)
### Question:
What was the format in September 1990 for Catalog 887 847-1?
### Answer:
SELECT format FROM table_name_84 WHERE catalog = "887 847-1" AND date = "september 1990" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14242137_4 (season VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
### Question:
Name the season for spvgg bayreuth and fsv salmrohr
### Answer:
SELECT season FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Bayreuth" AND oberliga_südwest = "FSV Salmrohr" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE train (TIME VARCHAR, train_number VARCHAR, destination VARCHAR)
### Question:
Give me the times and numbers of all trains that go to Chennai, ordered by time.
### Answer:
SELECT TIME, train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12002388_1 (open_cup VARCHAR, reg_season VARCHAR)
### Question:
What was the result of the open cup when they finished 4th in the regular season?
### Answer:
SELECT open_cup FROM table_12002388_1 WHERE reg_season = "4th" |
Below is an context that describes a sql 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 (weight VARCHAR, name VARCHAR)
### Question:
What was the weight of Serhiy Alfyorov?
### Answer:
SELECT weight FROM table_name_50 WHERE name = "serhiy alfyorov" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17103566_1 (result VARCHAR, team_1 VARCHAR)
### Question:
What is the result when team 1 is ICL Pakistan?
### Answer:
SELECT result FROM table_17103566_1 WHERE team_1 = "ICL Pakistan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (race_2 VARCHAR, race_4 VARCHAR)
### Question:
What is Race 2, when Race 4 is 28?
### Answer:
SELECT race_2 FROM table_name_40 WHERE race_4 = "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_34 (name VARCHAR, years_played VARCHAR, date_and_opponent VARCHAR)
### Question:
Which Name has a Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue?
### Answer:
SELECT name FROM table_name_34 WHERE years_played = "2004–2008" AND date_and_opponent = "2/17/07 vs. purdue" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14346353_1 (title VARCHAR, series__number VARCHAR)
### Question:
What is the title of series #1?
### Answer:
SELECT title FROM table_14346353_1 WHERE series__number = 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 airports (country VARCHAR, elevation VARCHAR)
### Question:
Which country is the airport that has the highest altitude located in?
### Answer:
SELECT country FROM airports ORDER BY elevation 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 dorm (dormid VARCHAR, student_capacity INTEGER); CREATE TABLE has_amenity (dormid VARCHAR)
### Question:
Find the number of amenities for each of the dorms that can accommodate more than 100 students.
### Answer:
SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid |
Below is an context that describes a sql 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 (young_rider_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
### Question:
Name the young rider classification for giuseppe saronni at stage 6
### Answer:
SELECT young_rider_classification FROM table_name_16 WHERE general_classification = "giuseppe saronni" AND stage = "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_49 (res VARCHAR, record VARCHAR)
### Question:
Record of 47–5 (1) involved what res?
### Answer:
SELECT res FROM table_name_49 WHERE record = "47–5 (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_24 (location VARCHAR, opponent VARCHAR)
### Question:
Where was the location for Arras Paul Arras?
### Answer:
SELECT location FROM table_name_24 WHERE opponent = "arras paul arras" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE manager (Country VARCHAR)
### Question:
Show the distinct countries of managers.
### Answer:
SELECT DISTINCT Country FROM manager |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11207040_5 (lowest INTEGER, stadium VARCHAR)
### Question:
What is the lowest attendance that East End Park has ever had?
### Answer:
SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = "East End Park" |
Below is an context that describes a sql 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 (week INTEGER, attendance INTEGER)
### Question:
Tell me the lowest week for attedance less thaan 32,738
### Answer:
SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE browser (market_share INTEGER)
### Question:
What is the maximum, minimum and average market share of the listed browsers?
### Answer:
SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser |
Below is an context that describes a sql 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 (constructor VARCHAR, driver VARCHAR)
### Question:
Who constructed rolf stommelen's car?
### Answer:
SELECT constructor FROM table_name_83 WHERE driver = "rolf stommelen" |
Below is an context that describes a sql 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 (player VARCHAR, place VARCHAR)
### Question:
Which player is T3?
### Answer:
SELECT player FROM table_name_70 WHERE place = "t3" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (county VARCHAR, bush_number VARCHAR)
### Question:
Which county had a Bush number of votes of 566?
### Answer:
SELECT county FROM table_name_34 WHERE bush_number = 566 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR, date VARCHAR)
### Question:
What happened on November 20, 1983 before week 15?
### Answer:
SELECT result FROM table_name_51 WHERE week < 15 AND date = "november 20, 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_97 (years_competed VARCHAR, nickname VARCHAR)
### Question:
Tell me the years competed for panthers
### Answer:
SELECT years_competed FROM table_name_97 WHERE nickname = "panthers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (prohibition_ticket VARCHAR, socialist_labor_ticket VARCHAR)
### Question:
Which Prohibition ticket has a Socialist Labor ticket of joseph smith?
### Answer:
SELECT prohibition_ticket FROM table_name_34 WHERE socialist_labor_ticket = "joseph smith" |
Below is an context that describes a sql 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 (lost VARCHAR, played INTEGER)
### Question:
How many games lost associated with under 14 played?
### Answer:
SELECT COUNT(lost) FROM table_name_66 WHERE played < 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (time VARCHAR, lane VARCHAR)
### Question:
What was the time of the swimmer in lane 7?
### Answer:
SELECT time FROM table_name_77 WHERE lane = 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_71 (home_team VARCHAR, venue VARCHAR)
### Question:
What was the home teams score at Junction Oval?
### Answer:
SELECT home_team AS score FROM table_name_71 WHERE venue = "junction oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25220821_3 (rank INTEGER, tues_1_june VARCHAR)
### Question:
If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?
### Answer:
SELECT MAX(rank) FROM table_25220821_3 WHERE tues_1_june = "20' 59.60 107.834mph" |
Below is an context that describes a sql 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 (place VARCHAR, points VARCHAR)
### Question:
how many times was the points 18?
### Answer:
SELECT COUNT(place) FROM table_name_69 WHERE points = 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_41 (year INTEGER, competition VARCHAR)
### Question:
What year was the competition vitry-sur-seine humarathon?
### Answer:
SELECT AVG(year) FROM table_name_41 WHERE competition = "vitry-sur-seine humarathon" |
Below is an context that describes a sql 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 (game INTEGER, score VARCHAR)
### Question:
Which Game is the highest one that has a Score of 3–2?
### Answer:
SELECT MAX(game) FROM table_name_92 WHERE score = "3–2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_299121_2 (season VARCHAR)
### Question:
When was the 3rd season premiere originally aired?
### Answer:
SELECT season AS premiere FROM table_299121_2 WHERE season = "3rd" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What is the value in 1987 when it is A in 1999, 1989, and 1997?
### Answer:
SELECT 1987 FROM table_name_47 WHERE 1999 = "a" AND 1989 = "a" AND 1997 = "a" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14977252_2 (place VARCHAR, professional_jury VARCHAR)
### Question:
Name the place of the jury of 5
### Answer:
SELECT place FROM table_14977252_2 WHERE professional_jury = 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_16729063_2 (date VARCHAR, opponent VARCHAR)
### Question:
What date was the opponent the Los Angeles Raiders?
### Answer:
SELECT date FROM table_16729063_2 WHERE opponent = "Los Angeles Raiders" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR)
### Question:
When winner is the status and 77 is the total days in pbb house what is the edition?
### Answer:
SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "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_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR)
### Question:
When are start dates (1st night) for the season of 1966?
### Answer:
SELECT start_date__1st_night_ FROM table_159359_2 WHERE season = "1966" |
Below is an context that describes a sql 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 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
### Question:
On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?
### Answer:
SELECT outcome FROM table_name_74 WHERE partner = "dora djilianova" AND date = "october 1, 1995" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
### Question:
Which African countries have a smaller population than that of any country in Asia?
### Answer:
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MIN(population) FROM country WHERE Continent = "Asia") |
Below is an context that describes 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_Authors_and_Tutors (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR)
### Question:
Find the common personal name of course authors and students.
### Answer:
SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students |
Below is an context that describes a sql 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 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
### Question:
What is the highest grid when the race was retired due to the gearbox after 67 laps?
### Answer:
SELECT MAX(grid) FROM table_name_70 WHERE time_retired = "gearbox" AND laps > 67 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12715053_1 (molecular_target VARCHAR, compound_name VARCHAR)
### Question:
What is the molecular target listed under the compounded name of hemiasterlin (e7974)
### Answer:
SELECT molecular_target FROM table_12715053_1 WHERE compound_name = "Hemiasterlin (E7974)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### Question:
Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.
### Answer:
SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" |
Below is an context that describes a sql 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 (country VARCHAR, score VARCHAR)
### Question:
Can you tell me the Country that has the Score of 69-72-67-71=279?
### Answer:
SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279 |
Below is an context that describes a sql 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 (character VARCHAR, year VARCHAR, award_ceremony VARCHAR)
### Question:
Which character was nominated in the 2010 Indian Television Academy Awards?
### Answer:
SELECT character FROM table_name_1 WHERE year = 2010 AND award_ceremony = "indian television academy awards" |
Below is an context that describes a sql 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, game VARCHAR)
### Question:
What's the score of Game 2?
### Answer:
SELECT score FROM table_name_73 WHERE game = 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_15568886_14 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
### Question:
Name the proto oceanic for *fafine
### Answer:
SELECT proto_oceanic FROM table_15568886_14 WHERE proto_polynesian = "*fafine" |
Below is an context that describes a sql 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 VARCHAR, time VARCHAR)
### Question:
What team was the player that received a penalty at time 32:17 playing for?
### Answer:
SELECT team FROM table_name_13 WHERE time = "32:17" |
Below is an context that describes a sql 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 (mixed_doubles VARCHAR, year VARCHAR)
### Question:
Who won in mixed doubles in 2008?
### Answer:
SELECT mixed_doubles FROM table_name_53 WHERE year = "2008" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (location VARCHAR, event VARCHAR, method VARCHAR, round VARCHAR)
### Question:
Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?
### Answer:
SELECT location FROM table_name_57 WHERE method = "submission (rear naked choke)" AND round = 1 AND event = "ufc 127" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28697228_4 (player VARCHAR, passing_yards VARCHAR)
### Question:
How may players have a passing yard score of 208?
### Answer:
SELECT COUNT(player) FROM table_28697228_4 WHERE passing_yards = 208 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR)
### Question:
Find out 5 customers who most recently purchased something. List customers' first and last name.
### Answer:
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 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_26419467_1 (age VARCHAR, hometown VARCHAR)
### Question:
How many people were from portland, or?
### Answer:
SELECT COUNT(age) FROM table_26419467_1 WHERE hometown = "Portland, OR" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What tournament had an A in 2012 and Q2 in 2010?
### Answer:
SELECT tournament FROM table_name_4 WHERE 2012 = "a" AND 2010 = "q2" |
Below is an context that describes a sql 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 (opponent VARCHAR, time VARCHAR)
### Question:
Who was the opponent in the match that lasted 1:22?
### Answer:
SELECT opponent FROM table_name_25 WHERE time = "1:22" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
### Question:
What is the name when the reserved is (sc / st /none) of st, with a constituency number 196?
### Answer:
SELECT name FROM table_name_77 WHERE reserved_for___sc___st__none_ = "st" AND constituency_number = "196" |
Below is an context that describes a sql 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 (team_1 VARCHAR)
### Question:
WHAT IS THE FIRST LEG OF TUILLA?
### Answer:
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "tuilla" |
Below is an context that describes a sql 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 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
### Question:
What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?
### Answer:
SELECT score FROM table_name_2 WHERE money___$__ = "32,200" AND player = "chip beck" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (position VARCHAR, cfl_team VARCHAR)
### Question:
What position do the bc lions pick?
### Answer:
SELECT position FROM table_name_22 WHERE cfl_team = "bc lions" |
Below is an context that describes a sql 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 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR)
### Question:
What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?
### Answer:
SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 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_71 (first_elected INTEGER, incumbent VARCHAR)
### Question:
Incumbent John Sullivan has what as biggest first elected?
### Answer:
SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE schedule (film_id VARCHAR, show_times_per_day INTEGER); CREATE TABLE film (directed_by VARCHAR, film_id VARCHAR)
### Question:
Show director with the largest number of show times in total.
### Answer:
SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY SUM(T1.show_times_per_day) 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 tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
### Question:
List title of albums have the number of tracks greater than 10.
### Answer:
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19312274_2 (total VARCHAR, last_current_driver_s_ VARCHAR)
### Question:
how many total where last/current driver(s) is narain karthikeyan ( 2010 )
### Answer:
SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 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_50 (director VARCHAR, year VARCHAR)
### Question:
Name the director for 1957
### Answer:
SELECT director FROM table_name_50 WHERE year = 1957 |
Below is an context that describes a sql 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 (nationality VARCHAR, jersey_number_s_ VARCHAR)
### Question:
What is the Nationality of the Player with Jersey Number 6?
### Answer:
SELECT nationality FROM table_name_13 WHERE jersey_number_s_ = 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_76 (method VARCHAR, res VARCHAR, time VARCHAR)
### Question:
What is the method where there is a loss with time 5:00?
### Answer:
SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13981938_1 (wine_style VARCHAR, grand_cru VARCHAR)
### Question:
what's the wine style with grand cru being romanée-conti
### Answer:
SELECT wine_style FROM table_13981938_1 WHERE grand_cru = "Romanée-Conti" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
### Question:
Find the first names of professors who are not playing Canoeing or Kayaking.
### Answer:
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)
### Question:
What was the away team when the result was 2–1 and home team was the bohemians?
### Answer:
SELECT away_team FROM table_24949975_1 WHERE result = "2–1" AND home_team = "Bohemians" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25008327_8 (russian VARCHAR, bulgarian VARCHAR)
### Question:
What is every value for Russian when value for Bulgarian is пес, куче?
### Answer:
SELECT russian FROM table_25008327_8 WHERE bulgarian = "пес, куче" |
Below is an context that describes a sql 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 (iata VARCHAR, airport VARCHAR)
### Question:
What is the IATA code for SHahjalal International Airport?
### Answer:
SELECT iata FROM table_name_7 WHERE airport = "shahjalal international airport" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE tracks (composer VARCHAR, name VARCHAR)
### Question:
Who is the composer of track Fast As a Shark?
### Answer:
SELECT composer FROM tracks WHERE name = "Fast As a Shark" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16570286_4 (player VARCHAR, best_bowling VARCHAR)
### Question:
How many players Bowled 4/125?
### Answer:
SELECT COUNT(player) FROM table_16570286_4 WHERE best_bowling = "4/125" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.