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_69 (height VARCHAR, name VARCHAR)
Question: How tall is Dylan Postl?
[/INST]
Here is the SQLite query to answer to the question: How tall is Dylan Postl?:
```
SELECT height FROM table_name_69 WHERE name = "dylan postl"
``` |
[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 (gold VARCHAR, bronze VARCHAR)
Question: What's the Gold that also has Bronze of Kim Sun-Bin?
[/INST]
Here is the SQLite query to answer to the question: What's the Gold that also has Bronze of Kim Sun-Bin?:
```
SELECT gold FROM table_name_61 WHERE bronze = "kim sun-bin"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)
Question: What country does the player who joined the Vancouver Canucks originally hail from?
[/INST]
Here is the SQLite query to answer to the question: What country does the player who joined the Vancouver Canucks originally hail from?:
```
SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR)
Question: What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
[/INST]
Here is the SQLite query to answer to the question: What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?:
```
SELECT COUNT(starts) FROM table_name_47 WHERE driver = "nasser al-attiyah" AND points > 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_14 (grid INTEGER, laps VARCHAR, driver VARCHAR)
Question: What is the grid total for bruce mclaren with over 73 laps?
[/INST]
Here is the SQLite query to answer to the question: What is the grid total for bruce mclaren with over 73 laps?:
```
SELECT SUM(grid) FROM table_name_14 WHERE laps > 73 AND driver = "bruce mclaren"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
Question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
[/INST]
Here is the SQLite query to answer to the question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.:
```
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)
Question: how many models produced where the plant is castle bromwich?
[/INST]
Here is the SQLite query to answer to the question: how many models produced where the plant is castle bromwich?:
```
SELECT COUNT(models_produced) FROM table_250309_1 WHERE plant = "Castle Bromwich"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR)
Question: What is the total for the team with more than 2 golds and more than 0 bronze?
[/INST]
Here is the SQLite query to answer to the question: What is the total for the team with more than 2 golds and more than 0 bronze?:
```
SELECT SUM(total) FROM table_name_37 WHERE gold > 2 AND bronze > 0
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE professionals (role_code VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR)
Question: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.
[/INST]
Here is the SQLite query to answer to the question: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.:
```
SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (mission VARCHAR, resident_country VARCHAR)
Question: What is the mission for switzerland as a resident County?
[/INST]
Here is the SQLite query to answer to the question: What is the mission for switzerland as a resident County?:
```
SELECT mission FROM table_name_16 WHERE resident_country = "switzerland"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2553861_1 (league VARCHAR, playoffs VARCHAR)
Question: Name the league for conference finals
[/INST]
Here is the SQLite query to answer to the question: Name the league for conference finals:
```
SELECT league FROM table_2553861_1 WHERE playoffs = "Conference Finals"
``` |
[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 (player VARCHAR, total VARCHAR)
Question: Which player has a total of 160?
[/INST]
Here is the SQLite query to answer to the question: Which player has a total of 160?:
```
SELECT player FROM table_name_19 WHERE total = 160
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
Question: Which money is the highest one that has a To par of –1, and a Score of 73-70-73-71=287?
[/INST]
Here is the SQLite query to answer to the question: Which money is the highest one that has a To par of –1, and a Score of 73-70-73-71=287?:
```
SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287
``` |
[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 (attendance VARCHAR, record VARCHAR)
Question: How many people attended when the record was broken with 47–63?
[/INST]
Here is the SQLite query to answer to the question: How many people attended when the record was broken with 47–63?:
```
SELECT attendance FROM table_name_38 WHERE record = "47–63"
``` |
[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 (record VARCHAR, score VARCHAR)
Question: What was the record at the game with a score of 21-16?
[/INST]
Here is the SQLite query to answer to the question: What was the record at the game with a score of 21-16?:
```
SELECT record FROM table_name_77 WHERE score = "21-16"
``` |
[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 (score VARCHAR, partner VARCHAR)
Question: What was the score when Mark parterned with lorenzo manta?
[/INST]
Here is the SQLite query to answer to the question: What was the score when Mark parterned with lorenzo manta?:
```
SELECT score FROM table_name_19 WHERE partner = "lorenzo manta"
``` |
[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 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR)
Question: Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05?
[/INST]
Here is the SQLite query to answer to the question: Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05?:
```
SELECT oberliga_südwest FROM table_name_82 WHERE oberliga_bayern = "fc schweinfurt 05"
``` |
[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 (runner_up VARCHAR, tournament VARCHAR)
Question: Name the runner-up for algarve tournament
[/INST]
Here is the SQLite query to answer to the question: Name the runner-up for algarve tournament:
```
SELECT runner_up FROM table_name_40 WHERE tournament = "algarve"
``` |
[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 (liberal_party VARCHAR, conservative_party VARCHAR, labour_party VARCHAR)
Question: What was the Liberal Party result from the election having a Conservative Party result of 16 (-1) and Labour of 6 (+2)?
[/INST]
Here is the SQLite query to answer to the question: What was the Liberal Party result from the election having a Conservative Party result of 16 (-1) and Labour of 6 (+2)?:
```
SELECT liberal_party FROM table_name_97 WHERE conservative_party = "16 (-1)" AND labour_party = "6 (+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_77 (record VARCHAR, score VARCHAR)
Question: Which record has a score of 7–6 (12)?
[/INST]
Here is the SQLite query to answer to the question: Which record has a score of 7–6 (12)?:
```
SELECT record FROM table_name_77 WHERE score = "7–6 (12)"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_25721_3 (airdate VARCHAR, dave_ja_vu_viewers VARCHAR)
Question: What was the airdate of the episode with 106000 dave ja vu viewers?
[/INST]
Here is the SQLite query to answer to the question: What was the airdate of the episode with 106000 dave ja vu viewers?:
```
SELECT airdate FROM table_25721_3 WHERE dave_ja_vu_viewers = 106000
``` |
[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 (position VARCHAR, school VARCHAR, points VARCHAR)
Question: What position does the winner from Ohio State with 412 points play?
[/INST]
Here is the SQLite query to answer to the question: What position does the winner from Ohio State with 412 points play?:
```
SELECT position FROM table_name_38 WHERE school = "ohio state" AND points = "412"
``` |
[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 (time_elapsed VARCHAR, launched VARCHAR, closest_approach VARCHAR)
Question: What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?
[/INST]
Here is the SQLite query to answer to the question: What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?:
```
SELECT time_elapsed FROM table_name_52 WHERE launched = "15 october 1997" AND closest_approach = "24 june 1999"
``` |
[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 (frequency VARCHAR, callsign VARCHAR)
Question: What is the frequency for the station with DYBT as its callsign?
[/INST]
Here is the SQLite query to answer to the question: What is the frequency for the station with DYBT as its callsign?:
```
SELECT frequency FROM table_name_53 WHERE callsign = "dybt"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)
Question: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
[/INST]
Here is the SQLite query to answer to the question: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta':
```
SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (round VARCHAR, time VARCHAR)
Question: What is the number of rounds that took place for the fight that lasted 6:21?
[/INST]
Here is the SQLite query to answer to the question: What is the number of rounds that took place for the fight that lasted 6:21?:
```
SELECT COUNT(round) FROM table_name_1 WHERE time = "6:21"
``` |
[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 (crowd INTEGER, away_team VARCHAR)
Question: What is the smallest crowd that Footscray had as the away team?
[/INST]
Here is the SQLite query to answer to the question: What is the smallest crowd that Footscray had as the away team?:
```
SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (country VARCHAR, team VARCHAR)
Question: What country is the Eurasia Astana team from?
[/INST]
Here is the SQLite query to answer to the question: What country is the Eurasia Astana team from?:
```
SELECT country FROM table_name_69 WHERE team = "eurasia astana"
``` |
[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 (constructor VARCHAR, winning_driver VARCHAR, race VARCHAR)
Question: What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix?
[/INST]
Here is the SQLite query to answer to the question: What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix?:
```
SELECT constructor FROM table_name_46 WHERE winning_driver = "jack brabham" AND race = "monaco grand prix"
``` |
[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 (points VARCHAR, try_bonus VARCHAR)
Question: How many points were there when the try bonus was 2?
[/INST]
Here is the SQLite query to answer to the question: How many points were there when the try bonus was 2?:
```
SELECT points FROM table_name_35 WHERE try_bonus = "2"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20539826_1 (mccain_percentage VARCHAR, county VARCHAR)
Question: How many percent of the votes in Debaca did McCain get?
[/INST]
Here is the SQLite query to answer to the question: How many percent of the votes in Debaca did McCain get?:
```
SELECT mccain_percentage FROM table_20539826_1 WHERE county = "DeBaca"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (overall VARCHAR, combined VARCHAR, downhill VARCHAR)
Question: How many overalls has 1 combined and 24 downhills?
[/INST]
Here is the SQLite query to answer to the question: How many overalls has 1 combined and 24 downhills?:
```
SELECT overall FROM table_name_9 WHERE combined = "1" AND downhill = "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_83 (recorded VARCHAR, track VARCHAR, translation VARCHAR)
Question: Name the song that has a track larger than 7 and means death.
[/INST]
Here is the SQLite query to answer to the question: Name the song that has a track larger than 7 and means death.:
```
SELECT recorded FROM table_name_83 WHERE track > 7 AND translation = "death"
``` |
[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 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
Question: What was the first week when there was an attendance over 75,007 at Mile High Stadium?
[/INST]
Here is the SQLite query to answer to the question: What was the first week when there was an attendance over 75,007 at Mile High Stadium?:
```
SELECT MIN(week) FROM table_name_21 WHERE game_site = "mile high stadium" AND attendance > 75 OFFSET 007
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (points INTEGER, position VARCHAR, played VARCHAR)
Question: Which Points is the highest one that has a Position of 5, and a Played smaller than 18?
[/INST]
Here is the SQLite query to answer to the question: Which Points is the highest one that has a Position of 5, and a Played smaller than 18?:
```
SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR)
Question: What is the date of the game when the opponent is the Cleveland Browns?
[/INST]
Here is the SQLite query to answer to the question: What is the date of the game when the opponent is the Cleveland Browns?:
```
SELECT date FROM table_name_98 WHERE opponent = "cleveland browns"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
Question: What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?:
```
SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 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_35 (points INTEGER, races INTEGER)
Question: What is the lowest number of points for Drivers that have raced in more than 16 Races?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest number of points for Drivers that have raced in more than 16 Races?:
```
SELECT MIN(points) FROM table_name_35 WHERE races > 16
``` |
[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 (flight_day VARCHAR, artist VARCHAR)
Question: On what flight day was U2 played?
[/INST]
Here is the SQLite query to answer to the question: On what flight day was U2 played?:
```
SELECT flight_day FROM table_name_2 WHERE artist = "u2"
``` |
[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 (city VARCHAR, name VARCHAR)
Question: What City is the Jal hotel in?
[/INST]
Here is the SQLite query to answer to the question: What City is the Jal hotel in?:
```
SELECT city FROM table_name_77 WHERE name = "jal hotel"
``` |
[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 (country VARCHAR, player VARCHAR)
Question: what is the country for geoff ogilvy?
[/INST]
Here is the SQLite query to answer to the question: what is the country for geoff ogilvy?:
```
SELECT country FROM table_name_88 WHERE player = "geoff ogilvy"
``` |
[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 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
Question: Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?
[/INST]
Here is the SQLite query to answer to the question: Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?:
```
SELECT player FROM table_name_52 WHERE round > 5 AND school_club_team = "bethune-cookman"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23575917_2 (scores VARCHAR, davids_team VARCHAR)
Question: Name the scores for david baddiel and maureen lipman
[/INST]
Here is the SQLite query to answer to the question: Name the scores for david baddiel and maureen lipman:
```
SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = "David Baddiel and Maureen Lipman"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (track VARCHAR, recorded VARCHAR)
Question: How many tracks were Recorded 1964-01-08?
[/INST]
Here is the SQLite query to answer to the question: How many tracks were Recorded 1964-01-08?:
```
SELECT COUNT(track) FROM table_name_75 WHERE recorded = "1964-01-08"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (visitor VARCHAR, record VARCHAR)
Question: Who is the visitor with a record of 14–17–5?
[/INST]
Here is the SQLite query to answer to the question: Who is the visitor with a record of 14–17–5?:
```
SELECT visitor FROM table_name_54 WHERE record = "14–17–5"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, h264 VARCHAR)
Question: When h.264 is 9.0, how much is vp9 ( webm )
[/INST]
Here is the SQLite query to answer to the question: When h.264 is 9.0, how much is vp9 ( webm ):
```
SELECT vp9___webm__ FROM table_26099252_1 WHERE h264 = "9.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_54 (loss VARCHAR, record VARCHAR)
Question: Name the loss for 48-37
[/INST]
Here is the SQLite query to answer to the question: Name the loss for 48-37:
```
SELECT loss FROM table_name_54 WHERE record = "48-37"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20971444_3 (episode VARCHAR, rating__18_49_ VARCHAR)
Question: Name the episode for 18-49 rating being 3.6
[/INST]
Here is the SQLite query to answer to the question: Name the episode for 18-49 rating being 3.6:
```
SELECT COUNT(episode) FROM table_20971444_3 WHERE rating__18_49_ = "3.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_58 (nba_draft VARCHAR, college VARCHAR)
Question: What is the NBA draft for ohio state?
[/INST]
Here is the SQLite query to answer to the question: What is the NBA draft for ohio state?:
```
SELECT nba_draft FROM table_name_58 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_41 (october INTEGER, game VARCHAR)
Question: Which game has the highest score in October with 9?
[/INST]
Here is the SQLite query to answer to the question: Which game has the highest score in October with 9?:
```
SELECT MAX(october) FROM table_name_41 WHERE game = 9
``` |
[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 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
Question: What was the crowd size on 4 july 1981, and a Away team of essendon?
[/INST]
Here is the SQLite query to answer to the question: What was the crowd size on 4 july 1981, and a Away team of essendon?:
```
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon"
``` |
[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 (date VARCHAR, attendance VARCHAR)
Question: I want to know the date with attendance of 35,763
[/INST]
Here is the SQLite query to answer to the question: I want to know the date with attendance of 35,763:
```
SELECT date FROM table_name_88 WHERE attendance = "35,763"
``` |
[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 (southbridge VARCHAR, model VARCHAR)
Question: What shows for Southbridge when the Model number is amd-640 chipset?
[/INST]
Here is the SQLite query to answer to the question: What shows for Southbridge when the Model number is amd-640 chipset?:
```
SELECT southbridge FROM table_name_7 WHERE model = "amd-640 chipset"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, points_per_game VARCHAR)
Question: How may assists per game have 7.7 points per game?
[/INST]
Here is the SQLite query to answer to the question: How may assists per game have 7.7 points per game?:
```
SELECT assists_per_game FROM table_2387461_1 WHERE points_per_game = "7.7"
``` |
[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 (launched VARCHAR, spacecraft VARCHAR)
Question: What launched has mariner 4 as the spacecraft?
[/INST]
Here is the SQLite query to answer to the question: What launched has mariner 4 as the spacecraft?:
```
SELECT launched FROM table_name_17 WHERE spacecraft = "mariner 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_59 (german VARCHAR, hungarian VARCHAR, year VARCHAR, other VARCHAR)
Question: What is the german total population after 1910 with an other total of 143 and 32 hungarians?
[/INST]
Here is the SQLite query to answer to the question: What is the german total population after 1910 with an other total of 143 and 32 hungarians?:
```
SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32"
``` |
[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 (batting_style VARCHAR, player VARCHAR)
Question: What is the batting style of Makhaya Ntini?
[/INST]
Here is the SQLite query to answer to the question: What is the batting style of Makhaya Ntini?:
```
SELECT batting_style FROM table_name_85 WHERE player = "makhaya ntini"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_23286158_8 (record VARCHAR, location_attendance VARCHAR)
Question: Name the record for rose garden 20,565 attendance
[/INST]
Here is the SQLite query to answer to the question: Name the record for rose garden 20,565 attendance:
```
SELECT record FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565"
``` |
[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, plant_patent_number VARCHAR)
Question: What date had the patent number US plant patent 12098?
[/INST]
Here is the SQLite query to answer to the question: What date had the patent number US plant patent 12098?:
```
SELECT date FROM table_name_97 WHERE plant_patent_number = "us plant patent 12098"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (circuit VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
Question: What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret?
[/INST]
Here is the SQLite query to answer to the question: What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret?:
```
SELECT circuit FROM table_name_20 WHERE winning_constructor = "bugatti" AND winning_driver = "edward bret"
``` |
[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 (rookie_of_the_year VARCHAR, season VARCHAR)
Question: Who was the Rookie of the Year for the Season in 2000?
[/INST]
Here is the SQLite query to answer to the question: Who was the Rookie of the Year for the Season in 2000?:
```
SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (district VARCHAR, constituency_number VARCHAR)
Question: What district has 98 constituencies?
[/INST]
Here is the SQLite query to answer to the question: What district has 98 constituencies?:
```
SELECT district FROM table_name_54 WHERE constituency_number = "98"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (date VARCHAR, home_team VARCHAR)
Question: When did the home team of Richmond play?
[/INST]
Here is the SQLite query to answer to the question: When did the home team of Richmond play?:
```
SELECT date FROM table_name_89 WHERE home_team = "richmond"
``` |
[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 (origin VARCHAR, final_destination VARCHAR)
Question: What is the origin of the one whose final destination is Brandholmen?
[/INST]
Here is the SQLite query to answer to the question: What is the origin of the one whose final destination is Brandholmen?:
```
SELECT origin FROM table_name_15 WHERE final_destination = "brandholmen"
``` |
[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 (crowd INTEGER, venue VARCHAR)
Question: In the game at Victoria Park, what was the number of people in the crowd?
[/INST]
Here is the SQLite query to answer to the question: In the game at Victoria Park, what was the number of people in the crowd?:
```
SELECT SUM(crowd) FROM table_name_34 WHERE venue = "victoria park"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_11951237_1 (directed_by VARCHAR, series__number VARCHAR)
Question: Who was the director of the Series 1 episode?
[/INST]
Here is the SQLite query to answer to the question: Who was the director of the Series 1 episode?:
```
SELECT directed_by FROM table_11951237_1 WHERE series__number = 1
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, province VARCHAR)
Question: What are the modern equivalents for the province of "hanju"?
[/INST]
Here is the SQLite query to answer to the question: What are the modern equivalents for the province of "hanju"?:
```
SELECT modern_equivalent FROM table_160510_1 WHERE province = "Hanju"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_17058178_11 (high_rebounds VARCHAR, date VARCHAR)
Question: Name the high reobounds for april 7
[/INST]
Here is the SQLite query to answer to the question: Name the high reobounds for april 7:
```
SELECT high_rebounds FROM table_17058178_11 WHERE date = "April 7"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR)
Question: What is the name of the team with a finish of 19?
[/INST]
Here is the SQLite query to answer to the question: What is the name of the team with a finish of 19?:
```
SELECT team FROM table_name_48 WHERE finish = "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_31 (performer_1 VARCHAR, date VARCHAR)
Question: Date of 8 july 1994 involves which performer 1?
[/INST]
Here is the SQLite query to answer to the question: Date of 8 july 1994 involves which performer 1?:
```
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_25479607_3 (fixed_charge___rs__kwh_ VARCHAR, unit__kwh__time_range VARCHAR)
Question: What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?
[/INST]
Here is the SQLite query to answer to the question: What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?:
```
SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = "I-2: Peak (18:30-22: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_43 (date VARCHAR, record VARCHAR)
Question: What date was the record 21-11?
[/INST]
Here is the SQLite query to answer to the question: What date was the record 21-11?:
```
SELECT date FROM table_name_43 WHERE record = "21-11"
``` |
[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 (engine_s_ VARCHAR, year VARCHAR, points VARCHAR)
Question: Which engine(s) has a year of 1966, and a point of 42.
[/INST]
Here is the SQLite query to answer to the question: Which engine(s) has a year of 1966, and a point of 42.:
```
SELECT engine_s_ FROM table_name_57 WHERE year = 1966 AND points = "42"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (catalogue VARCHAR, date VARCHAR)
Question: Name the october 15, 2004 catalogue
[/INST]
Here is the SQLite query to answer to the question: Name the october 15, 2004 catalogue:
```
SELECT catalogue FROM table_name_48 WHERE date = "october 15, 2004"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (tuesday VARCHAR, saturday VARCHAR)
Question: Which Tuesday has a Saturday of 土曜日 doyōbi?
[/INST]
Here is the SQLite query to answer to the question: Which Tuesday has a Saturday of 土曜日 doyōbi?:
```
SELECT tuesday FROM table_name_94 WHERE saturday = "土曜日 doyōbi"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
Question: I want the constructor for grid less than 20 and Laps of 6
[/INST]
Here is the SQLite query to answer to the question: I want the constructor for grid less than 20 and Laps of 6:
```
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 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_5 (laps INTEGER, driver VARCHAR)
Question: How many Laps did Bob Wollek have?
[/INST]
Here is the SQLite query to answer to the question: How many Laps did Bob Wollek have?:
```
SELECT AVG(laps) FROM table_name_5 WHERE driver = "bob wollek"
``` |
[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 (socket VARCHAR, turbo VARCHAR)
Question: What is the socked when the turbo is 8/8/10/11?
[/INST]
Here is the SQLite query to answer to the question: What is the socked when the turbo is 8/8/10/11?:
```
SELECT socket FROM table_name_40 WHERE turbo = "8/8/10/11"
``` |
[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 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR)
Question: What is the sum of sliver medals when there were 2 gold medals, less than 15 total medals, and the rank is greater than 5?
[/INST]
Here is the SQLite query to answer to the question: What is the sum of sliver medals when there were 2 gold medals, less than 15 total medals, and the rank is greater than 5?:
```
SELECT SUM(silver) FROM table_name_88 WHERE gold = 2 AND total < 15 AND rank > 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_91 (title__english_ VARCHAR, number_of_season VARCHAR)
Question: What is the English title for season 6?
[/INST]
Here is the SQLite query to answer to the question: What is the English title for season 6?:
```
SELECT title__english_ FROM table_name_91 WHERE number_of_season = 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_29 (position VARCHAR, pick__number VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
Question: What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?
[/INST]
Here is the SQLite query to answer to the question: What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?:
```
SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (Id VARCHAR)
Question: Tell me the 2008 of 2001 olympic games
[/INST]
Here is the SQLite query to answer to the question: Tell me the 2008 of 2001 olympic games:
```
SELECT 2008 FROM table_name_69 WHERE 2011 = "olympic games"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR)
Question: Count the Number of electorates (2009) that has a District of fatehpur and jahanabad?
[/INST]
Here is the SQLite query to answer to the question: Count the Number of electorates (2009) that has a District of fatehpur and jahanabad?:
```
SELECT SUM(number_of_electorates__2009_) FROM table_name_11 WHERE district = "fatehpur" AND name = "jahanabad"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (points INTEGER, entrant VARCHAR, year VARCHAR)
Question: after 1987 and entrant of first racing what is the highest points?
[/INST]
Here is the SQLite query to answer to the question: after 1987 and entrant of first racing what is the highest points?:
```
SELECT MAX(points) FROM table_name_69 WHERE entrant = "first racing" AND year > 1987
``` |
[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 (date VARCHAR, opponent VARCHAR)
Question: What date has dallas cowboys as the opponent?
[/INST]
Here is the SQLite query to answer to the question: What date has dallas cowboys as the opponent?:
```
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29871617_1 (name VARCHAR, family_name VARCHAR)
Question: What are the names listed in the family il-1f2?
[/INST]
Here is the SQLite query to answer to the question: What are the names listed in the family il-1f2?:
```
SELECT name FROM table_29871617_1 WHERE family_name = "IL-1F2"
``` |
[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 (venue VARCHAR, home_team VARCHAR)
Question: Where did Footscray play as the home team?
[/INST]
Here is the SQLite query to answer to the question: Where did Footscray play as the home team?:
```
SELECT venue FROM table_name_41 WHERE home_team = "footscray"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1341865_23 (party VARCHAR, incumbent VARCHAR)
Question: Name the party with edward boland
[/INST]
Here is the SQLite query to answer to the question: Name the party with edward boland:
```
SELECT party FROM table_1341865_23 WHERE incumbent = "Edward Boland"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (score VARCHAR, opponent VARCHAR)
Question: What is the score of the tournament with younes el aynaoui as the opponent?
[/INST]
Here is the SQLite query to answer to the question: What is the score of the tournament with younes el aynaoui as the opponent?:
```
SELECT score FROM table_name_37 WHERE opponent = "younes el aynaoui"
``` |
[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 (notes VARCHAR, position VARCHAR)
Question: What were the notes when his position was 10th?
[/INST]
Here is the SQLite query to answer to the question: What were the notes when his position was 10th?:
```
SELECT notes FROM table_name_2 WHERE position = "10th"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27403436_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
Question: How many viewers watched the episode written by shana goldberg-meehan & greg malins?
[/INST]
Here is the SQLite query to answer to the question: How many viewers watched the episode written by shana goldberg-meehan & greg malins? :
```
SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = "Shana Goldberg-Meehan & Greg Malins"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_13258806_2 (date VARCHAR, record VARCHAR)
Question: When was the record of 0-1 set?
[/INST]
Here is the SQLite query to answer to the question: When was the record of 0-1 set?:
```
SELECT date FROM table_13258806_2 WHERE record = "0-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_37 (away_team VARCHAR, venue VARCHAR)
Question: What was the away teams score at Princes Park?
[/INST]
Here is the SQLite query to answer to the question: What was the away teams score at Princes Park?:
```
SELECT away_team AS score FROM table_name_37 WHERE venue = "princes 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_51 (airline VARCHAR, notes VARCHAR)
Question: What is the Airline when the notes show aoc 135?
[/INST]
Here is the SQLite query to answer to the question: What is the Airline when the notes show aoc 135?:
```
SELECT airline FROM table_name_51 WHERE notes = "aoc 135"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)
Question: What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?
[/INST]
Here is the SQLite query to answer to the question: What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?:
```
SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040
``` |
[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 (opponents VARCHAR, team VARCHAR, year VARCHAR)
Question: Which Opponents have a Team of arsenal, and a Year of 1963–64?
[/INST]
Here is the SQLite query to answer to the question: Which Opponents have a Team of arsenal, and a Year of 1963–64?:
```
SELECT opponents FROM table_name_49 WHERE team = "arsenal" AND year = "1963–64"
``` |
[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 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR)
Question: Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?
[/INST]
Here is the SQLite query to answer to the question: Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?:
```
SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (event_2 VARCHAR, air_date VARCHAR)
Question: What was the 2nd event aired on 8 June 2008?
[/INST]
Here is the SQLite query to answer to the question: What was the 2nd event aired on 8 June 2008?:
```
SELECT event_2 FROM table_name_32 WHERE air_date = "8 june 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_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)
Question: Which Opponent has a Round larger than 1, and an Event of king of the cage 31?
[/INST]
Here is the SQLite query to answer to the question: Which Opponent has a Round larger than 1, and an Event of king of the cage 31?:
```
SELECT opponent FROM table_name_3 WHERE round > 1 AND event = "king of the cage 31"
``` |
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_27435931_1 (continent VARCHAR, country VARCHAR)
Question: what is the continent in which the country russia is listed?
[/INST]
Here is the SQLite query to answer to the question: what is the continent in which the country russia is listed?:
```
SELECT continent FROM table_27435931_1 WHERE country = "Russia"
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.