instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_36 ( laps INTEGER, driver VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Laps for mike spence, with a Grid smaller than 8? ### Response:
SELECT MIN(laps) FROM table_name_36 WHERE driver = "mike spence" AND grid < 8
### Instruction: CREATE TABLE table_2679061_2 ( player VARCHAR, nhl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times is the nhl team the winnipeg jets? ### Response:
SELECT COUNT(player) FROM table_2679061_2 WHERE nhl_team = "Winnipeg Jets"
### Instruction: CREATE TABLE table_10321124_1 ( shigella VARCHAR, yersinia VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the shigella with yersinia being yscp ### Response:
SELECT shigella FROM table_10321124_1 WHERE yersinia = "YscP"
### Instruction: CREATE TABLE table_22460085_1 ( character VARCHAR, original_manchester_performer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What character did Lisa Davina Phillip portray? ### Response:
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
### Instruction: CREATE TABLE table_1140116_5 ( winning_driver VARCHAR, race_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver won the race xiv el intarhanajot? ### Response:
SELECT winning_driver FROM table_1140116_5 WHERE race_name = "XIV Eläintarhanajot"
### Instruction: CREATE TABLE table_name_12 ( date VARCHAR, score VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Score of 24-7, and a Record of 4-10? ### Response:
SELECT date FROM table_name_12 WHERE score = "24-7" AND record = "4-10"
### Instruction: CREATE TABLE table_1840495_2 ( median_house__hold_income VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For upper Arlington, what was the median household income? ### Response:
SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington"
### Instruction: CREATE TABLE table_27721131_6 ( date VARCHAR, high_assists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date where john wall (11) had the high assists? ### Response:
SELECT date FROM table_27721131_6 WHERE high_assists = "John Wall (11)"
### Instruction: CREATE TABLE table_name_14 ( result VARCHAR, date VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for the opponent being gerardi rinaldi in 2009? ### Response:
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi"
### Instruction: CREATE TABLE table_15306124_1 ( league_of_communists VARCHAR, municipality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many league of communists have the municipality of bar? ### Response:
SELECT COUNT(league_of_communists) FROM table_15306124_1 WHERE municipality = "Bar"
### Instruction: CREATE TABLE table_name_59 ( water_depth VARCHAR, location VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the water depth of Sedco 702, located in Nigeria? ### Response:
SELECT water_depth FROM table_name_59 WHERE location = "nigeria" AND name = "sedco 702"
### Instruction: CREATE TABLE table_name_81 ( season VARCHAR, event_type VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what season did he compete in the Grand Prix in Kuala Lumpur? ### Response:
SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur"
### Instruction: CREATE TABLE table_name_65 ( round INTEGER, player VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Round has a Player of dan chicoine, and a Pick larger than 23? ### Response:
SELECT AVG(round) FROM table_name_65 WHERE player = "dan chicoine" AND pick > 23
### Instruction: CREATE TABLE table_1341663_33 ( candidates VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the candidates when Shirley Chisholm was the incumbent? ### Response:
SELECT candidates FROM table_1341663_33 WHERE incumbent = "Shirley Chisholm"
### Instruction: CREATE TABLE table_name_3 ( accolade VARCHAR, year VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Accolade, when Year is less than 2009, and when Country is Germany? ### Response:
SELECT accolade FROM table_name_3 WHERE year < 2009 AND country = "germany"
### Instruction: CREATE TABLE table_name_22 ( record VARCHAR, location_attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has a Location/Attendance of palace of auburn hills 8,108? ### Response:
SELECT record FROM table_name_22 WHERE location_attendance = "palace of auburn hills 8,108"
### Instruction: CREATE TABLE table_name_89 ( city VARCHAR, name_in_english VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the city with the Socialist Party of the Extremadurian People? ### Response:
SELECT city FROM table_name_89 WHERE name_in_english = "socialist party of the extremadurian people"
### Instruction: CREATE TABLE table_20996923_25 ( nfl_team VARCHAR, pick__number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What NFL team was the player with pick number 28 drafted to? ### Response:
SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28
### Instruction: CREATE TABLE table_name_6 ( seating VARCHAR, notes VARCHAR, introduced VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service? ### Response:
SELECT seating FROM table_name_6 WHERE notes = "in service" AND introduced = 2008
### Instruction: CREATE TABLE table_name_73 ( title VARCHAR, leading_lady VARCHAR, director VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which title was Ann Rutherford the leading lady for Joseph Kane? ### Response:
SELECT title FROM table_name_73 WHERE leading_lady = "ann rutherford" AND director = "joseph kane"
### Instruction: CREATE TABLE table_name_35 ( awards VARCHAR, year VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What award was in the year after 2009 with a competition of Digi Wwwow Awards? ### Response:
SELECT awards FROM table_name_35 WHERE year > 2009 AND competition = "digi wwwow awards"
### Instruction: CREATE TABLE table_27537870_3 ( location_attendance VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the sabres record 2-5-1? ### Response:
SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-1"
### Instruction: CREATE TABLE table_name_25 ( attendance INTEGER, opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many were in attendance against the Oakland Raiders after week 7? ### Response:
SELECT SUM(attendance) FROM table_name_25 WHERE opponent = "oakland raiders" AND week > 7
### Instruction: CREATE TABLE table_25794138_1 ( capacity INTEGER, stadium VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the maximum capacity of larry gomes stadium? ### Response:
SELECT MAX(capacity) FROM table_25794138_1 WHERE stadium = "Larry Gomes stadium"
### Instruction: CREATE TABLE table_1140111_5 ( report VARCHAR, winning_driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different kinds of reports are there for races that Juan Manuel Fangio won? ### Response:
SELECT COUNT(report) FROM table_1140111_5 WHERE winning_driver = "Juan Manuel Fangio"
### Instruction: CREATE TABLE table_name_30 ( opponent VARCHAR, week VARCHAR, game_site VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game at Sullivan Stadium before week 11? ### Response:
SELECT opponent FROM table_name_30 WHERE week < 11 AND game_site = "sullivan stadium"
### Instruction: CREATE TABLE table_204_423 ( id number, "name" text, "location" text, "city" text, "listing date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total current listing of names on this chart ? ### Response:
SELECT COUNT("name") FROM table_204_423
### Instruction: CREATE TABLE table_15442974_1 ( fourth_district VARCHAR, first_district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the fourth district for beverly bodem ### Response:
SELECT fourth_district FROM table_15442974_1 WHERE first_district = "Beverly Bodem"
### Instruction: CREATE TABLE institution ( TYPE VARCHAR, founded VARCHAR, enrollment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment. ### Response:
SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000
### Instruction: CREATE TABLE table_name_85 ( wins INTEGER, goals_for VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has the most wins with at least 18 goals and less than 5 losses? ### Response:
SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5
### Instruction: CREATE TABLE table_24307126_3 ( assets_2013__bil VARCHAR, base VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of assets for australia ### Response:
SELECT COUNT(assets_2013__bil) AS $_ FROM table_24307126_3 WHERE base = "Australia"
### Instruction: CREATE TABLE table_191105_2 ( music_by VARCHAR, performed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When zachary sanders is the performer how many people is the music by? ### Response:
SELECT COUNT(music_by) FROM table_191105_2 WHERE performed_by = "Zachary Sanders"
### Instruction: CREATE TABLE table_name_82 ( podiums INTEGER, finishes VARCHAR, starts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the smallest number of podiums having more than 6 starts and 5 finishes? ### Response:
SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 6
### Instruction: CREATE TABLE table_17015_2 ( no VARCHAR, population__2010_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number where population 2010 is 171906 ### Response:
SELECT no FROM table_17015_2 WHERE population__2010_ = 171906
### Instruction: CREATE TABLE table_name_35 ( overall INTEGER, name VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest overall pick number for george nicula who had a pick smaller than 9? ### Response:
SELECT MAX(overall) FROM table_name_35 WHERE name = "george nicula" AND pick < 9
### Instruction: CREATE TABLE table_name_97 ( engine VARCHAR, year VARCHAR, entrant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine was used by Ram Penthouse Rizla Racing in 1978? ### Response:
SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = "ram penthouse rizla racing"
### Instruction: CREATE TABLE table_name_3 ( rank VARCHAR, county VARCHAR, tally VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a Tally of 0-14, what is the Rank in Kilkenny County? ### Response:
SELECT COUNT(rank) FROM table_name_3 WHERE county = "kilkenny" AND tally = "0-14"
### Instruction: CREATE TABLE table_name_54 ( on_air_id VARCHAR, band VARCHAR, callsign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the On-air ID of FM broadcaster 4nsa? ### Response:
SELECT on_air_id FROM table_name_54 WHERE band = "fm" AND callsign = "4nsa"
### Instruction: CREATE TABLE table_name_66 ( gold INTEGER, sport VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of golds in athletics associated with over 42 silvers? ### Response:
SELECT AVG(gold) FROM table_name_66 WHERE sport = "athletics" AND silver > 42
### Instruction: CREATE TABLE table_1644857_2 ( Ends INTEGER, pf VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ends were lost by the country whose points for (PF) was 87? ### Response:
SELECT MAX(Ends) AS lost FROM table_1644857_2 WHERE pf = 87
### Instruction: CREATE TABLE table_name_75 ( year INTEGER, class VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Class of 500cc, and a Wins smaller than 0 had what average year? ### Response:
SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 0
### Instruction: CREATE TABLE table_1507423_5 ( top_10 VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many entries arr there for the top 10 for the 78th position? ### Response:
SELECT COUNT(top_10) FROM table_1507423_5 WHERE position = "78th"
### Instruction: CREATE TABLE table_14308895_2 ( new_pageant VARCHAR, country_territory VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many new pageants does Aruba have? ### Response:
SELECT COUNT(new_pageant) FROM table_14308895_2 WHERE country_territory = "Aruba"
### Instruction: CREATE TABLE table_name_84 ( forfeits VARCHAR, wins VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Forfeits have Wins smaller than 8, and Losses larger than 16? ### Response:
SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16
### Instruction: CREATE TABLE table_name_44 ( chassis VARCHAR, engine VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What chassis did the porsche flat-4 use before 1958? ### Response:
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958
### Instruction: CREATE TABLE table_name_84 ( total VARCHAR, tally VARCHAR, matches VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the total number of matches smaller than 2 with a tally of 1-19? ### Response:
SELECT COUNT(total) FROM table_name_84 WHERE tally = "1-19" AND matches < 2
### Instruction: CREATE TABLE table_name_64 ( opponent_in_the_final VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the opponent in the final when the tournament is cagnes-sur-mer? ### Response:
SELECT opponent_in_the_final FROM table_name_64 WHERE tournament = "cagnes-sur-mer"
### Instruction: CREATE TABLE table_name_65 ( female VARCHAR, total_population INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of females where the total population is less than 2,195? ### Response:
SELECT COUNT(female) FROM table_name_65 WHERE total_population < 2 OFFSET 195
### Instruction: CREATE TABLE table_12896884_1 ( endowment VARCHAR, football_stadium VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many endowments does Mosaic Stadium have? ### Response:
SELECT COUNT(endowment) FROM table_12896884_1 WHERE football_stadium = "Mosaic Stadium"
### Instruction: CREATE TABLE table_11664625_2 ( original_air_date VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date of season 18? ### Response:
SELECT original_air_date FROM table_11664625_2 WHERE no_in_season = 18
### Instruction: CREATE TABLE table_256286_39 ( passed VARCHAR, yes_votes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many measures had a yes vote of 216545? ### Response:
SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545
### Instruction: CREATE TABLE table_name_32 ( nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation has a total less than 2, silver of 1 and bronze less than 1? ### Response:
SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1
### Instruction: CREATE TABLE table_25594271_2 ( loa__metres_ VARCHAR, yacht VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the LOA metres for the yacht ichi ban? ### Response:
SELECT loa__metres_ FROM table_25594271_2 WHERE yacht = "Ichi Ban"
### Instruction: CREATE TABLE table_13564637_4 ( tries_for VARCHAR, points_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tries for when the points against was 547? ### Response:
SELECT tries_for FROM table_13564637_4 WHERE points_against = "547"
### Instruction: CREATE TABLE table_26250227_1 ( order__number VARCHAR, original_artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all of the order # where authentic artist is maroon 5 ### Response:
SELECT order__number FROM table_26250227_1 WHERE original_artist = "Maroon 5"
### Instruction: CREATE TABLE table_13779832_1 ( local_title VARCHAR, television_network VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many local title with televbeingion network being tv nova website ### Response:
SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = "TV Nova Website"
### Instruction: CREATE TABLE table_22460085_1 ( character VARCHAR, original_west_end_performer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What character did Richard Fleeshman portray? ### Response:
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman"
### Instruction: CREATE TABLE table_name_43 ( attendance VARCHAR, opponent VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance in the gave versus the Brewers with a score of 9 6? ### Response:
SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–6"
### Instruction: CREATE TABLE table_name_27 ( high_assists VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player had the high assists when the Score was l 107 112 (ot)? ### Response:
SELECT high_assists FROM table_name_27 WHERE score = "l 107–112 (ot)"
### Instruction: CREATE TABLE table_20367820_16 ( not_out VARCHAR, average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many no outs are there for an average of 43.70? ### Response:
SELECT not_out FROM table_20367820_16 WHERE average = "43.70"
### Instruction: CREATE TABLE table_15700367_2 ( maidens VARCHAR, overs_bowled VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the maaidens where overs bowled is 13 ### Response:
SELECT maidens FROM table_15700367_2 WHERE overs_bowled = "13"
### Instruction: CREATE TABLE table_name_89 ( issue_date VARCHAR, download VARCHAR, artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Issue Date for an Eric Prydz song with a no available Download information? ### Response:
SELECT issue_date FROM table_name_89 WHERE download = "no available" AND artist = "eric prydz"
### Instruction: CREATE TABLE table_name_4 ( classification VARCHAR, current_conference VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the classification for the school in the NEC Conference located in New Britain, Connecticut? ### Response:
SELECT classification FROM table_name_4 WHERE current_conference = "nec" AND location = "new britain, connecticut"
### Instruction: CREATE TABLE employees ( first_name VARCHAR, last_name VARCHAR, department_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the first and last name for those employees who works either in department 70 or 90? ### Response:
SELECT first_name, last_name FROM employees WHERE department_id = 70 OR department_id = 90
### Instruction: CREATE TABLE table_name_97 ( attendance VARCHAR, week VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the attendance of the san diego chargers game before week 6? ### Response:
SELECT COUNT(attendance) FROM table_name_97 WHERE week < 6 AND opponent = "san diego chargers"
### Instruction: CREATE TABLE table_name_18 ( location VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest first prize of the Mercedes Championships tournament in California? ### Response:
SELECT MIN(1 AS st_prize___) AS $__ FROM table_name_18 WHERE location = "california" AND tournament = "mercedes championships"
### Instruction: CREATE TABLE table_20722805_1 ( mccain_number INTEGER, parish VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of votes McCain had in Webster? ### Response:
SELECT MAX(mccain_number) FROM table_20722805_1 WHERE parish = "Webster"
### Instruction: CREATE TABLE table_name_19 ( position INTEGER, team VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest position for Rossendale United when the played was larger than 34? ### Response:
SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 34
### Instruction: CREATE TABLE table_name_36 ( latest_stable_release VARCHAR, price_in_usd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Latest stable release that has a Price in USD of free / negotiable? ### Response:
SELECT latest_stable_release FROM table_name_36 WHERE price_in_usd = "free / negotiable"
### Instruction: CREATE TABLE table_name_62 ( died VARCHAR, ordained_bishop VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the archbishop that was ordained a bishop on July 25, 1902 die? ### Response:
SELECT died FROM table_name_62 WHERE ordained_bishop = "july 25, 1902"
### Instruction: CREATE TABLE table_27631002_1 ( season VARCHAR, f_laps VARCHAR, races VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season had f/laps is 0 and races is 2? ### Response:
SELECT season FROM table_27631002_1 WHERE f_laps = 0 AND races = 2
### Instruction: CREATE TABLE table_name_56 ( silver INTEGER, bronze VARCHAR, gold VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0? ### Response:
SELECT MIN(silver) FROM table_name_56 WHERE bronze < 1 AND gold > 0
### Instruction: CREATE TABLE table_23429629_4 ( place_came VARCHAR, artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final place came for the performance of Erlend Bratland? ### Response:
SELECT place_came FROM table_23429629_4 WHERE artist = "Erlend Bratland"
### Instruction: CREATE TABLE table_name_51 ( total INTEGER, tour VARCHAR, giro VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The sun of total that has a tour of 7 and a Giro smaller than 3 is 12. ### Response:
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3
### Instruction: CREATE TABLE table_name_7 ( rank VARCHAR, studio VARCHAR, director VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES? ### Response:
SELECT rank FROM table_name_7 WHERE studio = "universal" AND director = "john hughes"
### Instruction: CREATE TABLE table_name_6 ( bronze VARCHAR, location VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978? ### Response:
SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978
### Instruction: CREATE TABLE Person ( name VARCHAR ) CREATE TABLE PersonFriend ( friend VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many friends does Dan have? ### Response:
SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'
### Instruction: CREATE TABLE table_name_81 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1989's 1991 and 1994 stats were 1r? ### Response:
SELECT 1989 FROM table_name_81 WHERE 1991 = "1r" AND 1994 = "1r"
### Instruction: CREATE TABLE table_2857352_3 ( city_of_license VARCHAR, virtual_channel VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city licensed the broadcast on virtual channel 8.2? ### Response:
SELECT city_of_license FROM table_2857352_3 WHERE virtual_channel = "8.2"
### Instruction: CREATE TABLE table_67818 ( "Stage" text, "Route" text, "Distance" text, "Date" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the distance for stage of 2 ### Response:
SELECT "Distance" FROM table_67818 WHERE "Stage" = '2'
### Instruction: CREATE TABLE table_name_93 ( car__number INTEGER, make VARCHAR, pos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Car # has a Make of toyota, and a Pos of 7? ### Response:
SELECT AVG(car__number) FROM table_name_93 WHERE make = "toyota" AND pos = 7
### Instruction: CREATE TABLE table_name_51 ( money___ VARCHAR, place VARCHAR, to_par VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much money for 1st place with a to par less than 1? ### Response:
SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = "1" AND to_par < 1
### Instruction: CREATE TABLE table_14260687_3 ( total VARCHAR, quarter VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total smartphones were shipped during the quarter 2012 Q1? ### Response:
SELECT COUNT(total) FROM table_14260687_3 WHERE quarter = "2012 Q1"
### Instruction: CREATE TABLE table_name_90 ( laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What law has a penalty of in Iraq? ### Response:
SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = "—" AND country = "iraq"
### Instruction: CREATE TABLE table_17798548_4 ( date_released VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day was the complete 2nd series: volume one released? ### Response:
SELECT date_released FROM table_17798548_4 WHERE season = "The Complete 2nd Series: Volume One"
### Instruction: CREATE TABLE table_name_48 ( result VARCHAR, road_team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the game on May 14 with Philadelphia as the road team? ### Response:
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14"
### Instruction: CREATE TABLE table_242785_1 ( notes VARCHAR, main_legionary_base VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the notes for svishtov , bulgaria? ### Response:
SELECT notes FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"
### Instruction: CREATE TABLE table_name_78 ( losses INTEGER, draws VARCHAR, byes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of losses for teams with 0 draws and 0 byes? ### Response:
SELECT AVG(losses) FROM table_name_78 WHERE draws = 0 AND byes < 0
### Instruction: CREATE TABLE table_24919137_2 ( venue VARCHAR, result_margin VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game played when the result/margin was won by 70? ### Response:
SELECT venue FROM table_24919137_2 WHERE result_margin = "WON by 70"
### Instruction: CREATE TABLE table_name_18 ( year_made VARCHAR, wheel_arrangement VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum number of years where the wheel arrangement of 0-4-0t? ### Response:
SELECT COUNT(year_made) FROM table_name_18 WHERE wheel_arrangement = "0-4-0t"
### Instruction: CREATE TABLE table_name_39 ( nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation scored 7 in shooting in 1920? ### Response:
SELECT nation FROM table_name_39 WHERE sport = "shooting" AND total = 7 AND years = "1920"
### Instruction: CREATE TABLE table_23014685_1 ( area_damaged VARCHAR, target VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What area was damaged when King Khalid Military City was targeted? ### Response:
SELECT area_damaged FROM table_23014685_1 WHERE target = "King Khalid Military City"
### Instruction: CREATE TABLE table_name_1 ( lost VARCHAR, played VARCHAR, points_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses did the club with 22 played and 334 points against have? ### Response:
SELECT lost FROM table_name_1 WHERE played = "22" AND points_against = "334"
### Instruction: CREATE TABLE table_name_98 ( gdp__nominal_ VARCHAR, population VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which GDP (nominal) has a Population of 5,550,239? ### Response:
SELECT gdp__nominal_ FROM table_name_98 WHERE population = "5,550,239"
### Instruction: CREATE TABLE table_name_50 ( date VARCHAR, score VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Score of 2 7, and a Record of 5 8 2? ### Response:
SELECT date FROM table_name_50 WHERE score = "2–7" AND record = "5–8–2"
### Instruction: CREATE TABLE table_2668401_17 ( first_elected VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the incumbent from the Virginia 10 district first elected? ### Response:
SELECT first_elected FROM table_2668401_17 WHERE district = "Virginia 10"
### Instruction: CREATE TABLE table_name_28 ( gold INTEGER, silver VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum for gold when there is more than 17 silver and more than 24 bronze? ### Response:
SELECT SUM(gold) FROM table_name_28 WHERE silver > 17 AND bronze > 24
### Instruction: CREATE TABLE table_name_69 ( week_1 VARCHAR, week_3 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1? ### Response:
SELECT week_1 FROM table_name_69 WHERE week_3 = "alinna d penta"
### Instruction: CREATE TABLE table_name_66 ( runner_up VARCHAR, year VARCHAR, champion VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which runner-up placed in a year prior to 2006 and whose Champion was Elon? ### Response:
SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon"
### Instruction: CREATE TABLE table_name_70 ( nfl_recap VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the NFL Recap of the game held on December 24, 2005? ### Response:
SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005"