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_17 (premiers VARCHAR, details VARCHAR)
### Question:
Which premier team played the 1951 NSWRFL Grand Final?
### Answer:
SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final"
|
Below is an context that describes a sql 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 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR)
### Question:
What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?
### Answer:
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24600706_1 (us_exclusive VARCHAR, artist_band VARCHAR)
### Question:
Name the us exclusive for miley cyrus
### Answer:
SELECT us_exclusive FROM table_24600706_1 WHERE artist_band = "Miley Cyrus"
|
Below is an context that describes a sql 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 (no_of_channels VARCHAR, transmission VARCHAR, provider VARCHAR)
### Question:
How many analogue satellite channels does Sky [Analogue] have?
### Answer:
SELECT no_of_channels FROM table_name_87 WHERE transmission = "analogue satellite" AND provider = "sky [analogue]"
|
Below is an context that describes a sql 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 (country VARCHAR, tournament VARCHAR)
### Question:
For the Indian Wells Masters tournament, what was the country?
### Answer:
SELECT country FROM table_name_96 WHERE tournament = "indian wells 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_75 (unit VARCHAR, construction_start VARCHAR)
### Question:
Construction start of 1 december 1984 is what unit?
### Answer:
SELECT unit FROM table_name_75 WHERE construction_start = "1 december 1984"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11545282_11 (position VARCHAR, nationality VARCHAR)
### Question:
Name the position of Turkey
### Answer:
SELECT position FROM table_11545282_11 WHERE nationality = "Turkey"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1965650_3 (nhl_team VARCHAR, player VARCHAR)
### Question:
Name the nhl times for jeff jacques
### Answer:
SELECT nhl_team FROM table_1965650_3 WHERE player = "Jeff Jacques"
|
Below is an context that describes a sql 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 (date VARCHAR, home_team VARCHAR)
### Question:
On what date did the match where fitzroy was the home team occur?
### Answer:
SELECT date FROM table_name_90 WHERE home_team = "fitzroy"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR)
### Question:
Find all the campuses opened in 1958.
### Answer:
SELECT campus FROM campuses WHERE YEAR = 1958
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_178408_1 (location_of_the_church VARCHAR, church_name VARCHAR)
### Question:
Name the location of the church for berle kyrkje
### Answer:
SELECT location_of_the_church FROM table_178408_1 WHERE church_name = "Berle kyrkje"
|
Below is an context that describes a sql 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 (round VARCHAR, overall VARCHAR)
### Question:
Name the round having an overall of 6
### Answer:
SELECT round FROM table_name_84 WHERE overall = 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_16048129_5 (number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR)
### Question:
How many total families are there in regions with 5.8 percent of the population being made up of deportees?
### Answer:
SELECT COUNT(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = "5.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 table_name_50 (crowd INTEGER, venue VARCHAR)
### Question:
What was the crowd numbers when the VFL played Victoria Park?
### Answer:
SELECT SUM(crowd) FROM table_name_50 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_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR)
### Question:
For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?
### Answer:
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 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 table_25517718_3 (position VARCHAR, player VARCHAR)
### Question:
What position does Boggs play?
### Answer:
SELECT position FROM table_25517718_3 WHERE player = "Boggs"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26218124_1 (original_club VARCHAR, name VARCHAR)
### Question:
Which club was originally named hapoel katamon jerusalem f.c.?
### Answer:
SELECT original_club FROM table_26218124_1 WHERE name = "Hapoel Katamon Jerusalem F.C."
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER)
### Question:
Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.
### Answer:
SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 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_16 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
### Question:
What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10?
### Answer:
SELECT call_sign FROM table_name_16 WHERE frequency_mhz < 95.5 AND erp_w > 10
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (notes VARCHAR, shirt_printing VARCHAR, year VARCHAR)
### Question:
What are the notes for the shirt that said Pavv before 2005?
### Answer:
SELECT notes FROM table_name_57 WHERE shirt_printing = "pavv" AND year < 2005
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (home_team VARCHAR)
### Question:
What is Fitzroy's Home team score?
### Answer:
SELECT home_team AS score FROM table_name_60 WHERE home_team = "fitzroy"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341663_19 (district VARCHAR, incumbent VARCHAR)
### Question:
What district did Dave Treen serve?
### Answer:
SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen"
|
Below is an context that describes a sql 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 (week VARCHAR, winners VARCHAR)
### Question:
In what Week was Serena Williams 6–1, 6–7(7), 6–3 the Winner?
### Answer:
SELECT week FROM table_name_65 WHERE winners = "serena williams 6–1, 6–7(7), 6–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_62 (attendance VARCHAR, date VARCHAR)
### Question:
What was the attendance on November 1, 1942?
### Answer:
SELECT COUNT(attendance) FROM table_name_62 WHERE date = "november 1, 1942"
|
Below is an context that describes a sql 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 (legs VARCHAR, year INTEGER)
### Question:
what is the legs when the year is earlier than 2009?
### Answer:
SELECT legs FROM table_name_8 WHERE year < 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_61 (venue VARCHAR, result VARCHAR, date VARCHAR)
### Question:
What is the venue of the match with a w result on 3 March 2010?
### Answer:
SELECT venue FROM table_name_61 WHERE result = "w" AND date = "3 march 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_65 (player VARCHAR, placing VARCHAR)
### Question:
Who is the player in 20th place?
### Answer:
SELECT player FROM table_name_65 WHERE placing = "20th place"
|
Below is an context that describes a sql 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 (grid INTEGER, laps VARCHAR)
### Question:
I want the highest grid for Laps of 38
### Answer:
SELECT MAX(grid) FROM table_name_94 WHERE laps = 38
|
Below is an context that describes 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_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
### Question:
What are the name, phone number and email address of the customer who made the largest number of orders?
### Answer:
SELECT T1.customer_name, T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY COUNT(*) 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_name_22 (caps VARCHAR, player VARCHAR)
### Question:
How many caps did the player Mile Sterjovski have?
### Answer:
SELECT caps FROM table_name_22 WHERE player = "mile sterjovski"
|
Below is an context that describes a sql 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 (laps VARCHAR, qual VARCHAR, rank VARCHAR, time_retired VARCHAR)
### Question:
What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
### Answer:
SELECT laps FROM table_name_40 WHERE rank > 13 AND time_retired = "accident" AND qual < 136.98
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668374_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
### Question:
What incumbent was a federalist that was first elected in 1803?
### Answer:
SELECT incumbent FROM table_2668374_18 WHERE party = "Federalist" AND first_elected = "1803"
|
Below is an context that describes a sql 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 (segment_d VARCHAR, episode VARCHAR)
### Question:
What was the D segment for episode 60?
### Answer:
SELECT segment_d FROM table_name_25 WHERE episode = 60
|
Below is an context that describes a sql 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 (cr_no INTEGER, works VARCHAR, lms_no VARCHAR)
### Question:
What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?
### Answer:
SELECT AVG(cr_no) FROM table_name_23 WHERE works = "hawthorn leslie 3100" AND lms_no < 14761
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27374004_2 (chairman VARCHAR, current_manager VARCHAR)
### Question:
Who is the chairman when the current manager is bob peeters?
### Answer:
SELECT chairman FROM table_27374004_2 WHERE current_manager = "Bob Peeters"
|
Below is an context that describes a sql 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 (displacement VARCHAR, version VARCHAR)
### Question:
I want the displacement for version of db
### Answer:
SELECT displacement FROM table_name_28 WHERE version = "db"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14465871_1 (unix_shell VARCHAR, powershell__cmdlet_ VARCHAR)
### Question:
What are the names of all unix shell with PowerShell (Cmdlet) of select-string?
### Answer:
SELECT unix_shell FROM table_14465871_1 WHERE powershell__cmdlet_ = "Select-String"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR)
### Question:
Find the first names of all customers that live in Brazil and have an invoice.
### Answer:
SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
|
Below is an context that describes a sql 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 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
### Question:
Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?
### Answer:
SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1893815_1 (release_date VARCHAR, album_number VARCHAR)
### Question:
Name the release date for album # 2nd
### Answer:
SELECT release_date FROM table_1893815_1 WHERE album_number = "2nd"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (years_member VARCHAR, school VARCHAR)
### Question:
What years does Goreville High School have members?
### Answer:
SELECT years_member FROM table_name_62 WHERE school = "goreville high 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_58 (Id VARCHAR)
### Question:
What is the 2011 when the 2007 is a, and the 2012 is sf?
### Answer:
SELECT 2011 FROM table_name_58 WHERE 2007 = "a" AND 2012 = "sf"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
### Question:
Show the account id and name with at least 4 transactions.
### Answer:
SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 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_77 (ship_type VARCHAR, name VARCHAR)
### Question:
What type of ship was the Shinano?
### Answer:
SELECT ship_type FROM table_name_77 WHERE name = "shinano"
|
Below is an context that describes a sql 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 (athlete VARCHAR, time VARCHAR)
### Question:
Who is the Athlete with a rowing Time of 6:36.05?
### Answer:
SELECT athlete FROM table_name_49 WHERE time = "6:36.05"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14310205_1 (copa_libertadores_1997 VARCHAR, team VARCHAR)
### Question:
what is the racing club where copa libertadores 1997?
### Answer:
SELECT copa_libertadores_1997 FROM table_14310205_1 WHERE team = "Racing Club"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16494599_5 (position VARCHAR, player VARCHAR)
### Question:
Which position did kevin edwards play for
### Answer:
SELECT position FROM table_16494599_5 WHERE player = "Kevin Edwards"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11677691_11 (hometown VARCHAR, school VARCHAR)
### Question:
What is the hometown of the player who attended American Heritage School?
### Answer:
SELECT hometown FROM table_11677691_11 WHERE school = "American Heritage 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_11622392_1 (location VARCHAR, purse__$__ VARCHAR)
### Question:
How many tournaments in Texas had a purse higher than 330105.1624276874?
### Answer:
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_11622392_1 WHERE location = "Texas" AND purse__$__ > 330105.1624276874
|
Below is an context that describes a sql 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 (grid INTEGER, driver VARCHAR)
### Question:
I want the lowest Grid for David Coulthard
### Answer:
SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_245801_1 (launch_date VARCHAR, crew VARCHAR)
### Question:
Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov
### Answer:
SELECT launch_date FROM table_245801_1 WHERE crew = "Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23285805_6 (high_rebounds VARCHAR, game VARCHAR)
### Question:
Who has the most rebounds for game 42?
### Answer:
SELECT high_rebounds FROM table_23285805_6 WHERE game = 42
|
Below is an context that describes 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 (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
### Question:
Find the first name of students who have both cat and dog pets .
### Answer:
SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'cat' INTERSECT SELECT t1.fname FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid JOIN pets AS t3 ON t3.petid = t2.petid WHERE t3.pettype = 'dog'
|
Below is an context that describes a sql 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 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### Question:
When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?
### Answer:
SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = "juan manuel fangio"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12165999_1 (position VARCHAR, afl_team VARCHAR)
### Question:
What position does the Cincinnati Bengals' player have?
### Answer:
SELECT position FROM table_12165999_1 WHERE afl_team = "Cincinnati Bengals"
|
Below is an context that describes a sql 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 (points INTEGER, wins INTEGER)
### Question:
What is the average points won when Carlos had 0 wins?
### Answer:
SELECT AVG(points) FROM table_name_5 WHERE wins < 0
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Instruments (instrument VARCHAR)
### Question:
What are all the instruments used?
### Answer:
SELECT DISTINCT instrument FROM Instruments
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (format VARCHAR, catalogno VARCHAR)
### Question:
Whati s the format for the catalogno of st 491?
### Answer:
SELECT format FROM table_name_26 WHERE catalogno = "st 491"
|
Below is an context that describes a sql 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 (year INTEGER, location VARCHAR, winner VARCHAR)
### Question:
WHAT YEAR WAS AT GIANTS STADIUM, WITH WINNER OF NEW YORK GIANTS?
### Answer:
SELECT MIN(year) FROM table_name_54 WHERE location = "giants stadium" AND winner = "new york giants"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (Id VARCHAR)
### Question:
what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?
### Answer:
SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 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_47 (total_produced INTEGER, model VARCHAR)
### Question:
What is the smallest total produced with a model of M-420?
### Answer:
SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420"
|
Below is an context that describes a sql 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 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR)
### Question:
What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012?
### Answer:
SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012"
|
Below is an context that describes a sql 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 (name VARCHAR)
### Question:
What is the 1.93 for Svetlana Shkolina?
### Answer:
SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"
|
Below is an context that describes a sql 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 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR)
### Question:
Where does the network Star Cricket originate?
### Answer:
SELECT origin_of_programming FROM table_name_25 WHERE genre = "cricket" AND network = "star cricket"
|
Below is an context that describes a sql 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 (attendance VARCHAR, week VARCHAR, record VARCHAR)
### Question:
What was the Attendance before Week 17 with a Record of Bye?
### Answer:
SELECT attendance FROM table_name_77 WHERE week < 17 AND record = "bye"
|
Below is an context that describes a sql 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 (pole_position VARCHAR, grand_prix VARCHAR)
### Question:
What is the pole position of the Portuguese Grand Prix?
### Answer:
SELECT pole_position FROM table_name_54 WHERE grand_prix = "portuguese 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_1341672_14 (candidates VARCHAR, district VARCHAR)
### Question:
Name the candidates for illinois 15
### Answer:
SELECT candidates FROM table_1341672_14 WHERE district = "Illinois 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_46 (location VARCHAR, team VARCHAR)
### Question:
What is the location of South Adelaide?
### Answer:
SELECT location FROM table_name_46 WHERE team = "south adelaide"
|
Below is an context that describes a sql 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 (round INTEGER, pick__number VARCHAR, position VARCHAR)
### Question:
What is the average Round, when Pick # is greater than 70, and when Position is Tackle?
### Answer:
SELECT AVG(round) FROM table_name_22 WHERE pick__number > 70 AND position = "tackle"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR)
### Question:
For which league is the open cup the quarter finals
### Answer:
SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_82 (wins INTEGER, losses VARCHAR, against VARCHAR)
### Question:
How many wins have 16 losses and an Against smaller than 3213?
### Answer:
SELECT SUM(wins) FROM table_name_82 WHERE losses = 16 AND against < 3213
|
Below is an context that describes a sql 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 (game VARCHAR, player VARCHAR)
### Question:
What game did Eoin Holohan play in?
### Answer:
SELECT game FROM table_name_69 WHERE player = "eoin holohan"
|
Below is an context that describes a sql 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 (year INTEGER, competition VARCHAR)
### Question:
What is the first year of the European Championships competition?
### Answer:
SELECT MIN(year) FROM table_name_52 WHERE competition = "european 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_24 (deed_number VARCHAR, population VARCHAR, name_of_community VARCHAR)
### Question:
What was the deed number with a population of more than 869 in the woorabinda community?
### Answer:
SELECT deed_number FROM table_name_24 WHERE population > 869 AND name_of_community = "woorabinda"
|
Below is an context that describes a sql 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 (date_of_inauguration VARCHAR, length_of_retirement VARCHAR)
### Question:
What is the date of the inauguration with a Length of retirement of 00,624 days?
### Answer:
SELECT date_of_inauguration FROM table_name_78 WHERE length_of_retirement = "00,624 days"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13845918_3 (womens_doubles VARCHAR, year VARCHAR)
### Question:
Name the number of women's doubles for 1986
### Answer:
SELECT COUNT(womens_doubles) FROM table_13845918_3 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_35 (goal_difference VARCHAR, position VARCHAR)
### Question:
What is the goal difference number with a position of 15?
### Answer:
SELECT goal_difference FROM table_name_35 WHERE position = 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_38 (winner VARCHAR, date VARCHAR)
### Question:
Who won on 28 May?
### Answer:
SELECT winner FROM table_name_38 WHERE date = "28 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_61 (draws VARCHAR, losses VARCHAR, points VARCHAR)
### Question:
What is the number of draws for the team with more than 8 losses and 13 points?
### Answer:
SELECT draws FROM table_name_61 WHERE losses > 8 AND points = 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_64 (player VARCHAR, pl_gp INTEGER)
### Question:
What player has a number of playoff games played greater than 0?
### Answer:
SELECT player FROM table_name_64 WHERE pl_gp > 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_89 (top_5 INTEGER, events VARCHAR, cuts_made VARCHAR, tournament VARCHAR)
### Question:
What is the average value for Top-5, when the value Cuts is 5, and when the tournament is the Open Championship, and when the value Events is less than 6?
### Answer:
SELECT AVG(top_5) FROM table_name_89 WHERE cuts_made = 5 AND tournament = "the open championship" AND events < 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_90 (director VARCHAR, title VARCHAR)
### Question:
What is the Director of the Film The Fugitive?
### Answer:
SELECT director FROM table_name_90 WHERE title = "the fugitive"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (name VARCHAR, station_id VARCHAR)
### Question:
Show station names without any trains.
### Answer:
SELECT name FROM station WHERE NOT station_id IN (SELECT station_id FROM train_station)
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20745759_1 (score VARCHAR, date VARCHAR)
### Question:
Name the score for march 29, 1997
### Answer:
SELECT score FROM table_20745759_1 WHERE date = "March 29, 1997"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (points_classification VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)
### Question:
What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification?
### Answer:
SELECT points_classification FROM table_name_93 WHERE young_rider_classification = "chris anker sørensen" AND general_classification = "christian vande velde"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE dorm (dorm_name VARCHAR, gender VARCHAR, student_capacity VARCHAR)
### Question:
Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.
### Answer:
SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100
|
Below is an context that describes a sql 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 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR)
### Question:
Which league cup apps has FA as the cup apps of 5?
### Answer:
SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = "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_24 (position VARCHAR, pick VARCHAR, college VARCHAR)
### Question:
What position did the player from Rice College play who was picked under 15?
### Answer:
SELECT position FROM table_name_24 WHERE pick < 15 AND college = "rice"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10848177_1 (song VARCHAR, picturization VARCHAR)
### Question:
Which song has picturization by only vijay?
### Answer:
SELECT song FROM table_10848177_1 WHERE picturization = "Vijay"
|
Below is an context that describes a sql 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 (player VARCHAR, rank VARCHAR, seasons VARCHAR)
### Question:
What player is ranked 2 and played in the seasons of 1982–83, 1983–84, 1984–85?
### Answer:
SELECT player FROM table_name_10 WHERE rank = 2 AND seasons = "1982–83, 1983–84, 1984–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_2570269_3 (cast VARCHAR, episode__number VARCHAR)
### Question:
Who are the cast members of episode 3-04?
### Answer:
SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04"
|
Below is an context that describes a sql 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 (role VARCHAR, festival_organization VARCHAR)
### Question:
What role was nominated at the Sydney Film Festival?
### Answer:
SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival"
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE game (season INTEGER)
### Question:
How many games are held after season 2007?
### Answer:
SELECT COUNT(*) FROM game WHERE season > 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_2 (score VARCHAR, couple VARCHAR, style VARCHAR)
### Question:
Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
### Answer:
SELECT score FROM table_name_2 WHERE couple = "jason & edyta" AND style = "freestyle"
|
Below is an context that describes a sql 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 (goals INTEGER, ranking VARCHAR, years VARCHAR)
### Question:
Who had fewer goals than 4 during the years of 1996–13?
### Answer:
SELECT MIN(goals) FROM table_name_76 WHERE ranking < 4 AND years = "1996–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_17359181_1 (points_2 VARCHAR, won VARCHAR)
### Question:
What is every value for Points 2 when the value of won is 30?
### Answer:
SELECT points_2 FROM table_17359181_1 WHERE won = 30
|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (result VARCHAR, round VARCHAR)
### Question:
What is the result the R3 round?
### Answer:
SELECT result FROM table_name_14 WHERE round = "r3"
|
Below is an context that describes a sql 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 (tournament VARCHAR)
### Question:
What is the value for the Wimbledon tournament in 1996?
### Answer:
SELECT 1996 FROM table_name_92 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_44 (replaced_by VARCHAR, team VARCHAR)
### Question:
Who replaced the manager of team arminia bielefeld?
### Answer:
SELECT replaced_by FROM table_name_44 WHERE team = "arminia bielefeld"
|
Below is an context that describes a sql 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 (historical_references VARCHAR, podcast_date VARCHAR)
### Question:
What is the historical reference of the episode that aired on October 23, 2005?
### Answer:
SELECT historical_references FROM table_name_38 WHERE podcast_date = "october 23, 2005"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.