text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the wheel arrangement of cf-16-4, and 16 produced?
### Context:
CREATE TABLE table_name_5 (wheel_arrangement VARCHAR, builder’s_model VARCHAR, total_produced VARCHAR) [/INST]
### Response:
SELECT wheel_arrangement FROM table_name_5 WHERE builder’s_model = "cf-16-4" AND total_produced = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the power of b-b wheel arrangement, built in 1952?
### Context:
CREATE TABLE table_name_88 (power_output VARCHAR, wheel_arrangement VARCHAR, build_date VARCHAR) [/INST]
### Response:
SELECT power_output FROM table_name_88 WHERE wheel_arrangement = "b-b" AND build_date = "1952" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the build date for c-c wheel arrangement and freight service?
### Context:
CREATE TABLE table_name_36 (build_date VARCHAR, service VARCHAR, wheel_arrangement VARCHAR) [/INST]
### Response:
SELECT build_date FROM table_name_36 WHERE service = "freight" AND wheel_arrangement = "c-c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the build date for ff20 PRR class and erie built builder's model?
### Context:
CREATE TABLE table_name_14 (build_date VARCHAR, prr_class VARCHAR, builder’s_model VARCHAR) [/INST]
### Response:
SELECT build_date FROM table_name_14 WHERE prr_class = "ff20" AND builder’s_model = "erie built" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the debut when the play er is radoslava topalova and the years played is less than 2?
### Context:
CREATE TABLE table_name_33 (debut INTEGER, player VARCHAR, years_played VARCHAR) [/INST]
### Response:
SELECT AVG(debut) FROM table_name_33 WHERE player = "radoslava topalova" AND years_played < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?
### Context:
CREATE TABLE table_name_46 (average_attendance VARCHAR, sport VARCHAR, _number_of_teams VARCHAR, season VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT average_attendance FROM table_name_46 WHERE season = "2011" AND games < 519 AND _number_of_teams > 14 AND sport = "association football" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the total number of average attendance for games of 1311?
### Context:
CREATE TABLE table_name_11 (average_attendance INTEGER, games VARCHAR) [/INST]
### Response:
SELECT SUM(average_attendance) FROM table_name_11 WHERE games = 1311 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the season that had more teams larger than 14 in the super rugby league?
### Context:
CREATE TABLE table_name_72 (season VARCHAR, _number_of_teams VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_72 WHERE _number_of_teams > 14 AND league = "super rugby" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the label for the album with a catalog number of 83061-2?
### Context:
CREATE TABLE table_name_96 (label VARCHAR, catalog__number VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_96 WHERE catalog__number = "83061-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the catalog number of the album whose region is the United Kingdom?
### Context:
CREATE TABLE table_name_36 (catalog__number VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the region for the album with a catalog number of 7567-83061-2?
### Context:
CREATE TABLE table_name_60 (region VARCHAR, catalog__number VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_60 WHERE catalog__number = "7567-83061-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the label for the album with a catalog number of 83061-4?
### Context:
CREATE TABLE table_name_84 (label VARCHAR, catalog__number VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_84 WHERE catalog__number = "83061-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the catalog number of the album whose label is Atlantic Records and region is the United States?
### Context:
CREATE TABLE table_name_8 (catalog__number VARCHAR, label VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalog__number FROM table_name_8 WHERE label = "atlantic records" AND region = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school/club team did the center Rafael Araújo play for?
### Context:
CREATE TABLE table_name_78 (school_club_team VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_78 WHERE position = "center" AND player = "rafael araújo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nationality of the guard who played for Florida International?
### Context:
CREATE TABLE table_name_53 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_53 WHERE position = "guard" AND school_club_team = "florida international" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player had the position guard/forward?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE position = "guard/forward" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the driver for laps of 45
### Context:
CREATE TABLE table_name_62 (driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_62 WHERE laps = 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the visiting team on December 17?
### Context:
CREATE TABLE table_name_90 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_90 WHERE date = "december 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were at Washington's home game against Miami?
### Context:
CREATE TABLE table_name_31 (attendance VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_31 WHERE visitor = "miami" AND home = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team that played against the visiting team Minnesota?
### Context:
CREATE TABLE table_name_63 (home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_63 WHERE visitor = "minnesota" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was total attendance on the day they went 17-7?
### Context:
CREATE TABLE table_name_17 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_17 WHERE record = "17-7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score on April 22?
### Context:
CREATE TABLE table_name_53 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_53 WHERE date = "april 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event had zhamash l 1–2 in the quarterfinal?
### Context:
CREATE TABLE table_name_88 (event VARCHAR, quarterfinal VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_88 WHERE quarterfinal = "zhamash l 1–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Hossein Ojaghi participated in what semifinal.
### Context:
CREATE TABLE table_name_4 (semifinal VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT semifinal FROM table_name_4 WHERE athlete = "hossein ojaghi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Alireza Rouzbahani did not advance to the quarterfinal in what event?
### Context:
CREATE TABLE table_name_29 (event VARCHAR, quarterfinal VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_29 WHERE quarterfinal = "did not advance" AND athlete = "alireza rouzbahani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games have more than 288 goals and less than 34 losses?
### Context:
CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest tie with less than 100 points and 277 goals?
### Context:
CREATE TABLE table_name_57 (tied INTEGER, points VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT MIN(tied) FROM table_name_57 WHERE points < 100 AND goals_for = 277 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team with position G?
### Context:
CREATE TABLE table_name_94 (team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_94 WHERE position = "g" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the player from Illinois?
### Context:
CREATE TABLE table_name_33 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_33 WHERE college = "illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the phone number of the station located at 53 Dayton Road?
### Context:
CREATE TABLE table_name_46 (phone VARCHAR, address VARCHAR) [/INST]
### Response:
SELECT phone FROM table_name_46 WHERE address = "53 dayton road" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the engine company that is located at 89 Rope Ferry Road?
### Context:
CREATE TABLE table_name_35 (engine_company VARCHAR, address VARCHAR) [/INST]
### Response:
SELECT engine_company FROM table_name_35 WHERE address = "89 rope ferry road" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Record of the game in which the Trail Blazers was the visiting team?
### Context:
CREATE TABLE table_name_24 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_24 WHERE visitor = "trail blazers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the friendly match, ending in a result of 1-1?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_30 WHERE competition = "friendly match" AND result = "1-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game held at the As-Salt venue?
### Context:
CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_28 WHERE venue = "as-salt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the team's record on May 17?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_56 WHERE date = "may 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which zone had mădălina gojnea monica niculescu as the opponent?
### Context:
CREATE TABLE table_name_30 (zone VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT zone FROM table_name_30 WHERE opponents = "mădălina gojnea monica niculescu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was against the opponents, mădălina gojnea monica niculescu?
### Context:
CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT against FROM table_name_94 WHERE opponents = "mădălina gojnea monica niculescu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the surface on the game with margit rüütel anett schutting as the opponent?
### Context:
CREATE TABLE table_name_7 (surface VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_7 WHERE opponents = "margit rüütel anett schutting" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the zone of the game played against Estonia?
### Context:
CREATE TABLE table_name_64 (zone VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT zone FROM table_name_64 WHERE against = "estonia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the high rebounds on February 24?
### Context:
CREATE TABLE table_name_36 (high_rebounds VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_36 WHERE date = "february 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On February 10, what was the location attendance?
### Context:
CREATE TABLE table_name_49 (location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_49 WHERE date = "february 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the player with econ of 4.23
### Context:
CREATE TABLE table_name_40 (player VARCHAR, econ VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_40 WHERE econ = "4.23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the runs for b lee
### Context:
CREATE TABLE table_name_15 (runs VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT runs FROM table_name_15 WHERE player = "b lee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the player with overs of 87.4
### Context:
CREATE TABLE table_name_91 (player VARCHAR, overs VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_91 WHERE overs = "87.4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the runs for econ of 3.63
### Context:
CREATE TABLE table_name_80 (runs VARCHAR, econ VARCHAR) [/INST]
### Response:
SELECT runs FROM table_name_80 WHERE econ = "3.63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the wkts for econ of 4.23
### Context:
CREATE TABLE table_name_13 (wkts VARCHAR, econ VARCHAR) [/INST]
### Response:
SELECT wkts FROM table_name_13 WHERE econ = "4.23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the overs for mdns of 4
### Context:
CREATE TABLE table_name_66 (overs VARCHAR, mdns VARCHAR) [/INST]
### Response:
SELECT overs FROM table_name_66 WHERE mdns = "4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If collingwood is playing away, who played as the home team?
### Context:
CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_43 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away teams score when they played at kardinia park?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 WHERE venue = "kardinia park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the highest turnout when carlton was playing as the away team?
### Context:
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What away team played when the crowd was over 27,463 people?
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team FROM table_name_69 WHERE crowd > 27 OFFSET 463 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On waht date did Antoinette Jeanne Yvonne Boegner get married?
### Context:
CREATE TABLE table_name_28 (marriage VARCHAR, spouse VARCHAR) [/INST]
### Response:
SELECT marriage FROM table_name_28 WHERE spouse = "antoinette jeanne yvonne boegner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest Crowd number for the Home team of North Melbourne?
### Context:
CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_3 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What home team did South Melbourne play as the away team?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_19 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the home team score against the away team Hawthorn?
### Context:
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In the Western Oval venue, what is the average crowd?
### Context:
CREATE TABLE table_name_38 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_38 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When Richmond is the away team, what is the crowd size?
### Context:
CREATE TABLE table_name_23 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_23 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the person from round 8?
### Context:
CREATE TABLE table_name_60 (name VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_60 WHERE round = 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the round for Arizona with a pick over 100?
### Context:
CREATE TABLE table_name_48 (round INTEGER, school VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_48 WHERE school = "arizona" AND pick > 100 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick had a wide receiver named johnny holloway?
### Context:
CREATE TABLE table_name_66 (pick VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_66 WHERE position = "wide receiver" AND name = "johnny holloway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which score has a Home Team of saskatoon accelerators?
### Context:
CREATE TABLE table_name_61 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_61 WHERE home_team = "saskatoon accelerators" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Visiting Team has a Stadium of servus centre on march 7?
### Context:
CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Visiting Team has a Stadium of servus centre?
### Context:
CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many heavy attacks did the 450 Luftflotte 2 conduct?
### Context:
CREATE TABLE table_name_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR) [/INST]
### Response:
SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time/retired for grid 19?
### Context:
CREATE TABLE table_name_40 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_40 WHERE grid = 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the grid total for bruce mclaren with over 73 laps?
### Context:
CREATE TABLE table_name_14 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_14 WHERE laps > 73 AND driver = "bruce mclaren" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What film was released in 1971?
### Context:
CREATE TABLE table_name_66 (film VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_66 WHERE year = 1971 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was steve bartalo picked?
### Context:
CREATE TABLE table_name_79 (pick INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_79 WHERE player = "steve bartalo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player is a cornerback?
### Context:
CREATE TABLE table_name_57 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_57 WHERE position = "cornerback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Windy hill is the home to what team?
### Context:
CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_85 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the competition with a score of 1-5?
### Context:
CREATE TABLE table_name_49 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_49 WHERE score = "1-5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?
### Context:
CREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What regular season result had an average attendance less than 942?
### Context:
CREATE TABLE table_name_16 (reg_season VARCHAR, avg_attendance INTEGER) [/INST]
### Response:
SELECT reg_season FROM table_name_16 WHERE avg_attendance < 942 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which league had a playoffs result of a lost semifinal?
### Context:
CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What regular season result had an average attendance bigger than 3,170?
### Context:
CREATE TABLE table_name_67 (reg_season VARCHAR, avg_attendance INTEGER) [/INST]
### Response:
SELECT reg_season FROM table_name_67 WHERE avg_attendance > 3 OFFSET 170 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the length (miles) when the east or north terminus is ne 2 in lincoln?
### Context:
CREATE TABLE table_name_95 (length__miles_ VARCHAR, east_or_north_terminus VARCHAR) [/INST]
### Response:
SELECT COUNT(length__miles_) FROM table_name_95 WHERE east_or_north_terminus = "ne 2 in lincoln" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the length (miles) when the name is l-56g?
### Context:
CREATE TABLE table_name_19 (length__miles_ INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(length__miles_) FROM table_name_19 WHERE name = "l-56g" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the name when the west or south terminus is ne 112 west of blue springs?
### Context:
CREATE TABLE table_name_63 (name VARCHAR, west_or_south_terminus VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_63 WHERE west_or_south_terminus = "ne 112 west of blue springs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault
### Context:
CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_38 WHERE constructor = "benetton - renault" AND driver = "johnny herbert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?
### Context:
CREATE TABLE table_name_50 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_50 WHERE laps = "66" AND constructor = "jordan - peugeot" AND grid = "5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired value of driver Pedro Diniz?
### Context:
CREATE TABLE table_name_7 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_7 WHERE driver = "pedro diniz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which driver has grid value of 18?
### Context:
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_45 WHERE grid = "18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the constructor with grid value 5?
### Context:
CREATE TABLE table_name_54 (constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_54 WHERE grid = "5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the grid value which has Time/Retired value of accident?
### Context:
CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_57 WHERE time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the leading scorer that was a visitor of the Trail Blazers?
### Context:
CREATE TABLE table_name_35 (leading_scorer VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_35 WHERE visitor = "trail blazers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the leading scorer when they were at home of the Clippers?
### Context:
CREATE TABLE table_name_51 (leading_scorer VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_51 WHERE home = "clippers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the visitor on January 19, 2008?
### Context:
CREATE TABLE table_name_38 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_38 WHERE date = "january 19, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when there was a visitor of Magic and at home with the Clippers?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
### Context:
CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest crowd when carlton is the away team?
### Context:
CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest crowd at mcg?
### Context:
CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many grids are associated with a Time/Retired of +1.837?
### Context:
CREATE TABLE table_name_87 (grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_87 WHERE time_retired = "+1.837" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the hometown of the player that attends UCLA?
### Context:
CREATE TABLE table_name_99 (hometown VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_99 WHERE college = "ucla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What college is getting a player that attends Wichita Heights High School?
### Context:
CREATE TABLE table_name_32 (college VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_32 WHERE school = "wichita heights high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the hometown of Cody Zeller?
### Context:
CREATE TABLE table_name_83 (hometown VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_83 WHERE player = "cody zeller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player's hometown is Washington, IN?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE hometown = "washington, in" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?
### Context:
CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR) [/INST]
### Response:
SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?
### Context:
CREATE TABLE table_name_30 (seats_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2006 VARCHAR) [/INST]
### Response:
SELECT SUM(seats_2001) FROM table_name_30 WHERE _percentage_2001 > 61.4 AND _percentage_2006 < 54.1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6?
### Context:
CREATE TABLE table_name_79 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) [/INST]
### Response:
SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?
### Context:
CREATE TABLE table_name_5 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) [/INST]
### Response:
SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = "bürger für groß-rohrheim" AND _percentage_2006 < 21.3 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.