context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR) | SELECT MIN(points) FROM table_name_15 WHERE year = 1981 | What is the smallest number of points for a 1981 team? | <s>[INST]What is the smallest number of points for a 1981 team? Context: CREATE TABLE table_name_15 (points INTEGER, year VARCHAR)[/INST]SELECT MIN(points) FROM table_name_15 WHERE year = 1981</s> |
CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, score VARCHAR) | SELECT opponents FROM table_name_84 WHERE surface = "clay" AND score = "6–3, 7–6 (11–9)" | Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)? | <s>[INST]Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)? Context: CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, score VARCHAR)[/INST]SELECT opponents FROM table_name_84 WHERE surface = "clay" AND score = "6–3, 7–6 (11–9)"</s> |
CREATE TABLE table_name_31 (air_date VARCHAR, test_taker VARCHAR) | SELECT air_date FROM table_name_31 WHERE test_taker = "robert" | On which air date was Robert the test-taker? | <s>[INST]On which air date was Robert the test-taker? Context: CREATE TABLE table_name_31 (air_date VARCHAR, test_taker VARCHAR)[/INST]SELECT air_date FROM table_name_31 WHERE test_taker = "robert"</s> |
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0 | What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0? | <s>[INST]What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0? Context: CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)[/INST]SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0</s> |
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_72 WHERE venue = "glenferrie oval" | What is the name of the away team with glenferrie oval venue? | <s>[INST]What is the name of the away team with glenferrie oval venue? Context: CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_72 WHERE venue = "glenferrie oval"</s> |
CREATE TABLE table_name_84 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_84 WHERE player = "bob charles" | What is Bob Charles' To par? | <s>[INST]What is Bob Charles' To par? Context: CREATE TABLE table_name_84 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_84 WHERE player = "bob charles"</s> |
CREATE TABLE table_name_28 (election VARCHAR) | SELECT 1 AS st_party FROM table_name_28 WHERE election = "1847" | Which 1st Party has an election in 1847? | <s>[INST]Which 1st Party has an election in 1847? Context: CREATE TABLE table_name_28 (election VARCHAR)[/INST]SELECT 1 AS st_party FROM table_name_28 WHERE election = "1847"</s> |
CREATE TABLE table_name_7 (winning_score VARCHAR, runner_s__up VARCHAR) | SELECT winning_score FROM table_name_7 WHERE runner_s__up = "ernie els" | What is the winning score for the runner-up Ernie Els? | <s>[INST]What is the winning score for the runner-up Ernie Els? Context: CREATE TABLE table_name_7 (winning_score VARCHAR, runner_s__up VARCHAR)[/INST]SELECT winning_score FROM table_name_7 WHERE runner_s__up = "ernie els"</s> |
CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR); CREATE TABLE COURSE (Instructor VARCHAR, CName VARCHAR) | SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY" | Find the first name and last name of the instructor of course that has course name | <s>[INST]Find the first name and last name of the instructor of course that has course name Context: CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR); CREATE TABLE COURSE (Instructor VARCHAR, CName VARCHAR)[/INST]SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY"</s> |
CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_27 WHERE record = "11–34" | Which Location Attendance has a Record of 11–34? | <s>[INST]Which Location Attendance has a Record of 11–34? Context: CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR)[/INST]SELECT location_attendance FROM table_name_27 WHERE record = "11–34"</s> |
CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR) | SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE101" | What is every prefix class for the equivalent of NTE101? | <s>[INST]What is every prefix class for the equivalent of NTE101? Context: CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR)[/INST]SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE101"</s> |
CREATE TABLE table_name_35 (mountain_range VARCHAR, rank VARCHAR) | SELECT mountain_range FROM table_name_35 WHERE rank = 19 | Which mountain range has a rank of 19? | <s>[INST]Which mountain range has a rank of 19? Context: CREATE TABLE table_name_35 (mountain_range VARCHAR, rank VARCHAR)[/INST]SELECT mountain_range FROM table_name_35 WHERE rank = 19</s> |
CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR) | SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt" | What kind of competition was it at San Siro at 18:30 GMT? | <s>[INST]What kind of competition was it at San Siro at 18:30 GMT? Context: CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR)[/INST]SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt"</s> |
CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944 | Who is the incumbent first elected in 1944? | <s>[INST]Who is the incumbent first elected in 1944? Context: CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944</s> |
CREATE TABLE table_name_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR) | SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = "210kg" | What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg? | <s>[INST]What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg? Context: CREATE TABLE table_name_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)[/INST]SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = "210kg"</s> |
CREATE TABLE table_name_99 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_99 WHERE venue = "north shore events centre" | When was the game at the North Shore Events Centre? | <s>[INST]When was the game at the North Shore Events Centre? Context: CREATE TABLE table_name_99 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_99 WHERE venue = "north shore events centre"</s> |
CREATE TABLE table_name_14 (laps VARCHAR, team VARCHAR) | SELECT laps FROM table_name_14 WHERE team = "primagaz competition" | How many Laps did Team Primagaz Competition have? | <s>[INST]How many Laps did Team Primagaz Competition have? Context: CREATE TABLE table_name_14 (laps VARCHAR, team VARCHAR)[/INST]SELECT laps FROM table_name_14 WHERE team = "primagaz competition"</s> |
CREATE TABLE table_152834_2 (province VARCHAR, county VARCHAR) | SELECT COUNT(province) FROM table_152834_2 WHERE county = "Fenghuang" | If the country is fenghuang how many provinces are there? | <s>[INST]If the country is fenghuang how many provinces are there? Context: CREATE TABLE table_152834_2 (province VARCHAR, county VARCHAR)[/INST]SELECT COUNT(province) FROM table_152834_2 WHERE county = "Fenghuang"</s> |
CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR) | SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85" | What assists has the Team SMU and the total points of 85? | <s>[INST]What assists has the Team SMU and the total points of 85? Context: CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR)[/INST]SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85"</s> |
CREATE TABLE player (birth_country VARCHAR, bats VARCHAR) | SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R' | How many players born in USA are right-handed batters? That is, have the batter value 'R'. | <s>[INST]How many players born in USA are right-handed batters? That is, have the batter value 'R'. Context: CREATE TABLE player (birth_country VARCHAR, bats VARCHAR)[/INST]SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'</s> |
CREATE TABLE table_name_76 (drawn INTEGER, lost VARCHAR, position VARCHAR, team VARCHAR) | SELECT SUM(drawn) FROM table_name_76 WHERE position < 12 AND team = "clitheroe" AND lost > 4 | How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times? | <s>[INST]How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times? Context: CREATE TABLE table_name_76 (drawn INTEGER, lost VARCHAR, position VARCHAR, team VARCHAR)[/INST]SELECT SUM(drawn) FROM table_name_76 WHERE position < 12 AND team = "clitheroe" AND lost > 4</s> |
CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_80 WHERE country = "canada" | Who is the rower from Canada? | <s>[INST]Who is the rower from Canada? Context: CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR)[/INST]SELECT rowers FROM table_name_80 WHERE country = "canada"</s> |
CREATE TABLE table_24418525_1 (frequency VARCHAR, power_kw VARCHAR) | SELECT frequency FROM table_24418525_1 WHERE power_kw = "5kW" | When the power kw is 5kw, what is the frequency? | <s>[INST]When the power kw is 5kw, what is the frequency? Context: CREATE TABLE table_24418525_1 (frequency VARCHAR, power_kw VARCHAR)[/INST]SELECT frequency FROM table_24418525_1 WHERE power_kw = "5kW"</s> |
CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic" | What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? | <s>[INST]What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? Context: CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)[/INST]SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"</s> |
CREATE TABLE table_1921_1 (start_of_conflict VARCHAR, location VARCHAR) | SELECT COUNT(start_of_conflict) FROM table_1921_1 WHERE location = "Afghanistan" | How many conflicts started in Afghanistan? | <s>[INST]How many conflicts started in Afghanistan? Context: CREATE TABLE table_1921_1 (start_of_conflict VARCHAR, location VARCHAR)[/INST]SELECT COUNT(start_of_conflict) FROM table_1921_1 WHERE location = "Afghanistan"</s> |
CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_94 WHERE date = "april 16" | What was the result of the April 16 game? | <s>[INST]What was the result of the April 16 game? Context: CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_94 WHERE date = "april 16"</s> |
CREATE TABLE table_name_89 (year INTEGER, position VARCHAR) | SELECT SUM(year) FROM table_name_89 WHERE position = "12th" | What is the total year with a Position of 12th? | <s>[INST]What is the total year with a Position of 12th? Context: CREATE TABLE table_name_89 (year INTEGER, position VARCHAR)[/INST]SELECT SUM(year) FROM table_name_89 WHERE position = "12th"</s> |
CREATE TABLE table_22165661_3 (location VARCHAR, tournament VARCHAR) | SELECT location FROM table_22165661_3 WHERE tournament = 1999 | What is the location of the 1999 tournament? | <s>[INST]What is the location of the 1999 tournament? Context: CREATE TABLE table_22165661_3 (location VARCHAR, tournament VARCHAR)[/INST]SELECT location FROM table_22165661_3 WHERE tournament = 1999</s> |
CREATE TABLE table_name_83 (attendance INTEGER, score VARCHAR) | SELECT MAX(attendance) FROM table_name_83 WHERE score = "3-5" | What was the highest attendance of a game that had a score of 3-5? | <s>[INST]What was the highest attendance of a game that had a score of 3-5? Context: CREATE TABLE table_name_83 (attendance INTEGER, score VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_83 WHERE score = "3-5"</s> |
CREATE TABLE table_name_38 (date VARCHAR, venue VARCHAR, opponents VARCHAR) | SELECT date FROM table_name_38 WHERE venue = "a" AND opponents = "leicester city" | On which date did they play Leicester City in Venue A? | <s>[INST]On which date did they play Leicester City in Venue A? Context: CREATE TABLE table_name_38 (date VARCHAR, venue VARCHAR, opponents VARCHAR)[/INST]SELECT date FROM table_name_38 WHERE venue = "a" AND opponents = "leicester city"</s> |
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) | SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2 | Show the date and id of the transcript with at least 2 course results. | <s>[INST]Show the date and id of the transcript with at least 2 course results. Context: CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)[/INST]SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2</s> |
CREATE TABLE table_27437601_2 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) | SELECT no_in_season FROM table_27437601_2 WHERE directed_by = "Brad Tanenbaum" AND no_in_series > 241.0 | List the season above 241.0 that was handled by brad tanenbaum. | <s>[INST]List the season above 241.0 that was handled by brad tanenbaum. Context: CREATE TABLE table_27437601_2 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)[/INST]SELECT no_in_season FROM table_27437601_2 WHERE directed_by = "Brad Tanenbaum" AND no_in_series > 241.0</s> |
CREATE TABLE table_name_28 (opponent VARCHAR, results¹ VARCHAR) | SELECT opponent FROM table_name_28 WHERE results¹ = "1:3" | What Opponent has a Results¹ of 1:3? | <s>[INST]What Opponent has a Results¹ of 1:3? Context: CREATE TABLE table_name_28 (opponent VARCHAR, results¹ VARCHAR)[/INST]SELECT opponent FROM table_name_28 WHERE results¹ = "1:3"</s> |
CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR) | SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws < 19 | What are the losses of Warrnambool with a draw less than 19? | <s>[INST]What are the losses of Warrnambool with a draw less than 19? Context: CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR)[/INST]SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws < 19</s> |
CREATE TABLE table_name_83 (year_built VARCHAR, church_name VARCHAR) | SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje" | When was the Hopperstad Stavkyrkje built? | <s>[INST]When was the Hopperstad Stavkyrkje built? Context: CREATE TABLE table_name_83 (year_built VARCHAR, church_name VARCHAR)[/INST]SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje"</s> |
CREATE TABLE table_name_84 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_84 WHERE home = "philadelphia" | What is the score when Philadelphia is at home? | <s>[INST]What is the score when Philadelphia is at home? Context: CREATE TABLE table_name_84 (score VARCHAR, home VARCHAR)[/INST]SELECT score FROM table_name_84 WHERE home = "philadelphia"</s> |
CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_46 WHERE opponent = "liam mccarty" | What's was the location for fight against Liam Mccarty? | <s>[INST]What's was the location for fight against Liam Mccarty? Context: CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR)[/INST]SELECT location FROM table_name_46 WHERE opponent = "liam mccarty"</s> |
CREATE TABLE table_name_32 (part_number_s_ VARCHAR, frequency VARCHAR) | SELECT part_number_s_ FROM table_name_32 WHERE frequency = "933mhz" | What is the part number of the model that has a frequency of 933mhz? | <s>[INST]What is the part number of the model that has a frequency of 933mhz? Context: CREATE TABLE table_name_32 (part_number_s_ VARCHAR, frequency VARCHAR)[/INST]SELECT part_number_s_ FROM table_name_32 WHERE frequency = "933mhz"</s> |
CREATE TABLE table_name_30 (airport VARCHAR, country VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr" | What is the name of the airport located in Russia with an IATA of KRR? | <s>[INST]What is the name of the airport located in Russia with an IATA of KRR? Context: CREATE TABLE table_name_30 (airport VARCHAR, country VARCHAR, iata VARCHAR)[/INST]SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr"</s> |
CREATE TABLE table_name_7 (goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR) | SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45 | How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45? | <s>[INST]How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45? Context: CREATE TABLE table_name_7 (goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR)[/INST]SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45</s> |
CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR) | SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09" | What average week has shea stadium as the game site, and 1979-12-09 as the date? | <s>[INST]What average week has shea stadium as the game site, and 1979-12-09 as the date? Context: CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR)[/INST]SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09"</s> |
CREATE TABLE table_name_30 (tournament VARCHAR) | SELECT 2008 FROM table_name_30 WHERE tournament = "hamburg masters" | What is the 2008 value of the hamburg masters? | <s>[INST]What is the 2008 value of the hamburg masters? Context: CREATE TABLE table_name_30 (tournament VARCHAR)[/INST]SELECT 2008 FROM table_name_30 WHERE tournament = "hamburg masters"</s> |
CREATE TABLE table_11960196_3 (team VARCHAR, date VARCHAR) | SELECT team FROM table_11960196_3 WHERE date = "April 25" | What is the team of april 25? | <s>[INST]What is the team of april 25? Context: CREATE TABLE table_11960196_3 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_11960196_3 WHERE date = "April 25"</s> |
CREATE TABLE table_name_63 (circuit VARCHAR, event VARCHAR) | SELECT circuit FROM table_name_63 WHERE event = "1997 japanese formula 3 championship" | The 1997 Japanese Formula 3 Championship is part of what circuit? | <s>[INST]The 1997 Japanese Formula 3 Championship is part of what circuit? Context: CREATE TABLE table_name_63 (circuit VARCHAR, event VARCHAR)[/INST]SELECT circuit FROM table_name_63 WHERE event = "1997 japanese formula 3 championship"</s> |
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR) | SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura" | Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura? | <s>[INST]Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura? Context: CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR)[/INST]SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura"</s> |
CREATE TABLE table_name_54 (aggregate VARCHAR, round VARCHAR, club VARCHAR) | SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem" | What is the aggregate for the first round for K.S.V. Waregem? | <s>[INST]What is the aggregate for the first round for K.S.V. Waregem? Context: CREATE TABLE table_name_54 (aggregate VARCHAR, round VARCHAR, club VARCHAR)[/INST]SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem"</s> |
CREATE TABLE table_name_22 (Id VARCHAR) | SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r" | what 1989 has 2002 of 4r and 2005 of 4r? | <s>[INST]what 1989 has 2002 of 4r and 2005 of 4r? Context: CREATE TABLE table_name_22 (Id VARCHAR)[/INST]SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r"</s> |
CREATE TABLE table_2668420_17 (party VARCHAR, result VARCHAR, district VARCHAR) | SELECT party FROM table_2668420_17 WHERE result = "Re-elected" AND district = "Virginia 12" | What party was re-elected to Virginia 12? | <s>[INST]What party was re-elected to Virginia 12? Context: CREATE TABLE table_2668420_17 (party VARCHAR, result VARCHAR, district VARCHAR)[/INST]SELECT party FROM table_2668420_17 WHERE result = "Re-elected" AND district = "Virginia 12"</s> |
CREATE TABLE table_name_52 (class_aA VARCHAR, class_a VARCHAR, school_year VARCHAR) | SELECT class_aA FROM table_name_52 WHERE class_a = "rule" AND school_year = "1995-96" | Name the class AA with class A of rule and school year of 1995-96 | <s>[INST]Name the class AA with class A of rule and school year of 1995-96 Context: CREATE TABLE table_name_52 (class_aA VARCHAR, class_a VARCHAR, school_year VARCHAR)[/INST]SELECT class_aA FROM table_name_52 WHERE class_a = "rule" AND school_year = "1995-96"</s> |
CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR) | SELECT player FROM table_2508633_9 WHERE nfl_team = "Kansas City Chiefs" | Who was the draft pick for Kansas City Chiefs? | <s>[INST]Who was the draft pick for Kansas City Chiefs? Context: CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR)[/INST]SELECT player FROM table_2508633_9 WHERE nfl_team = "Kansas City Chiefs"</s> |
CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR) | SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California" | what are all the positions of players who's hometown is concord, california | <s>[INST]what are all the positions of players who's hometown is concord, california Context: CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR)[/INST]SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California"</s> |
CREATE TABLE table_name_43 (winner VARCHAR, date VARCHAR) | SELECT winner FROM table_name_43 WHERE date = "5 sep" | What is Winner, when Date is 5 Sep? | <s>[INST]What is Winner, when Date is 5 Sep? Context: CREATE TABLE table_name_43 (winner VARCHAR, date VARCHAR)[/INST]SELECT winner FROM table_name_43 WHERE date = "5 sep"</s> |
CREATE TABLE table_name_4 (location VARCHAR, frequency VARCHAR) | SELECT location FROM table_name_4 WHERE frequency = "102.5 fm" | Which Location has a Frequency of 102.5 fm? | <s>[INST]Which Location has a Frequency of 102.5 fm? Context: CREATE TABLE table_name_4 (location VARCHAR, frequency VARCHAR)[/INST]SELECT location FROM table_name_4 WHERE frequency = "102.5 fm"</s> |
CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR) | SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 2008" | When is Part 2, when Part 5 is on January 24, 2008? | <s>[INST]When is Part 2, when Part 5 is on January 24, 2008? Context: CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR)[/INST]SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 2008"</s> |
CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR) | SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = "Albert Rains" | what the the end number where albert rains was running | <s>[INST]what the the end number where albert rains was running Context: CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)[/INST]SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = "Albert Rains"</s> |
CREATE TABLE table_name_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants" | What's the total attendance of games against the New York Giants after week 13? | <s>[INST]What's the total attendance of games against the New York Giants after week 13? Context: CREATE TABLE table_name_51 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants"</s> |
CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a" | What was the time for the match with away team Convoy Sun Hei Team A? | <s>[INST]What was the time for the match with away team Convoy Sun Hei Team A? Context: CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR)[/INST]SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"</s> |
CREATE TABLE table_23680576_2 (nov_2008 VARCHAR, aug_2008 VARCHAR) | SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%" | What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008? | <s>[INST]What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008? Context: CREATE TABLE table_23680576_2 (nov_2008 VARCHAR, aug_2008 VARCHAR)[/INST]SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%"</s> |
CREATE TABLE table_name_38 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_38 WHERE result = "l 24–14" | What was the Opponent in the game with a Result of L 24–14? | <s>[INST]What was the Opponent in the game with a Result of L 24–14? Context: CREATE TABLE table_name_38 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_38 WHERE result = "l 24–14"</s> |
CREATE TABLE table_name_40 (format VARCHAR, label VARCHAR) | SELECT format FROM table_name_40 WHERE label = "mca" | What is the format for the MCA label? | <s>[INST]What is the format for the MCA label? Context: CREATE TABLE table_name_40 (format VARCHAR, label VARCHAR)[/INST]SELECT format FROM table_name_40 WHERE label = "mca"</s> |
CREATE TABLE table_name_95 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT score_in_the_final FROM table_name_95 WHERE outcome = "runner-up" AND date = 1970 | What is the Score in the final with an Outcome with runner-up, and a Date with 1970? | <s>[INST]What is the Score in the final with an Outcome with runner-up, and a Date with 1970? Context: CREATE TABLE table_name_95 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)[/INST]SELECT score_in_the_final FROM table_name_95 WHERE outcome = "runner-up" AND date = 1970</s> |
CREATE TABLE table_name_92 (decade VARCHAR, artist VARCHAR) | SELECT decade FROM table_name_92 WHERE artist = "the replacements" | What decade is the artist the replacements? | <s>[INST]What decade is the artist the replacements? Context: CREATE TABLE table_name_92 (decade VARCHAR, artist VARCHAR)[/INST]SELECT decade FROM table_name_92 WHERE artist = "the replacements"</s> |
CREATE TABLE table_name_24 (pick INTEGER, player VARCHAR) | SELECT SUM(pick) FROM table_name_24 WHERE player = "roger zatkoff" | What is the sum of the pick for player roger zatkoff? | <s>[INST]What is the sum of the pick for player roger zatkoff? Context: CREATE TABLE table_name_24 (pick INTEGER, player VARCHAR)[/INST]SELECT SUM(pick) FROM table_name_24 WHERE player = "roger zatkoff"</s> |
CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR) | SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg" | Name the landesliga nord for freier tus regensburg | <s>[INST]Name the landesliga nord for freier tus regensburg Context: CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR)[/INST]SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg"</s> |
CREATE TABLE table_18821196_1 (tv_network_s_ VARCHAR, country VARCHAR) | SELECT tv_network_s_ FROM table_18821196_1 WHERE country = "Belgium" | What is every TV network in Belgium? | <s>[INST]What is every TV network in Belgium? Context: CREATE TABLE table_18821196_1 (tv_network_s_ VARCHAR, country VARCHAR)[/INST]SELECT tv_network_s_ FROM table_18821196_1 WHERE country = "Belgium"</s> |
CREATE TABLE table_19722233_5 (points INTEGER, blocks VARCHAR) | SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21 | what is the lowest points scored by a player who blocked 21 times | <s>[INST]what is the lowest points scored by a player who blocked 21 times Context: CREATE TABLE table_19722233_5 (points INTEGER, blocks VARCHAR)[/INST]SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21</s> |
CREATE TABLE table_14941284_1 (game_site VARCHAR, date VARCHAR) | SELECT game_site FROM table_14941284_1 WHERE date = "October 18, 1981" | When it is October 18, 1981 where is the game site? | <s>[INST]When it is October 18, 1981 where is the game site? Context: CREATE TABLE table_14941284_1 (game_site VARCHAR, date VARCHAR)[/INST]SELECT game_site FROM table_14941284_1 WHERE date = "October 18, 1981"</s> |
CREATE TABLE table_29565120_2 (l INTEGER, w VARCHAR) | SELECT MIN(l) FROM table_29565120_2 WHERE w = 4 | What is the L when the W is 4? | <s>[INST]What is the L when the W is 4? Context: CREATE TABLE table_29565120_2 (l INTEGER, w VARCHAR)[/INST]SELECT MIN(l) FROM table_29565120_2 WHERE w = 4</s> |
CREATE TABLE table_17369472_2 (played VARCHAR, tries_for VARCHAR) | SELECT played FROM table_17369472_2 WHERE tries_for = "39" | How many were played when there were 39 tries for? | <s>[INST]How many were played when there were 39 tries for? Context: CREATE TABLE table_17369472_2 (played VARCHAR, tries_for VARCHAR)[/INST]SELECT played FROM table_17369472_2 WHERE tries_for = "39"</s> |
CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR) | SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou" | What language is the film La Diagonale du Fou in? | <s>[INST]What language is the film La Diagonale du Fou in? Context: CREATE TABLE table_name_24 (language VARCHAR, original_title VARCHAR)[/INST]SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou"</s> |
CREATE TABLE table_name_25 (capacity VARCHAR, stadium VARCHAR) | SELECT capacity FROM table_name_25 WHERE stadium = "ernst-abbe-sportfeld" | What is the Capacity of Ernst-Abbe-Sportfeld? | <s>[INST]What is the Capacity of Ernst-Abbe-Sportfeld? Context: CREATE TABLE table_name_25 (capacity VARCHAR, stadium VARCHAR)[/INST]SELECT capacity FROM table_name_25 WHERE stadium = "ernst-abbe-sportfeld"</s> |
CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR) | SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7 | What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7? | <s>[INST]What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7? Context: CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)[/INST]SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7</s> |
CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR) | SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "−1" | What is the lowest number of members lost when the net change is −1? | <s>[INST]What is the lowest number of members lost when the net change is −1? Context: CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR)[/INST]SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "−1"</s> |
CREATE TABLE table_20745746_1 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_20745746_1 WHERE attendance = 7260 | What was the score when 7260 people attended the game? | <s>[INST]What was the score when 7260 people attended the game? Context: CREATE TABLE table_20745746_1 (score VARCHAR, attendance VARCHAR)[/INST]SELECT score FROM table_20745746_1 WHERE attendance = 7260</s> |
CREATE TABLE table_name_7 (game INTEGER, date VARCHAR, attendance VARCHAR) | SELECT AVG(game) FROM table_name_7 WHERE date = "february 24" AND attendance < 16 OFFSET 541 | What average game was held on february 24 and has an attendance smaller than 16,541? | <s>[INST]What average game was held on february 24 and has an attendance smaller than 16,541? Context: CREATE TABLE table_name_7 (game INTEGER, date VARCHAR, attendance VARCHAR)[/INST]SELECT AVG(game) FROM table_name_7 WHERE date = "february 24" AND attendance < 16 OFFSET 541</s> |
CREATE TABLE table_name_40 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_name_40 WHERE team = "houston" | What are the High assists for Team houston? | <s>[INST]What are the High assists for Team houston? Context: CREATE TABLE table_name_40 (high_assists VARCHAR, team VARCHAR)[/INST]SELECT high_assists FROM table_name_40 WHERE team = "houston"</s> |
CREATE TABLE table_name_92 (rank VARCHAR, points VARCHAR, club VARCHAR) | SELECT COUNT(rank) FROM table_name_92 WHERE points > 99 AND club = "barcelona" | Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona? | <s>[INST]Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona? Context: CREATE TABLE table_name_92 (rank VARCHAR, points VARCHAR, club VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_92 WHERE points > 99 AND club = "barcelona"</s> |
CREATE TABLE table_22879323_10 (high_points VARCHAR, high_rebounds VARCHAR) | SELECT high_points FROM table_22879323_10 WHERE high_rebounds = "Terrence Williams (8)" | What was the high points when rebounds were Terrence Williams (8)? | <s>[INST]What was the high points when rebounds were Terrence Williams (8)? Context: CREATE TABLE table_22879323_10 (high_points VARCHAR, high_rebounds VARCHAR)[/INST]SELECT high_points FROM table_22879323_10 WHERE high_rebounds = "Terrence Williams (8)"</s> |
CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983 | What is the average point total for arrows racing team before 1983? | <s>[INST]What is the average point total for arrows racing team before 1983? Context: CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR)[/INST]SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983</s> |
CREATE TABLE table_18712423_3 (directed_by VARCHAR, written_by VARCHAR) | SELECT directed_by FROM table_18712423_3 WHERE written_by = "Matt Ford" | Who directed the episode written by Matt Ford? | <s>[INST]Who directed the episode written by Matt Ford? Context: CREATE TABLE table_18712423_3 (directed_by VARCHAR, written_by VARCHAR)[/INST]SELECT directed_by FROM table_18712423_3 WHERE written_by = "Matt Ford"</s> |
CREATE TABLE table_name_8 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_8 WHERE date = "march 12" | What is High Rebounds, when Date is "March 12"? | <s>[INST]What is High Rebounds, when Date is "March 12"? Context: CREATE TABLE table_name_8 (high_rebounds VARCHAR, date VARCHAR)[/INST]SELECT high_rebounds FROM table_name_8 WHERE date = "march 12"</s> |
CREATE TABLE table_name_57 (picture_coding_types VARCHAR, chroma_format VARCHAR, name VARCHAR) | SELECT picture_coding_types FROM table_name_57 WHERE chroma_format = "4:2:2 or 4:2:0" AND name = "4:2:2 profile" | What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile? | <s>[INST]What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile? Context: CREATE TABLE table_name_57 (picture_coding_types VARCHAR, chroma_format VARCHAR, name VARCHAR)[/INST]SELECT picture_coding_types FROM table_name_57 WHERE chroma_format = "4:2:2 or 4:2:0" AND name = "4:2:2 profile"</s> |
CREATE TABLE table_22815568_3 (status VARCHAR, poverty_rate VARCHAR) | SELECT status FROM table_22815568_3 WHERE poverty_rate = "36.6%" | What is the status for all the counties that have a poverty rate of 36.6%? | <s>[INST]What is the status for all the counties that have a poverty rate of 36.6%? Context: CREATE TABLE table_22815568_3 (status VARCHAR, poverty_rate VARCHAR)[/INST]SELECT status FROM table_22815568_3 WHERE poverty_rate = "36.6%"</s> |
CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR) | SELECT branding FROM table_name_5 WHERE frequency = "1233khz" | What's the branding for frequency 1233khz? | <s>[INST]What's the branding for frequency 1233khz? Context: CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR)[/INST]SELECT branding FROM table_name_5 WHERE frequency = "1233khz"</s> |
CREATE TABLE table_name_61 (commenced_operations VARCHAR, icao VARCHAR) | SELECT commenced_operations FROM table_name_61 WHERE icao = "kal" | What is the commenced operation where the ICAO is KAL? | <s>[INST]What is the commenced operation where the ICAO is KAL? Context: CREATE TABLE table_name_61 (commenced_operations VARCHAR, icao VARCHAR)[/INST]SELECT commenced_operations FROM table_name_61 WHERE icao = "kal"</s> |
CREATE TABLE actual_orders (actual_order_id VARCHAR, order_status_code VARCHAR) | SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success' | Find the ids of orders whose status is 'Success'. | <s>[INST]Find the ids of orders whose status is 'Success'. Context: CREATE TABLE actual_orders (actual_order_id VARCHAR, order_status_code VARCHAR)[/INST]SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success'</s> |
CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR) | SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner" | Tell me the report with winner of louis wagner | <s>[INST]Tell me the report with winner of louis wagner Context: CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR)[/INST]SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner"</s> |
CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, team VARCHAR) | SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = "china" | What is the average grid number that had Team China with less than 10 laps? | <s>[INST]What is the average grid number that had Team China with less than 10 laps? Context: CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, team VARCHAR)[/INST]SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = "china"</s> |
CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_83 WHERE result = "w 13–12" | Who was the opponent at the game with a result of W 13–12? | <s>[INST]Who was the opponent at the game with a result of W 13–12? Context: CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_83 WHERE result = "w 13–12"</s> |
CREATE TABLE table_name_16 (total VARCHAR, b_score VARCHAR) | SELECT COUNT(total) FROM table_name_16 WHERE b_score = 9.15 | Can you tell me the total number of Total that has the B Score of 9.15? | <s>[INST]Can you tell me the total number of Total that has the B Score of 9.15? Context: CREATE TABLE table_name_16 (total VARCHAR, b_score VARCHAR)[/INST]SELECT COUNT(total) FROM table_name_16 WHERE b_score = 9.15</s> |
CREATE TABLE table_name_36 (speed VARCHAR, glider VARCHAR, pilot VARCHAR) | SELECT speed FROM table_name_36 WHERE glider = "diana 2" AND pilot = "sebastian kawa" | What was sebastian kawa's average speed with Diana 2? | <s>[INST]What was sebastian kawa's average speed with Diana 2? Context: CREATE TABLE table_name_36 (speed VARCHAR, glider VARCHAR, pilot VARCHAR)[/INST]SELECT speed FROM table_name_36 WHERE glider = "diana 2" AND pilot = "sebastian kawa"</s> |
CREATE TABLE table_name_56 (tries_against VARCHAR, tries_for VARCHAR) | SELECT tries_against FROM table_name_56 WHERE tries_for = "21" | What is Tries Against, when Tries For is 21? | <s>[INST]What is Tries Against, when Tries For is 21? Context: CREATE TABLE table_name_56 (tries_against VARCHAR, tries_for VARCHAR)[/INST]SELECT tries_against FROM table_name_56 WHERE tries_for = "21"</s> |
CREATE TABLE table_name_58 (lead VARCHAR, others VARCHAR) | SELECT lead FROM table_name_58 WHERE others = "5%" | I want the lead for others being 5% | <s>[INST]I want the lead for others being 5% Context: CREATE TABLE table_name_58 (lead VARCHAR, others VARCHAR)[/INST]SELECT lead FROM table_name_58 WHERE others = "5%"</s> |
CREATE TABLE table_1342256_11 (incumbent VARCHAR, first_elected VARCHAR) | SELECT COUNT(incumbent) FROM table_1342256_11 WHERE first_elected = 1926 | How many incumbents were elected in the 1926 election? | <s>[INST]How many incumbents were elected in the 1926 election? Context: CREATE TABLE table_1342256_11 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT COUNT(incumbent) FROM table_1342256_11 WHERE first_elected = 1926</s> |
CREATE TABLE table_name_15 (heat_rank INTEGER, time VARCHAR, lane VARCHAR) | SELECT AVG(heat_rank) FROM table_name_15 WHERE time < 24.02 AND lane = 1 | Tell me the average heat rank for time less than 24.02 and lane of 1 | <s>[INST]Tell me the average heat rank for time less than 24.02 and lane of 1 Context: CREATE TABLE table_name_15 (heat_rank INTEGER, time VARCHAR, lane VARCHAR)[/INST]SELECT AVG(heat_rank) FROM table_name_15 WHERE time < 24.02 AND lane = 1</s> |
CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR) | SELECT lost FROM table_name_66 WHERE matches = "1 928" | Name the lost for matches of 1 928 | <s>[INST]Name the lost for matches of 1 928 Context: CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR)[/INST]SELECT lost FROM table_name_66 WHERE matches = "1 928"</s> |
CREATE TABLE table_name_15 (oklahoma_vs VARCHAR, current_streak VARCHAR, at_neutral_site VARCHAR) | SELECT oklahoma_vs FROM table_name_15 WHERE current_streak = "l 1" AND at_neutral_site = "osu, 7-6" | What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6? | <s>[INST]What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6? Context: CREATE TABLE table_name_15 (oklahoma_vs VARCHAR, current_streak VARCHAR, at_neutral_site VARCHAR)[/INST]SELECT oklahoma_vs FROM table_name_15 WHERE current_streak = "l 1" AND at_neutral_site = "osu, 7-6"</s> |
CREATE TABLE table_name_52 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_52 WHERE away_team = "melbourne" | In the match where Melbourne was the away team, how much did they score? | <s>[INST]In the match where Melbourne was the away team, how much did they score? Context: CREATE TABLE table_name_52 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_52 WHERE away_team = "melbourne"</s> |
CREATE TABLE table_14710984_2 (points_classification VARCHAR, winner VARCHAR) | SELECT COUNT(points_classification) FROM table_14710984_2 WHERE winner = "Matteo Priamo" | Who won the points classifications in the stage where Matteo Priamo was the winner? | <s>[INST]Who won the points classifications in the stage where Matteo Priamo was the winner? Context: CREATE TABLE table_14710984_2 (points_classification VARCHAR, winner VARCHAR)[/INST]SELECT COUNT(points_classification) FROM table_14710984_2 WHERE winner = "Matteo Priamo"</s> |
CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR) | SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the structure of the document with the least number of accesses? | <s>[INST]What is the structure of the document with the least number of accesses? Context: CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR)[/INST]SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.