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_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
### Question:
Name the points classification for predictor-lotto and stage 1
### Answer:
SELECT points_classification FROM table_name_65 WHERE team_classification = "predictor-lotto" AND stage = "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_7 (game INTEGER, date VARCHAR, attendance VARCHAR)
### Question:
What average game was held on february 24 and has an attendance smaller than 16,541?
### Answer:
SELECT AVG(game) FROM table_name_7 WHERE date = "february 24" AND attendance < 16 OFFSET 541 |
Below is an context that describes a sql 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 (years_as_tallest VARCHAR, street_address VARCHAR)
### Question:
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
### Answer:
SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light 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_name_81 (played INTEGER, goals_conceded INTEGER)
### Question:
What is the mean played number where the goals conceded is less than 16?
### Answer:
SELECT AVG(played) FROM table_name_81 WHERE goals_conceded < 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_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)
### Question:
In 1955 which party did Thomas Mitchell belong to?
### Answer:
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell" |
Below is an context that describes a sql 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 (top_10 VARCHAR, starts VARCHAR, avg_finish VARCHAR)
### Question:
How many top 10s belong to the team with a start of 7 and an average finish less than 16.7?
### Answer:
SELECT COUNT(top_10) FROM table_name_69 WHERE starts = 7 AND avg_finish < 16.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_29 (notes VARCHAR, country VARCHAR)
### Question:
What are the notes for the athlete from Spain?
### Answer:
SELECT notes FROM table_name_29 WHERE country = "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_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)
### Question:
Which Visiting Team has a Stadium of servus centre on march 7?
### Answer:
SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 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_27987623_1 (series_episode INTEGER, us_viewers__in_million_ VARCHAR)
### Question:
What was the episode number veiwed by 7.43 million viewers?
### Answer:
SELECT MAX(series_episode) FROM table_27987623_1 WHERE us_viewers__in_million_ = "7.43" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24348134_3 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR)
### Question:
In what city did oklahoma win the tournament.
### Answer:
SELECT tournament_venue__city_ FROM table_24348134_3 WHERE tournament_winner = "Oklahoma" |
Below is an context that describes 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 (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
### Question:
What is the course title of the prerequisite of course Mobile Computing?
### Answer:
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR)
### Question:
Find the name of the person who has no student friends.
### Answer:
SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' |
Below is an context that describes a sql 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 (overall VARCHAR, name VARCHAR, pick__number VARCHAR)
### Question:
Name the total number of overall for brent hawkins and pick # more than 28
### Answer:
SELECT COUNT(overall) FROM table_name_5 WHERE name = "brent hawkins" AND pick__number > 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_20026849_1 (season INTEGER, winner VARCHAR)
### Question:
What season was won by Ashutosh Kaushik?
### Answer:
SELECT MIN(season) FROM table_20026849_1 WHERE winner = "Ashutosh Kaushik" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (player VARCHAR, pick VARCHAR, position VARCHAR)
### Question:
What player had a pick higher than 53, and a position of defensive tackle?
### Answer:
SELECT player FROM table_name_35 WHERE pick > 53 AND position = "defensive tackle" |
Below is an context that describes a sql 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 (hanyu_pinyin VARCHAR, hanzi VARCHAR)
### Question:
What is the Pinyin for 依兰县?
### Answer:
SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = "依兰县" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (date VARCHAR, tournament VARCHAR)
### Question:
what is the date for the tournament joué-lès-tours?
### Answer:
SELECT date FROM table_name_52 WHERE tournament = "joué-lès-tours" |
Below is an context that describes a sql 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 (date VARCHAR, time VARCHAR)
### Question:
What date was the episode that aired at 7:30 pm ET?
### Answer:
SELECT date FROM table_name_26 WHERE time = "7:30 pm et" |
Below is an context that describes a sql 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 (pick VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR)
### Question:
What is the pick for round 8 with a USA nationality in the 2000 draft?
### Answer:
SELECT pick FROM table_name_72 WHERE round = "8" AND nationality = "usa" AND draft = 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_18 (Id VARCHAR)
### Question:
What is 2008, when 2006 is "Grand Slam Tournaments"?
### Answer:
SELECT 2008 FROM table_name_18 WHERE 2006 = "grand slam tournaments" |
Below is an context that describes a sql 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 (year INTEGER, tournament VARCHAR)
### Question:
What year was the Commonwealth Games?
### Answer:
SELECT SUM(year) FROM table_name_16 WHERE tournament = "commonwealth 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 (transmitter_location VARCHAR, digital_power VARCHAR)
### Question:
What transmitter location has digital power of 570kw?
### Answer:
SELECT transmitter_location FROM table_name_62 WHERE digital_power = "570kw" |
Below is an context that describes a sql 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 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR)
### Question:
Tell me the nation for bronze more than 0 and total more than 8 with gold of 4
### Answer:
SELECT nation FROM table_name_62 WHERE bronze > 0 AND total > 8 AND gold = 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_16331144_1 (runner_up VARCHAR, season VARCHAR)
### Question:
Who was the runner-up in season five?
### Answer:
SELECT runner_up FROM table_16331144_1 WHERE season = "Five" |
Below is an context that describes a sql 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 (location VARCHAR, nickname VARCHAR)
### Question:
Which location did the Tigers have?
### Answer:
SELECT location FROM table_name_90 WHERE nickname = "tigers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (winning_team VARCHAR, circuit VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
### Question:
For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team?
### Answer:
SELECT winning_team FROM table_name_15 WHERE winning_driver = "emerson fittipaldi" AND pole_position = "michael andretti" AND circuit = "cleveland burke lakefront 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 table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)
### Question:
How many times was the high rebounds by marcus camby (18)?
### Answer:
SELECT COUNT(date) FROM table_27734769_8 WHERE high_rebounds = "Marcus Camby (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_39 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
### Question:
What is the highest Bronze with a Silver greater than 0 and a Gold of 7 and a total less than 29
### Answer:
SELECT MAX(bronze) FROM table_name_39 WHERE silver > 0 AND gold = 7 AND total < 29 |
Below is an context that describes a sql 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 (host_city VARCHAR, president_in_office VARCHAR, year VARCHAR)
### Question:
In which host city was Margaret Thatcher the President-in-Office in 1981?
### Answer:
SELECT host_city FROM table_name_85 WHERE president_in_office = "margaret thatcher" AND year = 1981 |
Below is an context that describes a sql 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 (score VARCHAR, visitor VARCHAR)
### Question:
What was the score of the game against Milwaukee?
### Answer:
SELECT score FROM table_name_9 WHERE visitor = "milwaukee" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (to_par INTEGER, score VARCHAR)
### Question:
What is the average To Par, when Score is "72-67-71-72=282"?
### Answer:
SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282 |
Below is an context that describes a sql 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 (tourist_arrivals__2011___millions_ INTEGER, tourism_competitiveness__2011___ttci_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)
### Question:
What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts?
### Answer:
SELECT MAX(tourist_arrivals__2011___millions_) FROM table_name_92 WHERE tourism_competitiveness__2011___ttci_ = "3.82" AND tourism_receipts__2011___us$_per_arrival_ > 1 OFFSET 102 |
Below is an context that describes a sql 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:
Who is the player from Australia with a to par of +5?
### Answer:
SELECT player FROM table_name_7 WHERE to_par = "+5" AND country = "australia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
### Question:
Find name of the services that has never been used.
### Answer:
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_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_14158567_1 (congress VARCHAR, member_elect VARCHAR)
### Question:
What edition of congress for member-elect richard p. giles?
### Answer:
SELECT congress FROM table_14158567_1 WHERE member_elect = "Richard P. Giles" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)
### Question:
What are the coupon amount of the coupons owned by both good and bad customers?
### Answer:
SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' |
Below is an context that describes a sql 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 (loses VARCHAR, points VARCHAR, points_against VARCHAR, points_for VARCHAR, wins VARCHAR)
### Question:
What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?
### Answer:
SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2361911_2 (division INTEGER)
### Question:
Name the least division
### Answer:
SELECT MIN(division) FROM table_2361911_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_21 (draw VARCHAR, goal_diff VARCHAR, loss VARCHAR, point VARCHAR)
### Question:
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
### Answer:
SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 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_58 (dissolved VARCHAR, assembled VARCHAR)
### Question:
What is the dissolved date of the parliament assembled on 4 November 1461?
### Answer:
SELECT dissolved FROM table_name_58 WHERE assembled = "4 november 1461" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE forms (form_type_code VARCHAR)
### Question:
List all the types of forms.
### Answer:
SELECT DISTINCT form_type_code FROM forms |
Below is an context that describes a sql 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 (location VARCHAR, home_ground VARCHAR)
### Question:
Where was the location of the Mong Kok Stadium?
### Answer:
SELECT location FROM table_name_12 WHERE home_ground = "mong kok stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR)
### Question:
Who is the runner-up for season 2011–12?
### Answer:
SELECT runner_up FROM table_25058269_1 WHERE season = "2011–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_89 (csa_cma_2009_population INTEGER, state__province VARCHAR)
### Question:
What's the CSA/CMA Population in IA-IL?
### Answer:
SELECT MAX(csa_cma_2009_population) FROM table_name_89 WHERE state__province = "ia-il" |
Below is an context that describes a sql 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 (high_rebounds VARCHAR, high_points VARCHAR)
### Question:
Which High rebounds has a High points of douglas (23)?
### Answer:
SELECT high_rebounds FROM table_name_23 WHERE high_points = "douglas (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_11960944_6 (high_points VARCHAR, team VARCHAR)
### Question:
How many players had the most points in the game @ Milwaukee?
### Answer:
SELECT COUNT(high_points) FROM table_11960944_6 WHERE team = "@ Milwaukee" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR)
### Question:
Which people had the best 10-year period when Capablanca had the best 15-year period?
### Answer:
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Capablanca" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR)
### Question:
On what year did Newcombe first face Clark Graebner in a final match?
### Answer:
SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = "Clark Graebner" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20345624_2 (title VARCHAR, original_airdate VARCHAR)
### Question:
Name the title that aired on 5 august 1967
### Answer:
SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = "5 August 1967" |
Below is an context that describes a sql 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 (year INTEGER, loser VARCHAR, location VARCHAR)
### Question:
What's the earliest year the new york giants lost at new meadowlands stadium?
### Answer:
SELECT MIN(year) FROM table_name_31 WHERE loser = "new york giants" AND location = "new meadowlands stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (class VARCHAR, call_sign VARCHAR)
### Question:
Which class's call sign is wokg?
### Answer:
SELECT class FROM table_name_44 WHERE call_sign = "wokg" |
Below is an context that describes a 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 (alumni VARCHAR, original_season VARCHAR)
### Question:
What alumni were in rw: cancun as their original season?
### Answer:
SELECT alumni FROM table_26419467_1 WHERE original_season = "RW: Cancun" |
Below is an context that describes a sql 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 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)
### Question:
What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m?
### Answer:
SELECT MAX(col__m_) FROM table_name_91 WHERE rank < 7 AND peak = "puncak jaya (carstensz pyramid)" AND prominence__m_ < 4 OFFSET 884 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (award_ceremony VARCHAR, nominee VARCHAR)
### Question:
What award ceremony was howard bay and patton campbell nominated?
### Answer:
SELECT award_ceremony FROM table_name_10 WHERE nominee = "howard bay and patton campbell" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2004733_2 (barangay VARCHAR, area__in_km_2__ VARCHAR)
### Question:
What's the name of the barangay whose area is 3.6787 km² ?
### Answer:
SELECT barangay FROM table_2004733_2 WHERE area__in_km_2__ = "3.6787" |
Below is an context that describes a sql 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 (cuts_made INTEGER, wins INTEGER)
### Question:
What is the smallest number of cuts when there were more than 0 wins?
### Answer:
SELECT MIN(cuts_made) FROM table_name_59 WHERE 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_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)
### Question:
Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532?
### Answer:
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532 |
Below is an context that describes a sql 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 (competition VARCHAR, played VARCHAR, lost VARCHAR, drew VARCHAR)
### Question:
What competition did they have 1 lost, 3 draws, and played 9 games?
### Answer:
SELECT competition FROM table_name_17 WHERE lost = "1" AND drew = "3" AND played = "9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR)
### Question:
What is the lowest attendance with week 14?
### Answer:
SELECT MIN(attendance) FROM table_name_30 WHERE week = 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_1342379_10 (district VARCHAR, first_elected VARCHAR)
### Question:
how many areas were in the election in 1912
### Answer:
SELECT COUNT(district) FROM table_1342379_10 WHERE first_elected = 1912 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR)
### Question:
What are the average points for an engine of ford zetec-r v8?
### Answer:
SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8" |
Below is an context that describes a sql 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 (goal INTEGER, result VARCHAR)
### Question:
What is the top goal for the result of 2–3?
### Answer:
SELECT MAX(goal) FROM table_name_39 WHERE result = "2–3" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (international_tourism_expenditure__2011_ VARCHAR, country VARCHAR)
### Question:
What is China's International tourism expenditure (2011)?
### Answer:
SELECT international_tourism_expenditure__2011_ FROM table_name_4 WHERE country = "china" |
Below is an context that describes a sql 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 (country VARCHAR, score VARCHAR, player VARCHAR)
### Question:
What Country is player Sandy Lyle from when she scored less than 69?
### Answer:
SELECT country FROM table_name_25 WHERE score < 69 AND player = "sandy lyle" |
Below is an context that describes a sql 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 (event VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR)
### Question:
What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?
### Answer:
SELECT event FROM table_name_34 WHERE position = "1st" AND year = 1983 AND venue = "budapest" |
Below is an context that describes a sql 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 (frequency VARCHAR, identifier VARCHAR)
### Question:
What's the frequency when the identifier is cbf-fm-9?
### Answer:
SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-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_32 (finish VARCHAR, race VARCHAR)
### Question:
What was the finish of the Kentucky Derby?
### Answer:
SELECT finish FROM table_name_32 WHERE race = "kentucky derby" |
Below is an context that describes a sql 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 (attendance INTEGER, date VARCHAR)
### Question:
What was the highest attendance on November 12, 1989?
### Answer:
SELECT MAX(attendance) FROM table_name_80 WHERE date = "november 12, 1989" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR)
### Question:
What is curtis strange's to par?
### Answer:
SELECT to_par FROM table_name_26 WHERE player = "curtis strange" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27734769_9 (score VARCHAR, date VARCHAR)
### Question:
How many scores where achieved on January 19?
### Answer:
SELECT COUNT(score) FROM table_27734769_9 WHERE date = "January 19" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17596418_5 (country VARCHAR, loan_club VARCHAR)
### Question:
what ist he country where the loan club is fulham?
### Answer:
SELECT country FROM table_17596418_5 WHERE loan_club = "Fulham" |
Below is an context that describes a sql 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 (laps INTEGER, driver VARCHAR)
### Question:
what is the most laps for driver jackie stewart?
### Answer:
SELECT MAX(laps) FROM table_name_43 WHERE driver = "jackie stewart" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (total INTEGER, rank VARCHAR, silver VARCHAR)
### Question:
Which Total is the lowest one that has a Rank smaller than 2, and a Silver smaller than 15?
### Answer:
SELECT MIN(total) FROM table_name_23 WHERE rank < 2 AND silver < 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_48 (city VARCHAR, county VARCHAR, school VARCHAR)
### Question:
Which city has a school of North Vernon and a county of 40 Jennings?
### Answer:
SELECT city FROM table_name_48 WHERE county = "40 jennings" AND school = "north vernon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22871316_11 (high_assists VARCHAR, series VARCHAR)
### Question:
Who has the high assists when 0-1 is the series?
### Answer:
SELECT high_assists FROM table_22871316_11 WHERE series = "0-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_22 (record VARCHAR, attendance VARCHAR)
### Question:
What was the Record at the game that had an attendance of 21,191?
### Answer:
SELECT record FROM table_name_22 WHERE attendance = "21,191" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15530244_2 (race VARCHAR, circuit VARCHAR, pole_position VARCHAR)
### Question:
Which race number in the Indy F3 Challenge circuit had John Martin in pole position?
### Answer:
SELECT race FROM table_15530244_2 WHERE circuit = "Indy F3 Challenge" AND pole_position = "John Martin" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, genus_ VARCHAR, _species VARCHAR)
### Question:
What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?
### Answer:
SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = "Mus musculus" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17861179_1 (week INTEGER, game_site VARCHAR)
### Question:
What is the week where the game site is Shea Stadium?
### Answer:
SELECT MIN(week) FROM table_17861179_1 WHERE game_site = "Shea Stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR)
### Question:
How many weeks have a Result of t 10-10?
### Answer:
SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-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_30 (institution VARCHAR, type VARCHAR, nickname VARCHAR)
### Question:
Which public college has a nickname of The Grenadiers?
### Answer:
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers" |
Below is an context that describes a sql 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 (bronze VARCHAR, total VARCHAR, competitors VARCHAR)
### Question:
What is the Bronze in the year there was a Total of 0 medals and 6 Competitors?
### Answer:
SELECT bronze FROM table_name_74 WHERE total = "0" AND competitors = "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_27913160_3 (pole_position VARCHAR, race VARCHAR)
### Question:
Who had the pole position in Milwaukee?
### Answer:
SELECT pole_position FROM table_27913160_3 WHERE race = "Milwaukee" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR)
### Question:
What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?
### Answer:
SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may 1, 1923" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE instructor (salary VARCHAR)
### Question:
List the information of all instructors ordered by their salary in ascending order.
### Answer:
SELECT * FROM instructor ORDER BY salary |
Below is an context that describes a sql 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 (year VARCHAR, score VARCHAR)
### Question:
What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?
### Answer:
SELECT year FROM table_name_58 WHERE score = "6–2, 2–6, 5–7, 7–6, 8–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_62 (place VARCHAR, score VARCHAR)
### Question:
WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?
### Answer:
SELECT place FROM table_name_62 WHERE score = 76 - 69 - 64 - 70 = 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_34 (lost VARCHAR, played INTEGER)
### Question:
How many total losses have teams that played more than 30 games?
### Answer:
SELECT COUNT(lost) FROM table_name_34 WHERE played > 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
### Question:
In the game where Collingwood is the home team what is the score of the away team?
### Answer:
SELECT away_team AS score FROM table_name_18 WHERE home_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_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR)
### Question:
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?
### Answer:
SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)
### Question:
List the names of the customers who have once bought product "food".
### Answer:
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 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_67 (cover_model VARCHAR, interview_subject VARCHAR)
### Question:
Who was the Cover model in the issue in which the Interview subject was Joan Collins?
### Answer:
SELECT cover_model FROM table_name_67 WHERE interview_subject = "joan collins" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
### Question:
Which level has grandmaster flash as artist 1?
### Answer:
SELECT level FROM table_23649244_1 WHERE artist_1 = "Grandmaster Flash" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)
### Question:
Find the name of rooms booked by some customers whose first name contains ROY.
### Answer:
SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%' |
Below is an context that describes a sql 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 (name VARCHAR, assets__bn$_ VARCHAR, market_value__bn$_ VARCHAR, rank VARCHAR)
### Question:
Which company had a market value less than $5.59 billion, assets greater than $27.46 billion, and a rank above 39?
### Answer:
SELECT name FROM table_name_87 WHERE market_value__bn$_ < 5.59 AND rank > 39 AND assets__bn$_ > 27.46 |
Below is an context that describes a sql 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 (mountains_classification VARCHAR, winner VARCHAR)
### Question:
What is the Mountains Classification for Winner josé luis carrasco?
### Answer:
SELECT mountains_classification FROM table_name_2 WHERE winner = "josé luis carrasco" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_30108930_6 (cfl_team VARCHAR, pick__number VARCHAR)
### Question:
Which CFL team was pick #35?
### Answer:
SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 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_name_93 (lost VARCHAR, years VARCHAR, seasons VARCHAR)
### Question:
How many losses did the coach who served under 1 season and in 1975 have?
### Answer:
SELECT COUNT(lost) FROM table_name_93 WHERE years = "1975" AND seasons < 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_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)
### Question:
Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham
### Answer:
SELECT winning_party_2007 FROM table_name_60 WHERE result = "labour hold" AND swing_to_gain < 7.11 AND constituency = "wrexham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)
### Question:
What is the enrollment associated with a capacity greater then 35,650?
### Answer:
SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.