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 campuses (id VARCHAR); CREATE TABLE faculty (campus VARCHAR, faculty VARCHAR)
### Question:
List the campus that have between 600 and 1000 faculty lines in year 2004.
### Answer:
SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (country VARCHAR, abbreviation VARCHAR)
### Question:
Which country has an abbreviation of kia?
### Answer:
SELECT country FROM table_name_61 WHERE abbreviation = "kia"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1353096_1 (channel_tv___dt__ VARCHAR, station VARCHAR)
### Question:
What channel has station kdfw ++?
### Answer:
SELECT channel_tv___dt__ FROM table_1353096_1 WHERE station = "KDFW ++"
|
Below is an context that describes a sql 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 (type VARCHAR, opened_in VARCHAR, ride_name VARCHAR)
### Question:
Which ride opened after the 2000 Peeking Heights?
### Answer:
SELECT type FROM table_name_32 WHERE opened_in > 2000 AND ride_name = "peeking heights"
|
Below is an context that describes a sql 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 (lost VARCHAR, played INTEGER)
### Question:
What is the total number of Lost, when Played is less than 34?
### Answer:
SELECT COUNT(lost) FROM table_name_91 WHERE played < 34
|
Below is an context that describes a sql 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 (street_address VARCHAR, name VARCHAR)
### Question:
What is the street address of Notre Dame Basilica?
### Answer:
SELECT street_address FROM table_name_74 WHERE name = "notre dame basilica"
|
Below is an context that describes a sql 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 (moving_from VARCHAR, transfer_window VARCHAR, country VARCHAR)
### Question:
Who is moving during winter from wal?
### Answer:
SELECT moving_from FROM table_name_28 WHERE transfer_window = "winter" AND country = "wal"
|
Below is an context that describes a sql 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 (party VARCHAR, name VARCHAR)
### Question:
What is the political party of Jackie Goldberg?
### Answer:
SELECT party FROM table_name_85 WHERE name = "jackie goldberg"
|
Below is an context that describes a sql 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 (score VARCHAR, player VARCHAR)
### Question:
what was the score of bert yancey
### Answer:
SELECT score FROM table_name_83 WHERE player = "bert yancey"
|
Below is an context that describes a sql 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 (winner VARCHAR, race_title VARCHAR)
### Question:
What was the name of the driver that won the Lakeside race?
### Answer:
SELECT winner FROM table_name_44 WHERE race_title = "lakeside"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE albums (title VARCHAR)
### Question:
List every album's title.
### Answer:
SELECT title FROM albums
|
Below is an context that describes a sql 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 (name VARCHAR, death VARCHAR)
### Question:
what is the name when death is november 10, 1842?
### Answer:
SELECT name FROM table_name_80 WHERE death = "november 10, 1842"
|
Below is an context that describes a sql 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 (winner VARCHAR, year INTEGER)
### Question:
Who was the winner after 2011?
### Answer:
SELECT winner FROM table_name_81 WHERE year > 2011
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11240028_3 (portrayed_by VARCHAR, character VARCHAR)
### Question:
Which characters were portrayed by reed garrett?
### Answer:
SELECT portrayed_by FROM table_11240028_3 WHERE character = "Reed Garrett"
|
Below is an context that describes a sql 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 (to_par VARCHAR, year VARCHAR)
### Question:
Which To par has a Year of 1994?
### Answer:
SELECT to_par FROM table_name_24 WHERE year = 1994
|
Below is an context that describes a sql 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 (bronze INTEGER, total INTEGER)
### Question:
How many bronzes were won by the country with a total higher than 5?
### Answer:
SELECT SUM(bronze) FROM table_name_25 WHERE total > 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_34 (state VARCHAR, reason_for_termination VARCHAR, active_service VARCHAR)
### Question:
Which state has a Reason for termination of retirement, and an Active service of 1926–1928?
### Answer:
SELECT state FROM table_name_34 WHERE reason_for_termination = "retirement" AND active_service = "1926–1928"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17718005_2 (goals_for VARCHAR, goal_difference VARCHAR)
### Question:
When +10 is the goal difference what is the goals for?
### Answer:
SELECT goals_for FROM table_17718005_2 WHERE goal_difference = "+10"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (finalist VARCHAR, surface VARCHAR, tournament VARCHAR)
### Question:
Who was the finalist of the hard surface tournament in Miami?
### Answer:
SELECT finalist FROM table_name_66 WHERE surface = "hard" AND tournament = "miami"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23670057_5 (player VARCHAR, year_born VARCHAR, position VARCHAR)
### Question:
Which players were born in 1983 and play as forward position?
### Answer:
SELECT player FROM table_23670057_5 WHERE year_born = 1983 AND position = "Forward"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21191496_1 (date VARCHAR, pole_position VARCHAR)
### Question:
When michele pirro is the pole position what is the date?
### Answer:
SELECT date FROM table_21191496_1 WHERE pole_position = "Michele Pirro"
|
Below is an context that describes a sql 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 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
### Question:
Name the total number of total for bronze of 4 and silver more than 6
### Answer:
SELECT COUNT(total) FROM table_name_59 WHERE bronze = 4 AND silver > 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_8 (location VARCHAR, date VARCHAR)
### Question:
Where was the game played on January 23, 2008?
### Answer:
SELECT location FROM table_name_8 WHERE date = "january 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_name_45 (partner VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)
### Question:
Which Partner with the surface of Clay ended up as a runner-up with a score of 1–6, 6–4, [10–12]?
### Answer:
SELECT partner FROM table_name_45 WHERE surface = "clay" AND outcome = "runner-up" AND score = "1–6, 6–4, [10–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_29 (winner VARCHAR, event VARCHAR, country VARCHAR)
### Question:
Who was the Winner of the French Polynesia Billabong Pro Event?
### Answer:
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR)
### Question:
Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?
### Answer:
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)"
|
Below is an context that describes a sql 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 (result VARCHAR, road_team VARCHAR, date VARCHAR)
### Question:
WHAT IS THE RESULT WITH THE BOSTON ROAD TEAM, ON APRIL 23?
### Answer:
SELECT result FROM table_name_68 WHERE road_team = "boston" AND date = "april 23"
|
Below is an context that describes a sql 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 (floors INTEGER, city VARCHAR, rank VARCHAR)
### Question:
What is the average number of floors for buildings in mecca ranked above 12?
### Answer:
SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 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_70 (event VARCHAR, games VARCHAR)
### Question:
Tell me the event for 2012 london games
### Answer:
SELECT event FROM table_name_70 WHERE games = "2012 london"
|
Below is an context that describes a sql 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 (urban_sub_area VARCHAR, council_area VARCHAR, population VARCHAR)
### Question:
What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?
### Answer:
SELECT urban_sub_area FROM table_name_70 WHERE council_area = "east dunbartonshire" AND population = "19,020"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR)
### Question:
The film titled Bosko's fox hunt had what as the smallest production number?
### Answer:
SELECT MIN(production_num) FROM table_name_56 WHERE title = "bosko's fox hunt"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27622417_1 (prod_code VARCHAR, no_in_series VARCHAR)
### Question:
which is the production code when the number of the episode in series is 87?
### Answer:
SELECT prod_code FROM table_27622417_1 WHERE no_in_series = 87
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Title VARCHAR, Singer_ID VARCHAR)
### Question:
Show titles of songs and names of singers.
### Answer:
SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_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_82 (attendance VARCHAR, date VARCHAR)
### Question:
What was the attendance of the game on December 11, 2005?
### Answer:
SELECT attendance FROM table_name_82 WHERE date = "december 11, 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_52 (home_team VARCHAR)
### Question:
What was the North Melbourne's score when they played as the home team?
### Answer:
SELECT home_team AS score FROM table_name_52 WHERE home_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_87 (title VARCHAR, release_date VARCHAR)
### Question:
What is the title released on 24 July 2005?
### Answer:
SELECT title FROM table_name_87 WHERE release_date = "24 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_9 (to_par VARCHAR, player VARCHAR, total VARCHAR)
### Question:
What is total number of the to par of player john mahaffey, who has a total less than 298?
### Answer:
SELECT COUNT(to_par) FROM table_name_9 WHERE player = "john mahaffey" AND total < 298
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29296103_10 (tournament VARCHAR, champion VARCHAR)
### Question:
which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?
### Answer:
SELECT tournament FROM table_29296103_10 WHERE champion = "Nick Saviano Florin Segărceanu 6–3, 6–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 (year VARCHAR, project VARCHAR)
### Question:
What year was Bulworth nominated?
### Answer:
SELECT year FROM table_name_92 WHERE project = "bulworth"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, rating VARCHAR)
### Question:
How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)
### Answer:
SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 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_75 (opponent VARCHAR, round VARCHAR)
### Question:
Round of first had what opponent?
### Answer:
SELECT opponent FROM table_name_75 WHERE round = "first"
|
Below is an context that describes a sql 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 (mission VARCHAR, apogee VARCHAR)
### Question:
Which Mission has a Apogee of 705 km?
### Answer:
SELECT mission FROM table_name_3 WHERE apogee = "705 km"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
### Question:
What was the score on April 23?
### Answer:
SELECT score FROM table_name_5 WHERE date = "april 23"
|
Below is an context that describes a sql 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 (team_2 VARCHAR, team_1 VARCHAR)
### Question:
What is the team 2 for the match with a team 1 of Panathinaikos?
### Answer:
SELECT team_2 FROM table_name_34 WHERE team_1 = "panathinaikos"
|
Below is an context that describes a sql 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 (fylde INTEGER, burnley INTEGER)
### Question:
What is the average rating for a Flyde that has a Burnley less than 0?
### Answer:
SELECT AVG(fylde) FROM table_name_57 WHERE burnley < 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_50 (race_name VARCHAR, circuit VARCHAR)
### Question:
What is the name of the race that has the pergusa Circuit?
### Answer:
SELECT race_name FROM table_name_50 WHERE circuit = "pergusa"
|
Below is an context that describes a sql 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 (rank VARCHAR, bronze VARCHAR)
### Question:
What rank is the nation that has a bronze of source: Maltese Olympic Committee?
### Answer:
SELECT rank FROM table_name_29 WHERE bronze = "source: maltese olympic committee"
|
Below is an context that describes a sql 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_score VARCHAR, location VARCHAR, year VARCHAR, to_par_ VARCHAR, a_ VARCHAR)
### Question:
What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1?
### Answer:
SELECT total_score FROM table_name_68 WHERE location = "san francisco, california" AND year > 1987 AND to_par_[a_] = "+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_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR)
### Question:
How many percentages (2006) are there for the population whose mother tongue is French?
### Answer:
SELECT COUNT(percentage__2006_) FROM table_2328113_1 WHERE mother_tongue = "French"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341930_10 (district VARCHAR, incumbent VARCHAR)
### Question:
Which district is James A. Haley from?
### Answer:
SELECT district FROM table_1341930_10 WHERE incumbent = "James A. Haley"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26914076_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### Question:
Name the us viewers directed by christine moore
### Answer:
SELECT us_viewers__millions_ FROM table_26914076_2 WHERE directed_by = "Christine Moore"
|
Below is an context that describes a sql 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 (score VARCHAR, competition VARCHAR, date VARCHAR)
### Question:
On 15/04/07 in the competition Super League XII, what was the score?
### Answer:
SELECT score FROM table_name_94 WHERE competition = "super league xii" AND date = "15/04/07"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28003469_1 (approx_duration VARCHAR, event_details VARCHAR)
### Question:
What is every value for approximate duration when event details is women's foil?
### Answer:
SELECT approx_duration FROM table_28003469_1 WHERE event_details = "Women's Foil"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19485888_1 (title__french_____english_ VARCHAR, b_b_ VARCHAR, _corresponds_to_tf1s_broadcast_schedule VARCHAR)
### Question:
what is the title of the episode where b b is 20/16
### Answer:
SELECT title__french_____english_ FROM table_19485888_1 WHERE b_b_ = _corresponds_to_tf1s_broadcast_schedule = 20 / 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_25773116_2 (location VARCHAR, round VARCHAR)
### Question:
Where was the round 1 race?
### Answer:
SELECT location FROM table_25773116_2 WHERE round = 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_50 (ages VARCHAR, report VARCHAR, school VARCHAR)
### Question:
What are the Ages of the Seashell Trust School with Ofsted Report?
### Answer:
SELECT ages FROM table_name_50 WHERE report = "ofsted" AND school = "seashell trust"
|
Below is an context that describes a sql 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 (year INTEGER, start VARCHAR)
### Question:
Name the least year for start of 17th
### Answer:
SELECT MIN(year) FROM table_name_13 WHERE start = "17th"
|
Below is an context that describes a sql 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 (english_title VARCHAR, original_title VARCHAR)
### Question:
What's the English Title of Fanny Och Alexander?
### Answer:
SELECT english_title FROM table_name_20 WHERE original_title = "fanny och alexander"
|
Below is an context that describes a sql 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 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
### Question:
What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22?
### Answer:
SELECT score FROM table_name_27 WHERE location_attendance = "us airways center 18,422" AND game < 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_12 (years_as_tallest VARCHAR, street_address VARCHAR)
### Question:
What's the Years as tallest with a Street address of 324 E. 11th Street?
### Answer:
SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21091157_1 (game VARCHAR, record VARCHAR)
### Question:
Name the game for record 1-0
### Answer:
SELECT game FROM table_21091157_1 WHERE record = "1-0"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2676980_4 (total_candidates VARCHAR, registered_voters VARCHAR)
### Question:
What is the number of total candidates when registered voters is 47742?
### Answer:
SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24649082_1 (title VARCHAR, directed_by VARCHAR)
### Question:
What is the title of the episode directed by Charles Beeson?
### Answer:
SELECT title FROM table_24649082_1 WHERE directed_by = "Charles Beeson"
|
Below is an context that describes a sql 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 (nhl_team VARCHAR, player VARCHAR)
### Question:
What is the NHL team of dave murphy?
### Answer:
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (horse VARCHAR, competition VARCHAR)
### Question:
What horse was at the Badminton Horse Trials?
### Answer:
SELECT horse FROM table_name_54 WHERE competition = "badminton horse trials"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1638437_2 (traditional VARCHAR, population VARCHAR)
### Question:
Name the traditional for population 74779
### Answer:
SELECT traditional FROM table_1638437_2 WHERE population = 74779
|
Below is an context that describes a sql 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 (trailers VARCHAR, year VARCHAR, builder VARCHAR)
### Question:
I want the trailers for 1931 and builder of mccw
### Answer:
SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1108394_34 (the_bronx VARCHAR, manhattan VARCHAR)
### Question:
What percentage of The Bronx voters occured when Manhattan had 29.9% of voters?
### Answer:
SELECT the_bronx FROM table_1108394_34 WHERE manhattan = "29.9_percentage"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14520977_1 (record VARCHAR, result VARCHAR)
### Question:
Name the record for l 24–22
### Answer:
SELECT record FROM table_14520977_1 WHERE result = "L 24–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 city (name VARCHAR, Population INTEGER)
### Question:
What are the cities whose population is between 160000 and 900000?
### Answer:
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
|
Below is an context that describes a sql 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 (type VARCHAR, appliances VARCHAR, location VARCHAR)
### Question:
What is the type of the station with a 1 wrl appliance in Linton?
### Answer:
SELECT type FROM table_name_92 WHERE appliances = "1 wrl" AND location = "linton"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (Id VARCHAR)
### Question:
What is the 2011 value with a 134 in 2008?
### Answer:
SELECT 2011 FROM table_name_31 WHERE 2008 = "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_2226343_1 (laps VARCHAR, race_time VARCHAR)
### Question:
How many laps have a race time of 3:31:24?
### Answer:
SELECT laps FROM table_2226343_1 WHERE race_time = "3:31: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_1 (city VARCHAR, host VARCHAR)
### Question:
Which city is the host of the University of Texas?
### Answer:
SELECT city FROM table_name_1 WHERE host = "university of texas"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
### Question:
What is the highest points value for the 500cc class in years after 1962 with 0 wins?
### Answer:
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 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_14 (record VARCHAR, event VARCHAR)
### Question:
What is the record during the event, UFC 27?
### Answer:
SELECT record FROM table_name_14 WHERE event = "ufc 27"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11839306_2 (track INTEGER)
### Question:
What is the smallest track number?
### Answer:
SELECT MIN(track) FROM table_11839306_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_7 (call_sign VARCHAR, owner VARCHAR)
### Question:
What is the call sign for the radio owned by astral media?
### Answer:
SELECT call_sign FROM table_name_7 WHERE owner = "astral media"
|
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR)
### Question:
What was the score on March 4?
### Answer:
SELECT score FROM table_name_22 WHERE date = "march 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_4 (venue VARCHAR, date VARCHAR)
### Question:
What venue listed is dated February 22, 2003?
### Answer:
SELECT venue FROM table_name_4 WHERE date = "february 22, 2003"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18481791_2 (title VARCHAR, directed_by VARCHAR)
### Question:
What was the title of the episode directed by John T. Kretchmer?
### Answer:
SELECT title FROM table_18481791_2 WHERE directed_by = "John T. Kretchmer"
|
Below is an context that describes a sql 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 (bronze INTEGER, rank VARCHAR, total VARCHAR)
### Question:
Tell me the average bronze for rank of 43 and total less than 11
### Answer:
SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR)
### Question:
What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?
### Answer:
SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER)
### Question:
What is the average number of gold medals with more than 1 bronze medal?
### Answer:
SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (covered_location VARCHAR, frequency VARCHAR)
### Question:
What covered location has a frequency of 90.7 FM
### Answer:
SELECT covered_location FROM table_name_32 WHERE frequency = "90.7 fm"
|
Below is an context that describes a sql 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 (position VARCHAR, team VARCHAR, player VARCHAR)
### Question:
WHAT IS THE POSITION WITH BOSTON RED SOX FOR COREY JENKINS?
### Answer:
SELECT position FROM table_name_44 WHERE team = "boston red sox" AND player = "corey jenkins"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE perpetrator (Country VARCHAR)
### Question:
What are the countries that have at least two perpetrators?
### Answer:
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country 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_14 (democratic_ticket VARCHAR, office VARCHAR)
### Question:
What is the kind of Democratic ticket has a Office of comptroller?
### Answer:
SELECT democratic_ticket FROM table_name_14 WHERE office = "comptroller"
|
Below is an context that describes a sql 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 (tournament VARCHAR, opponent VARCHAR)
### Question:
What is Tournament, when Opponent is "Lu Jiaxiang"?
### Answer:
SELECT tournament FROM table_name_98 WHERE opponent = "lu jiaxiang"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1370559_1 (pa VARCHAR, pf VARCHAR)
### Question:
What is the PA when the PF is 77?
### Answer:
SELECT pa FROM table_1370559_1 WHERE pf = 77
|
Below is an context that describes a sql 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 (rank_by_average INTEGER, average VARCHAR, number_of_dances VARCHAR)
### Question:
What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?
### Answer:
SELECT MAX(rank_by_average) FROM table_name_27 WHERE average = 25.3 AND number_of_dances > 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 authors (fname VARCHAR)
### Question:
Find the first names of all the authors ordered in alphabetical order.
### Answer:
SELECT fname FROM authors ORDER BY fname
|
Below is an context that describes a sql 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 (year__ceremony_ VARCHAR, original_title VARCHAR)
### Question:
What is the year of the ceremony with the original title ničiji sin?
### Answer:
SELECT year__ceremony_ FROM table_name_98 WHERE original_title = "ničiji sin"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)
### Question:
Find the name of the candidates whose oppose percentage is the lowest for each sex.
### Answer:
SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex
|
Below is an context that describes a sql 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 (week INTEGER, date VARCHAR, attendance VARCHAR)
### Question:
What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?
### Answer:
SELECT MIN(week) FROM table_name_70 WHERE date = "september 19, 1965" AND attendance < 46 OFFSET 941
|
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the score of the away team when the home team was south melbourne?
### Answer:
SELECT away_team AS score FROM table_name_79 WHERE home_team = "south 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_68 (time VARCHAR, opponent VARCHAR)
### Question:
What was the time when his opponent was Cleber Luciano?
### Answer:
SELECT time FROM table_name_68 WHERE opponent = "cleber luciano"
|
Below is an context that describes a sql 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 (round VARCHAR, record VARCHAR)
### Question:
What round had a record of 8-2?
### Answer:
SELECT round FROM table_name_73 WHERE record = "8-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_26842217_6 (time VARCHAR, visiting_team VARCHAR)
### Question:
How many times was Louisiana-Monroe a visiting team?
### Answer:
SELECT COUNT(time) FROM table_26842217_6 WHERE visiting_team = "Louisiana-Monroe"
|
Below is an context that describes a sql 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 (location VARCHAR, bronze VARCHAR)
### Question:
Where did Michael Eric Bibat win bronze?
### Answer:
SELECT location FROM table_name_29 WHERE bronze = "michael eric bibat"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.