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_9 (film_title_used_in_nomination VARCHAR, country VARCHAR)
### Question:
Which movie originated in Bulgaria?
### Answer:
SELECT film_title_used_in_nomination FROM table_name_9 WHERE country = "bulgaria" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
Tell me the 2011 tournament of monte carlo masters
### Answer:
SELECT 2011 FROM table_name_73 WHERE tournament = "monte carlo masters" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (opposition VARCHAR, year VARCHAR, venue VARCHAR)
### Question:
Which Opposition has a Year smaller than 1911, and a Venue of old trafford?
### Answer:
SELECT opposition FROM table_name_51 WHERE year < 1911 AND venue = "old trafford" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23483182_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### Question:
What was the air date where there were 5.72 million viewers?
### Answer:
SELECT original_air_date FROM table_23483182_1 WHERE us_viewers__million_ = "5.72" |
Below is an context that describes a sql 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 (best_score INTEGER, dance VARCHAR)
### Question:
What is the highest Best score for the Dance Mambo?
### Answer:
SELECT MAX(best_score) FROM table_name_47 WHERE dance = "mambo" |
Below is an context that describes a sql 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 (time_elapsed VARCHAR, launched VARCHAR, closest_approach VARCHAR)
### Question:
What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?
### Answer:
SELECT time_elapsed FROM table_name_52 WHERE launched = "15 october 1997" AND closest_approach = "24 june 1999" |
Below is an context that describes a sql 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 (game VARCHAR, genre VARCHAR)
### Question:
Which game was a Platformer?
### Answer:
SELECT game FROM table_name_90 WHERE genre = "platformer" |
Below is an context that describes a sql 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 (lost INTEGER, goals_against VARCHAR, points VARCHAR)
### Question:
How many losses have 222 as the goals against, with points greater than 78?
### Answer:
SELECT SUM(lost) FROM table_name_24 WHERE goals_against = 222 AND points > 78 |
Below is an context that describes a sql 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 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR)
### Question:
Which race had a distance of 4 miles where the runner-up was not known?
### Answer:
SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR)
### Question:
What joined year does Dropped Athletics have?
### Answer:
SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = "Dropped athletics" |
Below is an context that describes a sql 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 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
### Question:
What is the number of electorates when the name is badnawar?
### Answer:
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18752986_1 (first_season VARCHAR, home_ground_s_ VARCHAR)
### Question:
What is the dates where Hillcrest Reserve is the home grounds?
### Answer:
SELECT first_season FROM table_18752986_1 WHERE home_ground_s_ = "Hillcrest Reserve" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE race (name VARCHAR, CLASS VARCHAR, date VARCHAR)
### Question:
Show name, class, and date for all races.
### Answer:
SELECT name, CLASS, date FROM race |
Below is an context that describes a sql 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 (engine VARCHAR, rounds VARCHAR, teams VARCHAR)
### Question:
Name the engine with rounds of 11 and teams of 25
### Answer:
SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "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_15700367_4 (wickets VARCHAR, overs_bowled VARCHAR)
### Question:
Name the wickets when overs bowled is 9
### Answer:
SELECT wickets FROM table_15700367_4 WHERE overs_bowled = "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_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)
### Question:
What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?
### Answer:
SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz" |
Below is an context that describes a sql 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 (player VARCHAR, to_par VARCHAR, score VARCHAR)
### Question:
Who had a to par of +2 and a score of 78-69-68=215?
### Answer:
SELECT player FROM table_name_22 WHERE to_par = "+2" AND score = 78 - 69 - 68 = 215 |
Below is an context that describes a sql 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 (host_city VARCHAR, venue VARCHAR, theme VARCHAR)
### Question:
What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme?
### Answer:
SELECT host_city FROM table_name_24 WHERE venue = "singapore indoor stadium" AND theme = "valentine's day" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16384648_2 (joined_tschl INTEGER)
### Question:
What's the earliest year anybody joined the hockey league?
### Answer:
SELECT MIN(joined_tschl) FROM table_16384648_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_84 (diff INTEGER, played INTEGER)
### Question:
What is the average diff when games played are more than 6?
### Answer:
SELECT AVG(diff) FROM table_name_84 WHERE played > 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_56 (long VARCHAR, avg_g VARCHAR)
### Question:
For the Avg/G of 5.9, what was the long?
### Answer:
SELECT long FROM table_name_56 WHERE avg_g = "5.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_95 (season INTEGER, position VARCHAR)
### Question:
What is the average of seasons for 10th place finishes?
### Answer:
SELECT AVG(season) FROM table_name_95 WHERE position = "10th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
### Question:
Show names of actors and names of musicals they are in.
### Answer:
SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_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_69 (record VARCHAR, score VARCHAR)
### Question:
Which Record has a Score of 111–101?
### Answer:
SELECT record FROM table_name_69 WHERE score = "111–101" |
Below is an context that describes a sql 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 (pre_season INTEGER, a_league VARCHAR, finals VARCHAR)
### Question:
Which Pre-Season has a A-League of 0 1, and a Finals larger than 0?
### Answer:
SELECT MIN(pre_season) FROM table_name_4 WHERE a_league = "0 1" AND finals > 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 employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)
### Question:
display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.
### Answer:
SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%') |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29704430_1 (stolen_ends INTEGER)
### Question:
What is the most stolen ends?
### Answer:
SELECT MAX(stolen_ends) FROM table_29704430_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_2668401_17 (first_elected VARCHAR, result VARCHAR)
### Question:
When was the incumbent first elected in the district where the result was a democratic-republican gain?
### Answer:
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE AIRLINES (Airline VARCHAR, Abbreviation VARCHAR)
### Question:
Which airline has abbreviation 'UAL'?
### Answer:
SELECT Airline FROM AIRLINES WHERE Abbreviation = "UAL" |
Below is an context that describes 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_for_hire (product_type_code VARCHAR)
### Question:
How many different product types are there?
### Answer:
SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17503169_1 (democratic VARCHAR, republican VARCHAR)
### Question:
Who was the democratic candidate when the republican was frank wolf?
### Answer:
SELECT democratic FROM table_17503169_1 WHERE republican = "Frank Wolf" |
Below is an context that describes a sql 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 (champion VARCHAR, llws VARCHAR, city VARCHAR)
### Question:
Which champion has a Group Stage LLWS in Russellville?
### Answer:
SELECT champion FROM table_name_16 WHERE llws = "group stage" AND city = "russellville" |
Below is an context that describes a sql 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 (erp_w INTEGER, call_sign VARCHAR)
### Question:
What is the highest ERP W of the translator with a call sign of w284av?
### Answer:
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av" |
Below is an context that describes a sql 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 (years VARCHAR, name VARCHAR)
### Question:
Name the years for elsthorpe school
### Answer:
SELECT years FROM table_name_78 WHERE name = "elsthorpe school" |
Below is an context that describes a sql 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 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)
### Question:
When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?
### Answer:
SELECT time_retired FROM table_name_94 WHERE manufacturer = "kawasaki" AND rider = "garry mccoy" |
Below is an context that describes a sql 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 (events INTEGER, tournament VARCHAR, wins VARCHAR)
### Question:
During the PGA Championship, what's the lowest amount of events with wins greater than 0?
### Answer:
SELECT MIN(events) FROM table_name_10 WHERE tournament = "pga championship" 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_52 (opinionway_5_18_09 VARCHAR, ipsos_5_16_09 VARCHAR)
### Question:
Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?
### Answer:
SELECT opinionway_5_18_09 FROM table_name_52 WHERE ipsos_5_16_09 = "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_15 (date VARCHAR, score VARCHAR, competition VARCHAR)
### Question:
What is the Date of the Fifa World Cup with a Score of 1-0?
### Answer:
SELECT date FROM table_name_15 WHERE score = "1-0" AND competition = "fifa world cup" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21649285_2 (no VARCHAR, tournament VARCHAR)
### Question:
How many tournaments were at sime darby lpga malaysia?
### Answer:
SELECT COUNT(no) FROM table_21649285_2 WHERE tournament = "Sime Darby LPGA Malaysia" |
Below is an context that describes a sql 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 (tonnage_grt VARCHAR, type VARCHAR, date VARCHAR)
### Question:
what is the total tonnage grt of the cargo ship(s) sunk or captured on 4 feb 16?
### Answer:
SELECT COUNT(tonnage_grt) FROM table_name_94 WHERE type = "cargo ship" AND date = "4 feb 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_74 (goals_for INTEGER, goals_against VARCHAR, team VARCHAR, position VARCHAR, lost VARCHAR)
### Question:
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
### Answer:
SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = "matlock town" AND goals_against > 79 |
Below is an context that describes a sql 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 (tournament VARCHAR, location VARCHAR)
### Question:
What tournament was located in Colorado?
### Answer:
SELECT tournament FROM table_name_5 WHERE location = "colorado" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25058562_2 (birth_date VARCHAR, height VARCHAR, nationality VARCHAR, position VARCHAR)
### Question:
Name the birth date for estonia for spiker and height of 189
### Answer:
SELECT birth_date FROM table_25058562_2 WHERE nationality = "Estonia" AND position = "Spiker" AND height = 189 |
Below is an context that describes a sql 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 (result_f___a VARCHAR, h___a VARCHAR)
### Question:
What was the result of the game played in hurst?
### Answer:
SELECT result_f___a FROM table_name_39 WHERE h___a = "hurst" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14003020_5 (team VARCHAR, stadium VARCHAR)
### Question:
what's the team with stadium being glebe park
### Answer:
SELECT team FROM table_14003020_5 WHERE stadium = "Glebe Park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (constructor VARCHAR, driver VARCHAR)
### Question:
who is the constructor when the driver is jenson button?
### Answer:
SELECT constructor FROM table_name_55 WHERE driver = "jenson button" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE trip (start_station_id VARCHAR, start_station_name VARCHAR)
### Question:
Find the ids and names of stations from which at least 200 trips started.
### Answer:
SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2791668_1 (title VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
### Question:
what is the name of the episode whose director is Michael Pressman and the number of that episode in that season is less than 10.0?
### Answer:
SELECT title FROM table_2791668_1 WHERE directed_by = "Michael Pressman" AND no_in_season < 10.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_9 (name VARCHAR, qual_2 VARCHAR)
### Question:
Who had a second qualification time of 1:01.777?
### Answer:
SELECT name FROM table_name_9 WHERE qual_2 = "1:01.777" |
Below is an context that describes a sql 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 (ihsaa_class VARCHAR, county INTEGER)
### Question:
What is the IHSAA class of the county that is less than 228?
### Answer:
SELECT ihsaa_class FROM table_name_71 WHERE county < 228 |
Below is an context that describes a sql 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 (date VARCHAR, tournament VARCHAR)
### Question:
what is the date of the tournament in michalovce
### Answer:
SELECT date FROM table_name_74 WHERE tournament = "michalovce" |
Below is an context that describes a sql 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 (kickoff_time VARCHAR, week VARCHAR)
### Question:
What was the kickoff time on week 1?
### Answer:
SELECT kickoff_time FROM table_name_53 WHERE week = 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_64 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
### Question:
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?
### Answer:
SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85 |
Below is an context that describes a sql 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 (week VARCHAR, attendance VARCHAR)
### Question:
What week were there 56,023 people in attendance?
### Answer:
SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023 |
Below is an context that describes a sql 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 (nationality VARCHAR, college_country_team VARCHAR)
### Question:
What is the nationality of the player who went to college at Mississippi?
### Answer:
SELECT nationality FROM table_name_74 WHERE college_country_team = "mississippi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22879323_9 (high_points VARCHAR, location_attendance VARCHAR)
### Question:
Name the number of high points for ford center
### Answer:
SELECT COUNT(high_points) FROM table_22879323_9 WHERE location_attendance = "Ford Center" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23014476_1 (bush__percentage VARCHAR, county VARCHAR)
### Question:
Name the number of bush % for elko
### Answer:
SELECT COUNT(bush__percentage) FROM table_23014476_1 WHERE county = "Elko" |
Below is an context that describes a sql 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 (outcome VARCHAR, date VARCHAR)
### Question:
What was the outcome of the match on August 20, 1978?
### Answer:
SELECT outcome FROM table_name_53 WHERE date = "august 20, 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_22839669_1 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
### Question:
Who is the opponent in the match with final score 3–6, 4–6, 7–5, 4–6?
### Answer:
SELECT opponent_in_the_final FROM table_22839669_1 WHERE score_in_the_final = "3–6, 4–6, 7–5, 4–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_83 (player VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR)
### Question:
What player from the United States played for the Grizzlies from 1997-1998?
### Answer:
SELECT player FROM table_name_83 WHERE nationality = "united states" AND years_for_grizzlies = "1997-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_18600760_10 (geo_id INTEGER, water__sqmi_ VARCHAR)
### Question:
What is the geo ID for the township with 0.771 square miles of water?
### Answer:
SELECT MAX(geo_id) FROM table_18600760_10 WHERE water__sqmi_ = "0.771" |
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What is the 1981 value at the Tournament of Wimbledon?
### Answer:
SELECT 1981 FROM table_name_97 WHERE tournament = "wimbledon" |
Below is an context that describes a sql 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 (constructor VARCHAR, location VARCHAR)
### Question:
Who was the Long Beach constructor?
### Answer:
SELECT constructor FROM table_name_24 WHERE location = "long beach" |
Below is an context that describes a sql 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 (doctor VARCHAR, title VARCHAR)
### Question:
Which Doctor is featured in City of Death?
### Answer:
SELECT doctor FROM table_name_69 WHERE title = "city of death" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (unit VARCHAR, novelty VARCHAR)
### Question:
What unit has gen et sp nov as the novelty?
### Answer:
SELECT unit FROM table_name_51 WHERE novelty = "gen et sp nov" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22771048_4 (city_neighborhood VARCHAR, station VARCHAR)
### Question:
How many neighborhoods have a station proposed at a Hospital?
### Answer:
SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = "Hospital" |
Below is an context that describes a sql 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 (date VARCHAR, game VARCHAR)
### Question:
On what day was game 2 played?
### Answer:
SELECT date FROM table_name_56 WHERE game = 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (date VARCHAR, opponents_in_the_final VARCHAR)
### Question:
What is the date when the opponent in the final is gastón etlis martín rodríguez?
### Answer:
SELECT date FROM table_name_22 WHERE opponents_in_the_final = "gastón etlis martín rodríguez" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, nationality VARCHAR, id VARCHAR)
### Question:
Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time.
### Answer:
SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_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_24706337_1 (victor VARCHAR, name_of_the_war VARCHAR)
### Question:
How many victors where there in the War of 1730–1736 , first stage?
### Answer:
SELECT COUNT(victor) FROM table_24706337_1 WHERE name_of_the_war = "War of 1730–1736 , first stage" |
Below is an context that describes a sql 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 (city VARCHAR, name VARCHAR)
### Question:
Name the city for athous lavrensis
### Answer:
SELECT city FROM table_name_22 WHERE name = "athous lavrensis" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE employee (Id VARCHAR)
### Question:
Find the total number of employees.
### Answer:
SELECT COUNT(*) FROM employee |
Below is an context that describes a sql 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 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
### Question:
How many values for decile occur in Mount Roskill with Monte Cecilia school with a roll greater than 170?
### Answer:
SELECT COUNT(decile) FROM table_name_33 WHERE area = "mount roskill" AND name = "monte cecilia school" AND roll > 170 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (week INTEGER, attendance VARCHAR)
### Question:
In what Week was the Attendance 49,097?
### Answer:
SELECT AVG(week) FROM table_name_51 WHERE attendance = "49,097" |
Below is an context that describes a sql 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 (drawn INTEGER, name VARCHAR, position VARCHAR)
### Question:
what is the least drawn when the name is sv apfeldorf and the position is more than 8?
### Answer:
SELECT MIN(drawn) FROM table_name_94 WHERE name = "sv apfeldorf" AND position > 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR)
### Question:
What are the first names and date of birth of professors teaching course ACCT-211?
### Answer:
SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211" |
Below is an context that describes a sql 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 (result VARCHAR, distance VARCHAR)
### Question:
What was the result of the race that was a 2000m distance?
### Answer:
SELECT result FROM table_name_57 WHERE distance = "2000m" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR)
### Question:
What pick number was marc deschamps?
### Answer:
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR)
### Question:
How many different items appear in the enrollment column that joined in 1931, 1949 1?
### Answer:
SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 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_64 (status VARCHAR, founded VARCHAR)
### Question:
What is the status of the institution that was founded in 1996?
### Answer:
SELECT status FROM table_name_64 WHERE founded = 1996 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Sections (section_name VARCHAR)
### Question:
List the section_name in reversed lexicographical order.
### Answer:
SELECT section_name FROM Sections ORDER BY section_name DESC |
Below is an context that describes a sql 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 (goals INTEGER, club VARCHAR, games VARCHAR)
### Question:
What is the average Goals, when Club is Iserlohn Roosters, and when Games is less than 56?
### Answer:
SELECT AVG(goals) FROM table_name_45 WHERE club = "iserlohn roosters" AND games < 56 |
Below is an context that describes a sql 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 (country VARCHAR, total VARCHAR, finish VARCHAR)
### Question:
What country had a total less than 291 and a 4 Finish?
### Answer:
SELECT country FROM table_name_24 WHERE total < 291 AND finish = "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_46 (transfer_window VARCHAR, moving_from VARCHAR)
### Question:
What is the transfer window for the moving from of São Paulo?
### Answer:
SELECT transfer_window FROM table_name_46 WHERE moving_from = "são paulo" |
Below is an context that describes a sql 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 (bronze VARCHAR, rank VARCHAR)
### Question:
How many bronze medals does the nation ranked number 1 have?
### Answer:
SELECT bronze FROM table_name_80 WHERE rank = "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_11713303_2 (replaced_by VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
### Question:
How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?
### Answer:
SELECT COUNT(replaced_by) FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit" |
Below is an context that describes a sql 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 (category VARCHAR, recipients_and_nominees VARCHAR)
### Question:
For which Category was Outstanding Main Title Design a Recipient and nominee?
### Answer:
SELECT category FROM table_name_71 WHERE recipients_and_nominees = "outstanding main title design" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE student_course_registrations (student_id VARCHAR, registration_date VARCHAR); CREATE TABLE students (student_details VARCHAR, student_id VARCHAR)
### Question:
What is detail of the student who most recently registered course?
### Answer:
SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13477468_3 (original_air_date VARCHAR, directed_by VARCHAR)
### Question:
What is the original air date of the episode directed by Jeff Melman?
### Answer:
SELECT original_air_date FROM table_13477468_3 WHERE directed_by = "Jeff Melman" |
Below is an context that describes a sql 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 (country VARCHAR, score VARCHAR)
### Question:
Name the country with a score of 69-71=140.
### Answer:
SELECT country FROM table_name_33 WHERE score = 69 - 71 = 140 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR, max_cable_length__m_ VARCHAR)
### Question:
Name the power provided where transfer speed mb/s is 300 and max cable length of 10
### Answer:
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "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_10361625_1 (player_name VARCHAR, position VARCHAR, college VARCHAR)
### Question:
What is the name of the linebacker at Illinois college?
### Answer:
SELECT player_name FROM table_10361625_1 WHERE position = "Linebacker" AND college = "Illinois" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26352332_4 (years_produced VARCHAR, engine_family VARCHAR)
### Question:
For the engine family MaxxForce 11, what is the years produced?
### Answer:
SELECT years_produced FROM table_26352332_4 WHERE engine_family = "MaxxForce 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_30 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)
### Question:
What is the points difference for a loss less than 6, and points less than 11?
### Answer:
SELECT points_difference FROM table_name_30 WHERE lost < 6 AND points < 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_40 (status VARCHAR, name VARCHAR)
### Question:
What is the status of the pterosaur named Cathayopterus?
### Answer:
SELECT status FROM table_name_40 WHERE name = "cathayopterus" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR)
### Question:
Name the brand for pick number 15
### Answer:
SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 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_23 (location VARCHAR, method VARCHAR)
### Question:
At what Location was the match Method TKO (punches)?
### Answer:
SELECT location FROM table_name_23 WHERE method = "tko (punches)" |
Below is an context that describes a sql 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 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)
### Question:
What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?
### Answer:
SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50 |
Below is an context that describes a sql 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 (segment_a VARCHAR, segment_d VARCHAR)
### Question:
Which items in segment A have a segment D of marble sculptures?
### Answer:
SELECT segment_a FROM table_name_34 WHERE segment_d = "marble sculptures" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28243691_1 (enrollment INTEGER, institution VARCHAR)
### Question:
What was the highest number of students in attendance for the university of north texas?
### Answer:
SELECT MAX(enrollment) FROM table_28243691_1 WHERE institution = "University of North Texas" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.