text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?
### INPUT
CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)
### OUTPUT
SELECT SUM(rank) FROM table_name_29 WHERE name = "thomas morgenstern" AND points > 288.7 | {
"input": "CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)",
"instruction": "Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?",
"output": "SELECT SUM(rank) FROM table_name_29 WHERE name = \"thomas morgenstern\" AND points > 288.7"
} |
### INSTRUCTION
Show the names of students who have at least 2 likes.
### INPUT
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)",
"instruction": "Show the names of students who have at least 2 likes.",
"output": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
Name the total number of director for vesničko má středisková
### INPUT
CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = "Vesničko má středisková" | {
"input": "CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR)",
"instruction": "Name the total number of director for vesničko má středisková",
"output": "SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = \"Vesničko má středisková\""
} |
### INSTRUCTION
Show names of teachers and the courses they are arranged to teach.
### INPUT
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
### OUTPUT
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID | {
"input": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)",
"instruction": "Show names of teachers and the courses they are arranged to teach.",
"output": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID"
} |
### INSTRUCTION
Which is the lowest round to have a pick of 12 and position of linebacker?
### INPUT
CREATE TABLE table_name_86 (round INTEGER, pick__number VARCHAR, position VARCHAR)
### OUTPUT
SELECT MIN(round) FROM table_name_86 WHERE pick__number = 12 AND position = "linebacker" | {
"input": "CREATE TABLE table_name_86 (round INTEGER, pick__number VARCHAR, position VARCHAR)",
"instruction": "Which is the lowest round to have a pick of 12 and position of linebacker?",
"output": "SELECT MIN(round) FROM table_name_86 WHERE pick__number = 12 AND position = \"linebacker\""
} |
### INSTRUCTION
Which Fate has a Nationality of united kingdom, and a Tonnage of 1,809?
### INPUT
CREATE TABLE table_name_4 (fate VARCHAR, nationality VARCHAR, tonnage VARCHAR)
### OUTPUT
SELECT fate FROM table_name_4 WHERE nationality = "united kingdom" AND tonnage = "1,809" | {
"input": "CREATE TABLE table_name_4 (fate VARCHAR, nationality VARCHAR, tonnage VARCHAR)",
"instruction": "Which Fate has a Nationality of united kingdom, and a Tonnage of 1,809?",
"output": "SELECT fate FROM table_name_4 WHERE nationality = \"united kingdom\" AND tonnage = \"1,809\""
} |
### INSTRUCTION
On how many different dates was a game against Houston played?
### INPUT
CREATE TABLE table_19778010_5 (date VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT COUNT(date) FROM table_19778010_5 WHERE opponent = "Houston" | {
"input": "CREATE TABLE table_19778010_5 (date VARCHAR, opponent VARCHAR)",
"instruction": "On how many different dates was a game against Houston played?",
"output": "SELECT COUNT(date) FROM table_19778010_5 WHERE opponent = \"Houston\""
} |
### INSTRUCTION
What day was the complete 2nd series: volume one released?
### INPUT
CREATE TABLE table_17798548_4 (date_released VARCHAR, season VARCHAR)
### OUTPUT
SELECT date_released FROM table_17798548_4 WHERE season = "The Complete 2nd Series: Volume One" | {
"input": "CREATE TABLE table_17798548_4 (date_released VARCHAR, season VARCHAR)",
"instruction": "What day was the complete 2nd series: volume one released?",
"output": "SELECT date_released FROM table_17798548_4 WHERE season = \"The Complete 2nd Series: Volume One\""
} |
### INSTRUCTION
Name the extension for university of washington
### INPUT
CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR)
### OUTPUT
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington" | {
"input": "CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR)",
"instruction": "Name the extension for university of washington",
"output": "SELECT extension FROM table_22771048_3 WHERE city_neighborhood = \"University of Washington\""
} |
### INSTRUCTION
What is the maximum number of 2006 subscribers for Glo Mobile?
### INPUT
CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)
### OUTPUT
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Glo Mobile" | {
"input": "CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)",
"instruction": "What is the maximum number of 2006 subscribers for Glo Mobile?",
"output": "SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = \"Glo Mobile\""
} |
### INSTRUCTION
How many metropolitan boroughs have dorridge as a station?
### INPUT
CREATE TABLE table_15366849_1 (c_ VARCHAR, metropolitan_borough_ VARCHAR, station VARCHAR)
### OUTPUT
SELECT COUNT(metropolitan_borough_)[c_] FROM table_15366849_1 WHERE station = "Dorridge" | {
"input": "CREATE TABLE table_15366849_1 (c_ VARCHAR, metropolitan_borough_ VARCHAR, station VARCHAR)",
"instruction": "How many metropolitan boroughs have dorridge as a station?",
"output": "SELECT COUNT(metropolitan_borough_)[c_] FROM table_15366849_1 WHERE station = \"Dorridge\""
} |
### INSTRUCTION
What year was the class 253 larger than 18 built?
### INPUT
CREATE TABLE table_name_10 (year_built VARCHAR, class VARCHAR, number VARCHAR)
### OUTPUT
SELECT year_built FROM table_name_10 WHERE class = "class 253" AND number > 18 | {
"input": "CREATE TABLE table_name_10 (year_built VARCHAR, class VARCHAR, number VARCHAR)",
"instruction": "What year was the class 253 larger than 18 built?",
"output": "SELECT year_built FROM table_name_10 WHERE class = \"class 253\" AND number > 18"
} |
### INSTRUCTION
What is the lowest Game, when Location is Philips Arena, and when Attendance is less than 15,619?
### INPUT
CREATE TABLE table_name_68 (game INTEGER, location VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT MIN(game) FROM table_name_68 WHERE location = "philips arena" AND attendance < 15 OFFSET 619 | {
"input": "CREATE TABLE table_name_68 (game INTEGER, location VARCHAR, attendance VARCHAR)",
"instruction": "What is the lowest Game, when Location is Philips Arena, and when Attendance is less than 15,619?",
"output": "SELECT MIN(game) FROM table_name_68 WHERE location = \"philips arena\" AND attendance < 15 OFFSET 619"
} |
### INSTRUCTION
In 1990-2005 what is the lowest Start with Convs smaller than 2?
### INPUT
CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)
### OUTPUT
SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2 | {
"input": "CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)",
"instruction": "In 1990-2005 what is the lowest Start with Convs smaller than 2?",
"output": "SELECT MIN(start) FROM table_name_93 WHERE span = \"1990-2005\" AND conv < 2"
} |
### INSTRUCTION
what's the first elected with incumbent being clair engle
### INPUT
CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle" | {
"input": "CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)",
"instruction": "what's the first elected with incumbent being clair engle",
"output": "SELECT first_elected FROM table_1342233_6 WHERE incumbent = \"Clair Engle\""
} |
### INSTRUCTION
Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%
### INPUT
CREATE TABLE table_19753079_36 (incumbent VARCHAR, candidates VARCHAR)
### OUTPUT
SELECT incumbent FROM table_19753079_36 WHERE candidates = "Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%" | {
"input": "CREATE TABLE table_19753079_36 (incumbent VARCHAR, candidates VARCHAR)",
"instruction": "Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%",
"output": "SELECT incumbent FROM table_19753079_36 WHERE candidates = \"Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%\""
} |
### INSTRUCTION
Result of w 21–7 had what average week?
### INPUT
CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)
### OUTPUT
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7" | {
"input": "CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)",
"instruction": "Result of w 21–7 had what average week?",
"output": "SELECT AVG(week) FROM table_name_96 WHERE result = \"w 21–7\""
} |
### INSTRUCTION
Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22?
### INPUT
CREATE TABLE table_name_12 (general_classification VARCHAR, stage VARCHAR, mountains_classification VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = "mapei-bricobi" AND points_classification = "mariano piccoli" AND mountains_classification = "marco pantani" AND stage = "22" | {
"input": "CREATE TABLE table_name_12 (general_classification VARCHAR, stage VARCHAR, mountains_classification VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)",
"instruction": "Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22?",
"output": "SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = \"mapei-bricobi\" AND points_classification = \"mariano piccoli\" AND mountains_classification = \"marco pantani\" AND stage = \"22\""
} |
### INSTRUCTION
What is the Date that chicago black hawks has a Record of 2–2?
### INPUT
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
### OUTPUT
SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2" | {
"input": "CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)",
"instruction": "What is the Date that chicago black hawks has a Record of 2–2?",
"output": "SELECT date FROM table_name_5 WHERE visitor = \"chicago black hawks\" AND record = \"2–2\""
} |
### INSTRUCTION
Which Year is the highest that has a Team of walker racing, and Wins larger than 1?
### INPUT
CREATE TABLE table_name_58 (year INTEGER, team VARCHAR, wins VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_name_58 WHERE team = "walker racing" AND wins > 1 | {
"input": "CREATE TABLE table_name_58 (year INTEGER, team VARCHAR, wins VARCHAR)",
"instruction": "Which Year is the highest that has a Team of walker racing, and Wins larger than 1?",
"output": "SELECT MAX(year) FROM table_name_58 WHERE team = \"walker racing\" AND wins > 1"
} |
### INSTRUCTION
How much money did Ian Chamings request?
### INPUT
CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
### OUTPUT
SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings" | {
"input": "CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)",
"instruction": "How much money did Ian Chamings request?",
"output": "SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = \"ian chamings\""
} |
### INSTRUCTION
What was the To par for United States golfer fred couples?
### INPUT
CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, player VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_17 WHERE country = "united states" AND player = "fred couples" | {
"input": "CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, player VARCHAR)",
"instruction": "What was the To par for United States golfer fred couples?",
"output": "SELECT to_par FROM table_name_17 WHERE country = \"united states\" AND player = \"fred couples\""
} |
### INSTRUCTION
How many cards does customer Art Turcotte have?
### INPUT
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte" | {
"input": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)",
"instruction": "How many cards does customer Art Turcotte have?",
"output": "SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\""
} |
### INSTRUCTION
How many staff live in state Georgia?
### INPUT
CREATE TABLE Addresses (state_province_county VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Addresses WHERE state_province_county = "Georgia" | {
"input": "CREATE TABLE Addresses (state_province_county VARCHAR)",
"instruction": "How many staff live in state Georgia?",
"output": "SELECT COUNT(*) FROM Addresses WHERE state_province_county = \"Georgia\""
} |
### INSTRUCTION
Name the snatch when body weight is 73.7
### INPUT
CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR)
### OUTPUT
SELECT snatch FROM table_16779068_5 WHERE body_weight = "737" | {
"input": "CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR)",
"instruction": "Name the snatch when body weight is 73.7",
"output": "SELECT snatch FROM table_16779068_5 WHERE body_weight = \"737\""
} |
### INSTRUCTION
Which road team has a result of 117-114?
### INPUT
CREATE TABLE table_name_61 (road_team VARCHAR, result VARCHAR)
### OUTPUT
SELECT road_team FROM table_name_61 WHERE result = "117-114" | {
"input": "CREATE TABLE table_name_61 (road_team VARCHAR, result VARCHAR)",
"instruction": "Which road team has a result of 117-114?",
"output": "SELECT road_team FROM table_name_61 WHERE result = \"117-114\""
} |
### INSTRUCTION
What is the total number of positions having points over 2, more than 4 losses, and under 10 matches played?
### INPUT
CREATE TABLE table_name_20 (position VARCHAR, played VARCHAR, points VARCHAR, lost VARCHAR)
### OUTPUT
SELECT COUNT(position) FROM table_name_20 WHERE points > 2 AND lost > 4 AND played < 10 | {
"input": "CREATE TABLE table_name_20 (position VARCHAR, played VARCHAR, points VARCHAR, lost VARCHAR)",
"instruction": "What is the total number of positions having points over 2, more than 4 losses, and under 10 matches played?",
"output": "SELECT COUNT(position) FROM table_name_20 WHERE points > 2 AND lost > 4 AND played < 10"
} |
### INSTRUCTION
When @ new orleans is the team who has the highest amount of rebounds?
### INPUT
CREATE TABLE table_17288825_6 (high_rebounds VARCHAR, team VARCHAR)
### OUTPUT
SELECT high_rebounds FROM table_17288825_6 WHERE team = "@ New Orleans" | {
"input": "CREATE TABLE table_17288825_6 (high_rebounds VARCHAR, team VARCHAR)",
"instruction": "When @ new orleans is the team who has the highest amount of rebounds?",
"output": "SELECT high_rebounds FROM table_17288825_6 WHERE team = \"@ New Orleans\""
} |
### INSTRUCTION
What are the names of conductors whose nationalities are not "USA"?
### INPUT
CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR)
### OUTPUT
SELECT Name FROM conductor WHERE Nationality <> 'USA' | {
"input": "CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR)",
"instruction": "What are the names of conductors whose nationalities are not \"USA\"?",
"output": "SELECT Name FROM conductor WHERE Nationality <> 'USA'"
} |
### INSTRUCTION
What was the outcome of the match against andy roddick?
### INPUT
CREATE TABLE table_name_78 (outcome VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT outcome FROM table_name_78 WHERE opponent = "andy roddick" | {
"input": "CREATE TABLE table_name_78 (outcome VARCHAR, opponent VARCHAR)",
"instruction": "What was the outcome of the match against andy roddick?",
"output": "SELECT outcome FROM table_name_78 WHERE opponent = \"andy roddick\""
} |
### INSTRUCTION
What is the average FAC/LC apps with a CL G greater than 0, less than 33 PL apps, a FAC/LC G of 0, and less than 2 FA YC?
### INPUT
CREATE TABLE table_name_46 (fac___lc_apps INTEGER, fa_yc VARCHAR, fac___lc_g VARCHAR, cl_g VARCHAR, pl_apps VARCHAR)
### OUTPUT
SELECT AVG(fac___lc_apps) FROM table_name_46 WHERE cl_g > 0 AND pl_apps < 33 AND fac___lc_g = 0 AND fa_yc < 2 | {
"input": "CREATE TABLE table_name_46 (fac___lc_apps INTEGER, fa_yc VARCHAR, fac___lc_g VARCHAR, cl_g VARCHAR, pl_apps VARCHAR)",
"instruction": "What is the average FAC/LC apps with a CL G greater than 0, less than 33 PL apps, a FAC/LC G of 0, and less than 2 FA YC?",
"output": "SELECT AVG(fac___lc_apps) FROM table_name_46 WHERE cl_g > 0 AND pl_apps < 33 AND fac___lc_g = 0 AND fa_yc < 2"
} |
### INSTRUCTION
Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member?
### INPUT
CREATE TABLE table_name_25 (party VARCHAR, member VARCHAR, first_elected VARCHAR, state VARCHAR)
### OUTPUT
SELECT party FROM table_name_25 WHERE first_elected = "1966" AND state = "qld" AND member = "donald milner cameron" | {
"input": "CREATE TABLE table_name_25 (party VARCHAR, member VARCHAR, first_elected VARCHAR, state VARCHAR)",
"instruction": "Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member?",
"output": "SELECT party FROM table_name_25 WHERE first_elected = \"1966\" AND state = \"qld\" AND member = \"donald milner cameron\""
} |
### INSTRUCTION
What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
### INPUT
CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR)
### OUTPUT
SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV" | {
"input": "CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR)",
"instruction": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"Robin CV\"?",
"output": "SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\""
} |
### INSTRUCTION
Show the most common apartment type code among apartments with more than 1 bathroom.
### INPUT
CREATE TABLE Apartments (apt_type_code VARCHAR, bathroom_count INTEGER)
### OUTPUT
SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Apartments (apt_type_code VARCHAR, bathroom_count INTEGER)",
"instruction": "Show the most common apartment type code among apartments with more than 1 bathroom.",
"output": "SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
If the median income is $57,407, what is the per capita income?
### INPUT
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)
### OUTPUT
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407" | {
"input": "CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)",
"instruction": "If the median income is $57,407, what is the per capita income?",
"output": "SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = \"$57,407\""
} |
### INSTRUCTION
Which gender had a decile of more than 1 and featured the South Auckland Seventh-Day Adventist School?
### INPUT
CREATE TABLE table_name_16 (gender VARCHAR, decile VARCHAR, name VARCHAR)
### OUTPUT
SELECT gender FROM table_name_16 WHERE decile > 1 AND name = "south auckland seventh-day adventist school" | {
"input": "CREATE TABLE table_name_16 (gender VARCHAR, decile VARCHAR, name VARCHAR)",
"instruction": "Which gender had a decile of more than 1 and featured the South Auckland Seventh-Day Adventist School?",
"output": "SELECT gender FROM table_name_16 WHERE decile > 1 AND name = \"south auckland seventh-day adventist school\""
} |
### INSTRUCTION
which institutes gave the democratic renewal 18.0% – 22.0% on a poll from October 6, 1985?
### INPUT
CREATE TABLE table_1919538_1 (institute VARCHAR, democratic_renewal VARCHAR)
### OUTPUT
SELECT institute FROM table_1919538_1 WHERE democratic_renewal = "18.0% – 22.0%" | {
"input": "CREATE TABLE table_1919538_1 (institute VARCHAR, democratic_renewal VARCHAR)",
"instruction": "which institutes gave the democratic renewal 18.0% – 22.0% on a poll from October 6, 1985?",
"output": "SELECT institute FROM table_1919538_1 WHERE democratic_renewal = \"18.0% – 22.0%\""
} |
### INSTRUCTION
What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?
### INPUT
CREATE TABLE table_name_92 (rank VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR, assets__billion_$_ VARCHAR, industry VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_name_92 WHERE assets__billion_$_ < 248.44 AND industry = "oil and gas" AND headquarters = "france" AND market_value__billion_$_ > 152.62 | {
"input": "CREATE TABLE table_name_92 (rank VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR, assets__billion_$_ VARCHAR, industry VARCHAR)",
"instruction": "What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?",
"output": "SELECT COUNT(rank) FROM table_name_92 WHERE assets__billion_$_ < 248.44 AND industry = \"oil and gas\" AND headquarters = \"france\" AND market_value__billion_$_ > 152.62"
} |
### INSTRUCTION
Who directed all the episodes that were written by aaron ehasz & john o'bryan?
### INPUT
CREATE TABLE table_14562722_1 (directed_by VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT directed_by FROM table_14562722_1 WHERE written_by = "Aaron Ehasz & John O'Bryan" | {
"input": "CREATE TABLE table_14562722_1 (directed_by VARCHAR, written_by VARCHAR)",
"instruction": "Who directed all the episodes that were written by aaron ehasz & john o'bryan?",
"output": "SELECT directed_by FROM table_14562722_1 WHERE written_by = \"Aaron Ehasz & John O'Bryan\""
} |
### INSTRUCTION
What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?
### INPUT
CREATE TABLE table_name_99 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_99 WHERE entrant = "rotary watches stanley brm" AND chassis = "brm p207" AND points > 0 | {
"input": "CREATE TABLE table_name_99 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR)",
"instruction": "What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?",
"output": "SELECT MIN(year) FROM table_name_99 WHERE entrant = \"rotary watches stanley brm\" AND chassis = \"brm p207\" AND points > 0"
} |
### INSTRUCTION
Name the number of first elected for phil crane
### INPUT
CREATE TABLE table_1341672_14 (first_elected VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT COUNT(first_elected) FROM table_1341672_14 WHERE incumbent = "Phil Crane" | {
"input": "CREATE TABLE table_1341672_14 (first_elected VARCHAR, incumbent VARCHAR)",
"instruction": "Name the number of first elected for phil crane",
"output": "SELECT COUNT(first_elected) FROM table_1341672_14 WHERE incumbent = \"Phil Crane\""
} |
### INSTRUCTION
NJame the total number of population for towns/villages for 217
### INPUT
CREATE TABLE table_16278825_1 (population VARCHAR, towns__villages VARCHAR)
### OUTPUT
SELECT COUNT(population) FROM table_16278825_1 WHERE towns__villages = 217 | {
"input": "CREATE TABLE table_16278825_1 (population VARCHAR, towns__villages VARCHAR)",
"instruction": "NJame the total number of population for towns/villages for 217",
"output": "SELECT COUNT(population) FROM table_16278825_1 WHERE towns__villages = 217"
} |
### INSTRUCTION
How many in total were elected first in lost renomination?
### INPUT
CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)
### OUTPUT
SELECT COUNT(first_elected) FROM table_1342338_3 WHERE result = "Lost renomination" | {
"input": "CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)",
"instruction": "How many in total were elected first in lost renomination?",
"output": "SELECT COUNT(first_elected) FROM table_1342338_3 WHERE result = \"Lost renomination\""
} |
### INSTRUCTION
What was the dominant religion in 2002 of the settlement with the cyrillic and other name of војводинци (romanian: voivodinţ)?
### INPUT
CREATE TABLE table_2562572_46 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
### OUTPUT
SELECT dominant_religion__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Војводинци (Romanian: Voivodinţ)" | {
"input": "CREATE TABLE table_2562572_46 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)",
"instruction": "What was the dominant religion in 2002 of the settlement with the cyrillic and other name of војводинци (romanian: voivodinţ)?",
"output": "SELECT dominant_religion__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = \"Војводинци (Romanian: Voivodinţ)\""
} |
### INSTRUCTION
What's the total power of the unit whose construction finished on 14.06.1963?
### INPUT
CREATE TABLE table_12983929_1 (total_power VARCHAR, construction_finish VARCHAR)
### OUTPUT
SELECT total_power FROM table_12983929_1 WHERE construction_finish = "14.06.1963" | {
"input": "CREATE TABLE table_12983929_1 (total_power VARCHAR, construction_finish VARCHAR)",
"instruction": "What's the total power of the unit whose construction finished on 14.06.1963?",
"output": "SELECT total_power FROM table_12983929_1 WHERE construction_finish = \"14.06.1963\""
} |
### INSTRUCTION
What is the city in Alabama that opened in 1996?
### INPUT
CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR)
### OUTPUT
SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "alabama" | {
"input": "CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR)",
"instruction": "What is the city in Alabama that opened in 1996?",
"output": "SELECT city FROM table_name_89 WHERE year_opened = \"1996\" AND state = \"alabama\""
} |
### INSTRUCTION
Name the least point for mv agusta and rank of 13th for wins less than 0
### INPUT
CREATE TABLE table_name_52 (points INTEGER, wins VARCHAR, team VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MIN(points) FROM table_name_52 WHERE team = "mv agusta" AND rank = "13th" AND wins < 0 | {
"input": "CREATE TABLE table_name_52 (points INTEGER, wins VARCHAR, team VARCHAR, rank VARCHAR)",
"instruction": "Name the least point for mv agusta and rank of 13th for wins less than 0",
"output": "SELECT MIN(points) FROM table_name_52 WHERE team = \"mv agusta\" AND rank = \"13th\" AND wins < 0"
} |
### INSTRUCTION
Name the average reported isn for july 2007 for kuwait release of no
### INPUT
CREATE TABLE table_name_4 (reported_isn INTEGER, on_july_2007_press_release VARCHAR, citizenship VARCHAR)
### OUTPUT
SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = "no" AND citizenship = "kuwait" | {
"input": "CREATE TABLE table_name_4 (reported_isn INTEGER, on_july_2007_press_release VARCHAR, citizenship VARCHAR)",
"instruction": "Name the average reported isn for july 2007 for kuwait release of no",
"output": "SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = \"no\" AND citizenship = \"kuwait\""
} |
### INSTRUCTION
When zachary sanders is the performer how many first aired are there?
### INPUT
CREATE TABLE table_191105_2 (first_aired VARCHAR, performed_by VARCHAR)
### OUTPUT
SELECT COUNT(first_aired) FROM table_191105_2 WHERE performed_by = "Zachary Sanders" | {
"input": "CREATE TABLE table_191105_2 (first_aired VARCHAR, performed_by VARCHAR)",
"instruction": "When zachary sanders is the performer how many first aired are there?",
"output": "SELECT COUNT(first_aired) FROM table_191105_2 WHERE performed_by = \"Zachary Sanders\""
} |
### INSTRUCTION
What was the winning team with the 8,132 final attendance?
### INPUT
CREATE TABLE table_name_20 (winningteam VARCHAR, cup_final_attendance VARCHAR)
### OUTPUT
SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = "8,132" | {
"input": "CREATE TABLE table_name_20 (winningteam VARCHAR, cup_final_attendance VARCHAR)",
"instruction": "What was the winning team with the 8,132 final attendance?",
"output": "SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = \"8,132\""
} |
### INSTRUCTION
what year was the opponent caroline garcia?
### INPUT
CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia" | {
"input": "CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR)",
"instruction": "what year was the opponent caroline garcia?",
"output": "SELECT SUM(year) FROM table_name_22 WHERE opponent = \"caroline garcia\""
} |
### INSTRUCTION
What was the winning score in the Alfred Dunhill links championship?
### INPUT
CREATE TABLE table_name_35 (winning_score VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT winning_score FROM table_name_35 WHERE tournament = "alfred dunhill links championship" | {
"input": "CREATE TABLE table_name_35 (winning_score VARCHAR, tournament VARCHAR)",
"instruction": "What was the winning score in the Alfred Dunhill links championship?",
"output": "SELECT winning_score FROM table_name_35 WHERE tournament = \"alfred dunhill links championship\""
} |
### INSTRUCTION
Find the name of tracks which are in both Movies and music playlists.
### INPUT
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | {
"input": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)",
"instruction": "Find the name of tracks which are in both Movies and music playlists.",
"output": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'"
} |
### INSTRUCTION
What Utah Jazz Forward played for Southern Methodist?
### INPUT
CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist" | {
"input": "CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)",
"instruction": "What Utah Jazz Forward played for Southern Methodist?",
"output": "SELECT player FROM table_name_74 WHERE position = \"forward\" AND school_club_team = \"southern methodist\""
} |
### INSTRUCTION
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
### INPUT
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
### OUTPUT
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192" | {
"input": "CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)",
"instruction": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192.",
"output": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"2192\""
} |
### INSTRUCTION
What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?
### INPUT
CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR)
### OUTPUT
SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = "equity bank" AND number_of_branches < 44 | {
"input": "CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR)",
"instruction": "What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?",
"output": "SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = \"equity bank\" AND number_of_branches < 44"
} |
### INSTRUCTION
Who are all successors when reason for change is died May 12, 1964?
### INPUT
CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR)
### OUTPUT
SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964" | {
"input": "CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR)",
"instruction": "Who are all successors when reason for change is died May 12, 1964?",
"output": "SELECT successor FROM table_2159506_4 WHERE reason_for_change = \"Died May 12, 1964\""
} |
### INSTRUCTION
What fourth-place has 2 (1999, 2005) as the runner(s)-up?
### INPUT
CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)
### OUTPUT
SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)" | {
"input": "CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)",
"instruction": "What fourth-place has 2 (1999, 2005) as the runner(s)-up?",
"output": "SELECT fourth_place FROM table_name_26 WHERE runners_up = \"2 (1999, 2005)\""
} |
### INSTRUCTION
Which tournament had a score of 7–5, 2–6, 7–6?
### INPUT
CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6" | {
"input": "CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR)",
"instruction": "Which tournament had a score of 7–5, 2–6, 7–6?",
"output": "SELECT tournament FROM table_name_7 WHERE score = \"7–5, 2–6, 7–6\""
} |
### INSTRUCTION
I want the country for score of 274 and runner-up of virginie lagoutte-clément
### INPUT
CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR)
### OUTPUT
SELECT country FROM table_name_93 WHERE score = "274" AND runner_s__up = "virginie lagoutte-clément" | {
"input": "CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR)",
"instruction": "I want the country for score of 274 and runner-up of virginie lagoutte-clément",
"output": "SELECT country FROM table_name_93 WHERE score = \"274\" AND runner_s__up = \"virginie lagoutte-clément\""
} |
### INSTRUCTION
Find the first name and country code of the player who did the most number of tours.
### INPUT
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
### OUTPUT
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1 | {
"input": "CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)",
"instruction": "Find the first name and country code of the player who did the most number of tours.",
"output": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1"
} |
### INSTRUCTION
What is the average Margin that has a Round of 13. (h)?
### INPUT
CREATE TABLE table_name_3 (margin INTEGER, round VARCHAR)
### OUTPUT
SELECT AVG(margin) FROM table_name_3 WHERE round = "13. (h)" | {
"input": "CREATE TABLE table_name_3 (margin INTEGER, round VARCHAR)",
"instruction": "What is the average Margin that has a Round of 13. (h)?",
"output": "SELECT AVG(margin) FROM table_name_3 WHERE round = \"13. (h)\""
} |
### INSTRUCTION
What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897?
### INPUT
CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT COUNT(week) FROM table_name_79 WHERE venue = "milwaukee county stadium" AND attendance = 47 OFFSET 897 | {
"input": "CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR)",
"instruction": "What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897?",
"output": "SELECT COUNT(week) FROM table_name_79 WHERE venue = \"milwaukee county stadium\" AND attendance = 47 OFFSET 897"
} |
### INSTRUCTION
What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?
### INPUT
CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_36 WHERE margin_of_victory = "playoff" AND tournament = "shirley englehorn invitational" | {
"input": "CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?",
"output": "SELECT date FROM table_name_36 WHERE margin_of_victory = \"playoff\" AND tournament = \"shirley englehorn invitational\""
} |
### INSTRUCTION
What is the location and attendance of game 44?
### INPUT
CREATE TABLE table_name_65 (location_attendance VARCHAR, game VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_65 WHERE game = 44 | {
"input": "CREATE TABLE table_name_65 (location_attendance VARCHAR, game VARCHAR)",
"instruction": "What is the location and attendance of game 44?",
"output": "SELECT location_attendance FROM table_name_65 WHERE game = 44"
} |
### INSTRUCTION
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.
### INPUT
CREATE TABLE table_name_21 (general_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_21 WHERE points_classification = "daniele bennati" AND young_rider_classification = "morris possoni" AND stage = "3" | {
"input": "CREATE TABLE table_name_21 (general_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)",
"instruction": "What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.",
"output": "SELECT general_classification FROM table_name_21 WHERE points_classification = \"daniele bennati\" AND young_rider_classification = \"morris possoni\" AND stage = \"3\""
} |
### INSTRUCTION
Name the centerfold model when interview subject is steve jobs
### INPUT
CREATE TABLE table_1566848_6 (centerfold_model VARCHAR, interview_subject VARCHAR)
### OUTPUT
SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = "Steve Jobs" | {
"input": "CREATE TABLE table_1566848_6 (centerfold_model VARCHAR, interview_subject VARCHAR)",
"instruction": "Name the centerfold model when interview subject is steve jobs",
"output": "SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = \"Steve Jobs\""
} |
### INSTRUCTION
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
### INPUT
CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
### OUTPUT
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1 | {
"input": "CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)",
"instruction": "Find the name and country of origin for all artists who have release at least one song of resolution above 900.",
"output": "SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1"
} |
### INSTRUCTION
When is the rhel release date when scientific linux release is 3.0.4
### INPUT
CREATE TABLE table_1500146_1 (rhel_release_date VARCHAR, scientific_linux_release VARCHAR)
### OUTPUT
SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = "3.0.4" | {
"input": "CREATE TABLE table_1500146_1 (rhel_release_date VARCHAR, scientific_linux_release VARCHAR)",
"instruction": "When is the rhel release date when scientific linux release is 3.0.4",
"output": "SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = \"3.0.4\""
} |
### INSTRUCTION
What is the date of the label Dos or Die Recordings?
### INPUT
CREATE TABLE table_name_9 (date VARCHAR, label VARCHAR)
### OUTPUT
SELECT date FROM table_name_9 WHERE label = "dos or die recordings" | {
"input": "CREATE TABLE table_name_9 (date VARCHAR, label VARCHAR)",
"instruction": "What is the date of the label Dos or Die Recordings?",
"output": "SELECT date FROM table_name_9 WHERE label = \"dos or die recordings\""
} |
### INSTRUCTION
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
### INPUT
CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)
### OUTPUT
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006 | {
"input": "CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)",
"instruction": "What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?",
"output": "SELECT SUM(losses) FROM table_name_50 WHERE result = \"runner-up\" AND wins = 1 AND year < 2006"
} |
### INSTRUCTION
What record was set when the result/game was montreal 20 @ ottawa 10?
### INPUT
CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR)
### OUTPUT
SELECT type_of_record FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" | {
"input": "CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR)",
"instruction": "What record was set when the result/game was montreal 20 @ ottawa 10?",
"output": "SELECT type_of_record FROM table_21436373_8 WHERE result_games = \"Montreal 20 @ Ottawa 10\""
} |
### INSTRUCTION
How many years did Team Newman/Haas Racing receive a 1st place ranking?
### INPUT
CREATE TABLE table_name_86 (year VARCHAR, team VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_86 WHERE team = "newman/haas racing" AND rank = "1st" | {
"input": "CREATE TABLE table_name_86 (year VARCHAR, team VARCHAR, rank VARCHAR)",
"instruction": "How many years did Team Newman/Haas Racing receive a 1st place ranking?",
"output": "SELECT COUNT(year) FROM table_name_86 WHERE team = \"newman/haas racing\" AND rank = \"1st\""
} |
### INSTRUCTION
Which date was the show aired on the RTL Televizija network?
### INPUT
CREATE TABLE table_name_90 (date_aired VARCHAR, network VARCHAR)
### OUTPUT
SELECT date_aired FROM table_name_90 WHERE network = "rtl televizija" | {
"input": "CREATE TABLE table_name_90 (date_aired VARCHAR, network VARCHAR)",
"instruction": "Which date was the show aired on the RTL Televizija network?",
"output": "SELECT date_aired FROM table_name_90 WHERE network = \"rtl televizija\""
} |
### INSTRUCTION
Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?
### INPUT
CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)
### OUTPUT
SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127 | {
"input": "CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)",
"instruction": "Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?",
"output": "SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = \"virginia\" AND overall > 127"
} |
### INSTRUCTION
How many coaches does each club has? List the club id, name and the number of coaches.
### INPUT
CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR)
### OUTPUT
SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id | {
"input": "CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR)",
"instruction": "How many coaches does each club has? List the club id, name and the number of coaches.",
"output": "SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id"
} |
### INSTRUCTION
In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps?
### INPUT
CREATE TABLE table_name_72 (season INTEGER, apps VARCHAR, country VARCHAR, team VARCHAR)
### OUTPUT
SELECT MAX(season) FROM table_name_72 WHERE country = "uzbekistan" AND team = "fc pakhtakor tashkent" AND apps > 6 | {
"input": "CREATE TABLE table_name_72 (season INTEGER, apps VARCHAR, country VARCHAR, team VARCHAR)",
"instruction": "In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps?",
"output": "SELECT MAX(season) FROM table_name_72 WHERE country = \"uzbekistan\" AND team = \"fc pakhtakor tashkent\" AND apps > 6"
} |
### INSTRUCTION
Income poverty f smaller than 13.6, and a Mining b of 1, and a Structural poverty g smaller than 7.8, so what is the total number of agriculture?
### INPUT
CREATE TABLE table_name_10 (agri_culture_b VARCHAR, structural_poverty_g VARCHAR, income_poverty_f VARCHAR, mining_b VARCHAR)
### OUTPUT
SELECT COUNT(agri_culture_b) FROM table_name_10 WHERE income_poverty_f < 13.6 AND mining_b = 1 AND structural_poverty_g < 7.8 | {
"input": "CREATE TABLE table_name_10 (agri_culture_b VARCHAR, structural_poverty_g VARCHAR, income_poverty_f VARCHAR, mining_b VARCHAR)",
"instruction": "Income poverty f smaller than 13.6, and a Mining b of 1, and a Structural poverty g smaller than 7.8, so what is the total number of agriculture?",
"output": "SELECT COUNT(agri_culture_b) FROM table_name_10 WHERE income_poverty_f < 13.6 AND mining_b = 1 AND structural_poverty_g < 7.8"
} |
### INSTRUCTION
What is the main color(s) for marlboro?
### INPUT
CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)
### OUTPUT
SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro" | {
"input": "CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)",
"instruction": "What is the main color(s) for marlboro?",
"output": "SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = \"marlboro\""
} |
### INSTRUCTION
What is the highest Rank of Karen Pickering when she had a time of less than 55.71?
### INPUT
CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.71 | {
"input": "CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR)",
"instruction": "What is the highest Rank of Karen Pickering when she had a time of less than 55.71?",
"output": "SELECT MAX(rank) FROM table_name_59 WHERE name = \"karen pickering\" AND time < 55.71"
} |
### INSTRUCTION
Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?
### INPUT
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Luke Ellery" AND winning_driver = "Wayne Boyd" | {
"input": "CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)",
"instruction": "Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?",
"output": "SELECT location FROM table_29285076_2 WHERE fastest_lap = \"Luke Ellery\" AND winning_driver = \"Wayne Boyd\""
} |
### INSTRUCTION
What was the winning score of the PGA Championship (3)?
### INPUT
CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)
### OUTPUT
SELECT winning_score FROM table_13026799_1 WHERE championship = "PGA championship (3)" | {
"input": "CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)",
"instruction": "What was the winning score of the PGA Championship (3)?",
"output": "SELECT winning_score FROM table_13026799_1 WHERE championship = \"PGA championship (3)\""
} |
### INSTRUCTION
What is the clock multiplier if the voltage range (v) is 3.3 - 3.6; input clock (mhz) is 33 x 3 / 50 x 2; and part number is a80486dx4-100?
### INPUT
CREATE TABLE table_15261_1 (clock_multiplier VARCHAR, part_number VARCHAR, voltage_range__v_ VARCHAR, input_clock__mhz_ VARCHAR)
### OUTPUT
SELECT clock_multiplier FROM table_15261_1 WHERE voltage_range__v_ = "3.3 - 3.6" AND input_clock__mhz_ = "33 X 3 / 50 X 2" AND part_number = "A80486DX4-100" | {
"input": "CREATE TABLE table_15261_1 (clock_multiplier VARCHAR, part_number VARCHAR, voltage_range__v_ VARCHAR, input_clock__mhz_ VARCHAR)",
"instruction": "What is the clock multiplier if the voltage range (v) is 3.3 - 3.6; input clock (mhz) is 33 x 3 / 50 x 2; and part number is a80486dx4-100?",
"output": "SELECT clock_multiplier FROM table_15261_1 WHERE voltage_range__v_ = \"3.3 - 3.6\" AND input_clock__mhz_ = \"33 X 3 / 50 X 2\" AND part_number = \"A80486DX4-100\""
} |
### INSTRUCTION
Name the leader battle for plamen
### INPUT
CREATE TABLE table_25920798_2 (leader_battle VARCHAR, eliminated VARCHAR)
### OUTPUT
SELECT leader_battle FROM table_25920798_2 WHERE eliminated = "Plamen" | {
"input": "CREATE TABLE table_25920798_2 (leader_battle VARCHAR, eliminated VARCHAR)",
"instruction": "Name the leader battle for plamen",
"output": "SELECT leader_battle FROM table_25920798_2 WHERE eliminated = \"Plamen\""
} |
### INSTRUCTION
What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson?
### INPUT
CREATE TABLE table_28697228_4 (rushing_yards INTEGER, opponent VARCHAR, player VARCHAR)
### OUTPUT
SELECT MAX(rushing_yards) FROM table_28697228_4 WHERE opponent = "Indiana" AND player = "Denard Robinson" | {
"input": "CREATE TABLE table_28697228_4 (rushing_yards INTEGER, opponent VARCHAR, player VARCHAR)",
"instruction": "What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson?",
"output": "SELECT MAX(rushing_yards) FROM table_28697228_4 WHERE opponent = \"Indiana\" AND player = \"Denard Robinson\""
} |
### INSTRUCTION
List the hardware model name for the phons that were produced by "Nokia Corporation" but whose screen mode type is not Text.
### INPUT
CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
### OUTPUT
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type <> "Text" | {
"input": "CREATE TABLE phone (Hardware_Model_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)",
"instruction": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.",
"output": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = \"Nokia Corporation\" AND T1.Type <> \"Text\""
} |
### INSTRUCTION
What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?
### INPUT
CREATE TABLE table_name_60 (yards INTEGER, sack VARCHAR, asst VARCHAR, totaltk VARCHAR)
### OUTPUT
SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0 | {
"input": "CREATE TABLE table_name_60 (yards INTEGER, sack VARCHAR, asst VARCHAR, totaltk VARCHAR)",
"instruction": "What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?",
"output": "SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0"
} |
### INSTRUCTION
What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?
### INPUT
CREATE TABLE table_name_25 (leftfielder VARCHAR, year VARCHAR, shortstop VARCHAR, second_baseman VARCHAR)
### OUTPUT
SELECT leftfielder FROM table_name_25 WHERE shortstop = "bill russell" AND second_baseman = "steve sax" AND year = 1983 | {
"input": "CREATE TABLE table_name_25 (leftfielder VARCHAR, year VARCHAR, shortstop VARCHAR, second_baseman VARCHAR)",
"instruction": "What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?",
"output": "SELECT leftfielder FROM table_name_25 WHERE shortstop = \"bill russell\" AND second_baseman = \"steve sax\" AND year = 1983"
} |
### INSTRUCTION
What is the name of party with most number of members?
### INPUT
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)
### OUTPUT
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)",
"instruction": "What is the name of party with most number of members?",
"output": "SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Record of 42–16–8, and a March larger than 5 has what average points?
### INPUT
CREATE TABLE table_name_95 (points INTEGER, record VARCHAR, march VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_95 WHERE record = "42–16–8" AND march > 5 | {
"input": "CREATE TABLE table_name_95 (points INTEGER, record VARCHAR, march VARCHAR)",
"instruction": "Record of 42–16–8, and a March larger than 5 has what average points?",
"output": "SELECT AVG(points) FROM table_name_95 WHERE record = \"42–16–8\" AND march > 5"
} |
### INSTRUCTION
What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?
### INPUT
CREATE TABLE table_name_26 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_name_26 WHERE manner_of_departure = "sacked" AND outgoing_manager = "fred rutten" | {
"input": "CREATE TABLE table_name_26 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)",
"instruction": "What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?",
"output": "SELECT date_of_appointment FROM table_name_26 WHERE manner_of_departure = \"sacked\" AND outgoing_manager = \"fred rutten\""
} |
### INSTRUCTION
What is the marketing region code that has the most drama workshop groups?
### INPUT
CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR)
### OUTPUT
SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR)",
"instruction": "What is the marketing region code that has the most drama workshop groups?",
"output": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?
### INPUT
CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = "spin" | {
"input": "CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)",
"instruction": "Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?",
"output": "SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = \"spin\""
} |
### INSTRUCTION
Name the date of appointment for sacked and 14th position replaced by marco kostmann
### INPUT
CREATE TABLE table_17327264_3 (date_of_appointment VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_17327264_3 WHERE manner_of_departure = "Sacked" AND position_in_table = "14th" AND replaced_by = "Marco Kostmann" | {
"input": "CREATE TABLE table_17327264_3 (date_of_appointment VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)",
"instruction": "Name the date of appointment for sacked and 14th position replaced by marco kostmann",
"output": "SELECT date_of_appointment FROM table_17327264_3 WHERE manner_of_departure = \"Sacked\" AND position_in_table = \"14th\" AND replaced_by = \"Marco Kostmann\""
} |
### INSTRUCTION
Tell me the format with year more than 2000 and label of myuzyk with catalog number of mzykn08
### INPUT
CREATE TABLE table_name_48 (format VARCHAR, catalog_number VARCHAR, year VARCHAR, label VARCHAR)
### OUTPUT
SELECT format FROM table_name_48 WHERE year > 2000 AND label = "myuzyk" AND catalog_number = "mzykn08" | {
"input": "CREATE TABLE table_name_48 (format VARCHAR, catalog_number VARCHAR, year VARCHAR, label VARCHAR)",
"instruction": "Tell me the format with year more than 2000 and label of myuzyk with catalog number of mzykn08",
"output": "SELECT format FROM table_name_48 WHERE year > 2000 AND label = \"myuzyk\" AND catalog_number = \"mzykn08\""
} |
### INSTRUCTION
Which Runner-up has a Winning score of −20 (70-69-64-65=268)?
### INPUT
CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268) | {
"input": "CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)",
"instruction": "Which Runner-up has a Winning score of −20 (70-69-64-65=268)?",
"output": "SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268)"
} |
### INSTRUCTION
What game did the Bruins have 56 points?
### INPUT
CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)
### OUTPUT
SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56 | {
"input": "CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)",
"instruction": "What game did the Bruins have 56 points?",
"output": "SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56"
} |
### INSTRUCTION
For the game that was played on october 22 in west side grounds, what is the total attendance
### INPUT
CREATE TABLE table_name_41 (attendance VARCHAR, location VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(attendance) FROM table_name_41 WHERE location = "west side grounds" AND date = "october 22" | {
"input": "CREATE TABLE table_name_41 (attendance VARCHAR, location VARCHAR, date VARCHAR)",
"instruction": "For the game that was played on october 22 in west side grounds, what is the total attendance",
"output": "SELECT COUNT(attendance) FROM table_name_41 WHERE location = \"west side grounds\" AND date = \"october 22\""
} |
### INSTRUCTION
Show the role description and the id of the project staff involved in most number of project outcomes?
### INPUT
CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR)
### OUTPUT
SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR)",
"instruction": "Show the role description and the id of the project staff involved in most number of project outcomes?",
"output": "SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Find the average grade point of student whose last name is Smith.
### INPUT
CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR)
### OUTPUT
SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith" | {
"input": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR)",
"instruction": "Find the average grade point of student whose last name is Smith.",
"output": "SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.