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_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)
### Question:
What was the score of the game on November 9 when Atlanta was the visiting team?
### Answer:
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 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 Has_allergy (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR)
### Question:
What are the student ids of students who don't have any allergies?
### Answer:
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12121208_1 (womens_singles VARCHAR, mens_singles VARCHAR)
### Question:
Who won the womens singles when Marc Zwiebler won the men's singles?
### Answer:
SELECT womens_singles FROM table_12121208_1 WHERE mens_singles = "Marc Zwiebler" |
Below is an context that describes a sql 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 (no_result INTEGER, matches VARCHAR, wins VARCHAR)
### Question:
How many total No Results occured when the team had less than 46 wins and more than 16 matches?
### Answer:
SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 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_2570269_3 (episode_title VARCHAR, original_air_date__uk_ VARCHAR)
### Question:
What is the title of the episode that aired on 13 august 1981?
### Answer:
SELECT episode_title FROM table_2570269_3 WHERE original_air_date__uk_ = "13 August 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_19359427_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
### Question:
When was the new manager of the team on 21st position appointed?
### Answer:
SELECT date_of_appointment FROM table_19359427_6 WHERE position_in_table = "21st" |
Below is an context that describes a sql 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 (fastest_laps INTEGER, poles VARCHAR, races VARCHAR)
### Question:
How many Fastest Laps have Poles of 4, and Races larger than 178?
### Answer:
SELECT SUM(fastest_laps) FROM table_name_81 WHERE poles = 4 AND races > 178 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)
### Question:
What was the aggregate score for the match won by Viadana?
### Answer:
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Viadana" |
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR)
### Question:
When the home team of st kilda was playing, what was the away team score?
### Answer:
SELECT away_team AS score FROM table_name_97 WHERE home_team = "st kilda" |
Below is an context that describes a sql 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 (class VARCHAR, behind VARCHAR)
### Question:
What is the class of the team that has a behind of +44.780?
### Answer:
SELECT class FROM table_name_18 WHERE behind = "+44.780" |
Below is an context that describes a sql 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 (year INTEGER, points VARCHAR, rank VARCHAR)
### Question:
What earliest year with points larger than 68 and a rank of 7th?
### Answer:
SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = "7th" |
Below is an context that describes 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 (job_id VARCHAR, salary INTEGER)
### Question:
Find the job ID for those jobs which average salary is above 8000.
### Answer:
SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000 |
Below is an context that describes a sql 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 (date VARCHAR, set_3 VARCHAR)
### Question:
What date was the Set 3 of 12β25?
### Answer:
SELECT date FROM table_name_79 WHERE set_3 = "12β25" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (party VARCHAR, net_gain_loss VARCHAR)
### Question:
Which party has a net gain/loss of -2?
### Answer:
SELECT party FROM table_name_19 WHERE net_gain_loss = "-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_59 (song VARCHAR, length VARCHAR)
### Question:
Which song lasts 3:34?
### Answer:
SELECT song FROM table_name_59 WHERE length = "3: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_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)
### Question:
Which Particle has an Isospin I of 1 and Commonly decays to p + + Ο 0 or n 0 + Ο +?
### Answer:
SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + Ο 0 or n 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_94 (engine VARCHAR, driver VARCHAR, team VARCHAR, chassis VARCHAR)
### Question:
What type of engine does the BF Racing Marron Excavations have that also has Monaco as chassis and Lee Filliponi as the driver?
### Answer:
SELECT engine FROM table_name_94 WHERE team = "bf racing marron excavations" AND chassis = "monaco" AND driver = "lee filliponi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)
### Question:
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
### Answer:
SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (fall_06 INTEGER, fall_09 VARCHAR)
### Question:
What number is Fall 06 from the state with 34 for Fall 09?
### Answer:
SELECT AVG(fall_06) FROM table_name_97 WHERE fall_09 = 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_49 (captain VARCHAR, team VARCHAR)
### Question:
What is the name of the captain for team Norwich City?
### Answer:
SELECT captain FROM table_name_49 WHERE team = "norwich city" |
Below is an context that describes 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 (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR)
### Question:
Which contact channel has been used by the customer with name "Tillman Ernser"?
### Answer:
SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" |
Below is an context that describes a sql 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 (country VARCHAR, player VARCHAR)
### Question:
What is the country of Craig Stadler?
### Answer:
SELECT country FROM table_name_65 WHERE player = "craig stadler" |
Below is an context that describes a sql 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 (position VARCHAR, competition VARCHAR)
### Question:
In what position did Salina Kosgei finish in the Tokyo Marathon?
### Answer:
SELECT position FROM table_name_23 WHERE competition = "tokyo marathon" |
Below is an context that describes a sql 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 (attendance VARCHAR, game VARCHAR, date VARCHAR)
### Question:
Which Attendance has a Game smaller than 3, and a Date of october 31?
### Answer:
SELECT COUNT(attendance) FROM table_name_49 WHERE game < 3 AND date = "october 31" |
Below is an context that describes a sql 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 (season VARCHAR, goals VARCHAR, rank VARCHAR, club VARCHAR)
### Question:
Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?
### Answer:
SELECT season FROM table_name_61 WHERE rank < 4 AND club = "barcelona" AND goals < 115 |
Below is an context that describes a sql 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 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR)
### Question:
What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?
### Answer:
SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 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_2 (position INTEGER, points VARCHAR, wins VARCHAR)
### Question:
What is the minimum position when points are 32 and wins are greater than 13?
### Answer:
SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR)
### Question:
What is the hometown for the player that went to the college of washington
### Answer:
SELECT hometown FROM table_name_54 WHERE college = "washington" |
Below is an context that describes a sql 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 (years VARCHAR, authority VARCHAR, decile VARCHAR, area VARCHAR)
### Question:
Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?
### Answer:
SELECT years FROM table_name_41 WHERE decile < 6 AND area = "te kuiti" AND authority = "state integrated" |
Below is an context that describes a sql 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 (tournament VARCHAR, winning_score VARCHAR)
### Question:
Which tournament had a winning score of 67-61-68-67=263?
### Answer:
SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17525955_2 (rating VARCHAR, us_air_date VARCHAR)
### Question:
How many rating/share values does the episode aired on Saturday, May 9, 2009?
### Answer:
SELECT COUNT(rating) / SHARE(18 AS β49) FROM table_17525955_2 WHERE us_air_date = "Saturday, May 9, 2009" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1973842_1 (type VARCHAR, nickname VARCHAR)
### Question:
What is the type of the school whose students' nickname is tigers?
### Answer:
SELECT type FROM table_1973842_1 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_77 (away_team VARCHAR, venue VARCHAR)
### Question:
What was the away team's score in the match at Victoria Park?
### Answer:
SELECT away_team AS score FROM table_name_77 WHERE venue = "victoria 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_17359181_1 (goal_average_1 VARCHAR, goals_against VARCHAR)
### Question:
How many values of goal average 1 occur when the value of goals against is 92?
### Answer:
SELECT COUNT(goal_average_1) FROM table_17359181_1 WHERE goals_against = 92 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR)
### Question:
In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?
### Answer:
SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_221398_1 (prefecture VARCHAR, number_in_map VARCHAR)
### Question:
What prefecture is listed in the map as number 39?
### Answer:
SELECT prefecture FROM table_221398_1 WHERE number_in_map = "39" |
Below is an context that describes a sql 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 (significand__fraction_field_ VARCHAR, value VARCHAR)
### Question:
What's the Significant of a value 1.0?
### Answer:
SELECT significand__fraction_field_ FROM table_name_2 WHERE value = "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_name_33 (chemical_class VARCHAR, formula VARCHAR)
### Question:
What is the chemical class for ri?
### Answer:
SELECT chemical_class FROM table_name_33 WHERE formula = "ri" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2266976_1 (driver VARCHAR, year VARCHAR)
### Question:
Who was the driver in 1986?
### Answer:
SELECT driver FROM table_2266976_1 WHERE year = "1986" |
Below is an context that describes a sql 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 (competition VARCHAR, date VARCHAR)
### Question:
What is Competition, when Date is "28 March 2001"?
### Answer:
SELECT competition FROM table_name_24 WHERE date = "28 march 2001" |
Below is an context that describes a sql 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 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR)
### Question:
How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?
### Answer:
SELECT COUNT(heat) FROM table_name_18 WHERE lane = 5 AND rank > 110 AND nationality = "honduras" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14778650_1 (writer VARCHAR, length VARCHAR)
### Question:
Who was the writer for the song 4:29 in length?
### Answer:
SELECT writer FROM table_14778650_1 WHERE length = "4: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_25 (score VARCHAR, date VARCHAR)
### Question:
What Score has a Date of 11 september 2010?
### Answer:
SELECT score FROM table_name_25 WHERE date = "11 september 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_55 (matches INTEGER, points VARCHAR, goals VARCHAR)
### Question:
What are the highest matches that have points less than 88, and goals less than 0?
### Answer:
SELECT MAX(matches) FROM table_name_55 WHERE points < 88 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_13259019_2 (date VARCHAR, game_site VARCHAR)
### Question:
On what day was the team playing at milwaukee county stadium?
### Answer:
SELECT date FROM table_13259019_2 WHERE game_site = "Milwaukee County 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_52 (attendance VARCHAR, date VARCHAR)
### Question:
How many attended the game on August 12?
### Answer:
SELECT COUNT(attendance) FROM table_name_52 WHERE date = "august 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_76 (airport VARCHAR, iata VARCHAR)
### Question:
What airport has an IATA of ARN?
### Answer:
SELECT airport FROM table_name_76 WHERE iata = "arn" |
Below is an context that describes a sql 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 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
### Question:
Tell me the average gold for moldova and bronze less than 1
### Answer:
SELECT AVG(gold) FROM table_name_25 WHERE nation = "moldova" AND 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_79 (winner VARCHAR, score VARCHAR)
### Question:
Who was the winner with a score of 7β6 (7β3) , 2β6, [10β6]?
### Answer:
SELECT winner FROM table_name_79 WHERE score = "7β6 (7β3) , 2β6, [10β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_29141354_2 (scores VARCHAR, jamie_and_johns_guest VARCHAR)
### Question:
What were the scores when Jamie and Johns guest was Phillips Idowu?
### Answer:
SELECT scores FROM table_29141354_2 WHERE jamie_and_johns_guest = "Phillips Idowu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR)
### Question:
What was the result of the Australian Championships?
### Answer:
SELECT outcome FROM table_2139023_2 WHERE championship = "Australian championships" |
Below is an context that describes a sql 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 (frequency VARCHAR, power__kw_ VARCHAR)
### Question:
Which frequency has 40kw power?
### Answer:
SELECT frequency FROM table_name_5 WHERE power__kw_ = "40kw" |
Below is an context that describes a sql 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 (magnitude INTEGER, date VARCHAR)
### Question:
What is the sum of Magnitude on february 12, 1953?
### Answer:
SELECT SUM(magnitude) FROM table_name_44 WHERE date = "february 12, 1953" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)
### Question:
For directors who had more than one movie, return the titles and produced years of all movies directed by them.
### Answer:
SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title |
Below is an context that describes a sql 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 (total INTEGER, nation VARCHAR, gold VARCHAR)
### Question:
What is the Total that has a number of Nation and a Gold smaller than 16?
### Answer:
SELECT MIN(total) FROM table_name_96 WHERE nation = "total" AND gold < 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_39 (opponent VARCHAR, score VARCHAR)
### Question:
What is the Opponent with a Score that is 2β6, 6β4, 3β6?
### Answer:
SELECT opponent FROM table_name_39 WHERE score = "2β6, 6β4, 3β6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (state VARCHAR, representative VARCHAR)
### Question:
Which state does Jimmy Quillen represent?
### Answer:
SELECT state FROM table_name_32 WHERE representative = "jimmy quillen" |
Below is an context that describes a sql 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 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR)
### Question:
Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?
### Answer:
SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow" |
Below is an context that describes a sql 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 (floors VARCHAR, rank VARCHAR, city VARCHAR)
### Question:
What is the number of floors when the r Rank larger than 41, and a City of parel?
### Answer:
SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel" |
Below is an context that describes a sql 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 (country VARCHAR, airport VARCHAR)
### Question:
Which country features Adelaide Airport?
### Answer:
SELECT country FROM table_name_21 WHERE airport = "adelaide 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_16066063_1 (city_1 VARCHAR, city_2 VARCHAR)
### Question:
Which city is listed first when Okinawa is listed as the second city?
### Answer:
SELECT city_1 FROM table_16066063_1 WHERE city_2 = "Okinawa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
### Question:
Name the number of new adherents per year for confucianism
### Answer:
SELECT COUNT(new_adherents_per_year) FROM table_28137918_5 WHERE religion = "Confucianism" |
Below is an context that describes a sql 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 (elected VARCHAR, incumbent VARCHAR)
### Question:
What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
### Answer:
SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = "jim mcdermott" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1827690_4 (no VARCHAR, elected VARCHAR)
### Question:
When 1462/63 was the elected what was the no.?
### Answer:
SELECT no FROM table_1827690_4 WHERE elected = "1462/63" |
Below is an context that describes a sql 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 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
### Question:
How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
### Answer:
SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 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_23 (bronze INTEGER, silver VARCHAR, total VARCHAR)
### Question:
Which Bronze has a Silver of 15, and a Total smaller than 54?
### Answer:
SELECT MIN(bronze) FROM table_name_23 WHERE silver = 15 AND total < 54 |
Below is an context that describes a sql 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 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR)
### Question:
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?
### Answer:
SELECT surface FROM table_name_74 WHERE opponents_in_the_final = "mark edmondson sherwood stewart" AND tournament = "dallas , u.s." |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1974782_1 (type VARCHAR, location VARCHAR)
### Question:
What's the type of the school in New London, Connecticut?
### Answer:
SELECT type FROM table_1974782_1 WHERE location = "New London, Connecticut" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20898602_1 (player VARCHAR, status VARCHAR, position VARCHAR)
### Question:
how many players played running back where status is made 53-man roster at start of 2009 season
### Answer:
SELECT COUNT(player) FROM table_20898602_1 WHERE status = "Made 53-man roster at start of 2009 season" AND position = "Running back" |
Below is an context that describes a sql 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 (losses VARCHAR, matches VARCHAR)
### Question:
What is the losses for the 5 matches?
### Answer:
SELECT losses FROM table_name_40 WHERE matches = "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_40 (date VARCHAR, nationality VARCHAR, event VARCHAR)
### Question:
What was the date of the discus throw for Bulgaria?
### Answer:
SELECT date FROM table_name_40 WHERE nationality = "bulgaria" AND event = "discus throw" |
Below is an context that describes a sql 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 (tournament VARCHAR, runner_s__up VARCHAR)
### Question:
What tournament was Laura Davies the runner-up?
### Answer:
SELECT tournament FROM table_name_50 WHERE runner_s__up = "laura davies" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2527617_1 (best_player VARCHAR, season VARCHAR)
### Question:
Who is the best player in the 1998 season?
### Answer:
SELECT best_player FROM table_2527617_1 WHERE season = 1998 |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What shows for 2002 when the 2004 is A, and the 2005 is 1r?
### Answer:
SELECT 2002 FROM table_name_40 WHERE 2004 = "a" AND 2005 = "1r" |
Below is an context that describes a sql 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 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)
### Question:
Which city has a C1 class and Identifier of CBCD-FM?
### Answer:
SELECT city_of_license FROM table_name_77 WHERE class = "c1" AND identifier = "cbcd-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_34 (team_2 VARCHAR, team_1 VARCHAR)
### Question:
What is the Team 2 with a Team 1 that is milli piyango sk?
### Answer:
SELECT team_2 FROM table_name_34 WHERE team_1 = "milli piyango sk" |
Below is an context that describes a sql 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 (minister VARCHAR, party VARCHAR)
### Question:
What is Minister, when Party is "AN"?
### Answer:
SELECT minister FROM table_name_89 WHERE party = "an" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR)
### Question:
Find the total amount of loans offered by each bank branch.
### Answer:
SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR)
### Question:
Name the silver for ronald weigel category:articles with hcards
### Answer:
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards" |
Below is an context that describes a sql 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 (series_number VARCHAR, dvd_region_1_release_date VARCHAR, original_air_date VARCHAR, number_of_episodes VARCHAR)
### Question:
How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013?
### Answer:
SELECT COUNT(series_number) FROM table_name_24 WHERE original_air_date < 1999 AND number_of_episodes > 7 AND dvd_region_1_release_date = "16 april 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_1 (type VARCHAR, issued VARCHAR)
### Question:
What type was issued in 1964?
### Answer:
SELECT type FROM table_name_1 WHERE issued = 1964 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13456202_1 (location VARCHAR, mascot VARCHAR)
### Question:
What are the locations with a panthers mascot?
### Answer:
SELECT location FROM table_13456202_1 WHERE mascot = "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_1 (game_site VARCHAR, date VARCHAR)
### Question:
Name the game site for october 18, 1992
### Answer:
SELECT game_site FROM table_name_1 WHERE date = "october 18, 1992" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (average INTEGER, swimsuit INTEGER)
### Question:
What is the average of the contestant with a swimsuit less than 9.32?
### Answer:
SELECT SUM(average) FROM table_name_86 WHERE swimsuit < 9.32 |
Below is an context that describes a sql 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 (score VARCHAR, team VARCHAR)
### Question:
WHAT IS THE SCORE WITH THE TEAM OF INDIANA?
### Answer:
SELECT score FROM table_name_75 WHERE team = "indiana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342480_15 (extra_points INTEGER)
### Question:
What is the highest number of extra points?
### Answer:
SELECT MAX(extra_points) FROM table_14342480_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_33 (round VARCHAR)
### Question:
What is the 1st leg of 2q round?
### Answer:
SELECT 1 AS st_leg FROM table_name_33 WHERE round = "2q" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17427004_7 (quarterfinals VARCHAR, athlete VARCHAR)
### Question:
Who did Abdelhafid Benchebla face in the quarterfinals?
### Answer:
SELECT quarterfinals FROM table_17427004_7 WHERE athlete = "Abdelhafid Benchebla" |
Below is an context that describes a sql 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 (round VARCHAR, surface VARCHAR)
### Question:
How many rounds have a Surface of wintry asphalt?
### Answer:
SELECT COUNT(round) FROM table_name_24 WHERE surface = "wintry asphalt" |
Below is an context that describes a sql 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 (round VARCHAR, date VARCHAR)
### Question:
Which round was played on 10 May?
### Answer:
SELECT round FROM table_name_91 WHERE date = "10 may" |
Below is an context that describes a sql 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 (fourth_place VARCHAR, year VARCHAR)
### Question:
What is the Fourth place with a Year that is 1978?
### Answer:
SELECT fourth_place FROM table_name_58 WHERE year = 1978 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (date VARCHAR, opponent VARCHAR)
### Question:
When is Northern Ireland the opponent?
### Answer:
SELECT date FROM table_name_55 WHERE opponent = "northern ireland" |
Below is an context that describes a sql 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 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
### Question:
What's the total with silver being less than 0, less than 1 gold, and 3 bronze?
### Answer:
SELECT SUM(total) FROM table_name_25 WHERE bronze = 3 AND gold < 1 AND silver < 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 (surface VARCHAR, score_in_the_final VARCHAR, opponents_in_the_final VARCHAR)
### Question:
Name the Surface which has a Score in the final of 6β3, 6β2 and Opponents in the final of mansour bahrami diego pΓ©rez?
### Answer:
SELECT surface FROM table_name_87 WHERE score_in_the_final = "6β3, 6β2" AND opponents_in_the_final = "mansour bahrami diego pΓ©rez" |
Below is an context that describes a sql 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 (director_s_ VARCHAR, film VARCHAR)
### Question:
Which director made Mi-temps?
### Answer:
SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps" |
Below is an context that describes a sql 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 (tonnage__grt_ INTEGER, fate VARCHAR)
### Question:
How much tonnage was damaged?
### Answer:
SELECT SUM(tonnage__grt_) FROM table_name_35 WHERE fate = "damaged" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_254234_1 (chinese_name VARCHAR, capital VARCHAR)
### Question:
What is the chinese name of the province whose capital is hangzhou?
### Answer:
SELECT chinese_name FROM table_254234_1 WHERE capital = "Hangzhou" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (lane INTEGER, time VARCHAR)
### Question:
What lane has a time of 1:57.71?
### Answer:
SELECT SUM(lane) FROM table_name_95 WHERE time = "1:57.71" |
Below is an context that describes a sql 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 (score VARCHAR, high_assists VARCHAR)
### Question:
Which Score has a High assists of whalen (5)?
### Answer:
SELECT score FROM table_name_40 WHERE high_assists = "whalen (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_58 (home_team VARCHAR, venue VARCHAR)
### Question:
When the game was played at the Venue of Lake Oval, what was the home team score?
### Answer:
SELECT home_team AS score FROM table_name_58 WHERE venue = "lake oval" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.