instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_204_662 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of points scored against the opponents for september ?
### Response:
|
SELECT SUM("result") FROM table_204_662 WHERE "date" = 9
|
### Instruction:
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many distinct companies are there?
### Response:
|
SELECT COUNT(DISTINCT company) FROM entrepreneur
|
### Instruction:
CREATE TABLE table_4212 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" text,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Jonathan Kaye's money list ranking?
### Response:
|
SELECT COUNT("Money list rank") FROM table_4212 WHERE "Player" = 'Jonathan Kaye'
|
### Instruction:
CREATE TABLE table_61816 (
"Perpetrator" text,
"Date" text,
"Year" real,
"Location" text,
"Country" text,
"Killed" real,
"Additional Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the additional notes for Cotabato?
### Response:
|
SELECT "Additional Notes" FROM table_61816 WHERE "Location" = 'cotabato'
|
### Instruction:
CREATE TABLE table_16351 (
"Year" text,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Avg. Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the division for the division semifinals playoffs?
### Response:
|
SELECT "Division" FROM table_16351 WHERE "Playoffs" = 'Division Semifinals'
|
### Instruction:
CREATE TABLE table_74139 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the record for score 1-3?
### Response:
|
SELECT "Record" FROM table_74139 WHERE "Score" = '1-3'
|
### Instruction:
CREATE TABLE table_55159 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game with a record of 86-56
### Response:
|
SELECT COUNT("Attendance") FROM table_55159 WHERE "Record" = '86-56'
|
### Instruction:
CREATE TABLE table_204_312 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many miles is the metz - nancy route ?
### Response:
|
SELECT "length" FROM table_204_312 WHERE "route" = 'metz - nancy'
|
### Instruction:
CREATE TABLE table_name_2 (
date_of_polling VARCHAR,
liberal VARCHAR,
polling_firm VARCHAR,
green VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?
### Response:
|
SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30
|
### Instruction:
CREATE TABLE table_22670216_1 (
location VARCHAR,
winning_driver VARCHAR,
track VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location?
### Response:
|
SELECT location FROM table_22670216_1 WHERE winning_driver = "Wally Dallenbach" AND track = "Wisconsin State Fair Park Speedway"
|
### Instruction:
CREATE TABLE table_1685 (
"Episode" text,
"First broadcast" text,
"Graemes guest" text,
"Jeremys guest" text,
"Votes (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the jeremy guest for the episode 1x01
### Response:
|
SELECT "Jeremys guest" FROM table_1685 WHERE "Episode" = '1x01'
|
### Instruction:
CREATE TABLE table_80007 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which years have a Name of ladbrooks school?
### Response:
|
SELECT "Years" FROM table_80007 WHERE "Name" = 'ladbrooks school'
|
### Instruction:
CREATE TABLE table_204_521 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time (hand)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many athletes finished the race in less than 5:00:00 ?
### Response:
|
SELECT COUNT("name") FROM table_204_521 WHERE "time (hand)" < 5
|
### Instruction:
CREATE TABLE table_40074 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Current Rank, when Ring Name is Tamaasuka Daisuke?
### Response:
|
SELECT "Current rank" FROM table_40074 WHERE "Ring name" = 'tamaasuka daisuke'
|
### Instruction:
CREATE TABLE table_67806 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Attendance that has the Date of april 12?
### Response:
|
SELECT "Attendance" FROM table_67806 WHERE "Date" = 'april 12'
|
### Instruction:
CREATE TABLE table_64128 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the silver when the Total is 1, and Gold is 1?
### Response:
|
SELECT AVG("Silver") FROM table_64128 WHERE "Total" = '1' AND "Gold" = '1'
|
### Instruction:
CREATE TABLE table_34521 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 1st leg of the match that had an aggregate of 4-3?
### Response:
|
SELECT "1st leg" FROM table_34521 WHERE "Agg." = '4-3'
|
### Instruction:
CREATE TABLE table_name_14 (
played INTEGER,
lost VARCHAR,
drawn VARCHAR,
percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?
### Response:
|
SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 3
|
### Instruction:
CREATE TABLE table_203_121 (
id number,
"name" text,
"pos." text,
"caps" number,
"goals" number,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total number of goals scored by all of the national team players in the 1947/1948 season ?
### Response:
|
SELECT SUM("goals") FROM table_203_121
|
### Instruction:
CREATE TABLE loan (
cust_id VARCHAR
)
CREATE TABLE customer (
cust_name VARCHAR,
credit_score VARCHAR,
cust_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and credit score of the customers who have some loans.
### Response:
|
SELECT DISTINCT T1.cust_name, T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id
|
### Instruction:
CREATE TABLE table_448 (
"Character(s)" text,
"First Appearance" text,
"Cover Date" text,
"Publisher" text,
"Estimated Value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of publisher where first appearance is daredevil #1
### Response:
|
SELECT COUNT("Publisher") FROM table_448 WHERE "First Appearance" = 'Daredevil #1'
|
### Instruction:
CREATE TABLE table_name_80 (
average INTEGER,
team VARCHAR,
goals VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
### Response:
|
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa"
|
### Instruction:
CREATE TABLE table_66432 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the spike for the club of d.c. in 2008?
### Response:
|
SELECT "Spike" FROM table_66432 WHERE "2008 club" = 'd.c.'
|
### Instruction:
CREATE TABLE table_45015 (
"Event" text,
"Score" real,
"Name" text,
"Nation" text,
"Games" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the 27 arrow match event, what's the sum of all scores for that event?
### Response:
|
SELECT SUM("Score") FROM table_45015 WHERE "Event" = '27 arrow match'
|
### Instruction:
CREATE TABLE table_70368 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of total with gold more than 1 and bronze more than 0
### Response:
|
SELECT SUM("Total") FROM table_70368 WHERE "Gold" > '1' AND "Bronze" > '0'
|
### Instruction:
CREATE TABLE table_40000 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Overall for the wide receiver in a round less than 2?
### Response:
|
SELECT MIN("Overall") FROM table_40000 WHERE "Position" = 'wide receiver' AND "Round" < '2'
|
### Instruction:
CREATE TABLE table_14604 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for 26 may 1997
### Response:
|
SELECT "Score" FROM table_14604 WHERE "Date" = '26 may 1997'
|
### Instruction:
CREATE TABLE table_9333 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the opponent after march 21 and the game is 75?
### Response:
|
SELECT "Opponent" FROM table_9333 WHERE "March" > '21' AND "Game" = '75'
|
### Instruction:
CREATE TABLE table_10484 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grid total for alain prost with over 14 laps?
### Response:
|
SELECT SUM("Grid") FROM table_10484 WHERE "Laps" > '14' AND "Driver" = 'alain prost'
|
### Instruction:
CREATE TABLE table_52234 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition took place at Stade Fernand Fournier, Arles?
### Response:
|
SELECT "Competition" FROM table_52234 WHERE "Venue" = 'stade fernand fournier, arles'
|
### Instruction:
CREATE TABLE table_76742 (
"Location" text,
"Country" text,
"Type" text,
"Wheels" real,
"Configuration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average wheels has accounting as the type, with IBM Collection as the location?
### Response:
|
SELECT AVG("Wheels") FROM table_76742 WHERE "Type" = 'accounting' AND "Location" = 'ibm collection'
|
### Instruction:
CREATE TABLE table_69059 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city of license has a wriq Call sign?
### Response:
|
SELECT "City of license" FROM table_69059 WHERE "Call sign" = 'wriq'
|
### Instruction:
CREATE TABLE table_33827 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which items in segment C is episode 160?
### Response:
|
SELECT "Segment C" FROM table_33827 WHERE "Episode" = '160'
|
### Instruction:
CREATE TABLE table_123462_2 (
_number_of_seats_won VARCHAR,
_number_of_total_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the # of total votes 2582322?
### Response:
|
SELECT COUNT(_number_of_seats_won) FROM table_123462_2 WHERE _number_of_total_votes = 2582322
|
### Instruction:
CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of years ele opeloge was the samoa flag bearer at the olympics ?
### Response:
|
SELECT COUNT("event year") FROM table_204_986 WHERE "flag bearer" = 'ele opeloge'
|
### Instruction:
CREATE TABLE table_12218 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest score that has t10 as the place, with Ireland as the country?
### Response:
|
SELECT MIN("Score") FROM table_12218 WHERE "Place" = 't10' AND "Country" = 'ireland'
|
### Instruction:
CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the least aggregate wins ?
### Response:
|
SELECT "club" FROM table_203_269 ORDER BY "aggregate" LIMIT 1
|
### Instruction:
CREATE TABLE table_4277 (
"Season" real,
"Date" text,
"Location" text,
"Discipline" text,
"Position" real,
"FIS points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for s. valentino alla muta , italia
### Response:
|
SELECT "Date" FROM table_4277 WHERE "Location" = 'S. Valentino Alla Muta , Italia'
|
### Instruction:
CREATE TABLE table_62305 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team 1, has Team 2, Slovan Liberec?
### Response:
|
SELECT "Team 1" FROM table_62305 WHERE "Team 2" = 'slovan liberec'
|
### Instruction:
CREATE TABLE table_22328 (
"Serial No." real,
"District" text,
"Headquartered City" text,
"City Population (2009)" real,
"City Area(km 2 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district is the city listed in Serial number 9?
### Response:
|
SELECT COUNT("District") FROM table_22328 WHERE "Serial No." = '9'
|
### Instruction:
CREATE TABLE table_31813 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the actor's name for escho raz o voyne
### Response:
|
SELECT "Actor's Name" FROM table_31813 WHERE "Film Name" = 'escho raz o voyne'
|
### Instruction:
CREATE TABLE table_11132 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on December 10, 2000?
### Response:
|
SELECT "Opponent" FROM table_11132 WHERE "Date" = 'december 10, 2000'
|
### Instruction:
CREATE TABLE table_64713 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the rank of the rower with an r note from Australia?
### Response:
|
SELECT SUM("Rank") FROM table_64713 WHERE "Notes" = 'r' AND "Country" = 'australia'
|
### Instruction:
CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total courthouses have there been in mississippi ?
### Response:
|
SELECT COUNT("courthouse") FROM table_204_87
|
### Instruction:
CREATE TABLE table_69934 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on December 17, 1995?
### Response:
|
SELECT "Opponent" FROM table_69934 WHERE "Date" = 'december 17, 1995'
|
### Instruction:
CREATE TABLE table_24975 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position is player bernie doan?
### Response:
|
SELECT "Position" FROM table_24975 WHERE "Player" = 'Bernie Doan'
|
### Instruction:
CREATE TABLE table_9083 (
"City" text,
"Chinese" text,
"Pinyin" text,
"County" text,
"Population (2010)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is taipei's lowest 2010 population?
### Response:
|
SELECT MIN("Population (2010)") FROM table_9083 WHERE "City" = 'taipei'
|
### Instruction:
CREATE TABLE table_45960 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tournament for the week of August 4?
### Response:
|
SELECT "Tournament" FROM table_45960 WHERE "Week" = 'august 4'
|
### Instruction:
CREATE TABLE table_name_33 (
province_of_silla VARCHAR,
modern_equivalent VARCHAR,
administrative_district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju?
### Response:
|
SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = "south jeolla" AND administrative_district = "seungju"
|
### Instruction:
CREATE TABLE table_204_922 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only nation with 5 gold medals ?
### Response:
|
SELECT "nation" FROM table_204_922 WHERE "gold" = 5
|
### Instruction:
CREATE TABLE table_204_662 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of points scored in week 3 ?
### Response:
|
SELECT "result" + "result" FROM table_204_662 WHERE "week" = 3
|
### Instruction:
CREATE TABLE table_75562 (
"Name" text,
"Pada 1" text,
"Pada 2" text,
"Pada 3" text,
"Pada 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pada 3 has a Pada 1 of te?
### Response:
|
SELECT "Pada 3" FROM table_75562 WHERE "Pada 1" = 'टे te'
|
### Instruction:
CREATE TABLE table_20168 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position(s) do players from florida state play?
### Response:
|
SELECT "Position" FROM table_20168 WHERE "College" = 'Florida State'
|
### Instruction:
CREATE TABLE table_27833186_1 (
rider_names VARCHAR,
location VARCHAR,
horse_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?
### Response:
|
SELECT rider_names FROM table_27833186_1 WHERE location = "Euer Valley, CA" AND horse_name = "Magic Sirocco"
|
### Instruction:
CREATE TABLE table_10726 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the school of the player with a hometown of little rock, arkansas?
### Response:
|
SELECT "School" FROM table_10726 WHERE "Hometown" = 'little rock, arkansas'
|
### Instruction:
CREATE TABLE table_name_10 (
location_attendance VARCHAR,
high_assists VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
### Response:
|
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
|
### Instruction:
CREATE TABLE table_73945 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the total of 12?
### Response:
|
SELECT "Result" FROM table_73945 WHERE "Total" = '12'
|
### Instruction:
CREATE TABLE table_38644 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average week for result of l 28 17
### Response:
|
SELECT AVG("Week") FROM table_38644 WHERE "Result" = 'l 28–17'
|
### Instruction:
CREATE TABLE table_name_79 (
rank INTEGER,
year VARCHAR,
accolade VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years?
### Response:
|
SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years"
|
### Instruction:
CREATE TABLE table_23273 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the candidates in Florida 13 district?
### Response:
|
SELECT "Candidates" FROM table_23273 WHERE "District" = 'Florida 13'
|
### Instruction:
CREATE TABLE table_203_554 (
id number,
"year" number,
"place" text,
"gold" text,
"silver" text,
"bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total number of times the soviet union is listed under the gold column ?
### Response:
|
SELECT COUNT(*) FROM table_203_554 WHERE "gold" = 'soviet union'
|
### Instruction:
CREATE TABLE table_203_663 (
id number,
"country" text,
"zone" text,
"national federation" text,
"#gm" number,
"#fide" number,
"national championship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country has the most #gm ?
### Response:
|
SELECT "country" FROM table_203_663 ORDER BY "#gm" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_53178 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition resulted in 2-0 score, hosted in Amman?
### Response:
|
SELECT "Competition" FROM table_53178 WHERE "Score" = '2-0' AND "Venue" = 'amman'
|
### Instruction:
CREATE TABLE table_39817 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Attendance at a game with a Result of w 30-23?
### Response:
|
SELECT AVG("Attendance") FROM table_39817 WHERE "Result" = 'w 30-23'
|
### Instruction:
CREATE TABLE table_203_636 (
id number,
"#" number,
"date" text,
"winner" text,
"score" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at which location has the east west game been played the most ?
### Response:
|
SELECT "location" FROM table_203_636 GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_98 (
events INTEGER,
cuts_made VARCHAR,
top_10 VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins?
### Response:
|
SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 4
|
### Instruction:
CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country came in first with 7 gold medals ?
### Response:
|
SELECT "nation" FROM table_204_775 WHERE "gold" = 7
|
### Instruction:
CREATE TABLE table_name_71 (
diameter__km_ VARCHAR,
longitude VARCHAR,
latitude VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4?
### Response:
|
SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4
|
### Instruction:
CREATE TABLE table_78860 (
"Week" real,
"Event" text,
"Air Date" text,
"Winning team" text,
"Winners club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has an Air Date of august 2, 2008?
### Response:
|
SELECT "Week" FROM table_78860 WHERE "Air Date" = 'august 2, 2008'
|
### Instruction:
CREATE TABLE table_69175 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Writer(s)" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What award did Andrew Ryder win as producer?
### Response:
|
SELECT "Award" FROM table_69175 WHERE "Producer(s)" = 'andrew ryder'
|
### Instruction:
CREATE TABLE table_23114 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Persian title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the film title nominated is Baran, what was the result?
### Response:
|
SELECT "Result" FROM table_23114 WHERE "Film title used in nomination" = 'Baran'
|
### Instruction:
CREATE TABLE table_62099 (
"Name" text,
"Confederation" text,
"International goals" real,
"Caps" real,
"Goals per Match" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Cha Bum-Kun's average number of goals per match?
### Response:
|
SELECT COUNT("Goals per Match") FROM table_62099 WHERE "Name" = 'cha bum-kun'
|
### Instruction:
CREATE TABLE table_204_834 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what come after rex f.
### Response:
|
SELECT "name" FROM table_204_834 WHERE id = (SELECT id FROM table_204_834 WHERE "name" = 'rex favero') + 1
|
### Instruction:
CREATE TABLE table_name_60 (
route INTEGER,
rank VARCHAR,
elevation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?
### Response:
|
SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m"
|
### Instruction:
CREATE TABLE table_19901_1 (
trigger_pack VARCHAR,
rear_sight_type VARCHAR,
colt_model_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the trigger pack on the Colt 602 with the a1 rear sight type?
### Response:
|
SELECT trigger_pack FROM table_19901_1 WHERE rear_sight_type = "A1" AND colt_model_no = "602"
|
### Instruction:
CREATE TABLE table_42832 (
"Spoofed Title" text,
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the writer for issue 224?
### Response:
|
SELECT "Writer" FROM table_42832 WHERE "Issue" = '224'
|
### Instruction:
CREATE TABLE table_28923 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties were first elected in 1805?
### Response:
|
SELECT COUNT("Party") FROM table_28923 WHERE "First elected" = '1805'
|
### Instruction:
CREATE TABLE table_18491 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the minumim first elected for alvin bush
### Response:
|
SELECT MIN("First elected") FROM table_18491 WHERE "Incumbent" = 'Alvin Bush'
|
### Instruction:
CREATE TABLE table_203_374 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold medals does poland have ?
### Response:
|
SELECT "gold" FROM table_203_374 WHERE "nation" = 'poland'
|
### Instruction:
CREATE TABLE table_204_155 (
id number,
"rank" number,
"heat" number,
"athlete" text,
"nationality" text,
"time" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the only cyclist from brazil ?
### Response:
|
SELECT "athlete" FROM table_204_155 WHERE "nationality" = 'brazil'
|
### Instruction:
CREATE TABLE table_10840 (
"Year" real,
"Title" text,
"Role" text,
"Leading Lady" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading lady in a yank in the r.a.f.?
### Response:
|
SELECT "Leading Lady" FROM table_10840 WHERE "Title" = 'a yank in the r.a.f.'
|
### Instruction:
CREATE TABLE table_15144 (
"Electorate" text,
"Incumbent" text,
"Winner" text,
"Majority" real,
"Runner up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent when Arthur Osborne won the election?
### Response:
|
SELECT "Incumbent" FROM table_15144 WHERE "Winner" = 'arthur osborne'
|
### Instruction:
CREATE TABLE table_47181 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest amount of Games recorded that have more than 10 assists?
### Response:
|
SELECT MAX("Games") FROM table_47181 WHERE "Assists" > '10'
|
### Instruction:
CREATE TABLE table_203_139 (
id number,
"name" text,
"abbr." text,
"leader" text,
"ideology" text,
"political position" text,
"mps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what party has the highest number of mps ?
### Response:
|
SELECT "name" FROM table_203_139 ORDER BY "mps" DESC LIMIT 1
|
### Instruction:
CREATE TABLE user_profiles (
uid number,
name text,
email text,
partitionid number,
followers number
)
CREATE TABLE follows (
f1 number,
f2 number
)
CREATE TABLE tweets (
id number,
uid number,
text text,
createdate time
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of tweets in record.
### Response:
|
SELECT COUNT(*) FROM tweets
|
### Instruction:
CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which province in andalusia has the highest density ?
### Response:
|
SELECT "province" FROM table_203_3 ORDER BY "density" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_3628 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result in the virginia 11 district?
### Response:
|
SELECT "Result" FROM table_3628 WHERE "District" = 'Virginia 11'
|
### Instruction:
CREATE TABLE table_65863 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total rank of the match with tipperary as the opposition?
### Response:
|
SELECT COUNT("Rank") FROM table_65863 WHERE "Opposition" = 'tipperary'
|
### Instruction:
CREATE TABLE table_6251 (
"Year" real,
"Class" text,
"Team" text,
"Chassis" text,
"Tyre" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total of Year that's got a Team of Porsche Kremer Racing?
### Response:
|
SELECT SUM("Year") FROM table_6251 WHERE "Team" = 'porsche kremer racing'
|
### Instruction:
CREATE TABLE table_25186 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Portfolio" text,
"Prior occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Anthony Leung Kam-Chung previous position?
### Response:
|
SELECT "Portfolio" FROM table_25186 WHERE "Romanised name" = 'Anthony Leung Kam-chung'
|
### Instruction:
CREATE TABLE table_20335 (
"Season #" real,
"Series #" real,
"Title" text,
"Director(s)" text,
"Writer(s)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most series number for giula sandler
### Response:
|
SELECT MAX("Series #") FROM table_20335 WHERE "Writer(s)" = 'Giula Sandler'
|
### Instruction:
CREATE TABLE table_48667 (
"Cat. #" text,
"Artist" text,
"Title" text,
"Release date" text,
"Format" text,
"Other information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release date with par116 as the cat. #?
### Response:
|
SELECT "Release date" FROM table_48667 WHERE "Cat. #" = 'par116'
|
### Instruction:
CREATE TABLE table_46432 (
"Club" text,
"Location" text,
"Current manager" text,
"Team captain" text,
"Stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the team captain of Regenboogstadion?
### Response:
|
SELECT "Team captain" FROM table_46432 WHERE "Stadium" = 'regenboogstadion'
|
### Instruction:
CREATE TABLE table_204_823 (
id number,
"dates" text,
"location" text,
"attendance" text,
"official guests" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first year the event was held at the pick congress hotel in chicago ?
### Response:
|
SELECT MIN("dates") FROM table_204_823 WHERE "location" = 'chicago'
|
### Instruction:
CREATE TABLE table_69008 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The building with 48 floors has an address in Las Vegas of what?
### Response:
|
SELECT "Street address" FROM table_69008 WHERE "Floors" = '48'
|
### Instruction:
CREATE TABLE table_16168 (
"County" text,
"Location" text,
"Street Names" text,
"Milepost" text,
"Roads Intersected" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many mileposts are there on Anne Street?
### Response:
|
SELECT COUNT("Milepost") FROM table_16168 WHERE "Street Names" = 'Anne Street'
|
### Instruction:
CREATE TABLE table_204_311 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many nations have a total of 1 medal won ?
### Response:
|
SELECT COUNT("nation") FROM table_204_311 WHERE "total" = 1
|
### Instruction:
CREATE TABLE table_30955 (
"Episode" text,
"First broadcast" text,
"Andrew and Georgies guest" text,
"Jamie and Johns guest" text,
"Scores" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the size when tom daley appeared
### Response:
|
SELECT "Episode" FROM table_30955 WHERE "Jamie and Johns guest" = 'Tom Daley'
|
### Instruction:
CREATE TABLE table_name_8 (
silver INTEGER,
bronze VARCHAR,
gold VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?
### Response:
|
SELECT AVG(silver) FROM table_name_8 WHERE gold > 3 AND nation = "soviet union (urs)" AND bronze > 26
|
### Instruction:
CREATE TABLE table_13750 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which lane did the swimmer with a time of 1:58.44 swim?
### Response:
|
SELECT COUNT("Lane") FROM table_13750 WHERE "Time" = '1:58.44'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.