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_85 (nominated_work VARCHAR, year INTEGER)
### Question:
What was the Nominated Work earlier than 2003?
### Answer:
SELECT nominated_work FROM table_name_85 WHERE year < 2003 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE jobs (job_title VARCHAR, max_salary INTEGER, min_salary VARCHAR)
### Question:
display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.
### Answer:
SELECT job_title, max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000 |
Below is an context that describes a sql 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 (position VARCHAR, first_election VARCHAR)
### Question:
What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
### Answer:
SELECT position FROM table_name_64 WHERE first_election = "1988 as vice mayor 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_name_78 (memory VARCHAR, part_number_s_ VARCHAR)
### Question:
What is the memory for ct80618005844ab?
### Answer:
SELECT memory FROM table_name_78 WHERE part_number_s_ = "ct80618005844ab" |
Below is an context that describes a sql 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 (location_attendance VARCHAR, game VARCHAR)
### Question:
What Location Attendance has a Game of 14?
### Answer:
SELECT location_attendance FROM table_name_91 WHERE game = "14" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (position VARCHAR, venue VARCHAR)
### Question:
What was the position at the venue of lyon?
### Answer:
SELECT position FROM table_name_71 WHERE venue = "lyon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE product (pages_per_minute_color INTEGER)
### Question:
What is the average pages per minute color?
### Answer:
SELECT AVG(pages_per_minute_color) FROM product |
Below is an context that describes a sql 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 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
### Question:
What is the Original name of empire of passion?
### Answer:
SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = "empire of passion" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15893020_2 (average VARCHAR)
### Question:
What is the highest number of 5w when there was a 21.33 average?
### Answer:
SELECT MAX(5 AS w) FROM table_15893020_2 WHERE average = "21.33" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14877831_2 (first_downs INTEGER, attendance VARCHAR)
### Question:
How many first downs were there when the attendance was 13196?
### Answer:
SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196 |
Below is an context that describes a sql 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 (date VARCHAR, circumstances VARCHAR)
### Question:
What was the date of natural cause situation?
### Answer:
SELECT date FROM table_name_12 WHERE circumstances = "natural cause" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
### Question:
How many professors who are from either Accounting or Biology department?
### Answer:
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (season VARCHAR, points VARCHAR, races VARCHAR)
### Question:
What season had less than 301 points and 17 races?
### Answer:
SELECT season FROM table_name_28 WHERE points < 301 AND races = 17 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (laps INTEGER, time_retired VARCHAR)
### Question:
What is the sum of laps that has a time/retired that is +19.475?
### Answer:
SELECT SUM(laps) FROM table_name_6 WHERE time_retired = "+19.475" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR)
### Question:
Name the studio analysts for espn with erin andrews and tom rinaldi
### Answer:
SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE stock (Carrier VARCHAR, Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)
### Question:
List the carriers of devices that have no devices in stock.
### Answer:
SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock) |
Below is an context that describes a sql 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 (place VARCHAR, country VARCHAR)
### Question:
What is the place of Australia?
### Answer:
SELECT place FROM table_name_46 WHERE 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 table_name_57 (home VARCHAR, date VARCHAR)
### Question:
Who was the home team on March 24?
### Answer:
SELECT home FROM table_name_57 WHERE date = "march 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 Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)
### Question:
What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
### Answer:
SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17505751_5 (Champions VARCHAR, position VARCHAR, league VARCHAR)
### Question:
In the Champions league is the forward position smaller than 6.0
### Answer:
SELECT COUNT(Champions) AS league FROM table_17505751_5 WHERE position = "Forward" AND league < 6.0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (game_site VARCHAR, record VARCHAR)
### Question:
Which game site(s) had record of 2-2?
### Answer:
SELECT game_site FROM table_name_58 WHERE record = "2-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_17766232_7 (year_s_ INTEGER, spokesperson VARCHAR)
### Question:
What was the latest year that Colin Berry was the spokesperson?
### Answer:
SELECT MAX(year_s_) FROM table_17766232_7 WHERE spokesperson = "Colin Berry" |
Below is an context that describes a sql 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 (set_3 VARCHAR, time VARCHAR, set_2 VARCHAR)
### Question:
Which Set 3 has a Time of 10:00, and a Set 2 of 25–19?
### Answer:
SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–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_name_55 (ground VARCHAR, home_team VARCHAR)
### Question:
What was the Home team Carlton's Ground?
### Answer:
SELECT ground FROM table_name_55 WHERE home_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)
### Question:
What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner?
### Answer:
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Fujitsu fi-6130 A4 Series Scanner" |
Below is an context that describes a sql 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 (rank VARCHAR, rider VARCHAR)
### Question:
What ran has noel patterson as the rider?
### Answer:
SELECT rank FROM table_name_40 WHERE rider = "noel patterson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_104858_1 (country VARCHAR, year_current_scouting_organization_joined_wosm VARCHAR, year_member_organization_was_founded VARCHAR)
### Question:
Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?
### Answer:
SELECT country FROM table_104858_1 WHERE year_current_scouting_organization_joined_wosm = "1930" AND year_member_organization_was_founded = "1926" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23239946_3 (starts INTEGER)
### Question:
How many starts are there?
### Answer:
SELECT MIN(starts) FROM table_23239946_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 ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, rank VARCHAR)
### Question:
Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.
### Answer:
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR)
### Question:
Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?
### Answer:
SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix" |
Below is an context that describes a sql 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 (artist_s_ VARCHAR, team_s_ VARCHAR)
### Question:
Who is the artist of the Seattle Seahawks track?
### Answer:
SELECT artist_s_ FROM table_name_39 WHERE team_s_ = "seattle seahawks" |
Below is an context that describes a sql 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 (location VARCHAR, method VARCHAR)
### Question:
Where was the match with a method of submission (standing guillotine choke)?
### Answer:
SELECT location FROM table_name_92 WHERE method = "submission (standing guillotine choke)" |
Below is an context that describes a sql 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, grid VARCHAR, driver VARCHAR)
### Question:
How many laps did Jos Verstappen do on Grid 2?
### Answer:
SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR)
### Question:
What is the highest lane that has nimrod shapira bar-or as the name?
### Answer:
SELECT MAX(lane) FROM table_name_38 WHERE name = "nimrod shapira bar-or" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (japanese_name VARCHAR, korean_name_² VARCHAR)
### Question:
Which Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip?
### Answer:
SELECT japanese_name FROM table_name_8 WHERE korean_name_² = "경칩 (驚蟄) gyeongchip" |
Below is an context that describes a sql 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 (elevator VARCHAR, elector VARCHAR)
### Question:
Who was the Elevator of Giacomo Colonna?
### Answer:
SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (name VARCHAR, year VARCHAR, raceid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)
### Question:
Give me a list of names and years of races that had any driver whose forename is Lewis?
### Answer:
SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis" |
Below is an context that describes a sql 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 (laps VARCHAR, driver VARCHAR)
### Question:
what is the number of laps when the driver is ron flockhart?
### Answer:
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR)
### Question:
Show the product ids and the number of unique orders containing each product.
### Answer:
SELECT product_id, COUNT(DISTINCT order_id) FROM Order_items GROUP BY product_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_1805191_2 (party VARCHAR, incumbent VARCHAR)
### Question:
What is the party affiliation of the incumbent Robert Cramer?
### Answer:
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer" |
Below is an context that describes a sql 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 (crowd INTEGER, venue VARCHAR)
### Question:
What was the largest crowd at the Brunswick Street Oval?
### Answer:
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "brunswick street oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR)
### Question:
Name the least decile for state authority and area of eketahuna with roll more than 44
### Answer:
SELECT MIN(decile) FROM table_name_78 WHERE authority = "state" AND area = "eketahuna" AND roll > 44 |
Below is an context that describes a sql 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 (november VARCHAR, year VARCHAR, october VARCHAR)
### Question:
Who is in November after 1988 when Prinzzess is in October?
### Answer:
SELECT november FROM table_name_52 WHERE year > 1988 AND october = "prinzzess" |
Below is an context that describes a sql 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 (network VARCHAR, lap_by_lap VARCHAR)
### Question:
Which Network has Bill Weber for the Lap-by-lap?
### Answer:
SELECT network FROM table_name_90 WHERE lap_by_lap = "bill weber" |
Below is an context that describes a sql 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 (place VARCHAR, country VARCHAR)
### Question:
What place did the player from South Africa finish?
### Answer:
SELECT place FROM table_name_97 WHERE country = "south africa" |
Below is an context that describes a sql 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 (crowd VARCHAR, home_team VARCHAR)
### Question:
What was the size of the crowd when North Melbourne was the home team?
### Answer:
SELECT crowd FROM table_name_64 WHERE home_team = "north melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
### Question:
What is the nationality of the player with 2 years of NBA experience for the previously played for the Los Angeles Lakers?
### Answer:
SELECT nationality FROM table_name_23 WHERE years_of_nba_experience_[a_] = 2 AND previous_team = "los angeles lakers" |
Below is an context that describes a sql 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 (producer_s_ VARCHAR, length VARCHAR)
### Question:
Who produced the track that is 4:16 long?
### Answer:
SELECT producer_s_ FROM table_name_25 WHERE length = "4: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_89 (place VARCHAR, score VARCHAR, country VARCHAR)
### Question:
When the score is 71 and the player is from United States what is the place?
### Answer:
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states" |
Below is an context that describes a sql 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 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR)
### Question:
Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?
### Answer:
SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24620684_2 (operating_mode VARCHAR, epa_rated_combined_fuel_economy VARCHAR)
### Question:
When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there?
### Answer:
SELECT COUNT(operating_mode) FROM table_24620684_2 WHERE epa_rated_combined_fuel_economy = "87 mpg-e (39kW-hrs/100mi)" |
Below is an context that describes a sql 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 (score VARCHAR, country VARCHAR)
### Question:
What did Taiwan score?
### Answer:
SELECT score FROM table_name_1 WHERE country = "taiwan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23214055_2 (district VARCHAR, nairs VARCHAR)
### Question:
Name the district for nairs 8.2
### Answer:
SELECT district FROM table_23214055_2 WHERE nairs = "8.2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR, category VARCHAR)
### Question:
WHAT IS THE RESULT FOR 2003, IN best urban/alternative performance?
### Answer:
SELECT result FROM table_name_79 WHERE year = 2003 AND category = "best urban/alternative performance" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (township VARCHAR, latitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)
### Question:
what is the township when the land (sqmi) is more than 36.112, the geo id is higher than 3801985060 and the latitude is 46.062384?
### Answer:
SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384 |
Below is an context that describes a sql 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 (score VARCHAR, place VARCHAR, country VARCHAR)
### Question:
What Score has a Place of t8, and a Country of scotland?
### Answer:
SELECT score FROM table_name_86 WHERE place = "t8" AND country = "scotland" |
Below is an context that describes a sql 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 (goals VARCHAR, latest_cap VARCHAR)
### Question:
Latest cap of september 5, 2011 had how many goals?
### Answer:
SELECT goals FROM table_name_39 WHERE latest_cap = "september 5, 2011" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, game VARCHAR, record VARCHAR)
### Question:
Who was the opponent for game number less than 47 and a record of 24-13-4?
### Answer:
SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-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_9 (street_address VARCHAR, floors VARCHAR)
### Question:
What is the street address of the building with 5 floors?
### Answer:
SELECT street_address FROM table_name_9 WHERE floors = "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_11839306_2 (english_title VARCHAR, rōmaji_title VARCHAR)
### Question:
What is the English version of the title Getto Daun?
### Answer:
SELECT english_title FROM table_11839306_2 WHERE rōmaji_title = "Getto Daun" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27487336_1 (season VARCHAR, sacks VARCHAR)
### Question:
How many seasons have a sacks of 39?
### Answer:
SELECT COUNT(season) FROM table_27487336_1 WHERE sacks = "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_70 (home_team VARCHAR, away_team VARCHAR)
### Question:
What is the Home team at the Blackburn Rovers Away game?
### Answer:
SELECT home_team FROM table_name_70 WHERE away_team = "blackburn rovers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13758945_1 (lost VARCHAR, points_for VARCHAR)
### Question:
What are the lost where points lost is 353?
### Answer:
SELECT lost FROM table_13758945_1 WHERE points_for = "353" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28606933_7 (teams VARCHAR, consecutive_starts VARCHAR)
### Question:
What team(s) had 120 consecutive starts?
### Answer:
SELECT teams FROM table_28606933_7 WHERE consecutive_starts = 120 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE department (creation VARCHAR, name VARCHAR, budget_in_billions VARCHAR)
### Question:
List the creation year, name and budget of each department.
### Answer:
SELECT creation, name, budget_in_billions FROM department |
Below is an context that describes a sql 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 (method VARCHAR, opponent VARCHAR)
### Question:
I want to know the method for opponent of jerry bohlander
### Answer:
SELECT method FROM table_name_71 WHERE opponent = "jerry bohlander" |
Below is an context that describes a sql 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 (competition VARCHAR, date VARCHAR)
### Question:
Name the competition on august 25, 2007
### Answer:
SELECT competition FROM table_name_83 WHERE date = "august 25, 2007" |
Below is an context that describes a sql 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 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR)
### Question:
What is guido bontempi's general classification when he has a stage of 6?
### Answer:
SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (Id VARCHAR)
### Question:
WHAT IS THE 2012 WITH 2005 OF 1R?
### Answer:
SELECT 2012 FROM table_name_35 WHERE 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_88 (score VARCHAR, player VARCHAR)
### Question:
What was Fredrik Jacobson's score?
### Answer:
SELECT score FROM table_name_88 WHERE player = "fredrik jacobson" |
Below is an context that describes a sql 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 (mark VARCHAR, athlete VARCHAR)
### Question:
Which Mark has an Athlete of heike drechsler?
### Answer:
SELECT mark FROM table_name_17 WHERE athlete = "heike drechsler" |
Below is an context that describes a sql 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 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
### Question:
I want the most top 25 when events are more than 20 and top 10 is more than 21
### Answer:
SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (member VARCHAR, party VARCHAR, electorate VARCHAR)
### Question:
Who is the Member when the Party is Alp, and when the Electorate is Grey?
### Answer:
SELECT member FROM table_name_66 WHERE party = "alp" AND electorate = "grey" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
### Question:
Find the average rating star for each movie that received at least 2 ratings.
### Answer:
SELECT mID, AVG(stars) FROM Rating GROUP BY mID HAVING COUNT(*) >= 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27666856_3 (team VARCHAR, position_in_table VARCHAR)
### Question:
Name the number of team for 19th position
### Answer:
SELECT COUNT(team) FROM table_27666856_3 WHERE position_in_table = "19th" |
Below is an context that describes a sql 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 (series_9 VARCHAR, series_2 VARCHAR)
### Question:
Who in series 9 corresponds to Peter Jones in series 2?
### Answer:
SELECT series_9 FROM table_name_55 WHERE series_2 = "peter jones" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_226619_12 (pos INTEGER, club VARCHAR)
### Question:
Name the pos for west ham united
### Answer:
SELECT MIN(pos) FROM table_226619_12 WHERE club = "West Ham United" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15088557_1 (stage VARCHAR, winner VARCHAR)
### Question:
In how many stages did Jose Vicente Garcia Acosta won?
### Answer:
SELECT COUNT(stage) FROM table_15088557_1 WHERE winner = "Jose Vicente Garcia Acosta" |
Below is an context that describes a sql 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 (drawn VARCHAR, points_against VARCHAR)
### Question:
What is Drawn, when Points Against is "686"?
### Answer:
SELECT drawn FROM table_name_34 WHERE points_against = "686" |
Below is an context that describes a sql 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 (race_4 VARCHAR, race_1 VARCHAR)
### Question:
What's the value for race 4 when race 1 is dsq?
### Answer:
SELECT race_4 FROM table_name_76 WHERE race_1 = "dsq" |
Below is an context that describes a sql 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 (producer_s_ VARCHAR, track VARCHAR)
### Question:
Who produced track 7?
### Answer:
SELECT producer_s_ FROM table_name_7 WHERE track = 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_41 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
### Question:
Which Laps have a Time/Retired of +23.215, and a Grid larger than 11?
### Answer:
SELECT MIN(laps) FROM table_name_41 WHERE time_retired = "+23.215" AND grid > 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_29 (draws VARCHAR, points VARCHAR, position VARCHAR)
### Question:
What is the amount of Draws for the game that had a score of 45+7 and a position below 3?
### Answer:
SELECT COUNT(draws) FROM table_name_29 WHERE points = "45+7" AND position < 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 (name VARCHAR, first_elected VARCHAR, district VARCHAR)
### Question:
Tell me the name for first elected more than 1988 and district of mason
### Answer:
SELECT name FROM table_name_4 WHERE first_elected > 1988 AND district = "mason" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (visitor VARCHAR, leading_scorer VARCHAR)
### Question:
What is the Visitor with a Leading scorer with rudy gay (24)?
### Answer:
SELECT visitor FROM table_name_28 WHERE leading_scorer = "rudy gay (24)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (finish VARCHAR, year_s__won VARCHAR)
### Question:
What is Finish, when Year(s) Won is "1991"?
### Answer:
SELECT finish FROM table_name_6 WHERE year_s__won = "1991" |
Below is an context that describes a sql 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 (band VARCHAR, frequency VARCHAR, area_served VARCHAR)
### Question:
What Band has a Frequency of 0 99.7 in the Area of Newcastle?
### Answer:
SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle" |
Below is an context that describes a sql 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 (opponent VARCHAR, score VARCHAR)
### Question:
What Opponent has a Score that is 1-6, 3-6?
### Answer:
SELECT opponent FROM table_name_57 WHERE score = "1-6, 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_1342249_11 (party VARCHAR, incumbent VARCHAR)
### Question:
How many parties does incumbent stephen pace represent?
### Answer:
SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Stephen Pace" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341577_43 (candidates VARCHAR, incumbent VARCHAR)
### Question:
How many candidates are listed all together for the incumbent named bob clement?
### Answer:
SELECT COUNT(candidates) FROM table_1341577_43 WHERE incumbent = "Bob Clement" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25017530_5 (college VARCHAR, player VARCHAR)
### Question:
Name the college for nate binder
### Answer:
SELECT college FROM table_25017530_5 WHERE player = "Nate Binder" |
Below is an context that describes a sql 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 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
### Question:
Which district has a retired republican hold and an incumbent of rufus p. spalding?
### Answer:
SELECT district FROM table_name_67 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding" |
Below is an context that describes a sql 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 (pick VARCHAR, year VARCHAR)
### Question:
What was the pick in 2004?
### Answer:
SELECT pick FROM table_name_24 WHERE year = 2004 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (losses INTEGER, draws VARCHAR, byes VARCHAR)
### Question:
What is the lowest draw that is greater than 0 and byes greater than 0?
### Answer:
SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 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_24565004_22 (nationality² VARCHAR, name VARCHAR)
### Question:
What country is Pierre Vermeulen from?
### Answer:
SELECT nationality² FROM table_24565004_22 WHERE name = "Pierre Vermeulen" |
Below is an context that describes a sql 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 (start VARCHAR, engine VARCHAR, year VARCHAR)
### Question:
What is the start of Offy engine and in 1972?
### Answer:
SELECT start FROM table_name_76 WHERE engine = "offy" AND year = 1972 |
Below is an context that describes a sql 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 (winner VARCHAR, stage VARCHAR)
### Question:
What was the Winner of the SS5 Stage?
### Answer:
SELECT winner FROM table_name_54 WHERE stage = "ss5" |
Below is an context that describes a sql 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 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
### Question:
What is the Results¹ that was a friendly game and played on June 25?
### Answer:
SELECT results¹ FROM table_name_12 WHERE type_of_game = "friendly" AND date = "june 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 Owners (state VARCHAR); CREATE TABLE Professionals (state VARCHAR)
### Question:
Which states have both owners and professionals living there?
### Answer:
SELECT state FROM Owners INTERSECT SELECT state FROM Professionals |
Below is an context that describes a sql 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 (home VARCHAR, visitor VARCHAR, date VARCHAR)
### Question:
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?
### Answer:
SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.