context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_71 (score INTEGER, player VARCHAR) | SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen" | what is the average score for søren kjeldsen? | <s>[INST]what is the average score for søren kjeldsen? Context: CREATE TABLE table_name_71 (score INTEGER, player VARCHAR)[/INST]SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen"</s> |
CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR) | SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42" | Name the D 47 when it has a D 48 of d 49 and D 42 of r 42 | <s>[INST]Name the D 47 when it has a D 48 of d 49 and D 42 of r 42 Context: CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR)[/INST]SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42"</s> |
CREATE TABLE table_name_58 (points VARCHAR, club VARCHAR) | SELECT points FROM table_name_58 WHERE club = "newport rfc" | How many points did Newport RFC get? | <s>[INST]How many points did Newport RFC get? Context: CREATE TABLE table_name_58 (points VARCHAR, club VARCHAR)[/INST]SELECT points FROM table_name_58 WHERE club = "newport rfc"</s> |
CREATE TABLE table_name_94 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_94 WHERE iata = "osl" | What is the Country when the IATA was osl? | <s>[INST]What is the Country when the IATA was osl? Context: CREATE TABLE table_name_94 (country VARCHAR, iata VARCHAR)[/INST]SELECT country FROM table_name_94 WHERE iata = "osl"</s> |
CREATE TABLE table_name_83 (player VARCHAR, chng VARCHAR, rating VARCHAR, prev VARCHAR) | SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = "+4" | What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng? | <s>[INST]What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng? Context: CREATE TABLE table_name_83 (player VARCHAR, chng VARCHAR, rating VARCHAR, prev VARCHAR)[/INST]SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = "+4"</s> |
CREATE TABLE table_name_94 (games INTEGER, years_at_club VARCHAR, debut_year VARCHAR) | SELECT SUM(games) FROM table_name_94 WHERE years_at_club = "1971–1974" AND debut_year > 1971 | How many Games have Years at club of 1971–1974, and a Debut year larger than 1971? | <s>[INST]How many Games have Years at club of 1971–1974, and a Debut year larger than 1971? Context: CREATE TABLE table_name_94 (games INTEGER, years_at_club VARCHAR, debut_year VARCHAR)[/INST]SELECT SUM(games) FROM table_name_94 WHERE years_at_club = "1971–1974" AND debut_year > 1971</s> |
CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR) | SELECT COUNT(match) FROM table_name_32 WHERE lost = 0 | How many matches have 0 as the lost? | <s>[INST]How many matches have 0 as the lost? Context: CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR)[/INST]SELECT COUNT(match) FROM table_name_32 WHERE lost = 0</s> |
CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR) | SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 | What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? | <s>[INST]What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? Context: CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR)[/INST]SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AN... |
CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = "philadelphia eagles" | What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles? | <s>[INST]What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles? Context: CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = "philadelphia eagles"</s> |
CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) | SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou" | Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? | <s>[INST]Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? Context: CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)[/INST]SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = ... |
CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER) | SELECT MAX(apps) FROM table_name_58 WHERE goals > 5 | What is the highest Apps, when Goals are greater than 5? | <s>[INST]What is the highest Apps, when Goals are greater than 5? Context: CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER)[/INST]SELECT MAX(apps) FROM table_name_58 WHERE goals > 5</s> |
CREATE TABLE table_name_30 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_30 WHERE visitor = "anaheim" | What was the date of the Red Wings home game against Anaheim? | <s>[INST]What was the date of the Red Wings home game against Anaheim? Context: CREATE TABLE table_name_30 (date VARCHAR, visitor VARCHAR)[/INST]SELECT date FROM table_name_30 WHERE visitor = "anaheim"</s> |
CREATE TABLE table_15887683_3 (content VARCHAR, n° VARCHAR) | SELECT content FROM table_15887683_3 WHERE n° = 204 | What's the content offered by the package number 204? | <s>[INST]What's the content offered by the package number 204? Context: CREATE TABLE table_15887683_3 (content VARCHAR, n° VARCHAR)[/INST]SELECT content FROM table_15887683_3 WHERE n° = 204</s> |
CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_6 WHERE date = "july 2" | What is the usual attendance for july 2? | <s>[INST]What is the usual attendance for july 2? Context: CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_6 WHERE date = "july 2"</s> |
CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR) | SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix" | What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? | <s>[INST]What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? Context: CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)[/INST]SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.r... |
CREATE TABLE table_name_77 (name VARCHAR, company VARCHAR) | SELECT name FROM table_name_77 WHERE company = "quantcast corporation" | Which Name has a Company of quantcast corporation? | <s>[INST]Which Name has a Company of quantcast corporation? Context: CREATE TABLE table_name_77 (name VARCHAR, company VARCHAR)[/INST]SELECT name FROM table_name_77 WHERE company = "quantcast corporation"</s> |
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_56 WHERE tie_no = "1" | What was the score for the game with a tie no of 1? | <s>[INST]What was the score for the game with a tie no of 1? Context: CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)[/INST]SELECT score FROM table_name_56 WHERE tie_no = "1"</s> |
CREATE TABLE table_name_78 (result VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR) | SELECT result FROM table_name_78 WHERE kickoff_[a_] = "4:00" AND record = "4-8" | What's the result when the kickoff was 4:00 and the record was 4-8? | <s>[INST]What's the result when the kickoff was 4:00 and the record was 4-8? Context: CREATE TABLE table_name_78 (result VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)[/INST]SELECT result FROM table_name_78 WHERE kickoff_[a_] = "4:00" AND record = "4-8"</s> |
CREATE TABLE table_2562572_43 (cyrillic_name_other_names VARCHAR, settlement VARCHAR) | SELECT COUNT(cyrillic_name_other_names) FROM table_2562572_43 WHERE settlement = "Idvor" | How many entries are there for cyrillic name other names where settlement is idvor? | <s>[INST]How many entries are there for cyrillic name other names where settlement is idvor? Context: CREATE TABLE table_2562572_43 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)[/INST]SELECT COUNT(cyrillic_name_other_names) FROM table_2562572_43 WHERE settlement = "Idvor"</s> |
CREATE TABLE table_name_32 (silver INTEGER, total INTEGER) | SELECT MAX(silver) FROM table_name_32 WHERE total < 1 | What is the highest number of silver medals for a team with total less than 1? | <s>[INST]What is the highest number of silver medals for a team with total less than 1? Context: CREATE TABLE table_name_32 (silver INTEGER, total INTEGER)[/INST]SELECT MAX(silver) FROM table_name_32 WHERE total < 1</s> |
CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288 | Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score? | <s>[INST]Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score? Context: CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288</s... |
CREATE TABLE table_17972136_1 (week INTEGER, game_site VARCHAR) | SELECT MIN(week) FROM table_17972136_1 WHERE game_site = "Riverfront Stadium" | Where is riverfront stadium the game site for the week? | <s>[INST]Where is riverfront stadium the game site for the week? Context: CREATE TABLE table_17972136_1 (week INTEGER, game_site VARCHAR)[/INST]SELECT MIN(week) FROM table_17972136_1 WHERE game_site = "Riverfront Stadium"</s> |
CREATE TABLE table_name_83 (pop_dens VARCHAR, population INTEGER) | SELECT COUNT(pop_dens) FROM table_name_83 WHERE population > 92 OFFSET 719 | What is the population density of the area with a population larger than 92,719? | <s>[INST]What is the population density of the area with a population larger than 92,719? Context: CREATE TABLE table_name_83 (pop_dens VARCHAR, population INTEGER)[/INST]SELECT COUNT(pop_dens) FROM table_name_83 WHERE population > 92 OFFSET 719</s> |
CREATE TABLE table_name_16 (Id VARCHAR) | SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0 | How much is the highest number in 2006 with fewer than 0 in 2002? | <s>[INST]How much is the highest number in 2006 with fewer than 0 in 2002? Context: CREATE TABLE table_name_16 (Id VARCHAR)[/INST]SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0</s> |
CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR) | SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%" | What is the Capacity in use with an Annual change that is 21.8%? | <s>[INST]What is the Capacity in use with an Annual change that is 21.8%? Context: CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR)[/INST]SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%"</s> |
CREATE TABLE table_name_44 (school VARCHAR, enrollment VARCHAR) | SELECT school FROM table_name_44 WHERE enrollment = 887 | Which school has enrollment of 887? | <s>[INST]Which school has enrollment of 887? Context: CREATE TABLE table_name_44 (school VARCHAR, enrollment VARCHAR)[/INST]SELECT school FROM table_name_44 WHERE enrollment = 887</s> |
CREATE TABLE table_name_77 (owner VARCHAR, horse VARCHAR, finished VARCHAR, trainer VARCHAR) | SELECT owner FROM table_name_77 WHERE finished < 15 AND trainer = "steve asmussen" AND horse = "z fortune" | What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"? | <s>[INST]What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"? Context: CREATE TABLE table_name_77 (owner VARCHAR, horse VARCHAR, finished VARCHAR, trainer VARCHAR)[/INST]SELECT owner FROM table_name_77 WHERE finished < 15 AND trainer = "steve asmussen" AND horse... |
CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR) | SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353 | What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? | <s>[INST]What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? Context: CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR)[/INST]SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353</s> |
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_44 WHERE date = "november 14" | WHAT IS THE RECORD FOR DATE NOVEMBER 14? | <s>[INST]WHAT IS THE RECORD FOR DATE NOVEMBER 14? Context: CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_44 WHERE date = "november 14"</s> |
CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR) | SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school" | What is the total decile with an Authority of state, and a Name of newfield park school? | <s>[INST]What is the total decile with an Authority of state, and a Name of newfield park school? Context: CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR)[/INST]SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school"</s> |
CREATE TABLE table_name_32 (name VARCHAR, street_address VARCHAR) | SELECT name FROM table_name_32 WHERE street_address = "401 n. wabash avenue" | Street Address of 401 n. wabash avenue involves what name? | <s>[INST]Street Address of 401 n. wabash avenue involves what name? Context: CREATE TABLE table_name_32 (name VARCHAR, street_address VARCHAR)[/INST]SELECT name FROM table_name_32 WHERE street_address = "401 n. wabash avenue"</s> |
CREATE TABLE table_1745843_9 (part_1 VARCHAR, verb_meaning VARCHAR) | SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give" | Name the part one for to give | <s>[INST]Name the part one for to give Context: CREATE TABLE table_1745843_9 (part_1 VARCHAR, verb_meaning VARCHAR)[/INST]SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give"</s> |
CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR) | SELECT cName FROM College WHERE enr < 13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr > 15000 AND state = "LA" | Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment. | <s>[INST]Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment. Context: CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR)[/INST]SELECT cName FROM College WHERE enr < 13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr > 15000 AND... |
CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) | SELECT MIN(number_of_electorates__2003_) FROM table_name_85 WHERE district = "bhind" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "11" | What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11? | <s>[INST]What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11? Context: CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)[/INST]SELECT MIN(number_of_electorat... |
CREATE TABLE table_name_45 (nation VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT nation FROM table_name_45 WHERE bronze > 1 AND silver < 3 | What nation has more than 1 bronze and less than 3 silver? | <s>[INST]What nation has more than 1 bronze and less than 3 silver? Context: CREATE TABLE table_name_45 (nation VARCHAR, bronze VARCHAR, silver VARCHAR)[/INST]SELECT nation FROM table_name_45 WHERE bronze > 1 AND silver < 3</s> |
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR) | SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year" | How many premio are there when "Artist of the Year" was the categoria? | <s>[INST]How many premio are there when "Artist of the Year" was the categoria? Context: CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)[/INST]SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"</s> |
CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR) | SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004 | Name the venue for 2004 and position of 25th | <s>[INST]Name the venue for 2004 and position of 25th Context: CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR)[/INST]SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004</s> |
CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR) | SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3 | Find the name and rank of the 3 youngest winners across all matches. | <s>[INST]Find the name and rank of the 3 youngest winners across all matches. Context: CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR)[/INST]SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3</s> |
CREATE TABLE table_name_52 (weight VARCHAR, diameter VARCHAR) | SELECT weight FROM table_name_52 WHERE diameter = "14mm" | How much does the coin with a 14mm diameter weigh? | <s>[INST]How much does the coin with a 14mm diameter weigh? Context: CREATE TABLE table_name_52 (weight VARCHAR, diameter VARCHAR)[/INST]SELECT weight FROM table_name_52 WHERE diameter = "14mm"</s> |
CREATE TABLE table_name_61 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_61 WHERE result = "l 38-17" | Name the week when the result was l 38-17 | <s>[INST]Name the week when the result was l 38-17 Context: CREATE TABLE table_name_61 (week VARCHAR, result VARCHAR)[/INST]SELECT week FROM table_name_61 WHERE result = "l 38-17"</s> |
CREATE TABLE table_25572118_1 (date VARCHAR, series VARCHAR) | SELECT date FROM table_25572118_1 WHERE series = "EMT 9" | When emt 9 is the series what is the date? | <s>[INST]When emt 9 is the series what is the date? Context: CREATE TABLE table_25572118_1 (date VARCHAR, series VARCHAR)[/INST]SELECT date FROM table_25572118_1 WHERE series = "EMT 9"</s> |
CREATE TABLE track (LOCATION VARCHAR, seating INTEGER) | SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000 | Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats. | <s>[INST]Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats. Context: CREATE TABLE track (LOCATION VARCHAR, seating INTEGER)[/INST]SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000</s> |
CREATE TABLE table_28715942_2 (arranger_s_ VARCHAR, vocal_percussionist_s_ VARCHAR) | SELECT arranger_s_ FROM table_28715942_2 WHERE vocal_percussionist_s_ = "Tom Lyle" | Who arranged song(s) with tom lyle on the vocal percussion? | <s>[INST]Who arranged song(s) with tom lyle on the vocal percussion? Context: CREATE TABLE table_28715942_2 (arranger_s_ VARCHAR, vocal_percussionist_s_ VARCHAR)[/INST]SELECT arranger_s_ FROM table_28715942_2 WHERE vocal_percussionist_s_ = "Tom Lyle"</s> |
CREATE TABLE mill (name VARCHAR, built_year VARCHAR, TYPE VARCHAR) | SELECT name, built_year FROM mill WHERE TYPE = 'Grondzeiler' | What are the names and year of construction for the mills of 'Grondzeiler' type? | <s>[INST]What are the names and year of construction for the mills of 'Grondzeiler' type? Context: CREATE TABLE mill (name VARCHAR, built_year VARCHAR, TYPE VARCHAR)[/INST]SELECT name, built_year FROM mill WHERE TYPE = 'Grondzeiler'</s> |
CREATE TABLE table_26166836_1 (location VARCHAR, road_race VARCHAR) | SELECT location FROM table_26166836_1 WHERE road_race = "Istanbul Marathon" | Where was the istanbul marathon? | <s>[INST]Where was the istanbul marathon? Context: CREATE TABLE table_26166836_1 (location VARCHAR, road_race VARCHAR)[/INST]SELECT location FROM table_26166836_1 WHERE road_race = "Istanbul Marathon"</s> |
CREATE TABLE table_name_48 (weapon VARCHAR, battle_of_the_planets VARCHAR) | SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = "jason" | Which weapon was used when the Battle of the Planets was Jason? | <s>[INST]Which weapon was used when the Battle of the Planets was Jason? Context: CREATE TABLE table_name_48 (weapon VARCHAR, battle_of_the_planets VARCHAR)[/INST]SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = "jason"</s> |
CREATE TABLE table_name_78 (run_4 INTEGER, run_3 VARCHAR, country VARCHAR, athlete VARCHAR) | SELECT SUM(run_4) FROM table_name_78 WHERE country = "united states" AND athlete = "bree schaaf emily azevedo" AND run_3 < 58.04 | Which Run 4 has a Country of united states, and an Athlete of bree schaaf emily azevedo, and a Run 3 smaller than 58.04? | <s>[INST]Which Run 4 has a Country of united states, and an Athlete of bree schaaf emily azevedo, and a Run 3 smaller than 58.04? Context: CREATE TABLE table_name_78 (run_4 INTEGER, run_3 VARCHAR, country VARCHAR, athlete VARCHAR)[/INST]SELECT SUM(run_4) FROM table_name_78 WHERE country = "united states" AND athlete = ... |
CREATE TABLE table_name_96 (points INTEGER, year VARCHAR) | SELECT MIN(points) FROM table_name_96 WHERE year = 2004 | What are the lowest points in 2004? | <s>[INST]What are the lowest points in 2004? Context: CREATE TABLE table_name_96 (points INTEGER, year VARCHAR)[/INST]SELECT MIN(points) FROM table_name_96 WHERE year = 2004</s> |
CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR) | SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto" | What is the class of the co-driver emanuele pirro jj lehto? | <s>[INST]What is the class of the co-driver emanuele pirro jj lehto? Context: CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR)[/INST]SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto"</s> |
CREATE TABLE table_name_36 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)" | Who was the opponent at the game with a loss of Sele (0-1)? | <s>[INST]Who was the opponent at the game with a loss of Sele (0-1)? Context: CREATE TABLE table_name_36 (opponent VARCHAR, loss VARCHAR)[/INST]SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)"</s> |
CREATE TABLE table_name_67 (points INTEGER, drawn VARCHAR, lost VARCHAR) | SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 2 | What is the greatest points value that have draws under 2 and 2 losses? | <s>[INST]What is the greatest points value that have draws under 2 and 2 losses? Context: CREATE TABLE table_name_67 (points INTEGER, drawn VARCHAR, lost VARCHAR)[/INST]SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 2</s> |
CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, townland VARCHAR) | SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE townland = "Coomroe" | How many acres in the townland of Coomroe? | <s>[INST]How many acres in the townland of Coomroe? Context: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, townland VARCHAR)[/INST]SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE townland = "Coomroe"</s> |
CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR) | SELECT prize_money FROM table_12454156_1 WHERE runner_up = "John Tabatabai" | What was the total prize money where John Tabatabai was the runner-up? | <s>[INST]What was the total prize money where John Tabatabai was the runner-up? Context: CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR)[/INST]SELECT prize_money FROM table_12454156_1 WHERE runner_up = "John Tabatabai"</s> |
CREATE TABLE table_name_38 (points VARCHAR, goals VARCHAR, games VARCHAR) | SELECT points FROM table_name_38 WHERE goals = "28" AND games = "47" | What are the points in the season with 47 games and 28 goals? | <s>[INST]What are the points in the season with 47 games and 28 goals? Context: CREATE TABLE table_name_38 (points VARCHAR, goals VARCHAR, games VARCHAR)[/INST]SELECT points FROM table_name_38 WHERE goals = "28" AND games = "47"</s> |
CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR) | SELECT label FROM table_name_61 WHERE album = "so red the rose" | Which Label that has an Album of so red the rose? | <s>[INST]Which Label that has an Album of so red the rose? Context: CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)[/INST]SELECT label FROM table_name_61 WHERE album = "so red the rose"</s> |
CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR) | SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin" | Name of xue hanqin has what highest term ending? | <s>[INST]Name of xue hanqin has what highest term ending? Context: CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR)[/INST]SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin"</s> |
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond" | What was Collingwood's score at the home match against Richmond? | <s>[INST]What was Collingwood's score at the home match against Richmond? Context: CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond"</s> |
CREATE TABLE table_name_85 (home_team VARCHAR, game VARCHAR) | SELECT home_team FROM table_name_85 WHERE game = "game 5" | Which Home team has a Game of game 5? | <s>[INST]Which Home team has a Game of game 5? Context: CREATE TABLE table_name_85 (home_team VARCHAR, game VARCHAR)[/INST]SELECT home_team FROM table_name_85 WHERE game = "game 5"</s> |
CREATE TABLE table_1342359_5 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342359_5 WHERE incumbent = "Richard J. Welch" | what's the district with incumbent being richard j. welch | <s>[INST]what's the district with incumbent being richard j. welch Context: CREATE TABLE table_1342359_5 (district VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_1342359_5 WHERE incumbent = "Richard J. Welch"</s> |
CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR) | SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id | Whose permanent address is different from his or her current address? List his or her first name. | <s>[INST]Whose permanent address is different from his or her current address? List his or her first name. Context: CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR)[/INST]SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id</s> |
CREATE TABLE table_name_9 (Id VARCHAR) | SELECT 2010 FROM table_name_9 WHERE 2011 = "qf" | What is the 2010 with a qf in 2011? | <s>[INST]What is the 2010 with a qf in 2011? Context: CREATE TABLE table_name_9 (Id VARCHAR)[/INST]SELECT 2010 FROM table_name_9 WHERE 2011 = "qf"</s> |
CREATE TABLE catalogs (catalog_publisher VARCHAR) | SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1 | Which catalog publisher has published the most catalogs? | <s>[INST]Which catalog publisher has published the most catalogs? Context: CREATE TABLE catalogs (catalog_publisher VARCHAR)[/INST]SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE products_booked (booked_count INTEGER) | SELECT MAX(booked_count), MIN(booked_count), AVG(booked_count) FROM products_booked | What are the maximum, minimum, and average booked count for the products booked? | <s>[INST]What are the maximum, minimum, and average booked count for the products booked? Context: CREATE TABLE products_booked (booked_count INTEGER)[/INST]SELECT MAX(booked_count), MIN(booked_count), AVG(booked_count) FROM products_booked</s> |
CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) | SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12 | What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against? | <s>[INST]What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against? Context: CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)[/INST]SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND poi... |
CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR) | SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g" | What Semimajor axis (AU) has a Companion (in order from star) of g? | <s>[INST]What Semimajor axis (AU) has a Companion (in order from star) of g? Context: CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)[/INST]SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"</s> |
CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR) | SELECT catalog FROM table_name_33 WHERE label = "grilled cheese" | What is the catalog number for the Grilled Cheese label? | <s>[INST]What is the catalog number for the Grilled Cheese label? Context: CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR)[/INST]SELECT catalog FROM table_name_33 WHERE label = "grilled cheese"</s> |
CREATE TABLE table_name_26 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_26 WHERE player = "tim barnett" | What position does tim barnett play? | <s>[INST]What position does tim barnett play? Context: CREATE TABLE table_name_26 (position VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_name_26 WHERE player = "tim barnett"</s> |
CREATE TABLE table_19614212_1 (marriages_between_women VARCHAR, _percentage_same_sex_marriages VARCHAR) | SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06" | How many marriages between women have % same-sex marriages of 1.06? | <s>[INST]How many marriages between women have % same-sex marriages of 1.06? Context: CREATE TABLE table_19614212_1 (marriages_between_women VARCHAR, _percentage_same_sex_marriages VARCHAR)[/INST]SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06"</s> |
CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR) | SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College" | What's Babson College's enrollment? | <s>[INST]What's Babson College's enrollment? Context: CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR)[/INST]SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College"</s> |
CREATE TABLE table_1243601_1 (open_cup VARCHAR, year VARCHAR) | SELECT open_cup FROM table_1243601_1 WHERE year = "2004" | What was the open cup results in 2004? | <s>[INST]What was the open cup results in 2004? Context: CREATE TABLE table_1243601_1 (open_cup VARCHAR, year VARCHAR)[/INST]SELECT open_cup FROM table_1243601_1 WHERE year = "2004"</s> |
CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR) | SELECT mpg_uk_combined FROM table_name_89 WHERE mpg_uk_urban__cold_ > 26.6 AND transmission = "m5" AND fuel_type = "diesel" AND engine_capacity < 1560 | What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560? | <s>[INST]What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560? Context: CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR)[/... |
CREATE TABLE table_name_62 (current_affiliation VARCHAR, years_owned VARCHAR) | SELECT current_affiliation FROM table_name_62 WHERE years_owned = "1955–1995" | What is the current affiliation when the years owned is between 1955–1995? | <s>[INST]What is the current affiliation when the years owned is between 1955–1995? Context: CREATE TABLE table_name_62 (current_affiliation VARCHAR, years_owned VARCHAR)[/INST]SELECT current_affiliation FROM table_name_62 WHERE years_owned = "1955–1995"</s> |
CREATE TABLE table_name_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = "west germany" | What is the total number of golds having a total of 1, bronzes of 0, and from West Germany? | <s>[INST]What is the total number of golds having a total of 1, bronzes of 0, and from West Germany? Context: CREATE TABLE table_name_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)[/INST]SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = "west germany"</s> |
CREATE TABLE table_18958648_1 (overweight__incl_obese__adults VARCHAR, obese_children_and_adolescents VARCHAR) | SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = "12.4%" | What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese? | <s>[INST]What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese? Context: CREATE TABLE table_18958648_1 (overweight__incl_obese__adults VARCHAR, obese_children_and_adolescents VARCHAR)[/INST]SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children... |
CREATE TABLE table_23915973_1 (coverage VARCHAR, power_kw VARCHAR) | SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW" | What is the coverage when power kw is 25kw? | <s>[INST]What is the coverage when power kw is 25kw? Context: CREATE TABLE table_23915973_1 (coverage VARCHAR, power_kw VARCHAR)[/INST]SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW"</s> |
CREATE TABLE table_24912693_4 (player VARCHAR, blocks VARCHAR) | SELECT player FROM table_24912693_4 WHERE blocks = 17 | Which player has 17 blocks? | <s>[INST]Which player has 17 blocks? Context: CREATE TABLE table_24912693_4 (player VARCHAR, blocks VARCHAR)[/INST]SELECT player FROM table_24912693_4 WHERE blocks = 17</s> |
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR) | SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs" | What is the average pick of the kansas city chiefs? | <s>[INST]What is the average pick of the kansas city chiefs? Context: CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)[/INST]SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs"</s> |
CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR) | SELECT MAX(pick__number) FROM table_name_2 WHERE name = "adam podlesh" AND overall < 101 | Which highest pick number's name was Adam Podlesh, when the overall was less than 101? | <s>[INST]Which highest pick number's name was Adam Podlesh, when the overall was less than 101? Context: CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR)[/INST]SELECT MAX(pick__number) FROM table_name_2 WHERE name = "adam podlesh" AND overall < 101</s> |
CREATE TABLE table_name_8 (inverse_subjunctive VARCHAR, indicative VARCHAR) | SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = "si måchan" | The indicative of si måchan has what as the inverse subjunctive? | <s>[INST]The indicative of si måchan has what as the inverse subjunctive? Context: CREATE TABLE table_name_8 (inverse_subjunctive VARCHAR, indicative VARCHAR)[/INST]SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = "si måchan"</s> |
CREATE TABLE table_name_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR) | SELECT film_name FROM table_name_50 WHERE year > 1972 AND language = "hindi" AND lyricist = "ravindra jain" AND music_director = "ravindra jain" | What 1972 Hindi film had Ravindra Jain directing the music? | <s>[INST]What 1972 Hindi film had Ravindra Jain directing the music? Context: CREATE TABLE table_name_50 (film_name VARCHAR, music_director VARCHAR, lyricist VARCHAR, year VARCHAR, language VARCHAR)[/INST]SELECT film_name FROM table_name_50 WHERE year > 1972 AND language = "hindi" AND lyricist = "ravindra jain" AND mus... |
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_66 WHERE date = "april 28" | Name the score for april 28 | <s>[INST]Name the score for april 28 Context: CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_66 WHERE date = "april 28"</s> |
CREATE TABLE table_1676073_13 (points_for VARCHAR, points VARCHAR) | SELECT points_for FROM table_1676073_13 WHERE points = "6" | What is the points for when the total points is 6? | <s>[INST]What is the points for when the total points is 6? Context: CREATE TABLE table_1676073_13 (points_for VARCHAR, points VARCHAR)[/INST]SELECT points_for FROM table_1676073_13 WHERE points = "6"</s> |
CREATE TABLE table_name_31 (bronze VARCHAR, gold VARCHAR, total VARCHAR, nation VARCHAR) | SELECT COUNT(bronze) FROM table_name_31 WHERE total = 1 AND nation = "spain (esp)" AND gold > 0 | How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0? | <s>[INST]How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0? Context: CREATE TABLE table_name_31 (bronze VARCHAR, gold VARCHAR, total VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(bronze) FROM table_name_31 WHERE total = 1 AND nation = "spain (esp)" AND gold > 0</s> |
CREATE TABLE table_name_72 (song_choice VARCHAR, episode VARCHAR) | SELECT song_choice FROM table_name_72 WHERE episode = "top 8" | What song was chosen for the episode with the top 8? | <s>[INST]What song was chosen for the episode with the top 8? Context: CREATE TABLE table_name_72 (song_choice VARCHAR, episode VARCHAR)[/INST]SELECT song_choice FROM table_name_72 WHERE episode = "top 8"</s> |
CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "17.93" | What episode titles have 17.93 million U.S. viewers? | <s>[INST]What episode titles have 17.93 million U.S. viewers? Context: CREATE TABLE table_16617025_1 (title VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "17.93"</s> |
CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR) | SELECT division_record FROM table_name_26 WHERE team = "indians" | What is the division record for the Indians? | <s>[INST]What is the division record for the Indians? Context: CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR)[/INST]SELECT division_record FROM table_name_26 WHERE team = "indians"</s> |
CREATE TABLE table_name_4 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR) | SELECT date_of_vacancy FROM table_name_4 WHERE manner_of_departure = "contract terminated" AND position_in_table = "23rd" AND date_of_appointment = "31 december 2008" | what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008? | <s>[INST]what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008? Context: CREATE TABLE table_name_4 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)[/INST... |
CREATE TABLE table_27700375_10 (high_rebounds VARCHAR, game VARCHAR) | SELECT high_rebounds FROM table_27700375_10 WHERE game = 69 | who had high rebounds at game 69? | <s>[INST]who had high rebounds at game 69? Context: CREATE TABLE table_27700375_10 (high_rebounds VARCHAR, game VARCHAR)[/INST]SELECT high_rebounds FROM table_27700375_10 WHERE game = 69</s> |
CREATE TABLE table_name_56 (time VARCHAR, grid VARCHAR) | SELECT time FROM table_name_56 WHERE grid = 21 | What is time of manufacturer with grid 21? | <s>[INST]What is time of manufacturer with grid 21? Context: CREATE TABLE table_name_56 (time VARCHAR, grid VARCHAR)[/INST]SELECT time FROM table_name_56 WHERE grid = 21</s> |
CREATE TABLE table_1359212_2 (winner VARCHAR, second_place VARCHAR) | SELECT winner FROM table_1359212_2 WHERE second_place = "United Kingdom" | where is hte second place winner from united kingdom? | <s>[INST]where is hte second place winner from united kingdom? Context: CREATE TABLE table_1359212_2 (winner VARCHAR, second_place VARCHAR)[/INST]SELECT winner FROM table_1359212_2 WHERE second_place = "United Kingdom"</s> |
CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR) | SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf" | Which City has a School of indianapolis brebeuf? | <s>[INST]Which City has a School of indianapolis brebeuf? Context: CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)[/INST]SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf"</s> |
CREATE TABLE table_11390711_4 (abbreviation VARCHAR, pronouciation VARCHAR) | SELECT abbreviation FROM table_11390711_4 WHERE pronouciation = "Kōkū Daigakkō" | What is the abbreviation for the college pronounced "kōkū daigakkō"? | <s>[INST]What is the abbreviation for the college pronounced "kōkū daigakkō"? Context: CREATE TABLE table_11390711_4 (abbreviation VARCHAR, pronouciation VARCHAR)[/INST]SELECT abbreviation FROM table_11390711_4 WHERE pronouciation = "Kōkū Daigakkō"</s> |
CREATE TABLE table_1341586_39 (district VARCHAR, first_elected VARCHAR) | SELECT district FROM table_1341586_39 WHERE first_elected = 1972 | what's the district with first elected being 1972 | <s>[INST]what's the district with first elected being 1972 Context: CREATE TABLE table_1341586_39 (district VARCHAR, first_elected VARCHAR)[/INST]SELECT district FROM table_1341586_39 WHERE first_elected = 1972</s> |
CREATE TABLE table_20948329_1 (high_checkout VARCHAR) | SELECT 3 AS _dart_average FROM table_20948329_1 WHERE high_checkout = 112 | What is the 3-dart average with a high checkout of 112? | <s>[INST]What is the 3-dart average with a high checkout of 112? Context: CREATE TABLE table_20948329_1 (high_checkout VARCHAR)[/INST]SELECT 3 AS _dart_average FROM table_20948329_1 WHERE high_checkout = 112</s> |
CREATE TABLE table_name_42 (apps INTEGER, goals VARCHAR, total VARCHAR) | SELECT SUM(apps) FROM table_name_42 WHERE goals = "28" AND total < 191 | How many apps have 28 goals, and a Total smaller than 191? | <s>[INST]How many apps have 28 goals, and a Total smaller than 191? Context: CREATE TABLE table_name_42 (apps INTEGER, goals VARCHAR, total VARCHAR)[/INST]SELECT SUM(apps) FROM table_name_42 WHERE goals = "28" AND total < 191</s> |
CREATE TABLE table_name_46 (date VARCHAR, race VARCHAR, class VARCHAR) | SELECT date FROM table_name_46 WHERE race = "dodge dealers grand prix" AND class = "gts" | On which date was the Dodge Dealers Grand Prix GTS class race? | <s>[INST]On which date was the Dodge Dealers Grand Prix GTS class race? Context: CREATE TABLE table_name_46 (date VARCHAR, race VARCHAR, class VARCHAR)[/INST]SELECT date FROM table_name_46 WHERE race = "dodge dealers grand prix" AND class = "gts"</s> |
CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_77 WHERE name = "anas cheuen" | What is the Status with a Name that is anas cheuen? | <s>[INST]What is the Status with a Name that is anas cheuen? Context: CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR)[/INST]SELECT status FROM table_name_77 WHERE name = "anas cheuen"</s> |
CREATE TABLE table_name_77 (laps INTEGER, driver VARCHAR) | SELECT AVG(laps) FROM table_name_77 WHERE driver = "jackie stewart" | What are the average laps for jackie stewart? | <s>[INST]What are the average laps for jackie stewart? Context: CREATE TABLE table_name_77 (laps INTEGER, driver VARCHAR)[/INST]SELECT AVG(laps) FROM table_name_77 WHERE driver = "jackie stewart"</s> |
CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR) | SELECT year_s__won FROM table_name_76 WHERE to_par = "+5" | What are the years won when the to par is +5? | <s>[INST]What are the years won when the to par is +5? Context: CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR)[/INST]SELECT year_s__won FROM table_name_76 WHERE to_par = "+5"</s> |
CREATE TABLE table_name_83 (lead VARCHAR, skip VARCHAR, season VARCHAR) | SELECT lead FROM table_name_83 WHERE skip = "john shuster" AND season = "2009–10" | Who was the lead with John Shuster as skip in the season of 2009–10? | <s>[INST]Who was the lead with John Shuster as skip in the season of 2009–10? Context: CREATE TABLE table_name_83 (lead VARCHAR, skip VARCHAR, season VARCHAR)[/INST]SELECT lead FROM table_name_83 WHERE skip = "john shuster" AND season = "2009–10"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.