text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Who was the winner in stage 7 with a general classification of Pavel Tonkov?
### INPUT
CREATE TABLE table_name_97 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
### OUTPUT
SELECT winner FROM table_name_97 WHERE general_classification = "pavel tonkov" AND stage = "7" | {
"input": "CREATE TABLE table_name_97 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)",
"instruction": "Who was the winner in stage 7 with a general classification of Pavel Tonkov?",
"output": "SELECT winner FROM table_name_97 WHERE general_classification = \"pavel tonkov\" AND stage = \"7\""
} |
### INSTRUCTION
Steve Wallace was a Race Winner at the Kentucky Speedway on what date?
### INPUT
CREATE TABLE table_name_75 (date VARCHAR, race_winner VARCHAR, track VARCHAR)
### OUTPUT
SELECT date FROM table_name_75 WHERE race_winner = "steve wallace" AND track = "kentucky speedway" | {
"input": "CREATE TABLE table_name_75 (date VARCHAR, race_winner VARCHAR, track VARCHAR)",
"instruction": "Steve Wallace was a Race Winner at the Kentucky Speedway on what date?",
"output": "SELECT date FROM table_name_75 WHERE race_winner = \"steve wallace\" AND track = \"kentucky speedway\""
} |
### INSTRUCTION
How many times did the Centurions play the Rhein Fire?
### INPUT
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = "Rhein Fire" | {
"input": "CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)",
"instruction": "How many times did the Centurions play the Rhein Fire?",
"output": "SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = \"Rhein Fire\""
} |
### INSTRUCTION
What is the population density of mongmong-toto-maite?
### INPUT
CREATE TABLE table_2588674_1 (pop_density INTEGER, village VARCHAR)
### OUTPUT
SELECT MIN(pop_density) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite" | {
"input": "CREATE TABLE table_2588674_1 (pop_density INTEGER, village VARCHAR)",
"instruction": "What is the population density of mongmong-toto-maite?",
"output": "SELECT MIN(pop_density) FROM table_2588674_1 WHERE village = \"Mongmong-Toto-Maite\""
} |
### INSTRUCTION
What was the Purse for Owner Harold A. Allen prior to 2009?
### INPUT
CREATE TABLE table_name_41 (purse VARCHAR, year VARCHAR, owner VARCHAR)
### OUTPUT
SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = "harold a. allen" | {
"input": "CREATE TABLE table_name_41 (purse VARCHAR, year VARCHAR, owner VARCHAR)",
"instruction": "What was the Purse for Owner Harold A. Allen prior to 2009?",
"output": "SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = \"harold a. allen\""
} |
### INSTRUCTION
Which Date has an Opponent of manchester united, and a Venue A?
### INPUT
CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_31 WHERE opponent = "manchester united" AND venue = "a" | {
"input": "CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, venue VARCHAR)",
"instruction": "Which Date has an Opponent of manchester united, and a Venue A?",
"output": "SELECT date FROM table_name_31 WHERE opponent = \"manchester united\" AND venue = \"a\""
} |
### INSTRUCTION
What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland?
### INPUT
CREATE TABLE table_name_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
### OUTPUT
SELECT MIN(total) FROM table_name_18 WHERE bronze > 0 AND nation = "switzerland" AND gold < 1 | {
"input": "CREATE TABLE table_name_18 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)",
"instruction": "What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland?",
"output": "SELECT MIN(total) FROM table_name_18 WHERE bronze > 0 AND nation = \"switzerland\" AND gold < 1"
} |
### INSTRUCTION
What country has t6 as the place, with sean o'hair as the player?
### INPUT
CREATE TABLE table_name_88 (country VARCHAR, place VARCHAR, player VARCHAR)
### OUTPUT
SELECT country FROM table_name_88 WHERE place = "t6" AND player = "sean o'hair" | {
"input": "CREATE TABLE table_name_88 (country VARCHAR, place VARCHAR, player VARCHAR)",
"instruction": "What country has t6 as the place, with sean o'hair as the player?",
"output": "SELECT country FROM table_name_88 WHERE place = \"t6\" AND player = \"sean o'hair\""
} |
### INSTRUCTION
Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.
### INPUT
CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR, Rank VARCHAR); CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)
### OUTPUT
SELECT T3.Pilot_name, T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank | {
"input": "CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR, Rank VARCHAR); CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)",
"instruction": "Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.",
"output": "SELECT T3.Pilot_name, T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank"
} |
### INSTRUCTION
What is English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
### INPUT
CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
### OUTPUT
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)" | {
"input": "CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)",
"instruction": "What is English Translation, when Lyricist(s) is \"Giorgos Moukidis\", and when Original Album is \"Ena (New Edition)\"",
"output": "SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = \"giorgos moukidis\" AND original_album = \"ena (new edition)\""
} |
### INSTRUCTION
Can you tell me the Player that has the Long larger than 28, and the Yards of 222?
### INPUT
CREATE TABLE table_name_92 (player VARCHAR, long VARCHAR, yards VARCHAR)
### OUTPUT
SELECT player FROM table_name_92 WHERE long > 28 AND yards = 222 | {
"input": "CREATE TABLE table_name_92 (player VARCHAR, long VARCHAR, yards VARCHAR)",
"instruction": "Can you tell me the Player that has the Long larger than 28, and the Yards of 222?",
"output": "SELECT player FROM table_name_92 WHERE long > 28 AND yards = 222"
} |
### INSTRUCTION
What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?
### INPUT
CREATE TABLE table_name_38 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)
### OUTPUT
SELECT AVG(total) FROM table_name_38 WHERE nominated_by_the_taoiseach = 0 AND agricultural_panel > 5 | {
"input": "CREATE TABLE table_name_38 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)",
"instruction": "What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?",
"output": "SELECT AVG(total) FROM table_name_38 WHERE nominated_by_the_taoiseach = 0 AND agricultural_panel > 5"
} |
### INSTRUCTION
Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764?
### INPUT
CREATE TABLE table_name_69 (clock_multiplier VARCHAR, clock_speed VARCHAR, model_number VARCHAR)
### OUTPUT
SELECT clock_multiplier FROM table_name_69 WHERE clock_speed = "1.6 ghz" AND model_number = "c7-m 764" | {
"input": "CREATE TABLE table_name_69 (clock_multiplier VARCHAR, clock_speed VARCHAR, model_number VARCHAR)",
"instruction": "Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764?",
"output": "SELECT clock_multiplier FROM table_name_69 WHERE clock_speed = \"1.6 ghz\" AND model_number = \"c7-m 764\""
} |
### INSTRUCTION
What is the listed crowd when essendon is the away squad?
### INPUT
CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon" | {
"input": "CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)",
"instruction": "What is the listed crowd when essendon is the away squad?",
"output": "SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = \"essendon\""
} |
### INSTRUCTION
What is each customer's move in date, and the corresponding customer id and details?
### INPUT
CREATE TABLE Customer_Events (date_moved_in VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_details VARCHAR)
### OUTPUT
SELECT T2.date_moved_in, T1.customer_id, T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id | {
"input": "CREATE TABLE Customer_Events (date_moved_in VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_details VARCHAR)",
"instruction": "What is each customer's move in date, and the corresponding customer id and details?",
"output": "SELECT T2.date_moved_in, T1.customer_id, T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id"
} |
### INSTRUCTION
Which To par has a Country of united states, and a Score of 71-70=141?
### INPUT
CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 71 - 70 = 141 | {
"input": "CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR)",
"instruction": "Which To par has a Country of united states, and a Score of 71-70=141?",
"output": "SELECT to_par FROM table_name_14 WHERE country = \"united states\" AND score = 71 - 70 = 141"
} |
### INSTRUCTION
What is the Date for the game at michie stadium • west point, ny?
### INPUT
CREATE TABLE table_name_80 (date VARCHAR, location VARCHAR)
### OUTPUT
SELECT date FROM table_name_80 WHERE location = "michie stadium • west point, ny" | {
"input": "CREATE TABLE table_name_80 (date VARCHAR, location VARCHAR)",
"instruction": "What is the Date for the game at michie stadium • west point, ny?",
"output": "SELECT date FROM table_name_80 WHERE location = \"michie stadium • west point, ny\""
} |
### INSTRUCTION
what are the names of the channels that broadcast in both morning and night?
### INPUT
CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)
### OUTPUT
SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night' | {
"input": "CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)",
"instruction": "what are the names of the channels that broadcast in both morning and night?",
"output": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night'"
} |
### INSTRUCTION
Name the league for 1994
### INPUT
CREATE TABLE table_name_16 (league VARCHAR, year VARCHAR)
### OUTPUT
SELECT league FROM table_name_16 WHERE year = "1994" | {
"input": "CREATE TABLE table_name_16 (league VARCHAR, year VARCHAR)",
"instruction": "Name the league for 1994",
"output": "SELECT league FROM table_name_16 WHERE year = \"1994\""
} |
### INSTRUCTION
Which college/junior/club team (league) did Brett Sonne play in?
### INPUT
CREATE TABLE table_name_45 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
### OUTPUT
SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne" | {
"input": "CREATE TABLE table_name_45 (college_junior_club_team__league_ VARCHAR, player VARCHAR)",
"instruction": "Which college/junior/club team (league) did Brett Sonne play in?",
"output": "SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = \"brett sonne\""
} |
### INSTRUCTION
Which city has a C1 class and Identifier of CBCD-FM?
### INPUT
CREATE TABLE table_name_77 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)
### OUTPUT
SELECT city_of_license FROM table_name_77 WHERE class = "c1" AND identifier = "cbcd-fm" | {
"input": "CREATE TABLE table_name_77 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)",
"instruction": "Which city has a C1 class and Identifier of CBCD-FM?",
"output": "SELECT city_of_license FROM table_name_77 WHERE class = \"c1\" AND identifier = \"cbcd-fm\""
} |
### INSTRUCTION
Which Lost has Seasons of 2, and Goals against larger than 43?
### INPUT
CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)
### OUTPUT
SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43 | {
"input": "CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)",
"instruction": "Which Lost has Seasons of 2, and Goals against larger than 43?",
"output": "SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43"
} |
### INSTRUCTION
What year was she on a 350cc class bike, ranked 16th, with over 0 wins?
### INPUT
CREATE TABLE table_name_85 (year INTEGER, wins VARCHAR, class VARCHAR, rank VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_85 WHERE class = "350cc" AND rank = "16th" AND wins > 0 | {
"input": "CREATE TABLE table_name_85 (year INTEGER, wins VARCHAR, class VARCHAR, rank VARCHAR)",
"instruction": "What year was she on a 350cc class bike, ranked 16th, with over 0 wins?",
"output": "SELECT SUM(year) FROM table_name_85 WHERE class = \"350cc\" AND rank = \"16th\" AND wins > 0"
} |
### INSTRUCTION
Name the votes given for michael russo, genevy dimitrion , manny ortega
### INPUT
CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)
### OUTPUT
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | {
"input": "CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)",
"instruction": "Name the votes given for michael russo, genevy dimitrion , manny ortega",
"output": "SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = \"Michael Russo, Genevy Dimitrion , Manny Ortega\""
} |
### INSTRUCTION
what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon
### INPUT
CREATE TABLE table_13663434_1 (wii_points VARCHAR, title_and_source VARCHAR)
### OUTPUT
SELECT wii_points FROM table_13663434_1 WHERE title_and_source = "Tsūshin Taikyoku: Igo Dōjō 2700-Mon" | {
"input": "CREATE TABLE table_13663434_1 (wii_points VARCHAR, title_and_source VARCHAR)",
"instruction": "what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon",
"output": "SELECT wii_points FROM table_13663434_1 WHERE title_and_source = \"Tsūshin Taikyoku: Igo Dōjō 2700-Mon\""
} |
### INSTRUCTION
What is the highest Game when Morris Peterson (8) had the high assists?
### INPUT
CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR)
### OUTPUT
SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)" | {
"input": "CREATE TABLE table_name_81 (game INTEGER, high_assists VARCHAR)",
"instruction": "What is the highest Game when Morris Peterson (8) had the high assists?",
"output": "SELECT MAX(game) FROM table_name_81 WHERE high_assists = \"morris peterson (8)\""
} |
### INSTRUCTION
For the ship that was a brig and located in the English Channel, what was the disposition of ship?
### INPUT
CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)
### OUTPUT
SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = "brig" AND location = "english channel" | {
"input": "CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)",
"instruction": "For the ship that was a brig and located in the English Channel, what was the disposition of ship?",
"output": "SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = \"brig\" AND location = \"english channel\""
} |
### INSTRUCTION
What language did the word mahjong originate from?
### INPUT
CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR)
### OUTPUT
SELECT source_language FROM table_name_31 WHERE meaning = "mahjong" | {
"input": "CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR)",
"instruction": "What language did the word mahjong originate from?",
"output": "SELECT source_language FROM table_name_31 WHERE meaning = \"mahjong\""
} |
### INSTRUCTION
What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?
### INPUT
CREATE TABLE table_name_45 (partner VARCHAR, surface VARCHAR, opponents VARCHAR)
### OUTPUT
SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas" | {
"input": "CREATE TABLE table_name_45 (partner VARCHAR, surface VARCHAR, opponents VARCHAR)",
"instruction": "What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?",
"output": "SELECT partner FROM table_name_45 WHERE surface = \"clay\" AND opponents = \"guillermo garcía-lópez albert portas\""
} |
### INSTRUCTION
What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers?
### INPUT
CREATE TABLE table_name_93 (year_born__age_ VARCHAR, height VARCHAR, current_club VARCHAR)
### OUTPUT
SELECT year_born__age_ FROM table_name_93 WHERE height > 2.04 AND current_club = "los angeles clippers" | {
"input": "CREATE TABLE table_name_93 (year_born__age_ VARCHAR, height VARCHAR, current_club VARCHAR)",
"instruction": "What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers?",
"output": "SELECT year_born__age_ FROM table_name_93 WHERE height > 2.04 AND current_club = \"los angeles clippers\""
} |
### INSTRUCTION
Show the station name with greatest number of trains.
### INPUT
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
### OUTPUT
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)",
"instruction": "Show the station name with greatest number of trains.",
"output": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What's the highest game against the New York Rangers with more than 55 points?
### INPUT
CREATE TABLE table_name_16 (game INTEGER, opponent VARCHAR, points VARCHAR)
### OUTPUT
SELECT MAX(game) FROM table_name_16 WHERE opponent = "new york rangers" AND points > 55 | {
"input": "CREATE TABLE table_name_16 (game INTEGER, opponent VARCHAR, points VARCHAR)",
"instruction": "What's the highest game against the New York Rangers with more than 55 points?",
"output": "SELECT MAX(game) FROM table_name_16 WHERE opponent = \"new york rangers\" AND points > 55"
} |
### INSTRUCTION
What is the number of graduates in "San Francisco State University" in year 2004?
### INPUT
CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)
### OUTPUT
SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State University" | {
"input": "CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)",
"instruction": "What is the number of graduates in \"San Francisco State University\" in year 2004?",
"output": "SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\""
} |
### INSTRUCTION
Find the number of routes with destination airports in Italy.
### INPUT
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' | {
"input": "CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR)",
"instruction": "Find the number of routes with destination airports in Italy.",
"output": "SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'"
} |
### INSTRUCTION
Name the least season number for two marriage proposals
### INPUT
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)
### OUTPUT
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals" | {
"input": "CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)",
"instruction": "Name the least season number for two marriage proposals",
"output": "SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = \"Two marriage proposals\""
} |
### INSTRUCTION
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?
### INPUT
CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR)
### OUTPUT
SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 3 | {
"input": "CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR)",
"instruction": "What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?",
"output": "SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = \"gilera\" AND time = \"40:19.910\" AND grid > 3"
} |
### INSTRUCTION
What is the average draw for 186 games?
### INPUT
CREATE TABLE table_name_33 (draw INTEGER, total_games VARCHAR)
### OUTPUT
SELECT AVG(draw) FROM table_name_33 WHERE total_games = 186 | {
"input": "CREATE TABLE table_name_33 (draw INTEGER, total_games VARCHAR)",
"instruction": "What is the average draw for 186 games?",
"output": "SELECT AVG(draw) FROM table_name_33 WHERE total_games = 186"
} |
### INSTRUCTION
What is HDTV, when Language is English, and when Television Service is MTV Dance?
### INPUT
CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT hdtv FROM table_name_82 WHERE language = "english" AND television_service = "mtv dance" | {
"input": "CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)",
"instruction": "What is HDTV, when Language is English, and when Television Service is MTV Dance?",
"output": "SELECT hdtv FROM table_name_82 WHERE language = \"english\" AND television_service = \"mtv dance\""
} |
### INSTRUCTION
List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.
### INPUT
CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)
### OUTPUT
SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz" | {
"input": "CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)",
"instruction": "List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.",
"output": "SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = \"DDR3-1333\" AND frequency = \"2.66-2.8GHz\""
} |
### INSTRUCTION
What is the total number of bronze medals of the nation with 4 total medals and 1 silver?
### INPUT
CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
### OUTPUT
SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1 | {
"input": "CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)",
"instruction": "What is the total number of bronze medals of the nation with 4 total medals and 1 silver?",
"output": "SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1"
} |
### INSTRUCTION
What 3ds game did Naohiko Aoyama direct?
### INPUT
CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)
### OUTPUT
SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama" | {
"input": "CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)",
"instruction": "What 3ds game did Naohiko Aoyama direct?",
"output": "SELECT title FROM table_name_72 WHERE platform_s_ = \"3ds\" AND director = \"naohiko aoyama\""
} |
### INSTRUCTION
What was the entrant in round 16 were Ferrari was the constructor?
### INPUT
CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR)
### OUTPUT
SELECT entrant FROM table_name_70 WHERE rounds = "16" AND constructor = "ferrari" | {
"input": "CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR)",
"instruction": "What was the entrant in round 16 were Ferrari was the constructor?",
"output": "SELECT entrant FROM table_name_70 WHERE rounds = \"16\" AND constructor = \"ferrari\""
} |
### INSTRUCTION
What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?
### INPUT
CREATE TABLE table_name_84 (loses VARCHAR, points VARCHAR, points_against VARCHAR, points_for VARCHAR, wins VARCHAR)
### OUTPUT
SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24 | {
"input": "CREATE TABLE table_name_84 (loses VARCHAR, points VARCHAR, points_against VARCHAR, points_for VARCHAR, wins VARCHAR)",
"instruction": "What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?",
"output": "SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24"
} |
### INSTRUCTION
What is the highest Bush#, when Others% is "1.7%", when Others# is less than 75, and when Kerry# is greater than 1,524?
### INPUT
CREATE TABLE table_name_85 (bush_number INTEGER, kerry_number VARCHAR, others_percentage VARCHAR, others_number VARCHAR)
### OUTPUT
SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = "1.7%" AND others_number < 75 AND kerry_number > 1 OFFSET 524 | {
"input": "CREATE TABLE table_name_85 (bush_number INTEGER, kerry_number VARCHAR, others_percentage VARCHAR, others_number VARCHAR)",
"instruction": "What is the highest Bush#, when Others% is \"1.7%\", when Others# is less than 75, and when Kerry# is greater than 1,524?",
"output": "SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = \"1.7%\" AND others_number < 75 AND kerry_number > 1 OFFSET 524"
} |
### INSTRUCTION
What is the smallest number of European Parliament sets when the international affiliation is global greens, egp?
### INPUT
CREATE TABLE table_158282_1 (european_parliament_seats INTEGER, international_affiliation VARCHAR)
### OUTPUT
SELECT MIN(european_parliament_seats) FROM table_158282_1 WHERE international_affiliation = "Global Greens, EGP" | {
"input": "CREATE TABLE table_158282_1 (european_parliament_seats INTEGER, international_affiliation VARCHAR)",
"instruction": "What is the smallest number of European Parliament sets when the international affiliation is global greens, egp? ",
"output": "SELECT MIN(european_parliament_seats) FROM table_158282_1 WHERE international_affiliation = \"Global Greens, EGP\""
} |
### INSTRUCTION
What was the result of Declan Donnellan's nomination?
### INPUT
CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR)
### OUTPUT
SELECT result FROM table_name_23 WHERE nominee = "declan donnellan" | {
"input": "CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR)",
"instruction": "What was the result of Declan Donnellan's nomination?",
"output": "SELECT result FROM table_name_23 WHERE nominee = \"declan donnellan\""
} |
### INSTRUCTION
What is the all-time rank associated with a rank less than 9 and a debut in 1994?
### INPUT
CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR)
### OUTPUT
SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994 | {
"input": "CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR)",
"instruction": "What is the all-time rank associated with a rank less than 9 and a debut in 1994?",
"output": "SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994"
} |
### INSTRUCTION
What is the total number of electorates in 2009 with a constituency of 193?
### INPUT
CREATE TABLE table_name_83 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
### OUTPUT
SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = "193" | {
"input": "CREATE TABLE table_name_83 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)",
"instruction": "What is the total number of electorates in 2009 with a constituency of 193?",
"output": "SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = \"193\""
} |
### INSTRUCTION
Who was nominated for best supporting actor in the movie Going My Way?
### INPUT
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)
### OUTPUT
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Going My Way" AND category = "Best Supporting Actor" | {
"input": "CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)",
"instruction": "Who was nominated for best supporting actor in the movie Going My Way?",
"output": "SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = \"Going My Way\" AND category = \"Best Supporting Actor\""
} |
### INSTRUCTION
Which film has the most copies in the inventory? List both title and id.
### INPUT
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (film_id VARCHAR)
### OUTPUT
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (film_id VARCHAR)",
"instruction": "Which film has the most copies in the inventory? List both title and id.",
"output": "SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Who is the shirt sponsor of the team with an average squad age of 25.46?
### INPUT
CREATE TABLE table_25527255_2 (shirt_sponsor VARCHAR, average_squad_age VARCHAR)
### OUTPUT
SELECT shirt_sponsor FROM table_25527255_2 WHERE average_squad_age = "25.46" | {
"input": "CREATE TABLE table_25527255_2 (shirt_sponsor VARCHAR, average_squad_age VARCHAR)",
"instruction": "Who is the shirt sponsor of the team with an average squad age of 25.46?",
"output": "SELECT shirt_sponsor FROM table_25527255_2 WHERE average_squad_age = \"25.46\""
} |
### INSTRUCTION
In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won?
### INPUT
CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR)
### OUTPUT
SELECT constituency FROM table_name_12 WHERE result = "labour hold" AND liberal_democrats = "elizabeth newton" | {
"input": "CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR)",
"instruction": "In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won?",
"output": "SELECT constituency FROM table_name_12 WHERE result = \"labour hold\" AND liberal_democrats = \"elizabeth newton\""
} |
### INSTRUCTION
What was the total number of games where A. Johnson (6) gave the most high assists?
### INPUT
CREATE TABLE table_11961582_4 (game VARCHAR, high_assists VARCHAR)
### OUTPUT
SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = "A. Johnson (6)" | {
"input": "CREATE TABLE table_11961582_4 (game VARCHAR, high_assists VARCHAR)",
"instruction": "What was the total number of games where A. Johnson (6) gave the most high assists?",
"output": "SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = \"A. Johnson (6)\""
} |
### INSTRUCTION
What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?
### INPUT
CREATE TABLE table_name_80 (runners_up VARCHAR, year VARCHAR, champions VARCHAR, name_of_tournament VARCHAR)
### OUTPUT
SELECT runners_up FROM table_name_80 WHERE champions = "ivan lendl" AND name_of_tournament = "seiko super tennis" AND year < 1990 | {
"input": "CREATE TABLE table_name_80 (runners_up VARCHAR, year VARCHAR, champions VARCHAR, name_of_tournament VARCHAR)",
"instruction": "What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?",
"output": "SELECT runners_up FROM table_name_80 WHERE champions = \"ivan lendl\" AND name_of_tournament = \"seiko super tennis\" AND year < 1990"
} |
### INSTRUCTION
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic
### INPUT
CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group classic" | {
"input": "CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "Name the date with margin of victory of 1 stroke and tournament of legend financial group classic",
"output": "SELECT date FROM table_name_83 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"legend financial group classic\""
} |
### INSTRUCTION
Which Elevator has Elevated of april 12, 1281, a Nationality of french, and an Elector of jean cholet?
### INPUT
CREATE TABLE table_name_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT elevator FROM table_name_89 WHERE elevated = "april 12, 1281" AND nationality = "french" AND elector = "jean cholet" | {
"input": "CREATE TABLE table_name_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR)",
"instruction": "Which Elevator has Elevated of april 12, 1281, a Nationality of french, and an Elector of jean cholet?",
"output": "SELECT elevator FROM table_name_89 WHERE elevated = \"april 12, 1281\" AND nationality = \"french\" AND elector = \"jean cholet\""
} |
### INSTRUCTION
What is the number of cities/municipalities having an urban settlement of Srbobran?
### INPUT
CREATE TABLE table_2562572_2 (city___municipality VARCHAR, urban_settlement VARCHAR)
### OUTPUT
SELECT COUNT(city___municipality) FROM table_2562572_2 WHERE urban_settlement = "Srbobran" | {
"input": "CREATE TABLE table_2562572_2 (city___municipality VARCHAR, urban_settlement VARCHAR)",
"instruction": "What is the number of cities/municipalities having an urban settlement of Srbobran?",
"output": "SELECT COUNT(city___municipality) FROM table_2562572_2 WHERE urban_settlement = \"Srbobran\""
} |
### INSTRUCTION
What team has 4 points and a Chassis of march 82/83c?
### INPUT
CREATE TABLE table_name_71 (team VARCHAR, points VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT team FROM table_name_71 WHERE points = 4 AND chassis = "march 82/83c" | {
"input": "CREATE TABLE table_name_71 (team VARCHAR, points VARCHAR, chassis VARCHAR)",
"instruction": "What team has 4 points and a Chassis of march 82/83c?",
"output": "SELECT team FROM table_name_71 WHERE points = 4 AND chassis = \"march 82/83c\""
} |
### INSTRUCTION
Name the sec wins for .357 percentage and 4-3 home record
### INPUT
CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)
### OUTPUT
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3" | {
"input": "CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)",
"instruction": "Name the sec wins for .357 percentage and 4-3 home record",
"output": "SELECT sec_wins FROM table_22825679_1 WHERE percentage = \".357\" AND home_record = \"4-3\""
} |
### INSTRUCTION
What are the population and life expectancies in Brazil?
### INPUT
CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR)
### OUTPUT
SELECT Population, LifeExpectancy FROM country WHERE Name = "Brazil" | {
"input": "CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR)",
"instruction": "What are the population and life expectancies in Brazil?",
"output": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\""
} |
### INSTRUCTION
What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?
### INPUT
CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
### OUTPUT
SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1 | {
"input": "CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)",
"instruction": "What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?",
"output": "SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = \"6\" AND bronze > 1"
} |
### INSTRUCTION
what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
### INPUT
CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
### OUTPUT
SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5 | {
"input": "CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)",
"instruction": "what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?",
"output": "SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = \"200.0\" AND snatch > 87.5"
} |
### INSTRUCTION
Who was the SS when jim lefebvre was at 2nd, willie davis at CF, and don drysdale was the SP.
### INPUT
CREATE TABLE table_12142298_2 (shortstop VARCHAR, starting_pitcher VARCHAR, second_baseman VARCHAR, centerfielder VARCHAR)
### OUTPUT
SELECT shortstop FROM table_12142298_2 WHERE second_baseman = "Jim Lefebvre" AND centerfielder = "Willie Davis" AND starting_pitcher = "Don Drysdale" | {
"input": "CREATE TABLE table_12142298_2 (shortstop VARCHAR, starting_pitcher VARCHAR, second_baseman VARCHAR, centerfielder VARCHAR)",
"instruction": "Who was the SS when jim lefebvre was at 2nd, willie davis at CF, and don drysdale was the SP.",
"output": "SELECT shortstop FROM table_12142298_2 WHERE second_baseman = \"Jim Lefebvre\" AND centerfielder = \"Willie Davis\" AND starting_pitcher = \"Don Drysdale\""
} |
### INSTRUCTION
who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008
### INPUT
CREATE TABLE table_20174050_24 (reader VARCHAR, author VARCHAR, release_date VARCHAR)
### OUTPUT
SELECT reader FROM table_20174050_24 WHERE author = "Cole, Stephen Stephen Cole" AND release_date = "2008-11-13 13 November 2008" | {
"input": "CREATE TABLE table_20174050_24 (reader VARCHAR, author VARCHAR, release_date VARCHAR)",
"instruction": "who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008",
"output": "SELECT reader FROM table_20174050_24 WHERE author = \"Cole, Stephen Stephen Cole\" AND release_date = \"2008-11-13 13 November 2008\""
} |
### INSTRUCTION
How many analogue satellite channels does Sky [Analogue] have?
### INPUT
CREATE TABLE table_name_87 (no_of_channels VARCHAR, transmission VARCHAR, provider VARCHAR)
### OUTPUT
SELECT no_of_channels FROM table_name_87 WHERE transmission = "analogue satellite" AND provider = "sky [analogue]" | {
"input": "CREATE TABLE table_name_87 (no_of_channels VARCHAR, transmission VARCHAR, provider VARCHAR)",
"instruction": "How many analogue satellite channels does Sky [Analogue] have?",
"output": "SELECT no_of_channels FROM table_name_87 WHERE transmission = \"analogue satellite\" AND provider = \"sky [analogue]\""
} |
### INSTRUCTION
How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?
### INPUT
CREATE TABLE table_28793672_1 (golden_tickets VARCHAR, callback_venue VARCHAR)
### OUTPUT
SELECT COUNT(golden_tickets) FROM table_28793672_1 WHERE callback_venue = "RCTI Studio, Jakarta" | {
"input": "CREATE TABLE table_28793672_1 (golden_tickets VARCHAR, callback_venue VARCHAR)",
"instruction": "How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?",
"output": "SELECT COUNT(golden_tickets) FROM table_28793672_1 WHERE callback_venue = \"RCTI Studio, Jakarta\""
} |
### INSTRUCTION
What is the id and family name of the driver who has the longest laptime?
### INPUT
CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR)
### OUTPUT
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1 | {
"input": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR)",
"instruction": "What is the id and family name of the driver who has the longest laptime?",
"output": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1"
} |
### INSTRUCTION
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
### INPUT
CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)
### OUTPUT
SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 15 | {
"input": "CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)",
"instruction": "In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?",
"output": "SELECT SUM(fixtures) FROM table_name_67 WHERE round = \"sixth round\" AND clubs_involved > 15"
} |
### INSTRUCTION
How many states that have some college students playing in the mid position but not in the goalie position.
### INPUT
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') | {
"input": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)",
"instruction": "How many states that have some college students playing in the mid position but not in the goalie position.",
"output": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')"
} |
### INSTRUCTION
What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?
### INPUT
CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)
### OUTPUT
SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = "offshore" AND country_territory = "saint kitts and nevis" AND degree = "md" AND established < 2000 | {
"input": "CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)",
"instruction": "What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?",
"output": "SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = \"offshore\" AND country_territory = \"saint kitts and nevis\" AND degree = \"md\" AND established < 2000"
} |
### INSTRUCTION
What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?
### INPUT
CREATE TABLE table_name_6 (position INTEGER, points VARCHAR, bike_no VARCHAR, driver___passenger VARCHAR)
### OUTPUT
SELECT MIN(position) FROM table_name_6 WHERE bike_no > 10 AND driver___passenger = "nicky pulinx / ondrej cermak" AND points > 244 | {
"input": "CREATE TABLE table_name_6 (position INTEGER, points VARCHAR, bike_no VARCHAR, driver___passenger VARCHAR)",
"instruction": "What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?",
"output": "SELECT MIN(position) FROM table_name_6 WHERE bike_no > 10 AND driver___passenger = \"nicky pulinx / ondrej cermak\" AND points > 244"
} |
### INSTRUCTION
What is the first name and last name of the student who have most number of sports?
### INPUT
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR)
### OUTPUT
SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR)",
"instruction": "What is the first name and last name of the student who have most number of sports?",
"output": "SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?
### INPUT
CREATE TABLE table_name_51 (opponent VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_51 WHERE surface = "hardcourt" AND outcome = "runner-up" AND tournament = "honolulu" | {
"input": "CREATE TABLE table_name_51 (opponent VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)",
"instruction": "Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?",
"output": "SELECT opponent FROM table_name_51 WHERE surface = \"hardcourt\" AND outcome = \"runner-up\" AND tournament = \"honolulu\""
} |
### INSTRUCTION
How many wins when the points are 0 and podiums are less than 0?
### INPUT
CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, podiums VARCHAR)
### OUTPUT
SELECT SUM(wins) FROM table_name_51 WHERE points = "0" AND podiums < 0 | {
"input": "CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, podiums VARCHAR)",
"instruction": "How many wins when the points are 0 and podiums are less than 0?",
"output": "SELECT SUM(wins) FROM table_name_51 WHERE points = \"0\" AND podiums < 0"
} |
### INSTRUCTION
Which school has a state authority and a roll of 318?
### INPUT
CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)
### OUTPUT
SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318 | {
"input": "CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)",
"instruction": "Which school has a state authority and a roll of 318?",
"output": "SELECT name FROM table_name_27 WHERE authority = \"state\" AND roll = 318"
} |
### INSTRUCTION
What was Kerry's lowest number of votes where Other received 0.8% and Kerry 70.4%?
### INPUT
CREATE TABLE table_name_65 (kerry__number INTEGER, others__percentage VARCHAR, kerry__percentage VARCHAR)
### OUTPUT
SELECT MIN(kerry__number) FROM table_name_65 WHERE others__percentage = "0.8%" AND kerry__percentage = "70.4%" | {
"input": "CREATE TABLE table_name_65 (kerry__number INTEGER, others__percentage VARCHAR, kerry__percentage VARCHAR)",
"instruction": "What was Kerry's lowest number of votes where Other received 0.8% and Kerry 70.4%?",
"output": "SELECT MIN(kerry__number) FROM table_name_65 WHERE others__percentage = \"0.8%\" AND kerry__percentage = \"70.4%\""
} |
### INSTRUCTION
Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.
### INPUT
CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR)
### OUTPUT
SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1 | {
"input": "CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR)",
"instruction": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.",
"output": "SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1"
} |
### INSTRUCTION
On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas?
### INPUT
CREATE TABLE table_name_4 (other_performer_s_ VARCHAR, director_s_ VARCHAR, album VARCHAR)
### OUTPUT
SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = "melina matsoukas" AND album = "loud" | {
"input": "CREATE TABLE table_name_4 (other_performer_s_ VARCHAR, director_s_ VARCHAR, album VARCHAR)",
"instruction": "On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas?",
"output": "SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = \"melina matsoukas\" AND album = \"loud\""
} |
### INSTRUCTION
Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
### INPUT
CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones' | {
"input": "CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR)",
"instruction": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?",
"output": "SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'"
} |
### INSTRUCTION
What was the date of appointment for the manager replacing Kadir Özcan?
### INPUT
CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_27091128_2 WHERE outgoing_manager = "Kadir Özcan" | {
"input": "CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)",
"instruction": "What was the date of appointment for the manager replacing Kadir Özcan?",
"output": "SELECT date_of_appointment FROM table_27091128_2 WHERE outgoing_manager = \"Kadir Özcan\""
} |
### INSTRUCTION
How many seasons had 16.15 million viewers?
### INPUT
CREATE TABLE table_28611413_2 (no_in_series VARCHAR, viewers__millions_ VARCHAR)
### OUTPUT
SELECT COUNT(no_in_series) FROM table_28611413_2 WHERE viewers__millions_ = "16.15" | {
"input": "CREATE TABLE table_28611413_2 (no_in_series VARCHAR, viewers__millions_ VARCHAR)",
"instruction": "How many seasons had 16.15 million viewers?",
"output": "SELECT COUNT(no_in_series) FROM table_28611413_2 WHERE viewers__millions_ = \"16.15\""
} |
### INSTRUCTION
Name the year for spiele leben
### INPUT
CREATE TABLE table_16255245_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT year__ceremony_ FROM table_16255245_1 WHERE original_title = "Spiele Leben" | {
"input": "CREATE TABLE table_16255245_1 (year__ceremony_ VARCHAR, original_title VARCHAR)",
"instruction": "Name the year for spiele leben",
"output": "SELECT year__ceremony_ FROM table_16255245_1 WHERE original_title = \"Spiele Leben\""
} |
### INSTRUCTION
What is the winning team of the race on 31 August with Audi as the winning manufacturer and Timo Scheider as the winning driver?
### INPUT
CREATE TABLE table_name_15 (winning_team VARCHAR, date VARCHAR, winning_manufacturer VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT winning_team FROM table_name_15 WHERE winning_manufacturer = "audi" AND winning_driver = "timo scheider" AND date = "31 august" | {
"input": "CREATE TABLE table_name_15 (winning_team VARCHAR, date VARCHAR, winning_manufacturer VARCHAR, winning_driver VARCHAR)",
"instruction": "What is the winning team of the race on 31 August with Audi as the winning manufacturer and Timo Scheider as the winning driver?",
"output": "SELECT winning_team FROM table_name_15 WHERE winning_manufacturer = \"audi\" AND winning_driver = \"timo scheider\" AND date = \"31 august\""
} |
### INSTRUCTION
How many cars have a larger accelerate than the car with the largest horsepower?
### INPUT
CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1) | {
"input": "CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)",
"instruction": "How many cars have a larger accelerate than the car with the largest horsepower?",
"output": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)"
} |
### INSTRUCTION
who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?
### INPUT
CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge" | {
"input": "CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR)",
"instruction": "who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?",
"output": "SELECT constructor FROM table_name_75 WHERE tyre = \"d\" AND engine = \"talbot 23cv 4.5 l6\" AND chassis = \"talbot-lago t26c\" AND entrant = \"ecurie belge\""
} |
### INSTRUCTION
how many records had result/games: 10 games (29,606 avg.)
### INPUT
CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR)
### OUTPUT
SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)" | {
"input": "CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR)",
"instruction": "how many records had result/games: 10 games (29,606 avg.)",
"output": "SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = \"10 games (29,606 avg.)\""
} |
### INSTRUCTION
What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?
### INPUT
CREATE TABLE table_name_23 (losses INTEGER, win__percentage VARCHAR, no_result VARCHAR)
### OUTPUT
SELECT SUM(losses) FROM table_name_23 WHERE win__percentage = "71.43%" AND no_result > 0 | {
"input": "CREATE TABLE table_name_23 (losses INTEGER, win__percentage VARCHAR, no_result VARCHAR)",
"instruction": "What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?",
"output": "SELECT SUM(losses) FROM table_name_23 WHERE win__percentage = \"71.43%\" AND no_result > 0"
} |
### INSTRUCTION
how many times is the fleet series (quantity) is 468-473 (6)?
### INPUT
CREATE TABLE table_10007452_3 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)
### OUTPUT
SELECT COUNT(order_year) FROM table_10007452_3 WHERE fleet_series__quantity_ = "468-473 (6)" | {
"input": "CREATE TABLE table_10007452_3 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)",
"instruction": "how many times is the fleet series (quantity) is 468-473 (6)?",
"output": "SELECT COUNT(order_year) FROM table_10007452_3 WHERE fleet_series__quantity_ = \"468-473 (6)\""
} |
### INSTRUCTION
Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.
### INPUT
CREATE TABLE performance (LOCATION VARCHAR, Attendance INTEGER)
### OUTPUT
SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000 | {
"input": "CREATE TABLE performance (LOCATION VARCHAR, Attendance INTEGER)",
"instruction": "Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.",
"output": "SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000"
} |
### INSTRUCTION
Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?
### INPUT
CREATE TABLE table_name_12 (origin_of_programming VARCHAR, service VARCHAR, genre VARCHAR, network VARCHAR)
### OUTPUT
SELECT origin_of_programming FROM table_name_12 WHERE genre = "general" AND network = "ntv bangla" AND service = "cogeco cable" | {
"input": "CREATE TABLE table_name_12 (origin_of_programming VARCHAR, service VARCHAR, genre VARCHAR, network VARCHAR)",
"instruction": "Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?",
"output": "SELECT origin_of_programming FROM table_name_12 WHERE genre = \"general\" AND network = \"ntv bangla\" AND service = \"cogeco cable\""
} |
### INSTRUCTION
Where is ropery lane and la matches 7 location?
### INPUT
CREATE TABLE table_1176371_1 (location VARCHAR, la_matches VARCHAR, name_of_ground VARCHAR)
### OUTPUT
SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = "Ropery Lane" | {
"input": "CREATE TABLE table_1176371_1 (location VARCHAR, la_matches VARCHAR, name_of_ground VARCHAR)",
"instruction": "Where is ropery lane and la matches 7 location?",
"output": "SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = \"Ropery Lane\""
} |
### INSTRUCTION
What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?
### INPUT
CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8 | {
"input": "CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)",
"instruction": "What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?",
"output": "SELECT MAX(rank) FROM table_name_49 WHERE county = \"offaly\" AND player = \"mark corrigan\" AND total < 8"
} |
### INSTRUCTION
Find the name of amenities of the dorm where the student with last name Smith is living in.
### INPUT
CREATE TABLE student (stuid VARCHAR, lname VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE lives_in (dormid VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR)
### OUTPUT
SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' | {
"input": "CREATE TABLE student (stuid VARCHAR, lname VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE lives_in (dormid VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR)",
"instruction": "Find the name of amenities of the dorm where the student with last name Smith is living in.",
"output": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith'"
} |
### INSTRUCTION
Show invoice dates and order id and details for all invoices.
### INPUT
CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)
### OUTPUT
SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id | {
"input": "CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)",
"instruction": "Show invoice dates and order id and details for all invoices.",
"output": "SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id"
} |
### INSTRUCTION
what's the record with date being january 13
### INPUT
CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR)
### OUTPUT
SELECT record FROM table_13480122_5 WHERE date = "January 13" | {
"input": "CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR)",
"instruction": "what's the record with date being january 13",
"output": "SELECT record FROM table_13480122_5 WHERE date = \"January 13\""
} |
### INSTRUCTION
What is the lowest election that has cinisello balsamo as the municipality?
### INPUT
CREATE TABLE table_name_4 (election INTEGER, municipality VARCHAR)
### OUTPUT
SELECT MIN(election) FROM table_name_4 WHERE municipality = "cinisello balsamo" | {
"input": "CREATE TABLE table_name_4 (election INTEGER, municipality VARCHAR)",
"instruction": "What is the lowest election that has cinisello balsamo as the municipality?",
"output": "SELECT MIN(election) FROM table_name_4 WHERE municipality = \"cinisello balsamo\""
} |
### INSTRUCTION
Name the record for attendance location of palace of auburn hills 15,210
### INPUT
CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210" | {
"input": "CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR)",
"instruction": "Name the record for attendance location of palace of auburn hills 15,210",
"output": "SELECT record FROM table_17103729_8 WHERE location_attendance = \"Palace of Auburn Hills 15,210\""
} |
### INSTRUCTION
What was the round when nueza silva played against greece?
### INPUT
CREATE TABLE table_name_31 (round VARCHAR, against VARCHAR)
### OUTPUT
SELECT round FROM table_name_31 WHERE against = "greece" | {
"input": "CREATE TABLE table_name_31 (round VARCHAR, against VARCHAR)",
"instruction": "What was the round when nueza silva played against greece?",
"output": "SELECT round FROM table_name_31 WHERE against = \"greece\""
} |
### INSTRUCTION
Show the church names for the weddings of all people older than 30.
### INPUT
CREATE TABLE church (name VARCHAR, church_id VARCHAR); CREATE TABLE people (people_id VARCHAR, age VARCHAR); CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, church_id VARCHAR)
### OUTPUT
SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30 | {
"input": "CREATE TABLE church (name VARCHAR, church_id VARCHAR); CREATE TABLE people (people_id VARCHAR, age VARCHAR); CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, church_id VARCHAR)",
"instruction": "Show the church names for the weddings of all people older than 30.",
"output": "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30"
} |
### INSTRUCTION
Show statement id, statement detail, account detail for accounts.
### INPUT
CREATE TABLE Accounts (statement_id VARCHAR, account_details VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
### OUTPUT
SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id | {
"input": "CREATE TABLE Accounts (statement_id VARCHAR, account_details VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)",
"instruction": "Show statement id, statement detail, account detail for accounts.",
"output": "SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.