instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_73083 ( "Episode title" text, "Subject" text, "Music by" text, "Lyrics by" text, "Performed by" text, "First aired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When interjection is the subject who are the l...
SELECT "Lyrics by" FROM table_73083 WHERE "Subject" = 'interjection'
### Instruction: CREATE TABLE table_204_392 ( id number, "#" number, "stadium" text, "capacity" number, "city" text, "country" text, "domed or retractable roof" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which stadium holds the most peop...
SELECT "stadium" FROM table_204_392 ORDER BY "capacity" DESC LIMIT 1
### Instruction: CREATE TABLE table_203_208 ( id number, "team" text, "location" text, "venue" text, "capacity" number, "position in 1993-94" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the total amount of times minsk is listed as...
SELECT COUNT(*) FROM table_203_208 WHERE "location" = 'minsk'
### Instruction: CREATE TABLE table_39568 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The nation of denmark has what average total nad more than 0 gold? ### Response:
SELECT AVG("Total") FROM table_39568 WHERE "Nation" = 'denmark' AND "Gold" > '0'
### Instruction: CREATE TABLE table_76189 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total that South Africa had a par greater than 14 ### Response:
SELECT SUM("Total") FROM table_76189 WHERE "Country" = 'south africa' AND "To par" > '14'
### Instruction: CREATE TABLE table_7776 ( "Date" text, "Event" text, "City" text, "Oil Pattern" text, "Winner (Title #)" text, "Runner-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city was the Dick Weber Open in? ...
SELECT "City" FROM table_7776 WHERE "Event" = 'dick weber open'
### Instruction: CREATE TABLE table_35814 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which district has joseph t. johnson as an incumbent? ### Response:
SELECT "District" FROM table_35814 WHERE "Incumbent" = 'joseph t. johnson'
### Instruction: CREATE TABLE table_name_54 ( number_1971 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748? ### Response:
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748
### Instruction: CREATE TABLE table_name_19 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008? ### Response:
SELECT 2009 FROM table_name_19 WHERE 2012 = "lq" AND 2011 = "2r" AND 2008 = "lq"
### Instruction: CREATE TABLE table_56869 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What College did Player Dorian Finney-Smith play for? ### Resp...
SELECT "College" FROM table_56869 WHERE "Player" = 'dorian finney-smith'
### Instruction: CREATE TABLE table_43403 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the club for Great Britain? ### Response:
SELECT "Club" FROM table_43403 WHERE "Nation" = 'great britain'
### Instruction: CREATE TABLE table_19531 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which series numbers were directed ...
SELECT "No. in series" FROM table_19531 WHERE "Directed by" = 'Monte Young'
### Instruction: CREATE TABLE table_37496 ( "Date" real, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Score of 6 3, 7 6? ### Response:
SELECT SUM("Date") FROM table_37496 WHERE "Score" = '6–3, 7–6'
### Instruction: CREATE TABLE table_76572 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total golds do teams have when the total medals is less than 1? ...
SELECT SUM("Gold") FROM table_76572 WHERE "Total" < '1'
### Instruction: CREATE TABLE table_11027 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue will hold the 2013 Concacaf Gold Cup competition? ### Response:
SELECT "Venue" FROM table_11027 WHERE "Competition" = '2013 concacaf gold cup'
### Instruction: CREATE TABLE table_name_44 ( tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tickets were sold/available when the gross revenue (2011) was $366,916? ### Response:
SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916"
### Instruction: CREATE TABLE table_67798 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was there a draw at Sydney Cricket Ground? ### Response:
SELECT "Date" FROM table_67798 WHERE "Result" = 'draw' AND "Venue" = 'sydney cricket ground'
### Instruction: CREATE TABLE table_name_80 ( high_rebounds VARCHAR, high_assists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is High Rebounds, when High Assists is 'Rafer Alston , Rashard Lewis , Hedo T rko lu (3)'? ### Response:
SELECT high_rebounds FROM table_name_80 WHERE high_assists = "rafer alston , rashard lewis , hedo türkoğlu (3)"
### Instruction: CREATE TABLE table_204_494 ( id number, "episode #" text, "original air date (uk)" text, "episode title" text, "guest cast" text, "dvd # 1" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least number of guest casts...
SELECT MIN("guest cast") FROM table_204_494
### Instruction: CREATE TABLE table_10314 ( "Sport" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the lowest Gold for silver being 2 and electronic sports ### Response:
SELECT MIN("Gold") FROM table_10314 WHERE "Silver" = '2' AND "Sport" = 'electronic sports'
### Instruction: CREATE TABLE table_67890 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Try BP" text, "Losing BP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number drawn when the try BP is 1? ### Response:
SELECT "Drawn" FROM table_67890 WHERE "Try BP" = '1'
### Instruction: CREATE TABLE table_33470 ( "Year" real, "Network" text, "Play-by-play" text, "Color commentator(s)" text, "Sideline reporter(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the 2004 color commentator? ### Response:
SELECT "Color commentator(s)" FROM table_33470 WHERE "Year" = '2004'
### Instruction: CREATE TABLE table_204_932 ( id number, "#" number, "title" text, "time" text, "lead vocals" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what track from whatcha lookin ' 4 lasts for only 1:38 ? ### Response:
SELECT "title" FROM table_204_932 WHERE "time" = '1:38'
### Instruction: CREATE TABLE table_65319 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What attendance has October 16, 2005 as the date? ### Response:
SELECT "Attendance" FROM table_65319 WHERE "Date" = 'october 16, 2005'
### Instruction: CREATE TABLE table_5112 ( "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. -- What is the highest episode of Wood Flutes segment c? ...
SELECT MAX("Episode") FROM table_5112 WHERE "Segment C" = 'wood flutes'
### Instruction: CREATE TABLE table_42356 ( "Year" real, "Category" text, "Champions" text, "Runners-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Score after 1991 in Category IVA? ### Response:
SELECT "Score" FROM table_42356 WHERE "Year" > '1991' AND "Category" = 'iva'
### Instruction: CREATE TABLE table_67354 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the City, when the Prize is $1,859,000? ### Response:
SELECT "City" FROM table_67354 WHERE "Prize" = '$1,859,000'
### Instruction: CREATE TABLE table_43831 ( "Team" text, "Manager" text, "Home city" text, "Stadium" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home city when the stadium was Gradski Stadion U Poljudu? ### Response...
SELECT "Home city" FROM table_43831 WHERE "Stadium" = 'gradski stadion u poljudu'
### Instruction: CREATE TABLE table_26099252_1 ( vp9___webm__ VARCHAR, vp8___webm__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )? ### Response:
SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = "6.0"
### Instruction: CREATE TABLE table_37993 ( "Date" text, "Opponent" text, "Site" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Result of the game on 10/11/1930? ### Response:
SELECT "Result" FROM table_37993 WHERE "Date" = '10/11/1930'
### Instruction: CREATE TABLE table_name_10 ( year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year? ### Re...
SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m"
### Instruction: CREATE TABLE table_204_479 ( id number, "defendant" text, "arrested" text, "charge" text, "result" text, "sentence" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the charge against the defendant who was arrested after ...
SELECT "charge" FROM table_204_479 WHERE "arrested" > 1955
### Instruction: CREATE TABLE table_66976 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps were there in the race that netted the winner 19 points?...
SELECT "Laps" FROM table_66976 WHERE "Points" = '19'
### 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. -- who has the most bronze medals ? ### Response:...
SELECT "nation" FROM table_203_374 ORDER BY "bronze" DESC LIMIT 1
### Instruction: CREATE TABLE table_204_394 ( id number, "year" number, "album" text, "label" text, "peak chart\npositions\nus" number, "peak chart\npositions\nus r&b" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- first album released ### R...
SELECT "album" FROM table_204_394 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_203_455 ( id number, "round" number, "#" number, "player" text, "nationality" text, "college/junior/club team (league)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players are from canada ? ### R...
SELECT COUNT("player") FROM table_203_455 WHERE "nationality" = 'canada'
### Instruction: CREATE TABLE table_204_185 ( id number, "location" text, "town" text, "output (mw ac)" number, "modules" number, "number of arrays" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many arrays are not in hauppauge ? ### Re...
SELECT SUM("number of arrays") FROM table_204_185 WHERE "town" <> 'hauppauge'
### Instruction: CREATE TABLE table_66316 ( "Pick" real, "Player" text, "Team" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the pick when the school is jasper hs (jasper, texas)? ### Response:
SELECT "Pick" FROM table_66316 WHERE "School" = 'jasper hs (jasper, texas)'
### Instruction: CREATE TABLE table_37056 ( "Game #" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first game that has a home team of Detroit?...
SELECT MIN("Game #") FROM table_37056 WHERE "Home" = 'detroit'
### Instruction: CREATE TABLE table_204_337 ( id number, "festival" text, "year" number, "award" text, "nominee" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was their award at the janison short sharp film festival ? ### ...
SELECT "award" FROM table_204_337 WHERE "festival" = 'janison short sharp film festival'
### Instruction: CREATE TABLE table_48964 ( "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 team Unics Kazan's 1st leg score? ### Response:
SELECT "1st leg" FROM table_48964 WHERE "Team #1" = 'unics kazan'
### Instruction: CREATE TABLE table_name_34 ( polish_cup INTEGER, player VARCHAR, ekstraklasa VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Polish Cup, when Player is 'Maciej Iwa ski', and when Ekstraklasa is less than 1? ### Respon...
SELECT SUM(polish_cup) FROM table_name_34 WHERE player = "maciej iwański" AND ekstraklasa < 1
### Instruction: CREATE TABLE table_30484 ( "Parent unit" text, "Geschwader Base" text, "Unit (Gruppe/Staffel)" text, "Aircraft Type" text, "Commanding Officer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the parent unit for josef priller ...
SELECT "Parent unit" FROM table_30484 WHERE "Commanding Officer" = 'Josef Priller'
### Instruction: CREATE TABLE table_203_8 ( id number, "player" text, "rec." number, "yards" number, "avg." number, "td's" number, "long" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference between the highest average and...
SELECT MAX("avg.") - MIN("avg.") FROM table_203_8
### Instruction: CREATE TABLE table_12129 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status for 24/11/1979? ### Response:
SELECT "Status" FROM table_12129 WHERE "Date" = '24/11/1979'
### Instruction: CREATE TABLE table_76232 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the golfer that has the score of 73-65=138? ### Response:
SELECT "Player" FROM table_76232 WHERE "Score" = '73-65=138'
### Instruction: CREATE TABLE table_55524 ( "Country" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the country of the contestant with a swimsuit of 9.46? ### Respons...
SELECT "Country" FROM table_55524 WHERE "Swimsuit" = '9.46'
### Instruction: CREATE TABLE table_40813 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Date when the week is more than 3 and the attendance shows bye? ### Respo...
SELECT "Date" FROM table_40813 WHERE "Week" > '3' AND "Attendance" = 'bye'
### Instruction: CREATE TABLE table_2663 ( "Ticket / Office" text, "Secretary of State" text, "Comptroller" text, "Attorney General" text, "Treasurer" text, "State Engineer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the comptroller for...
SELECT "Comptroller" FROM table_2663 WHERE "Ticket / Office" = 'Republican'
### Instruction: CREATE TABLE table_29108 ( "Series #" real, "Season #" real, "Title" text, "Director" text, "Writer" text, "Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first series episode number for 'the christ...
SELECT MIN("Series #") FROM table_29108 WHERE "Title" = 'The Christmas Watch'
### Instruction: CREATE TABLE table_78035 ( "Source" text, "Date" text, "Cardwell" text, "Jones" text, "Knight" text, "Lanier" text, "Martin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What martin has a lanier of 6%? ### Response:
SELECT "Martin" FROM table_78035 WHERE "Lanier" = '6%'
### Instruction: CREATE TABLE table_60794 ( "Battle" text, "Date" text, "Bulgarian Commander" text, "Byzantine Commander" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Battle was Bulgarian Commander of Gavril Radomir? ### R...
SELECT "Battle" FROM table_60794 WHERE "Bulgarian Commander" = 'gavril radomir'
### Instruction: CREATE TABLE table_69805 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Loser" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the game that ended with a score of 24-14? ### Response:
SELECT AVG("Year") FROM table_69805 WHERE "Result" = '24-14'
### Instruction: CREATE TABLE table_2816 ( "Month" text, "Week" real, "Overall" text, "Offensive" text, "Defensive" text, "Transition" text, "Rookie" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the overall for mark steenhuis ### Re...
SELECT "Overall" FROM table_2816 WHERE "Offensive" = 'Mark Steenhuis'
### Instruction: CREATE TABLE table_23966 ( "Round" real, "Choice" real, "Player" text, "Position" text, "Height" text, "Weight" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Curtis Painter's position? ### Response:...
SELECT "Position" FROM table_23966 WHERE "Player" = 'Curtis Painter'
### Instruction: CREATE TABLE table_56592 ( "Season" text, "Winner" text, "Score" text, "Runner-up" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were watching when Livingston was the runner-up? ...
SELECT "Attendance" FROM table_56592 WHERE "Runner-up" = 'livingston'
### Instruction: CREATE TABLE table_32404 ( "Incident No." text, "Date" text, "Place" text, "Killed" real, "Injured" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest number of people injured in incidents in Vaishali, Bihar? ### ...
SELECT MAX("Injured") FROM table_32404 WHERE "Place" = 'vaishali, bihar'
### Instruction: CREATE TABLE table_21436373_6 ( type_of_record VARCHAR, result_games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which type of record has result/games of b.c. 16 @ edmonton 22? ### Response:
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "B.C. 16 @ Edmonton 22"
### Instruction: CREATE TABLE table_41543 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has yani tseng as the runner (s)-up? ### Response:
SELECT "Date" FROM table_41543 WHERE "Runner(s)-up" = 'yani tseng'
### Instruction: CREATE TABLE table_76046 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of gold medals for a rank of 14? ### Response:
SELECT SUM("Gold") FROM table_76046 WHERE "Rank" = '14'
### Instruction: CREATE TABLE table_28367242_1 ( corporate_name VARCHAR, incorporation_date__city_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the corporation that incorporated on october 15, 1955? ### Response:
SELECT corporate_name FROM table_28367242_1 WHERE incorporation_date__city_ = "October 15, 1955"
### Instruction: CREATE TABLE table_78253 ( "Race Title" text, "Circuit" text, "City / State" text, "Date" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver won the Phillip Island Grand Prix Circuit? ### R...
SELECT "Winner" FROM table_78253 WHERE "Circuit" = 'phillip island grand prix circuit'
### Instruction: CREATE TABLE table_78940 ( "City" text, "Country" text, "Airport" text, "IATA" text, "ICAO" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is City of Sandefjord in Norway's IATA? ### Response:
SELECT "IATA" FROM table_78940 WHERE "Country" = 'norway' AND "City" = 'sandefjord'
### Instruction: CREATE TABLE table_78887 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the week 3 with addison miller in week 2? ### Response:
SELECT "Week 3" FROM table_78887 WHERE "Week 2" = 'addison miller'
### Instruction: CREATE TABLE table_44085 ( "Number" real, "Title" text, "Born" text, "Died" text, "Date Married" text, "Issue" text, "Mother" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was number 12's mother? ### Response:
SELECT "Mother" FROM table_44085 WHERE "Number" = '12'
### Instruction: CREATE TABLE table_56715 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was total attendance on the day they went 17-7? ### Response:
SELECT COUNT("Attendance") FROM table_56715 WHERE "Record" = '17-7'
### Instruction: CREATE TABLE table_14079 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the enrollment for the school Highland? ### R...
SELECT SUM("Enrollment") FROM table_14079 WHERE "School" = 'highland'
### Instruction: CREATE TABLE table_name_22 ( tries_for VARCHAR, points VARCHAR, played VARCHAR, tries_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of tries for the team that has 22 plays with 33 tries against and 60 poin...
SELECT tries_for FROM table_name_22 WHERE played = "22" AND tries_against = "33" AND points = "60"
### Instruction: CREATE TABLE table_65131 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Spain's lane with a heat less than 4? ### Response:
SELECT AVG("Lane") FROM table_65131 WHERE "Nationality" = 'spain' AND "Heat" < '4'
### Instruction: CREATE TABLE table_name_11 ( opponent VARCHAR, date VARCHAR, city VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team was opponen in baltimore, at 2:00pm, on 4/06/08? ### Response:
SELECT opponent FROM table_name_11 WHERE city = "baltimore" AND time = "2:00pm" AND date = "4/06/08"
### Instruction: CREATE TABLE table_10429820_13 ( in_ames VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the value of 'since beginning of big 12' is synonymous with its' category, what are the in Ames values? ### Response:
SELECT in_ames FROM table_10429820_13 WHERE "since_beginning_of_big_12" = "since_beginning_of_big_12"
### Instruction: CREATE TABLE table_203_359 ( id number, "outcome" text, "year" number, "championship" text, "surface" text, "opponent" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times has he been runner up ? ###...
SELECT COUNT(*) FROM table_203_359 WHERE "outcome" = 'runner-up'
### Instruction: CREATE TABLE table_31620 ( "Year" text, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played men's singles in 1951? ### Response:
SELECT "Men's singles" FROM table_31620 WHERE "Year" = '1951'
### Instruction: CREATE TABLE table_27005 ( "Artist/Band" text, "Song" text, "Disney affiliated" text, "Released" real, "US exclusive" text, "EU exclusive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most released for the in crowd ...
SELECT MAX("Released") FROM table_27005 WHERE "Song" = 'The In Crowd'
### Instruction: CREATE TABLE table_name_74 ( apogee__km_ VARCHAR, alt_name VARCHAR, mass__kg_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Apogee sis Ops-8285 with more than 1500 kg? ### Response:
SELECT COUNT(apogee__km_) FROM table_name_74 WHERE alt_name = "ops-8285" AND mass__kg_ > 1500
### Instruction: CREATE TABLE table_name_6 ( parent_magazine VARCHAR, title VARCHAR, frequency VARCHAR, magazine_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the parent magazine for the manga magazine, dengeki moeoh that was issued bi...
SELECT parent_magazine FROM table_name_6 WHERE frequency = "bimonthly" AND magazine_type = "manga" AND title = "dengeki moeoh"
### Instruction: CREATE TABLE table_203_438 ( id number, "year" number, "title" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what film did damon produce right after monster ? ### Response:
SELECT "title" FROM table_203_438 WHERE id = (SELECT id FROM table_203_438 WHERE "title" = 'monster') - 1
### Instruction: CREATE TABLE table_32940 ( "name" text, "pos." text, "caps" real, "goals" real, "club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals for the player with 2 caps at degerfors if? ### Response:
SELECT "goals" FROM table_32940 WHERE "caps" = '2' AND "club" = 'degerfors if'
### Instruction: CREATE TABLE table_75255 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Score of 4 5, and a Game smaller than 4? ### Response:
SELECT "Date" FROM table_75255 WHERE "Score" = '4–5' AND "Game" < '4'
### Instruction: CREATE TABLE table_62506 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the country of the player who has a total larger than 300...
SELECT "Country" FROM table_62506 WHERE "Total" > '300'
### Instruction: CREATE TABLE table_204_811 ( id number, "year" number, "ring name\n(birth name)" text, "inducted by" text, "inducted for" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many members were inducted for announcing...
SELECT COUNT(*) FROM table_204_811 WHERE "inducted for" = 'announcing'
### Instruction: CREATE TABLE table_36071 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the b.c. open? ### Response:
SELECT "Location" FROM table_36071 WHERE "Tournament" = 'b.c. open'
### Instruction: CREATE TABLE table_47190 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Result, when Date is '2000-05-23'? ### Response:
SELECT "Result" FROM table_47190 WHERE "Date" = '2000-05-23'
### Instruction: CREATE TABLE table_18674 ( "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. -- what's the result with first elected being 1922 ### R...
SELECT "Result" FROM table_18674 WHERE "First elected" = '1922'
### Instruction: CREATE TABLE table_name_32 ( launch_date__utc_ VARCHAR, cospar_id_satcat_№ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the launch date of the satellite with a COSPAR ID of 1995-022a? ### Response:
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a"
### Instruction: CREATE TABLE table_47426 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament was Kirk Triplett a runner-up in? ### Respons...
SELECT "Tournament" FROM table_47426 WHERE "Runner(s)-up" = 'kirk triplett'
### Instruction: CREATE TABLE table_67622 ( "Year" real, "Chassis" text, "Engine(s)" text, "Tyres" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest year with tyres in g and less than 0 points? ### Response:
SELECT MIN("Year") FROM table_67622 WHERE "Tyres" = 'g' AND "Points" < '0'
### Instruction: CREATE TABLE table_203_405 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times were the dallas cowboys listed as an opponent ? #...
SELECT COUNT(*) FROM table_203_405 WHERE "opponent" = 'dallas cowboys'
### Instruction: CREATE TABLE table_80019 ( "Sport" text, "League" text, "Tier" text, "Club" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tier is for football at Tianhe Stadium? ### Response:
SELECT "Tier" FROM table_80019 WHERE "Sport" = 'football' AND "Stadium" = 'tianhe stadium'
### Instruction: CREATE TABLE table_159 ( "Player" text, "W-L (Total)" text, "W-L ( Singles )" text, "W-L ( Doubles )" text, "Ties" real, "Debut" real, "Years Played" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number ...
SELECT MAX("Ties") FROM table_159
### Instruction: CREATE TABLE table_25920 ( "Episode" text, "First broadcast" text, "Seans team" text, "Jons team" text, "Scores" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the first broadcast for tina malone and joe wilkinson ### Respons...
SELECT "First broadcast" FROM table_25920 WHERE "Seans team" = 'Tina Malone and Joe Wilkinson'
### Instruction: CREATE TABLE table_name_31 ( swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73 ...
SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73
### Instruction: CREATE TABLE table_34513 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Record of 6 8 had what attendance? ### Respo...
SELECT "Attendance" FROM table_34513 WHERE "Record" = '6–8'
### Instruction: CREATE TABLE airlines ( name VARCHAR, alid VARCHAR ) CREATE TABLE routes ( alid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of the top 10 airlines that operate the most number of routes. ### Response:
SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10
### Instruction: CREATE TABLE manufacturer ( num_of_shops INTEGER, Num_of_Factories INTEGER, open_year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average number of factories and maximum number of shops for manufacturers that opened before...
SELECT MAX(num_of_shops), AVG(Num_of_Factories) FROM manufacturer WHERE open_year < 1990
### Instruction: CREATE TABLE table_78258 ( "Athlete" text, "Event" text, "Snatch" real, "Clean & Jerk" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many snatches were there with a total of 267.5? ### Response:
SELECT COUNT("Snatch") FROM table_78258 WHERE "Total" < '267.5'
### Instruction: CREATE TABLE table_79823 ( "Riding" text, "Candidate's Name" text, "Gender" text, "Votes" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the candidate with more than 2,211 votes? ### Response:
SELECT "Rank" FROM table_79823 WHERE "Votes" > '2,211'
### Instruction: CREATE TABLE table_37897 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FCC info has a Call sign of wsja? ### Respo...
SELECT "FCC info" FROM table_37897 WHERE "Call sign" = 'wsja'
### Instruction: CREATE TABLE table_47671 ( "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 is Agg., when Team 1 is CD El Nguema? ### Response:
SELECT "Agg." FROM table_47671 WHERE "Team 1" = 'cd elá nguema'
### Instruction: CREATE TABLE table_27130 ( "Wind farm" text, "Installed capacity (MW)" text, "Turbine Manufacturer" text, "County" text, "Date in Service" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the wind farm in Musselshell started ...
SELECT "Date in Service" FROM table_27130 WHERE "County" = 'Musselshell'