context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_98 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MIN(silver) FROM table_name_98 WHERE bronze = 1 AND rank < 2 AND gold > 4 | what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4? | <s>[INST]what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4? Context: CREATE TABLE table_name_98 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)[/INST]SELECT MIN(silver) FROM table_name_98 WHERE bronze = 1 AND rank < 2 AND gold > 4</s> |
CREATE TABLE table_name_65 (round INTEGER, position VARCHAR) | SELECT AVG(round) FROM table_name_65 WHERE position = "te" | What is the average round for te position? | <s>[INST]What is the average round for te position? Context: CREATE TABLE table_name_65 (round INTEGER, position VARCHAR)[/INST]SELECT AVG(round) FROM table_name_65 WHERE position = "te"</s> |
CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR) | SELECT type FROM table_name_26 WHERE quantity = 5 | What type has 5 as the quantity? | <s>[INST]What type has 5 as the quantity? Context: CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR)[/INST]SELECT type FROM table_name_26 WHERE quantity = 5</s> |
CREATE TABLE table_name_88 (rank INTEGER, points VARCHAR, places VARCHAR) | SELECT AVG(rank) FROM table_name_88 WHERE points < "166".96 AND places = "166" | What is the rank for points less than 166.96, and a Places of 166? | <s>[INST]What is the rank for points less than 166.96, and a Places of 166? Context: CREATE TABLE table_name_88 (rank INTEGER, points VARCHAR, places VARCHAR)[/INST]SELECT AVG(rank) FROM table_name_88 WHERE points < "166".96 AND places = "166"</s> |
CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland" | How many golds were there for Iceland with more than 15 silver? | <s>[INST]How many golds were there for Iceland with more than 15 silver? Context: CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland"</s> |
CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR) | SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6" | Who is the Partner in the match with a Score of 6-4, 2-6, 7-6? | <s>[INST]Who is the Partner in the match with a Score of 6-4, 2-6, 7-6? Context: CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR)[/INST]SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6"</s> |
CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR) | SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men" | What was the result of the Top 12 Men theme? | <s>[INST]What was the result of the Top 12 Men theme? Context: CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR)[/INST]SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men"</s> |
CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR) | SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen" | How many laps did Jos Verstappen do on Grid 2? | <s>[INST]How many laps did Jos Verstappen do on Grid 2? Context: CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR)[/INST]SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen"</s> |
CREATE TABLE table_name_23 (chief_judge VARCHAR, active_service VARCHAR) | SELECT chief_judge FROM table_name_23 WHERE active_service = "1873–1875" | Which Chief Judge has Active service of 1873–1875? | <s>[INST]Which Chief Judge has Active service of 1873–1875? Context: CREATE TABLE table_name_23 (chief_judge VARCHAR, active_service VARCHAR)[/INST]SELECT chief_judge FROM table_name_23 WHERE active_service = "1873–1875"</s> |
CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) | SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" | Which League has a Venue of martin luther king, jr. recreation center? | <s>[INST]Which League has a Venue of martin luther king, jr. recreation center? Context: CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR)[/INST]SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center"</s> |
CREATE TABLE table_name_25 (conf VARCHAR, original_nfl_team VARCHAR) | SELECT conf FROM table_name_25 WHERE original_nfl_team = "denver broncos" | What conference did the player originally from the denver broncos play in? | <s>[INST]What conference did the player originally from the denver broncos play in? Context: CREATE TABLE table_name_25 (conf VARCHAR, original_nfl_team VARCHAR)[/INST]SELECT conf FROM table_name_25 WHERE original_nfl_team = "denver broncos"</s> |
CREATE TABLE table_29281529_2 (challenger VARCHAR, iron_chef VARCHAR) | SELECT challenger FROM table_29281529_2 WHERE iron_chef = "Guillaume Brahimi" | Who was the challenger when guillaume brahimi was the iron chef? | <s>[INST]Who was the challenger when guillaume brahimi was the iron chef? Context: CREATE TABLE table_29281529_2 (challenger VARCHAR, iron_chef VARCHAR)[/INST]SELECT challenger FROM table_29281529_2 WHERE iron_chef = "Guillaume Brahimi"</s> |
CREATE TABLE table_22998777_1 (season VARCHAR, position VARCHAR) | SELECT COUNT(season) FROM table_22998777_1 WHERE position = "26th" | If the position of 26th what is the season total number? | <s>[INST]If the position of 26th what is the season total number? Context: CREATE TABLE table_22998777_1 (season VARCHAR, position VARCHAR)[/INST]SELECT COUNT(season) FROM table_22998777_1 WHERE position = "26th"</s> |
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_9 WHERE away_team = "essendon" | Where did Essendon play as the away team? | <s>[INST]Where did Essendon play as the away team? Context: CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR)[/INST]SELECT venue FROM table_name_9 WHERE away_team = "essendon"</s> |
CREATE TABLE table_18461635_1 (captain VARCHAR, county VARCHAR) | SELECT captain FROM table_18461635_1 WHERE county = "Essex" | Who is the captain of the team in Essex county? | <s>[INST]Who is the captain of the team in Essex county? Context: CREATE TABLE table_18461635_1 (captain VARCHAR, county VARCHAR)[/INST]SELECT captain FROM table_18461635_1 WHERE county = "Essex"</s> |
CREATE TABLE table_name_3 (accolade VARCHAR, year VARCHAR, country VARCHAR) | SELECT accolade FROM table_name_3 WHERE year < 2009 AND country = "germany" | What is Accolade, when Year is less than 2009, and when Country is Germany? | <s>[INST]What is Accolade, when Year is less than 2009, and when Country is Germany? Context: CREATE TABLE table_name_3 (accolade VARCHAR, year VARCHAR, country VARCHAR)[/INST]SELECT accolade FROM table_name_3 WHERE year < 2009 AND country = "germany"</s> |
CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) | SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros" | What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? | <s>[INST]What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? Context: CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR)[/INST]SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros"</s> |
CREATE TABLE table_2319437_1 (step_6 VARCHAR, gs_grade VARCHAR) | SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | Name the total number of step 6 for 11 gs grade | <s>[INST]Name the total number of step 6 for 11 gs grade Context: CREATE TABLE table_2319437_1 (step_6 VARCHAR, gs_grade VARCHAR)[/INST]SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11</s> |
CREATE TABLE Aircraft (distance INTEGER) | SELECT COUNT(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 | How many aircrafts have distance between 1000 and 5000? | <s>[INST]How many aircrafts have distance between 1000 and 5000? Context: CREATE TABLE Aircraft (distance INTEGER)[/INST]SELECT COUNT(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000</s> |
CREATE TABLE table_name_31 (report VARCHAR, venue VARCHAR) | SELECT report FROM table_name_31 WHERE venue = "king baudouin stadium brussels, belgium" | What's the report in King Baudouin Stadium Brussels, Belgium? | <s>[INST]What's the report in King Baudouin Stadium Brussels, Belgium? Context: CREATE TABLE table_name_31 (report VARCHAR, venue VARCHAR)[/INST]SELECT report FROM table_name_31 WHERE venue = "king baudouin stadium brussels, belgium"</s> |
CREATE TABLE Customers (customer_details VARCHAR) | SELECT DISTINCT customer_details FROM Customers | What are all the distinct details of the customers? | <s>[INST]What are all the distinct details of the customers? Context: CREATE TABLE Customers (customer_details VARCHAR)[/INST]SELECT DISTINCT customer_details FROM Customers</s> |
CREATE TABLE table_21313327_1 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_21313327_1 WHERE us_viewers__millions_ = "3.3" | what was the name of the episode that got 3.3 (millions) of u.s viewers? | <s>[INST]what was the name of the episode that got 3.3 (millions) of u.s viewers? Context: CREATE TABLE table_21313327_1 (title VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT title FROM table_21313327_1 WHERE us_viewers__millions_ = "3.3"</s> |
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) | SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick") | What are the ids of the problems reported after the date of any problems reported by Rylan Homenick? | <s>[INST]What are the ids of the problems reported after the date of any problems reported by Rylan Homenick? Context: CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)[/INST]SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick")</s> |
CREATE TABLE table_name_32 (tournament VARCHAR) | SELECT 2007 FROM table_name_32 WHERE tournament = "grand slam sr" | Which 2007 has a Tournament of grand slam sr? | <s>[INST]Which 2007 has a Tournament of grand slam sr? Context: CREATE TABLE table_name_32 (tournament VARCHAR)[/INST]SELECT 2007 FROM table_name_32 WHERE tournament = "grand slam sr"</s> |
CREATE TABLE table_name_61 (games INTEGER, gold VARCHAR, first VARCHAR) | SELECT SUM(games) FROM table_name_61 WHERE gold > 0 AND first < 2008 | How many games are associated with over 0 golds and a first year before 2008? | <s>[INST]How many games are associated with over 0 golds and a first year before 2008? Context: CREATE TABLE table_name_61 (games INTEGER, gold VARCHAR, first VARCHAR)[/INST]SELECT SUM(games) FROM table_name_61 WHERE gold > 0 AND first < 2008</s> |
CREATE TABLE table_name_4 (frequency INTEGER, callsign VARCHAR) | SELECT MAX(frequency) FROM table_name_4 WHERE callsign = "kbdr" | What's the highest frequency of the KBDR callsign? | <s>[INST]What's the highest frequency of the KBDR callsign? Context: CREATE TABLE table_name_4 (frequency INTEGER, callsign VARCHAR)[/INST]SELECT MAX(frequency) FROM table_name_4 WHERE callsign = "kbdr"</s> |
CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR) | SELECT points_difference FROM table_20760802_1 WHERE points_for = "134" | How many points differ from 134? | <s>[INST]How many points differ from 134? Context: CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR)[/INST]SELECT points_difference FROM table_20760802_1 WHERE points_for = "134"</s> |
CREATE TABLE table_name_57 (team VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR) | SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)" | What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds? | <s>[INST]What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds? Context: CREATE TABLE table_name_57 (team VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)[/INST]SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)"</s> |
CREATE TABLE table_name_59 (result VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT result FROM table_name_59 WHERE opponent = "leeds" AND date = "20/03/2008" | What result was a date of 20/03/2008 with leeds as the opponent | <s>[INST]What result was a date of 20/03/2008 with leeds as the opponent Context: CREATE TABLE table_name_59 (result VARCHAR, opponent VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_59 WHERE opponent = "leeds" AND date = "20/03/2008"</s> |
CREATE TABLE table_name_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR) | SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn" | Which American Labor candidate is running against the Socialist candidate Herman J. Hahn? | <s>[INST]Which American Labor candidate is running against the Socialist candidate Herman J. Hahn? Context: CREATE TABLE table_name_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR)[/INST]SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn"</s> |
CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_23 WHERE college = "british columbia" | What player was from the British Columbia college? | <s>[INST]What player was from the British Columbia college? Context: CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR)[/INST]SELECT player FROM table_name_23 WHERE college = "british columbia"</s> |
CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR) | SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%" | How many times was country considered when starky % was 20.96% | <s>[INST]How many times was country considered when starky % was 20.96% Context: CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR)[/INST]SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%"</s> |
CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR) | SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China" | Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". | <s>[INST]Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". Context: CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR)[/INST]SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China"</s> |
CREATE TABLE table_name_80 (Group VARCHAR, song VARCHAR) | SELECT Group AS song FROM table_name_80 WHERE song = "换季" | What is Group Song, when Song is 换季? | <s>[INST]What is Group Song, when Song is 换季? Context: CREATE TABLE table_name_80 (Group VARCHAR, song VARCHAR)[/INST]SELECT Group AS song FROM table_name_80 WHERE song = "换季"</s> |
CREATE TABLE table_name_95 (team VARCHAR, pos VARCHAR, year VARCHAR) | SELECT team FROM table_name_95 WHERE pos = "1st" AND year = 2011 | Which team has finished in 1st place in 2011? | <s>[INST]Which team has finished in 1st place in 2011? Context: CREATE TABLE table_name_95 (team VARCHAR, pos VARCHAR, year VARCHAR)[/INST]SELECT team FROM table_name_95 WHERE pos = "1st" AND year = 2011</s> |
CREATE TABLE table_16689920_1 (track VARCHAR, time VARCHAR) | SELECT COUNT(track) FROM table_16689920_1 WHERE time = "1:48.16" | At 1:48.16 what was the number of track time? | <s>[INST]At 1:48.16 what was the number of track time? Context: CREATE TABLE table_16689920_1 (track VARCHAR, time VARCHAR)[/INST]SELECT COUNT(track) FROM table_16689920_1 WHERE time = "1:48.16"</s> |
CREATE TABLE table_name_35 (driver VARCHAR, points VARCHAR) | SELECT driver FROM table_name_35 WHERE points = 6 | What is the name of the driver with 6 points? | <s>[INST]What is the name of the driver with 6 points? Context: CREATE TABLE table_name_35 (driver VARCHAR, points VARCHAR)[/INST]SELECT driver FROM table_name_35 WHERE points = 6</s> |
CREATE TABLE table_2233872_1 (season VARCHAR, gf VARCHAR) | SELECT season FROM table_2233872_1 WHERE gf = 244 | What was the season where the team reached a GP of 244? | <s>[INST]What was the season where the team reached a GP of 244? Context: CREATE TABLE table_2233872_1 (season VARCHAR, gf VARCHAR)[/INST]SELECT season FROM table_2233872_1 WHERE gf = 244</s> |
CREATE TABLE table_name_77 (height_ft___m VARCHAR, name VARCHAR) | SELECT height_ft___m FROM table_name_77 WHERE name = "555 17th street" | What is the height of the building named 555 17th street? | <s>[INST]What is the height of the building named 555 17th street? Context: CREATE TABLE table_name_77 (height_ft___m VARCHAR, name VARCHAR)[/INST]SELECT height_ft___m FROM table_name_77 WHERE name = "555 17th street"</s> |
CREATE TABLE table_22644589_4 (free_dance__fd_ VARCHAR, compulsory_dance__cd_ VARCHAR) | SELECT free_dance__fd_ FROM table_22644589_4 WHERE compulsory_dance__cd_ = "15.99" | What was the free dance score in the event where compulsory dance score was 15.99? | <s>[INST]What was the free dance score in the event where compulsory dance score was 15.99? Context: CREATE TABLE table_22644589_4 (free_dance__fd_ VARCHAR, compulsory_dance__cd_ VARCHAR)[/INST]SELECT free_dance__fd_ FROM table_22644589_4 WHERE compulsory_dance__cd_ = "15.99"</s> |
CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR) | SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir" | What is the date of Gavril Radomir's Bulgarian Victory? | <s>[INST]What is the date of Gavril Radomir's Bulgarian Victory? Context: CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR)[/INST]SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir"</s> |
CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR) | SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million" | Name the original title for 6.05 million viewership | <s>[INST]Name the original title for 6.05 million viewership Context: CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR)[/INST]SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million"</s> |
CREATE TABLE table_name_53 (album_title VARCHAR, title VARCHAR) | SELECT album_title FROM table_name_53 WHERE title = "滑板" | Which Album title has a Title of 滑板? | <s>[INST]Which Album title has a Title of 滑板? Context: CREATE TABLE table_name_53 (album_title VARCHAR, title VARCHAR)[/INST]SELECT album_title FROM table_name_53 WHERE title = "滑板"</s> |
CREATE TABLE table_name_83 (team VARCHAR, points_diff VARCHAR) | SELECT team FROM table_name_83 WHERE points_diff = "+119" | What team has +119 Points diff? | <s>[INST]What team has +119 Points diff? Context: CREATE TABLE table_name_83 (team VARCHAR, points_diff VARCHAR)[/INST]SELECT team FROM table_name_83 WHERE points_diff = "+119"</s> |
CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR) | SELECT COUNT(date) FROM table_name_67 WHERE partner = "carl-uwe steeb" | What is the total number of Date, when Partner is "Carl-Uwe Steeb"? | <s>[INST]What is the total number of Date, when Partner is "Carl-Uwe Steeb"? Context: CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR)[/INST]SELECT COUNT(date) FROM table_name_67 WHERE partner = "carl-uwe steeb"</s> |
CREATE TABLE table_1792122_11 (original_air_date VARCHAR, no_in_series VARCHAR) | SELECT original_air_date FROM table_1792122_11 WHERE no_in_series = 71 | What was the original are date of series number 71? | <s>[INST]What was the original are date of series number 71? Context: CREATE TABLE table_1792122_11 (original_air_date VARCHAR, no_in_series VARCHAR)[/INST]SELECT original_air_date FROM table_1792122_11 WHERE no_in_series = 71</s> |
CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR) | SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') | Find the title of course whose prerequisite is course Differential Geometry. | <s>[INST]Find the title of course whose prerequisite is course Differential Geometry. Context: CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)[/INST]SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')</s> |
CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_43 WHERE player = "celestino tugot" | Where did Celestino Tugot place? | <s>[INST]Where did Celestino Tugot place? Context: CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR)[/INST]SELECT place FROM table_name_43 WHERE player = "celestino tugot"</s> |
CREATE TABLE table_14752049_1 (country VARCHAR, rank VARCHAR) | SELECT country FROM table_14752049_1 WHERE rank = 5 | Which country has a rank of 5? | <s>[INST]Which country has a rank of 5? Context: CREATE TABLE table_14752049_1 (country VARCHAR, rank VARCHAR)[/INST]SELECT country FROM table_14752049_1 WHERE rank = 5</s> |
CREATE TABLE table_2493389_1 (butter VARCHAR, protein__g_ VARCHAR) | SELECT COUNT(butter) FROM table_2493389_1 WHERE protein__g_ = "3" | Name the number of butters for 3 protein | <s>[INST]Name the number of butters for 3 protein Context: CREATE TABLE table_2493389_1 (butter VARCHAR, protein__g_ VARCHAR)[/INST]SELECT COUNT(butter) FROM table_2493389_1 WHERE protein__g_ = "3"</s> |
CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR) | SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35 | What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V? | <s>[INST]What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V? Context: CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)[/INST]SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35</s> |
CREATE TABLE table_name_12 (game INTEGER, march VARCHAR) | SELECT SUM(game) FROM table_name_12 WHERE march = 15 | what is the game when march is 15? | <s>[INST]what is the game when march is 15? Context: CREATE TABLE table_name_12 (game INTEGER, march VARCHAR)[/INST]SELECT SUM(game) FROM table_name_12 WHERE march = 15</s> |
CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR) | SELECT rank FROM table_name_18 WHERE laps = 151 | Name the rank for 151 Laps | <s>[INST]Name the rank for 151 Laps Context: CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR)[/INST]SELECT rank FROM table_name_18 WHERE laps = 151</s> |
CREATE TABLE table_name_45 (name VARCHAR, position VARCHAR, college VARCHAR) | SELECT name FROM table_name_45 WHERE position = "cornerback" AND college = "wisconsin" | What is the name of the cornerback from Wisconsin college? | <s>[INST]What is the name of the cornerback from Wisconsin college? Context: CREATE TABLE table_name_45 (name VARCHAR, position VARCHAR, college VARCHAR)[/INST]SELECT name FROM table_name_45 WHERE position = "cornerback" AND college = "wisconsin"</s> |
CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44" | What was the location and attendance when the team's record was 16-44? | <s>[INST]What was the location and attendance when the team's record was 16-44? Context: CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR)[/INST]SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44"</s> |
CREATE TABLE table_20745759_1 (record VARCHAR, date VARCHAR) | SELECT record FROM table_20745759_1 WHERE date = "January 18, 1997" | Name the record for january 18, 1997 | <s>[INST]Name the record for january 18, 1997 Context: CREATE TABLE table_20745759_1 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_20745759_1 WHERE date = "January 18, 1997"</s> |
CREATE TABLE table_name_46 (design VARCHAR, serial_format VARCHAR) | SELECT design FROM table_name_46 WHERE serial_format = "ab-12-34" | Which design has a serial format of AB-12-34? | <s>[INST]Which design has a serial format of AB-12-34? Context: CREATE TABLE table_name_46 (design VARCHAR, serial_format VARCHAR)[/INST]SELECT design FROM table_name_46 WHERE serial_format = "ab-12-34"</s> |
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR) | SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans" | When did the Titans play the Houston Texans at LP Field before Week 13? | <s>[INST]When did the Titans play the Houston Texans at LP Field before Week 13? Context: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)[/INST]SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans"</s> |
CREATE TABLE table_name_34 (edition VARCHAR, partner VARCHAR) | SELECT edition FROM table_name_34 WHERE partner = "magdalena maleeva" | What edition had magdalena maleeva as partner? | <s>[INST]What edition had magdalena maleeva as partner? Context: CREATE TABLE table_name_34 (edition VARCHAR, partner VARCHAR)[/INST]SELECT edition FROM table_name_34 WHERE partner = "magdalena maleeva"</s> |
CREATE TABLE table_name_90 (game INTEGER, score VARCHAR) | SELECT AVG(game) FROM table_name_90 WHERE score = "l 102–114 (ot)" | Which Game has a Score of l 102–114 (ot)? | <s>[INST]Which Game has a Score of l 102–114 (ot)? Context: CREATE TABLE table_name_90 (game INTEGER, score VARCHAR)[/INST]SELECT AVG(game) FROM table_name_90 WHERE score = "l 102–114 (ot)"</s> |
CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR) | SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar" | Name the employee real name for raw and superstar | <s>[INST]Name the employee real name for raw and superstar Context: CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR)[/INST]SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar"</s> |
CREATE TABLE table_27329061_2 (version VARCHAR, compatible_repository VARCHAR) | SELECT version FROM table_27329061_2 WHERE compatible_repository = "Xubuntu 10.04" | What is the version when the compatible reposityory is xubuntu 10.04 | <s>[INST]What is the version when the compatible reposityory is xubuntu 10.04 Context: CREATE TABLE table_27329061_2 (version VARCHAR, compatible_repository VARCHAR)[/INST]SELECT version FROM table_27329061_2 WHERE compatible_repository = "Xubuntu 10.04"</s> |
CREATE TABLE table_22862203_2 (terps_points INTEGER, opp_points VARCHAR) | SELECT MAX(terps_points) FROM table_22862203_2 WHERE opp_points = 53 | What is the highest number of terps points in games where the opponent made 53 points? | <s>[INST]What is the highest number of terps points in games where the opponent made 53 points? Context: CREATE TABLE table_22862203_2 (terps_points INTEGER, opp_points VARCHAR)[/INST]SELECT MAX(terps_points) FROM table_22862203_2 WHERE opp_points = 53</s> |
CREATE TABLE table_name_79 (duration VARCHAR, test_flight VARCHAR) | SELECT duration FROM table_name_79 WHERE test_flight = "free flight #3" | What it Duration, when Test Flight is Free Flight #3? | <s>[INST]What it Duration, when Test Flight is Free Flight #3? Context: CREATE TABLE table_name_79 (duration VARCHAR, test_flight VARCHAR)[/INST]SELECT duration FROM table_name_79 WHERE test_flight = "free flight #3"</s> |
CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR) | SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first" | What is the story timeline that was published first prior to 1984? | <s>[INST]What is the story timeline that was published first prior to 1984? Context: CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR)[/INST]SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first"</s> |
CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, conference VARCHAR) | SELECT tournament_winner FROM table_22733636_1 WHERE conference = "Border conference" | When the Border Conference was held, who was the tournament winner? | <s>[INST]When the Border Conference was held, who was the tournament winner? Context: CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, conference VARCHAR)[/INST]SELECT tournament_winner FROM table_22733636_1 WHERE conference = "Border conference"</s> |
CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR) | SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3 | How many people directed episode 3 in the season? | <s>[INST]How many people directed episode 3 in the season? Context: CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR)[/INST]SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3</s> |
CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR) | SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia' | Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia. | <s>[INST]Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia. Context: CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)[/INST]SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'</s> |
CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) | SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1 | What are the name and id of the team with the most victories in 2008 postseason? | <s>[INST]What are the name and id of the team with the most victories in 2008 postseason? Context: CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)[/INST]SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_10706961_2 (rd VARCHAR, name VARCHAR) | SELECT rd FROM table_10706961_2 WHERE name = "Indianapolis 500" | Which Rd took place at the Indianapolis 500? | <s>[INST]Which Rd took place at the Indianapolis 500? Context: CREATE TABLE table_10706961_2 (rd VARCHAR, name VARCHAR)[/INST]SELECT rd FROM table_10706961_2 WHERE name = "Indianapolis 500"</s> |
CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR) | SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in" | Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in? | <s>[INST]Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in? Context: CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR)[/INST]SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in"</s> |
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR) | SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 | Find the names of all instructors in Comp. Sci. department with salary > 80000. | <s>[INST]Find the names of all instructors in Comp. Sci. department with salary > 80000. Context: CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)[/INST]SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000</s> |
CREATE TABLE table_name_29 (turbo VARCHAR, release_price___usd__ VARCHAR) | SELECT turbo FROM table_name_29 WHERE release_price___usd__ = "$583" | What Turbo has the Release price (USD) of $583? | <s>[INST]What Turbo has the Release price (USD) of $583? Context: CREATE TABLE table_name_29 (turbo VARCHAR, release_price___usd__ VARCHAR)[/INST]SELECT turbo FROM table_name_29 WHERE release_price___usd__ = "$583"</s> |
CREATE TABLE table_19744915_18 (rank INTEGER, result VARCHAR, public VARCHAR) | SELECT MAX(rank) FROM table_19744915_18 WHERE result = "Safe" AND public = 8 | When 8 is the public and the result is safe what is the highest rank? | <s>[INST]When 8 is the public and the result is safe what is the highest rank? Context: CREATE TABLE table_19744915_18 (rank INTEGER, result VARCHAR, public VARCHAR)[/INST]SELECT MAX(rank) FROM table_19744915_18 WHERE result = "Safe" AND public = 8</s> |
CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR) | SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory" | Name the total number of stage for lloyd mondory | <s>[INST]Name the total number of stage for lloyd mondory Context: CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)[/INST]SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory"</s> |
CREATE TABLE table_18828487_1 (runner_up VARCHAR, year VARCHAR) | SELECT COUNT(runner_up) FROM table_18828487_1 WHERE year = 2009 | In 2009, how many were runner-up? | <s>[INST]In 2009, how many were runner-up? Context: CREATE TABLE table_18828487_1 (runner_up VARCHAR, year VARCHAR)[/INST]SELECT COUNT(runner_up) FROM table_18828487_1 WHERE year = 2009</s> |
CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR) | SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson" | What team does Reed Sorenson drive for? | <s>[INST]What team does Reed Sorenson drive for? Context: CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR)[/INST]SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson"</s> |
CREATE TABLE table_28039032_1 (round VARCHAR, winners_from_previous_round VARCHAR) | SELECT round FROM table_28039032_1 WHERE winners_from_previous_round = "16" | What was the round when there were 16 winners from the previous round? | <s>[INST]What was the round when there were 16 winners from the previous round? Context: CREATE TABLE table_28039032_1 (round VARCHAR, winners_from_previous_round VARCHAR)[/INST]SELECT round FROM table_28039032_1 WHERE winners_from_previous_round = "16"</s> |
CREATE TABLE table_name_34 (drawn INTEGER, difference VARCHAR, against VARCHAR) | SELECT AVG(drawn) FROM table_name_34 WHERE difference = "0" AND against > 31 | What is the mean drawn when the difference is 0 and the against stat is more than 31? | <s>[INST]What is the mean drawn when the difference is 0 and the against stat is more than 31? Context: CREATE TABLE table_name_34 (drawn INTEGER, difference VARCHAR, against VARCHAR)[/INST]SELECT AVG(drawn) FROM table_name_34 WHERE difference = "0" AND against > 31</s> |
CREATE TABLE table_name_61 (league_cup_goals VARCHAR, fa_cup_goals VARCHAR, total VARCHAR, league_goals VARCHAR) | SELECT league_cup_goals FROM table_name_61 WHERE total > "14" AND league_goals = "14" AND fa_cup_goals = "0" | Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0? | <s>[INST]Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0? Context: CREATE TABLE table_name_61 (league_cup_goals VARCHAR, fa_cup_goals VARCHAR, total VARCHAR, league_goals VARCHAR)[/INST]SELECT league_cup_goals FROM table_name_61 WHERE total > "14" AND league_goals = "14" AND fa_cup_goals = "0"</s> |
CREATE TABLE table_25214321_1 (season VARCHAR, third_place VARCHAR) | SELECT season FROM table_25214321_1 WHERE third_place = "Raquel Pacheco" | In what season did Raquel Pacheco finish in third place? | <s>[INST]In what season did Raquel Pacheco finish in third place? Context: CREATE TABLE table_25214321_1 (season VARCHAR, third_place VARCHAR)[/INST]SELECT season FROM table_25214321_1 WHERE third_place = "Raquel Pacheco"</s> |
CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR) | SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952" | How many floors have a Height m / feet of 900 / 2,952? | <s>[INST]How many floors have a Height m / feet of 900 / 2,952? Context: CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR)[/INST]SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952"</s> |
CREATE TABLE table_16494599_10 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) | SELECT years_for_grizzlies FROM table_16494599_10 WHERE school_club_team = "Minnesota" | During what years did athletes who attended school in Minnesota play for the Grizzlies? | <s>[INST]During what years did athletes who attended school in Minnesota play for the Grizzlies? Context: CREATE TABLE table_16494599_10 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)[/INST]SELECT years_for_grizzlies FROM table_16494599_10 WHERE school_club_team = "Minnesota"</s> |
CREATE TABLE table_16654785_2 (average_climb___percentage_ VARCHAR, length__m_ VARCHAR) | SELECT COUNT(average_climb___percentage_) FROM table_16654785_2 WHERE length__m_ = 375 | How many have a length of 375? | <s>[INST]How many have a length of 375? Context: CREATE TABLE table_16654785_2 (average_climb___percentage_ VARCHAR, length__m_ VARCHAR)[/INST]SELECT COUNT(average_climb___percentage_) FROM table_16654785_2 WHERE length__m_ = 375</s> |
CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR) | SELECT title FROM table_name_98 WHERE tracks = "noxialicht" | What movie has noxialicht as a track? | <s>[INST]What movie has noxialicht as a track? Context: CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR)[/INST]SELECT title FROM table_name_98 WHERE tracks = "noxialicht"</s> |
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_48 WHERE date = "august 2" | What was the attendance on August 2? | <s>[INST]What was the attendance on August 2? Context: CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_48 WHERE date = "august 2"</s> |
CREATE TABLE table_name_56 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_56 WHERE score = "111-96" | What record has a score of 111-96? | <s>[INST]What record has a score of 111-96? Context: CREATE TABLE table_name_56 (record VARCHAR, score VARCHAR)[/INST]SELECT record FROM table_name_56 WHERE score = "111-96"</s> |
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR) | SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m" | What is the record for the 400 m event on 4 september 2009? | <s>[INST]What is the record for the 400 m event on 4 september 2009? Context: CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR)[/INST]SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m"</s> |
CREATE TABLE table_15187735_17 (series_ep VARCHAR, segment_a VARCHAR) | SELECT series_ep FROM table_15187735_17 WHERE segment_a = "Rolled Wafers" | are rolled wafers in many episodes | <s>[INST]are rolled wafers in many episodes Context: CREATE TABLE table_15187735_17 (series_ep VARCHAR, segment_a VARCHAR)[/INST]SELECT series_ep FROM table_15187735_17 WHERE segment_a = "Rolled Wafers"</s> |
CREATE TABLE table_name_89 (winner VARCHAR) | SELECT 2 AS nd_runner_up FROM table_name_89 WHERE winner = "yuming lai (賴銘偉)" | Name the 2nd runner-up for yuming lai (賴銘偉) | <s>[INST]Name the 2nd runner-up for yuming lai (賴銘偉) Context: CREATE TABLE table_name_89 (winner VARCHAR)[/INST]SELECT 2 AS nd_runner_up FROM table_name_89 WHERE winner = "yuming lai (賴銘偉)"</s> |
CREATE TABLE table_1007688_1 (typhoid_fever VARCHAR, year VARCHAR) | SELECT typhoid_fever FROM table_1007688_1 WHERE year = "1934" | what is the typhoid fever number for the year 1934 | <s>[INST]what is the typhoid fever number for the year 1934 Context: CREATE TABLE table_1007688_1 (typhoid_fever VARCHAR, year VARCHAR)[/INST]SELECT typhoid_fever FROM table_1007688_1 WHERE year = "1934"</s> |
CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR, heat VARCHAR) | SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3 | What is the lowest lane with a time of 2:05.90, and a Heat larger than 3? | <s>[INST]What is the lowest lane with a time of 2:05.90, and a Heat larger than 3? Context: CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR, heat VARCHAR)[/INST]SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3</s> |
CREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR) | SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = "ngœbalngu" | What is them two (the two) when you and i is ngœbalngu? | <s>[INST]What is them two (the two) when you and i is ngœbalngu? Context: CREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR)[/INST]SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = "ngœbalngu"</s> |
CREATE TABLE table_1341930_21 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341930_21 WHERE incumbent = "Thomas J. Lane" | What party is incumbent thomas j. lane from? | <s>[INST]What party is incumbent thomas j. lane from? Context: CREATE TABLE table_1341930_21 (party VARCHAR, incumbent VARCHAR)[/INST]SELECT party FROM table_1341930_21 WHERE incumbent = "Thomas J. Lane"</s> |
CREATE TABLE table_name_70 (closure_date VARCHAR, region VARCHAR) | SELECT closure_date FROM table_name_70 WHERE region = "north east england" | What date was the ensemble in North East England closed? | <s>[INST]What date was the ensemble in North East England closed? Context: CREATE TABLE table_name_70 (closure_date VARCHAR, region VARCHAR)[/INST]SELECT closure_date FROM table_name_70 WHERE region = "north east england"</s> |
CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR) | SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh" | When did the Theme of bobsleigh release? | <s>[INST]When did the Theme of bobsleigh release? Context: CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR)[/INST]SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh"</s> |
CREATE TABLE table_name_64 (current_status VARCHAR, make VARCHAR, number_of_seats VARCHAR) | SELECT current_status FROM table_name_64 WHERE make = "gm advanced design" AND number_of_seats > 41 | What is the current status for GM Advanced Design with more than 41 seats? | <s>[INST]What is the current status for GM Advanced Design with more than 41 seats? Context: CREATE TABLE table_name_64 (current_status VARCHAR, make VARCHAR, number_of_seats VARCHAR)[/INST]SELECT current_status FROM table_name_64 WHERE make = "gm advanced design" AND number_of_seats > 41</s> |
CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR) | SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers" | What was the score when there was a visitor of Magic and at home with the Clippers? | <s>[INST]What was the score when there was a visitor of Magic and at home with the Clippers? Context: CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR)[/INST]SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers"</s> |
CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR) | SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%" | What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%? | <s>[INST]What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%? Context: CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR)[/INST]SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%"</s> |
CREATE TABLE authors (lname VARCHAR, fname VARCHAR) | SELECT lname FROM authors WHERE fname = "Amal" | Find the last name of the author with first name "Amal". | <s>[INST]Find the last name of the author with first name "Amal". Context: CREATE TABLE authors (lname VARCHAR, fname VARCHAR)[/INST]SELECT lname FROM authors WHERE fname = "Amal"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.