text
stringlengths 354
1.06k
|
---|
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (release_date VARCHAR, director VARCHAR, production_num VARCHAR)
Question: Which Release date has a Director of tom palmer, and a Production Num larger than 5956?
[/INST]
Here is the SQLite query to answer to the question: Which Release date has a Director of tom palmer, and a Production Num larger than 5956?:
```
SELECT release_date FROM table_name_92 WHERE director = "tom palmer" AND production_num > 5956
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (athlete VARCHAR, heat VARCHAR, country VARCHAR, rank VARCHAR, time VARCHAR)
Question: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?
[/INST]
Here is the SQLite query to answer to the question: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?:
```
SELECT athlete FROM table_name_33 WHERE rank < 13 AND time > 11.13 AND country = "bahamas" AND heat > 2
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (difference VARCHAR, position INTEGER)
Question: What was the Difference of the Team that had a Position less than 2?
[/INST]
Here is the SQLite query to answer to the question: What was the Difference of the Team that had a Position less than 2?:
```
SELECT difference FROM table_name_8 WHERE position < 2
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR)
Question: How many golds have a Total of 11, and a Bronze smaller than 3?
[/INST]
Here is the SQLite query to answer to the question: How many golds have a Total of 11, and a Bronze smaller than 3?:
```
SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (match_report VARCHAR, date VARCHAR)
Question: What is the match report for July 10, 2005?
[/INST]
Here is the SQLite query to answer to the question: What is the match report for July 10, 2005?:
```
SELECT match_report FROM table_name_91 WHERE date = "july 10, 2005"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (draws VARCHAR, team VARCHAR)
Question: How many draws did Durham have?
[/INST]
Here is the SQLite query to answer to the question: How many draws did Durham have?:
```
SELECT draws FROM table_name_72 WHERE team = "durham"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
Question: What is the Name of the D Player born on 1983-07-19?
[/INST]
Here is the SQLite query to answer to the question: What is the Name of the D Player born on 1983-07-19?:
```
SELECT name FROM table_name_46 WHERE pos = "d" AND date_of_birth = "1983-07-19"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (game VARCHAR, road_team VARCHAR, date VARCHAR)
Question: What is the Game on May 24 with Road Team Seattle?
[/INST]
Here is the SQLite query to answer to the question: What is the Game on May 24 with Road Team Seattle?:
```
SELECT game FROM table_name_76 WHERE road_team = "seattle" AND date = "may 24"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (player VARCHAR, college VARCHAR)
Question: Which player is from Ohio State College?
[/INST]
Here is the SQLite query to answer to the question: Which player is from Ohio State College?:
```
SELECT player FROM table_name_55 WHERE college = "ohio state"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (championship VARCHAR, opponents_in_final VARCHAR, partnering VARCHAR, year VARCHAR)
Question: What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?
[/INST]
Here is the SQLite query to answer to the question: What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?:
```
SELECT championship FROM table_name_71 WHERE partnering = "maikel scheffers" AND year > 2007 AND opponents_in_final = "stephane houdet nicolas peiffer"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (laps INTEGER, driver VARCHAR, grid VARCHAR)
Question: I want the fewest Laps for Huub Rothengatter and grid less than 24
[/INST]
Here is the SQLite query to answer to the question: I want the fewest Laps for Huub Rothengatter and grid less than 24:
```
SELECT MIN(laps) FROM table_name_88 WHERE driver = "huub rothengatter" AND grid < 24
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (season VARCHAR, champion VARCHAR)
Question: What season has the champion of Nicolas Kiesa?
[/INST]
Here is the SQLite query to answer to the question: What season has the champion of Nicolas Kiesa?:
```
SELECT season FROM table_name_84 WHERE champion = "nicolas kiesa"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17538810_10 (lead_margin VARCHAR, dates_administered VARCHAR)
Question: How many different lead margins were stated in the poll administered on September 11, 2008?
[/INST]
Here is the SQLite query to answer to the question: How many different lead margins were stated in the poll administered on September 11, 2008?:
```
SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = "September 11, 2008"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (country VARCHAR, score VARCHAR)
Question: Which country has a score of 70-66=136?
[/INST]
Here is the SQLite query to answer to the question: Which country has a score of 70-66=136?:
```
SELECT country FROM table_name_31 WHERE score = 70 - 66 = 136
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (lane INTEGER, rank VARCHAR)
Question: What lane did the rank 3 swimmer use?
[/INST]
Here is the SQLite query to answer to the question: What lane did the rank 3 swimmer use?:
```
SELECT MAX(lane) FROM table_name_57 WHERE rank = 3
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (prohibition_ticket VARCHAR, socialist_labor_ticket VARCHAR)
Question: Which Prohibition ticket has a Socialist Labor ticket of joseph smith?
[/INST]
Here is the SQLite query to answer to the question: Which Prohibition ticket has a Socialist Labor ticket of joseph smith?:
```
SELECT prohibition_ticket FROM table_name_34 WHERE socialist_labor_ticket = "joseph smith"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (year VARCHAR, total VARCHAR, la_matches VARCHAR)
Question: What year had a total of 2 and LA matches of 0?
[/INST]
Here is the SQLite query to answer to the question: What year had a total of 2 and LA matches of 0?:
```
SELECT year FROM table_name_35 WHERE total = "2" AND la_matches = "0"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (wins VARCHAR, podiums VARCHAR)
Question: How many wins did the team with 5 podiums have?
[/INST]
Here is the SQLite query to answer to the question: How many wins did the team with 5 podiums have?:
```
SELECT wins FROM table_name_15 WHERE podiums = "5"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR)
Question: What is the least amount of points when there is 1 win?
[/INST]
Here is the SQLite query to answer to the question: What is the least amount of points when there is 1 win?:
```
SELECT MIN(points) FROM table_name_95 WHERE wins = 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30058355_2 (fri_26_aug VARCHAR, mon_22_aug VARCHAR)
Question: What is shown for fri 26 aug when mon 22 aug is —— no time?
[/INST]
Here is the SQLite query to answer to the question: What is shown for fri 26 aug when mon 22 aug is —— no time?:
```
SELECT fri_26_aug FROM table_30058355_2 WHERE mon_22_aug = "—— No Time"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (game INTEGER, record VARCHAR)
Question: What was the earliest game with a record of 16–4–3?
[/INST]
Here is the SQLite query to answer to the question: What was the earliest game with a record of 16–4–3?:
```
SELECT MIN(game) FROM table_name_96 WHERE record = "16–4–3"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (engine VARCHAR, year VARCHAR)
Question: What engine was in the year of 1961?
[/INST]
Here is the SQLite query to answer to the question: What engine was in the year of 1961?:
```
SELECT engine FROM table_name_85 WHERE year = 1961
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR)
Question: What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?
[/INST]
Here is the SQLite query to answer to the question: What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?:
```
SELECT total FROM table_name_2 WHERE gold = 2 AND nation = "brazil (bra)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)
Question: How many totals have andy north as the player?
[/INST]
Here is the SQLite query to answer to the question: How many totals have andy north as the player?:
```
SELECT SUM(total) FROM table_name_96 WHERE player = "andy north"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (swimming VARCHAR, total VARCHAR, volleyball VARCHAR)
Question: Which Swimming has a Total larger than 35, and a Volleyball of 1?
[/INST]
Here is the SQLite query to answer to the question: Which Swimming has a Total larger than 35, and a Volleyball of 1?:
```
SELECT swimming FROM table_name_96 WHERE total > 35 AND volleyball = "1"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (team_1 VARCHAR)
Question: What is the 1st leg where Team 1 is C.D. Plaza Amador?
[/INST]
Here is the SQLite query to answer to the question: What is the 1st leg where Team 1 is C.D. Plaza Amador?:
```
SELECT 1 AS st_leg FROM table_name_12 WHERE team_1 = "c.d. plaza amador"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22385461_6 (end__utc_ VARCHAR, spacecraft VARCHAR)
Question: What is the end (UTC) for spacecraft STS-114 Eva 3?
[/INST]
Here is the SQLite query to answer to the question: What is the end (UTC) for spacecraft STS-114 Eva 3?:
```
SELECT end__utc_ FROM table_22385461_6 WHERE spacecraft = "STS-114 EVA 3"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (round VARCHAR, event VARCHAR)
Question: What round did the match go to when the event was Bars - Moscow vs St. Petersburg?
[/INST]
Here is the SQLite query to answer to the question: What round did the match go to when the event was Bars - Moscow vs St. Petersburg?:
```
SELECT round FROM table_name_92 WHERE event = "bars - moscow vs st. petersburg"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_13514348_7 (umpires VARCHAR, simpson_medal VARCHAR)
Question: Who were the umpires when Paul Medhurst (C) won the Simpson Medal?
[/INST]
Here is the SQLite query to answer to the question: Who were the umpires when Paul Medhurst (C) won the Simpson Medal?:
```
SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Medhurst (C)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (assembled VARCHAR)
Question: Who was the 2nd member of the parliament that was assembled on 3 november 1529?
[/INST]
Here is the SQLite query to answer to the question: Who was the 2nd member of the parliament that was assembled on 3 november 1529?:
```
SELECT 2 AS nd_member FROM table_name_19 WHERE assembled = "3 november 1529"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (winner VARCHAR, date VARCHAR)
Question: Who was the winner in 2007?
[/INST]
Here is the SQLite query to answer to the question: Who was the winner in 2007?:
```
SELECT winner FROM table_name_49 WHERE date = 2007
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (location_attendance VARCHAR, team VARCHAR)
Question: What were the location and attendance for the game against New Jersey?
[/INST]
Here is the SQLite query to answer to the question: What were the location and attendance for the game against New Jersey?:
```
SELECT location_attendance FROM table_name_33 WHERE team = "new jersey"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (area__km²_ INTEGER, population__2011_ VARCHAR, population_density VARCHAR)
Question: What was the Area (km²) when the Population (2011) was 8574, and the Population density was larger than 381.4?
[/INST]
Here is the SQLite query to answer to the question: What was the Area (km²) when the Population (2011) was 8574, and the Population density was larger than 381.4?:
```
SELECT AVG(area__km²_) FROM table_name_21 WHERE population__2011_ = 8574 AND population_density > 381.4
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (date VARCHAR, attendance VARCHAR)
Question: When was the attendance 3686?
[/INST]
Here is the SQLite query to answer to the question: When was the attendance 3686?:
```
SELECT date FROM table_name_23 WHERE attendance = 3686
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (school VARCHAR, ihsaa_class VARCHAR, enrollment_08_09 VARCHAR)
Question: Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?
[/INST]
Here is the SQLite query to answer to the question: Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?:
```
SELECT school FROM table_name_67 WHERE ihsaa_class = "a" AND enrollment_08_09 = 244
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR)
Question: With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?
[/INST]
Here is the SQLite query to answer to the question: With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?:
```
SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
Question: In grid 15, how many laps were there before ending with a time of exhaust?
[/INST]
Here is the SQLite query to answer to the question: In grid 15, how many laps were there before ending with a time of exhaust?:
```
SELECT SUM(laps) FROM table_name_40 WHERE time_retired = "exhaust" AND grid < 15
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
Question: Find number of tracks in each genre?
[/INST]
Here is the SQLite query to answer to the question: Find number of tracks in each genre?:
```
SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (director VARCHAR, writer VARCHAR)
Question: Who was the director of the episode written by Russell T Davies and James Moran?
[/INST]
Here is the SQLite query to answer to the question: Who was the director of the episode written by Russell T Davies and James Moran?:
```
SELECT director FROM table_name_67 WHERE writer = "russell t davies and james moran"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
Question: What opponent played on 1/13/1974?
[/INST]
Here is the SQLite query to answer to the question: What opponent played on 1/13/1974?:
```
SELECT opponent FROM table_name_6 WHERE date = "1/13/1974"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)
Question: What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?:
```
SELECT MIN(losses) FROM table_name_38 WHERE wins < 4 AND ties = 2 AND place = 5
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR)
Question: Which club plays soccer in the nwsl?
[/INST]
Here is the SQLite query to answer to the question: Which club plays soccer in the nwsl?:
```
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
Question: Name all the candidates vying for Albert Bustamante's seat.
[/INST]
Here is the SQLite query to answer to the question: Name all the candidates vying for Albert Bustamante's seat.:
```
SELECT candidates FROM table_1341586_44 WHERE incumbent = "Albert Bustamante"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (result VARCHAR, attendance VARCHAR)
Question: What was the result when the attendance was 12,000?
[/INST]
Here is the SQLite query to answer to the question: What was the result when the attendance was 12,000?:
```
SELECT result FROM table_name_77 WHERE attendance = "12,000"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (week VARCHAR, tournament VARCHAR)
Question: In what Week is the Rome Tournament?
[/INST]
Here is the SQLite query to answer to the question: In what Week is the Rome Tournament?:
```
SELECT week FROM table_name_70 WHERE tournament = "rome"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (power VARCHAR, class VARCHAR, identifier VARCHAR)
Question: What is the power that belongs to Class A with an Identifier of CBOC-FM?
[/INST]
Here is the SQLite query to answer to the question: What is the power that belongs to Class A with an Identifier of CBOC-FM?:
```
SELECT power FROM table_name_90 WHERE class = "a" AND identifier = "cboc-fm"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (location VARCHAR, home_ground VARCHAR, position_in_2012_13 VARCHAR)
Question: What location has a home ground of n/a, and position in 2012-13 of 13th, third division?
[/INST]
Here is the SQLite query to answer to the question: What location has a home ground of n/a, and position in 2012-13 of 13th, third division?:
```
SELECT location FROM table_name_2 WHERE home_ground = "n/a" AND position_in_2012_13 = "13th, third division"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR)
Question: What was the result in 1995?
[/INST]
Here is the SQLite query to answer to the question: What was the result in 1995?:
```
SELECT result FROM table_name_79 WHERE year = 1995
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17675675_2 (tries_against VARCHAR, club VARCHAR)
Question: For club Swansea Uplands RFC, what is the amount of tries against?
[/INST]
Here is the SQLite query to answer to the question: For club Swansea Uplands RFC, what is the amount of tries against?:
```
SELECT tries_against FROM table_17675675_2 WHERE club = "Swansea Uplands RFC"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR)
Question: When Collingwood was the home team who was the opposing away team?
[/INST]
Here is the SQLite query to answer to the question: When Collingwood was the home team who was the opposing away team?:
```
SELECT away_team FROM table_name_52 WHERE home_team = "collingwood"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23248910_5 (score VARCHAR, record VARCHAR)
Question: What was the score against the team with an 11-3 record against the Hawks?
[/INST]
Here is the SQLite query to answer to the question: What was the score against the team with an 11-3 record against the Hawks?:
```
SELECT score FROM table_23248910_5 WHERE record = "11-3"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (game VARCHAR, year VARCHAR)
Question: What game was in 2011?
[/INST]
Here is the SQLite query to answer to the question: What game was in 2011?:
```
SELECT game FROM table_name_7 WHERE year = 2011
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (rank INTEGER, name VARCHAR, goals VARCHAR)
Question: When Oscar Míguez had over 107 goals, what was the lowest he ranked?
[/INST]
Here is the SQLite query to answer to the question: When Oscar Míguez had over 107 goals, what was the lowest he ranked?:
```
SELECT MIN(rank) FROM table_name_21 WHERE name = "oscar míguez" AND goals > 107
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR)
Question: Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
[/INST]
Here is the SQLite query to answer to the question: Who was the visiting team who played at the hubert h. humphrey metrodome stadium?:
```
SELECT visiting_team FROM table_name_67 WHERE stadium = "hubert h. humphrey metrodome"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (type VARCHAR, locomotive_number VARCHAR)
Question: What type is locomotive number CTN 46?
[/INST]
Here is the SQLite query to answer to the question: What type is locomotive number CTN 46?:
```
SELECT type FROM table_name_26 WHERE locomotive_number = "ctn 46"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (silver INTEGER, gold INTEGER)
Question: Name the least silver when gold is less than 0
[/INST]
Here is the SQLite query to answer to the question: Name the least silver when gold is less than 0:
```
SELECT MIN(silver) FROM table_name_41 WHERE gold < 0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
Question: What date did the Ravens play the buffalo bills?
[/INST]
Here is the SQLite query to answer to the question: What date did the Ravens play the buffalo bills?:
```
SELECT date FROM table_name_97 WHERE opponent = "buffalo bills"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11950720_4 (bowling_style VARCHAR, player VARCHAR)
Question: What is the bowling style of chris harris?
[/INST]
Here is the SQLite query to answer to the question: What is the bowling style of chris harris?:
```
SELECT bowling_style FROM table_11950720_4 WHERE player = "Chris Harris"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (player VARCHAR, total_reb VARCHAR, fg_pct VARCHAR, def_reb VARCHAR)
Question: Which player has a FG Pct less than 45.9, a def reb less than 43, and a total reb of 9?
[/INST]
Here is the SQLite query to answer to the question: Which player has a FG Pct less than 45.9, a def reb less than 43, and a total reb of 9?:
```
SELECT player FROM table_name_21 WHERE fg_pct < 45.9 AND def_reb < 43 AND total_reb = 9
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12148147_2 (second_year VARCHAR, first_year VARCHAR)
Question: What is the second year class following pag-unawa?
[/INST]
Here is the SQLite query to answer to the question: What is the second year class following pag-unawa?:
```
SELECT second_year FROM table_12148147_2 WHERE first_year = "Pag-unawa"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (date VARCHAR, away VARCHAR)
Question: On what date were the Ottawa Swans the away team?
[/INST]
Here is the SQLite query to answer to the question: On what date were the Ottawa Swans the away team?:
```
SELECT date FROM table_name_25 WHERE away = "ottawa swans"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
Question: What is the moving from with a transfer and the nationality of Bra?
[/INST]
Here is the SQLite query to answer to the question: What is the moving from with a transfer and the nationality of Bra?:
```
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_21458142_1 (sales_breakdown VARCHAR, publisher VARCHAR, title VARCHAR)
Question: What's the sales breakdown for Nintendo's Mario Kart DS?
[/INST]
Here is the SQLite query to answer to the question: What's the sales breakdown for Nintendo's Mario Kart DS?:
```
SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND title = "Mario Kart DS"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (author VARCHAR, release_air_date VARCHAR, role VARCHAR, year VARCHAR)
Question: Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
[/INST]
Here is the SQLite query to answer to the question: Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?:
```
SELECT author FROM table_name_62 WHERE role = "narrator" AND year > 2009 AND release_air_date = "7 october 2010"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (result VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What is the Result of the game after Week 10 against Philadelphia Eagles?
[/INST]
Here is the SQLite query to answer to the question: What is the Result of the game after Week 10 against Philadelphia Eagles?:
```
SELECT result FROM table_name_26 WHERE week > 10 AND opponent = "philadelphia eagles"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (australian VARCHAR, british VARCHAR)
Question: What is Australian, when British is "aɪ, ɪ, ə"?
[/INST]
Here is the SQLite query to answer to the question: What is Australian, when British is "aɪ, ɪ, ə"?:
```
SELECT australian FROM table_name_12 WHERE british = "aɪ, ɪ, ə"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27721131_6 (score VARCHAR, high_points VARCHAR)
Question: What was the score when andray blatche , al thornton (20) had the high points?
[/INST]
Here is the SQLite query to answer to the question: What was the score when andray blatche , al thornton (20) had the high points?:
```
SELECT score FROM table_27721131_6 WHERE high_points = "Andray Blatche , Al Thornton (20)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR)
Question: What was the winning percent of Notre Dame in 1905?
[/INST]
Here is the SQLite query to answer to the question: What was the winning percent of Notre Dame in 1905?:
```
SELECT pct FROM table_name_86 WHERE years = "1905"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
Question: Who is the opponent with a score of 6–5 13?
[/INST]
Here is the SQLite query to answer to the question: Who is the opponent with a score of 6–5 13?:
```
SELECT opponent FROM table_name_82 WHERE score = "6–5 13"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR)
Question: What is the retail space of the Stony Point Fashion Park Mall?
[/INST]
Here is the SQLite query to answer to the question: What is the retail space of the Stony Point Fashion Park Mall?:
```
SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = "stony point fashion park"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (player VARCHAR, position VARCHAR)
Question: What players have a position of F?
[/INST]
Here is the SQLite query to answer to the question: What players have a position of F?:
```
SELECT player FROM table_name_2 WHERE position = "f"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (score VARCHAR, set_3 VARCHAR)
Question: What is the score when the set 3 is 26–28?
[/INST]
Here is the SQLite query to answer to the question: What is the score when the set 3 is 26–28?:
```
SELECT score FROM table_name_5 WHERE set_3 = "26–28"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (no_s_ INTEGER, years_for_rockets VARCHAR)
Question: What is the average number of years for the Houston Rockets 2004-05?
[/INST]
Here is the SQLite query to answer to the question: What is the average number of years for the Houston Rockets 2004-05?:
```
SELECT AVG(no_s_) FROM table_name_14 WHERE years_for_rockets = "2004-05"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE Student (age VARCHAR)
Question: Show all ages and corresponding number of students.
[/INST]
Here is the SQLite query to answer to the question: Show all ages and corresponding number of students.:
```
SELECT age, COUNT(*) FROM Student GROUP BY age
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE station (Id VARCHAR)
Question: How many train stations are there?
[/INST]
Here is the SQLite query to answer to the question: How many train stations are there?:
```
SELECT COUNT(*) FROM station
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (wins INTEGER, cuts_made INTEGER)
Question: How many wins of average has cuts made less than 0?
[/INST]
Here is the SQLite query to answer to the question: How many wins of average has cuts made less than 0?:
```
SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_24039173_1 (captain VARCHAR, location VARCHAR)
Question: Who is the captain in Chaguaramas?
[/INST]
Here is the SQLite query to answer to the question: Who is the captain in Chaguaramas?:
```
SELECT captain FROM table_24039173_1 WHERE location = "Chaguaramas"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (player VARCHAR, place VARCHAR, country VARCHAR)
Question: Which player is from Australia, and has a place of t9?
[/INST]
Here is the SQLite query to answer to the question: Which player is from Australia, and has a place of t9?:
```
SELECT player FROM table_name_35 WHERE place = "t9" AND country = "australia"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
Question: What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
[/INST]
Here is the SQLite query to answer to the question: What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?:
```
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (crowd VARCHAR, home_team VARCHAR)
Question: What was the crowd size at Collingwood's match?
[/INST]
Here is the SQLite query to answer to the question: What was the crowd size at Collingwood's match?:
```
SELECT crowd FROM table_name_43 WHERE home_team = "collingwood"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR)
Question: Who was performer 3 with karen maruyama as performer 2?
[/INST]
Here is the SQLite query to answer to the question: Who was performer 3 with karen maruyama as performer 2?:
```
SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
Question: what is the unemployment rate where the market income per capita is $16,406?
[/INST]
Here is the SQLite query to answer to the question: what is the unemployment rate where the market income per capita is $16,406?:
```
SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10333757_1 (frequency VARCHAR, market_rank VARCHAR)
Question: What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?
[/INST]
Here is the SQLite query to answer to the question: What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?:
```
SELECT COUNT(frequency) FROM table_10333757_1 WHERE market_rank = "Burlington - Plattsburgh , Vermont - New York /143"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (nba_draft VARCHAR, player VARCHAR)
Question: What was the nba draft for al-farouq aminu?
[/INST]
Here is the SQLite query to answer to the question: What was the nba draft for al-farouq aminu?:
```
SELECT nba_draft FROM table_name_53 WHERE player = "al-farouq aminu"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Question: What is the To Par that has Tommy Bolt with a Place of t6?
[/INST]
Here is the SQLite query to answer to the question: What is the To Par that has Tommy Bolt with a Place of t6?:
```
SELECT to_par FROM table_name_6 WHERE place = "t6" AND player = "tommy bolt"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (result VARCHAR, venue VARCHAR, attendance VARCHAR)
Question: I want to see the result for venue of n and attendance more than 20,664
[/INST]
Here is the SQLite query to answer to the question: I want to see the result for venue of n and attendance more than 20,664:
```
SELECT result FROM table_name_17 WHERE venue = "n" AND attendance > 20 OFFSET 664
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_14752049_3 (international_tourist_arrivals__2010_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR)
Question: Name the international tourist arrivals for arrivals 2011 for 8.1 million
[/INST]
Here is the SQLite query to answer to the question: Name the international tourist arrivals for arrivals 2011 for 8.1 million:
```
SELECT international_tourist_arrivals__2010_ FROM table_14752049_3 WHERE international_tourist_arrivals__2011_ = "8.1 million"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (march INTEGER, record VARCHAR, game VARCHAR)
Question: What day in March is the game with a 48-13-11 record and a game number less than 72?
[/INST]
Here is the SQLite query to answer to the question: What day in March is the game with a 48-13-11 record and a game number less than 72?:
```
SELECT SUM(march) FROM table_name_12 WHERE record = "48-13-11" AND game < 72
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2701851_2 (title VARCHAR, written_by VARCHAR)
Question: What is the name of the episode written by Michael Price?
[/INST]
Here is the SQLite query to answer to the question: What is the name of the episode written by Michael Price?:
```
SELECT title FROM table_2701851_2 WHERE written_by = "Michael Price"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_19317584_2 (city_and_venue VARCHAR)
Question: Who came in 3rd place in Krško , Slovenia Matije Gubca Stadium
[/INST]
Here is the SQLite query to answer to the question: Who came in 3rd place in Krško , Slovenia Matije Gubca Stadium:
```
SELECT 3 AS rd_placed FROM table_19317584_2 WHERE city_and_venue = "Krško , Slovenia Matije Gubca Stadium"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (away VARCHAR, season VARCHAR, record VARCHAR, win__percentage VARCHAR)
Question: What is the away score with a record of 7-4, win% of 0.637, and 2010 season?
[/INST]
Here is the SQLite query to answer to the question: What is the away score with a record of 7-4, win% of 0.637, and 2010 season?:
```
SELECT away FROM table_name_22 WHERE record = "7-4" AND win__percentage = 0.637 AND season = "2010"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17288825_6 (date VARCHAR, high_assists VARCHAR)
Question: When aaron brooks (6) had the highest amount of assists what is the date?
[/INST]
Here is the SQLite query to answer to the question: When aaron brooks (6) had the highest amount of assists what is the date?:
```
SELECT date FROM table_17288825_6 WHERE high_assists = "Aaron Brooks (6)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (game VARCHAR, attendance VARCHAR, points VARCHAR, date VARCHAR)
Question: Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?
[/INST]
Here is the SQLite query to answer to the question: Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?:
```
SELECT COUNT(game) FROM table_name_2 WHERE points < 15 AND date = "november 15" AND attendance > 13 OFFSET 722
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)
Question: What is the Rich Savage percentage in the poll with Jody Wagner at 30%?
[/INST]
Here is the SQLite query to answer to the question: What is the Rich Savage percentage in the poll with Jody Wagner at 30%?:
```
SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)
Question: Which player is from the College of Alabama?
[/INST]
Here is the SQLite query to answer to the question: Which player is from the College of Alabama?:
```
SELECT player FROM table_name_97 WHERE college = "alabama"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR)
Question: What is Gold, when Total is 6?
[/INST]
Here is the SQLite query to answer to the question: What is Gold, when Total is 6?:
```
SELECT gold FROM table_name_79 WHERE total = 6
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (rider VARCHAR, manufacturer VARCHAR)
Question: WWhich rder had a vehicle manufactured by kr211v?
[/INST]
Here is the SQLite query to answer to the question: WWhich rder had a vehicle manufactured by kr211v?:
```
SELECT rider FROM table_name_26 WHERE manufacturer = "kr211v"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_25177625_1 (height VARCHAR, position VARCHAR, year VARCHAR)
Question: What was the height of this Freshman with a forward position?
[/INST]
Here is the SQLite query to answer to the question: What was the height of this Freshman with a forward position?:
```
SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (record VARCHAR, leading_scorer VARCHAR, date VARCHAR)
Question: What is the Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008?
[/INST]
Here is the SQLite query to answer to the question: What is the Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008?:
```
SELECT record FROM table_name_38 WHERE leading_scorer = "maurice williams (25)" AND date = "27 january 2008"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2102714_1 (episode VARCHAR, run_time VARCHAR)
Question: What episode had a run time of 24:53?
[/INST]
Here is the SQLite query to answer to the question: What episode had a run time of 24:53?:
```
SELECT episode FROM table_2102714_1 WHERE run_time = "24:53"
``` |