instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_18400 ( "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 was the candidate when the incumbent was Richard C....
SELECT "Candidates" FROM table_18400 WHERE "Incumbent" = 'Richard C. White'
### Instruction: CREATE TABLE table_name_58 ( class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville? ...
SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94"
### Instruction: CREATE TABLE table_name_62 ( average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest average with less than 3 places, less than 433 total points, and a ...
SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2
### Instruction: CREATE TABLE table_66033 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Far Eastern College Johnny Abarrientos' Pick number? ### Response:...
SELECT "Pick" FROM table_66033 WHERE "College" = 'far eastern' AND "Player" = 'johnny abarrientos'
### Instruction: CREATE TABLE table_26957 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the period for michel prost ### Resp...
SELECT "Period" FROM table_26957 WHERE "Name" = 'Michel Prost'
### Instruction: CREATE TABLE table_62047 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What opponent played on the 28th with a venue of away? ### Response:
SELECT "Opponent" FROM table_62047 WHERE "Venue" = 'away' AND "Date" = '28th'
### Instruction: CREATE TABLE table_70770 ( "Year" real, "Points" text, "Rebounds" text, "Assists" text, "Steals" text, "Blocks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the leader in Points when Al Jefferson (7) was the leader in ...
SELECT "Points" FROM table_70770 WHERE "Rebounds" = 'al jefferson (7)'
### Instruction: CREATE TABLE table_56674 ( "Outcome" text, "Tournament" text, "Surface" text, "Partnering" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which surface has a score in the final of 4 6, 3 6? ### Response:...
SELECT "Surface" FROM table_56674 WHERE "Score in the final" = '4–6, 3–6'
### Instruction: CREATE TABLE table_77066 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the outcome when Jing-Jing Lu was the opponent? ### Re...
SELECT "Outcome" FROM table_77066 WHERE "Opponent" = 'jing-jing lu'
### Instruction: CREATE TABLE table_48640 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With an area km 2 of 343.95 what is the official name? ### Respon...
SELECT "Official Name" FROM table_48640 WHERE "Area km 2" = '343.95'
### Instruction: CREATE TABLE table_62679 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Bhiwani district have what cons...
SELECT "Constituency number" FROM table_62679 WHERE "District" = 'bhiwani'
### Instruction: CREATE TABLE table_12127 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On 24/11/1979, what is the opposing teams? ### Response:
SELECT "Opposing Teams" FROM table_12127 WHERE "Date" = '24/11/1979'
### Instruction: CREATE TABLE table_53503 ( "Location" text, "Londonborough" text, "Post town" text, "Postcodedistrict" text, "Dialcode" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Post Town has a Dialcode of 020 and is located in Hook? #...
SELECT "Post town" FROM table_53503 WHERE "Dialcode" = '020' AND "Location" = 'hook'
### Instruction: CREATE TABLE table_77016 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which venue did he place 3rd in the World Race Walking Cup? ### Response:
SELECT "Venue" FROM table_77016 WHERE "Competition" = 'world race walking cup' AND "Position" = '3rd'
### Instruction: CREATE TABLE table_203_789 ( id number, "season" text, "team" text, "country" text, "division" number, "apps" number, "goals" number, "assists" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which season was there a...
SELECT "season" FROM table_203_789 WHERE "assists" = 2
### Instruction: CREATE TABLE table_24641 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes in the series were ...
SELECT COUNT("No. in series") FROM table_24641 WHERE "Directed by" = 'Alan Taylor'
### Instruction: CREATE TABLE table_4599 ( "Round" real, "Overall" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what round was a defensive tackle drafted with an overall pick smaller than 149? #...
SELECT COUNT("Round") FROM table_4599 WHERE "Position" = 'defensive tackle' AND "Overall" < '149'
### Instruction: CREATE TABLE table_15166 ( "Representative" text, "Title" text, "Presentation of Credentials" text, "Termination of Mission" text, "Appointed by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Presentation of Credentials is li...
SELECT "Presentation of Credentials" FROM table_15166 WHERE "Appointed by" = 'benjamin harrison'
### Instruction: CREATE TABLE table_35291 ( "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 is the winning score of the tournament on 16 May 1993? #...
SELECT "Winning score" FROM table_35291 WHERE "Date" = '16 may 1993'
### Instruction: CREATE TABLE table_55692 ( "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 time/retired when the grid is less than 3 and 45 laps? ### Response:...
SELECT "Time/Retired" FROM table_55692 WHERE "Grid" < '3' AND "Laps" = '45'
### Instruction: CREATE TABLE table_39449 ( "PRINT NAME" text, "NICKNAME" text, "NUMBER OF COLORS" text, "FRAMED SIZE" text, "DATE COMPLETED" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the frame size that was nicknamed Grand Central? #...
SELECT "FRAMED SIZE" FROM table_39449 WHERE "NICKNAME" = 'grand central'
### Instruction: CREATE TABLE table_204_48 ( id number, "date" text, "race name" text, "location" text, "uci rating" text, "winner" text, "team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which race did nathan brown receive his victor...
SELECT "race name" FROM table_204_48 WHERE "winner" = 'nathan brown'
### Instruction: CREATE TABLE table_18279 ( "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 is the party for the incumbent Wyche Fowler? ###...
SELECT "Party" FROM table_18279 WHERE "Incumbent" = 'Wyche Fowler'
### Instruction: CREATE TABLE table_48477 ( "Runs" text, "Match" text, "Stadium" text, "City/Country" text, "Year" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 2009 with 100* runs, what is the match? ### Response:
SELECT "Match" FROM table_48477 WHERE "Year" = '2009' AND "Runs" = '100*'
### Instruction: CREATE TABLE table_48969 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the hi...
SELECT "High points" FROM table_48969 WHERE "Team" = 'toronto'
### Instruction: CREATE TABLE table_name_84 ( wickets INTEGER, career VARCHAR, maidens VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the fewest wickets when player's career spanned 1946-1960 and maidens were more than 419? ### Response:
SELECT MIN(wickets) FROM table_name_84 WHERE career = "1946-1960" AND maidens > 419
### Instruction: CREATE TABLE table_47956 ( "Cycle" real, "Premiere date" text, "Winner" text, "Runner-up" text, "Number of contestants" text, "International Destinations" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Premier Date, when...
SELECT "Premiere date" FROM table_47956 WHERE "Cycle" < '2'
### Instruction: CREATE TABLE table_23382 ( "Rank" real, "Dismissals" real, "Player" text, "Caught" real, "Stumped" real, "Matches" real, "Innings" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the rank of adam gilchrist ### Respo...
SELECT COUNT("Rank") FROM table_23382 WHERE "Player" = 'Adam Gilchrist'
### Instruction: CREATE TABLE table_name_77 ( attendance INTEGER, opponent VARCHAR, result VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Attendance has a Result of 1-0, and a Venue of A, and an Opponent of newcastle united? ##...
SELECT MIN(attendance) FROM table_name_77 WHERE result = "1-0" AND venue = "a" AND opponent = "newcastle united"
### Instruction: CREATE TABLE table_32847 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What away team did Carlton play...
SELECT "Away team" FROM table_32847 WHERE "Home team" = 'carlton'
### Instruction: CREATE TABLE table_203_116 ( id number, "no." number, "player" text, "birth date" text, "weight" number, "height" number, "position" text, "current club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is at least 25 ...
SELECT "player" FROM table_203_116 WHERE "birth date" >= 25
### Instruction: CREATE TABLE table_name_1 ( draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most draws when goals against are more than 33, losses are 13 and goals for is les...
SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51
### Instruction: CREATE TABLE table_49581 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for the opponent against Katerina Maleeva in the fina...
SELECT "Score" FROM table_49581 WHERE "Opponent in the final" = 'katerina maleeva'
### Instruction: CREATE TABLE table_71795 ( "Manager" text, "Years" text, "Games" real, "Wins" real, "Losses" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Jim Hoff's sum of losses and a wins smaller than 12? ### Response:
SELECT SUM("Losses") FROM table_71795 WHERE "Manager" = 'jim hoff' AND "Wins" < '12'
### Instruction: CREATE TABLE table_17142 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player had a height of 6-0...
SELECT "Player" FROM table_17142 WHERE "Height in Ft." = '6-0'
### Instruction: CREATE TABLE table_60447 ( "Year" real, "Delegate" text, "Hometown" text, "Placement in Miss Universe" text, "Other awards" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Placement in Miss Universe that rosita cornell c...
SELECT "Placement in Miss Universe" FROM table_60447 WHERE "Delegate" = 'rosita cornell capuyon'
### Instruction: CREATE TABLE table_18485 ( "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 incumbent being william h. ayres...
SELECT "Result" FROM table_18485 WHERE "Incumbent" = 'William H. Ayres'
### Instruction: CREATE TABLE table_30838 ( "By-election" real, "Electorate" text, "Date" text, "Incumbent" text, "Reason" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When peninsula is the electorate what is the reason? ### R...
SELECT "Reason" FROM table_30838 WHERE "Electorate" = 'Peninsula'
### Instruction: CREATE TABLE table_20741 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What to Footscray score at hom...
SELECT "Home team score" FROM table_20741 WHERE "Home team" = 'Footscray'
### Instruction: CREATE TABLE table_461 ( "Season" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles did Trupti Murgunde c...
SELECT "Womens doubles" FROM table_461 WHERE "Womens singles" = 'Trupti Murgunde'
### Instruction: CREATE TABLE table_21177 ( "Cycle no." text, "Air dates" text, "Reward" text, "Immunity" text, "Eliminated" text, "Vote" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the vote for gigit ### Response:
SELECT "Vote" FROM table_21177 WHERE "Eliminated" = 'Gigit'
### Instruction: CREATE TABLE table_54909 ( "From" text, "Adult Rate" text, "Development Rate" text, "16-17 Year Olds Rate" text, "Apprentice Rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was there a development rate of 4.92? ### Respo...
SELECT "From" FROM table_54909 WHERE "Development Rate" = '£4.92'
### Instruction: CREATE TABLE table_30093 ( "Series #" real, "Season #" real, "Title" text, "Written by" text, "Original air date" text, "U.S. Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date the episode entitl...
SELECT "Original air date" FROM table_30093 WHERE "Title" = 'House'
### Instruction: CREATE TABLE table_12145 ( "Year" real, "Title" text, "Format/genre" text, "Role" text, "Staged by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the role in an original play, comedy in 1938? ### Response:
SELECT "Role" FROM table_12145 WHERE "Format/genre" = 'original play, comedy' AND "Year" = '1938'
### Instruction: CREATE TABLE table_31349 ( "Country" text, "Alternante title" text, "TV Network(s)" text, "Series premiere" text, "Series finale" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which TV network had its series finale on May 7, 2012? ...
SELECT "TV Network(s)" FROM table_31349 WHERE "Series finale" = 'May 7, 2012'
### Instruction: CREATE TABLE table_11004 ( "Player" text, "Att." real, "Yards" real, "Avg." real, "Fumbles" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most fumbles for more than 44 yards and att of 32? ### Response:
SELECT MAX("Fumbles") FROM table_11004 WHERE "Yards" > '44' AND "Att." = '32'
### Instruction: CREATE TABLE table_1975 ( "Number" text, "Previous Number(s)" real, "Previous Class" text, "Converted" real, "Use" text, "Withdrawn" real, "Disposal" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest conver...
SELECT MIN("Converted") FROM table_1975 WHERE "Number" = '19'
### Instruction: CREATE TABLE table_53765 ( "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 highest silver medal count when there is 1 Bronze medal and 1 Gold medal? ### ...
SELECT MAX("Silver") FROM table_53765 WHERE "Bronze" = '1' AND "Gold" = '1'
### Instruction: CREATE TABLE table_name_47 ( top_25 VARCHAR, top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10? ### Response:
SELECT top_25 FROM table_name_47 WHERE events < 13 AND cuts_made < 3 AND top_10 = 1
### Instruction: CREATE TABLE Person ( name VARCHAR, age VARCHAR ) CREATE TABLE PersonFriend ( name VARCHAR, friend VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name and age of the person who is a friend of Dan or Alice. ### Response:
SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'
### Instruction: CREATE TABLE table_30865 ( "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. -- How many figures are provided for the team ...
SELECT COUNT("NHL team") FROM table_30865 WHERE "Position" = 'Center'
### Instruction: CREATE TABLE table_47581 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Primary Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Directo...
SELECT "Director" FROM table_47581 WHERE "Original title" = 'sahə'
### Instruction: CREATE TABLE table_55294 ( "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. -- Who were the runners-up at the Alfred Dunhill Links Championshi...
SELECT "Runner(s)-up" FROM table_55294 WHERE "Tournament" = 'alfred dunhill links championship'
### Instruction: CREATE TABLE table_56151 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the home team that has a venu...
SELECT "Home team" FROM table_56151 WHERE "Venue" = 'emcg'
### Instruction: CREATE TABLE table_204_243 ( id number, "year" number, "album" text, "song" text, "duration" text, "artist" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what album was previous to one dream ? ### Response:
SELECT "album" FROM table_204_243 WHERE id = (SELECT id FROM table_204_243 WHERE "song" = '"one dream"') - 1
### Instruction: CREATE TABLE table_13782 ( "Rank" real, "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 average number of gold medals won among the nations that won mo...
SELECT AVG("Gold") FROM table_13782 WHERE "Bronze" > '1'
### Instruction: CREATE TABLE table_17113 ( "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. -- Name the total number of nba drafts that went to east side high ...
SELECT COUNT("NBA Draft") FROM table_17113 WHERE "School" = 'East Side High School'
### Instruction: CREATE TABLE table_11853 ( "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 time/retired for the car with over 9 laps and a grid of 6? ### Respo...
SELECT "Time/Retired" FROM table_11853 WHERE "Laps" > '9' AND "Grid" = '6'
### Instruction: CREATE TABLE table_name_39 ( year INTEGER, event VARCHAR, location VARCHAR, final_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum...
SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around"
### Instruction: CREATE TABLE table_name_22 ( start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the e...
SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises"
### Instruction: CREATE TABLE table_18531 ( "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. -- How many results for minimum first elected incumbent No...
SELECT MIN("First elected") FROM table_18531 WHERE "Incumbent" = 'Noble Jones Gregory'
### Instruction: CREATE TABLE table_38117 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record has Glenn Robinson (16) as the leading scorer? ### R...
SELECT "Record" FROM table_38117 WHERE "Leading scorer" = 'glenn robinson (16)'
### Instruction: CREATE TABLE table_8801 ( "Runs" text, "Wicket" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which batting team had 624 runs?...
SELECT "Batting team" FROM table_8801 WHERE "Runs" = '624'
### Instruction: CREATE TABLE table_73105 ( "C_{low}" text, "C_{high}" text, "I_{low}" real, "I_{high}" real, "Category" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the C_{high} when the C_{low} value is 250.5? ### Response:
SELECT "C_{high}" FROM table_73105 WHERE "C_{low}" = '250.5'
### Instruction: CREATE TABLE table_203_855 ( id number, "date" text, "city" text, "venue" text, "member" text, "performance" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many days after september 3rd did brian perform in...
SELECT (SELECT "date" FROM table_203_855 WHERE "city" = 'stockholm') - 3
### Instruction: CREATE TABLE table_73356 ( "Runs (Balls)" text, "Wicket" text, "Partnerships" text, "Country" text, "Versus" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the opponent country I...
SELECT COUNT("Country") FROM table_73356 WHERE "Versus" = 'India'
### Instruction: CREATE TABLE table_name_70 ( position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest position of the club with 53 goals against, 26 points, and a -11 ...
SELECT MIN(position) FROM table_name_70 WHERE goals_against = 53 AND points = 26 AND goal_difference > -11
### Instruction: CREATE TABLE table_name_85 ( goals_against VARCHAR, drawn VARCHAR, lost VARCHAR, goals_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals scored against the opposing team occurred with more than 7 losses, less than 27 ...
SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 1
### Instruction: CREATE TABLE table_17179 ( "Name of ground" text, "Location" text, "Year" text, "FC matches" real, "LA matches" real, "T20 matches" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the maximum fc matches ...
SELECT MAX("FC matches") FROM table_17179 WHERE "Name of ground" = 'The Racecourse'
### Instruction: CREATE TABLE checking ( balance VARCHAR, custid VARCHAR ) CREATE TABLE savings ( balance VARCHAR, custid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the total checking and saving balance of all accounts sorted by the total b...
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
### Instruction: CREATE TABLE table_39106 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of years that the event was foil team and took place in Los Angeles...
SELECT COUNT("Year") FROM table_39106 WHERE "Venue" = 'los angeles' AND "Event" = 'foil team'
### Instruction: CREATE TABLE table_18604 ( "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 contenders In the New York 29 polling area ...
SELECT "Candidates" FROM table_18604 WHERE "District" = 'New York 29'
### Instruction: CREATE TABLE table_27137 ( "Round" text, "Circuit" text, "Date" text, "Class A Winner" text, "Class B Winner" text, "Class C Winner" text, "Class D Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the circuit ...
SELECT "Circuit" FROM table_27137 WHERE "Round" = '2'
### Instruction: CREATE TABLE table_19918 ( "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. -- Name the least episode for fibre cement siding ### ...
SELECT MIN("Episode") FROM table_19918 WHERE "Segment D" = 'Fibre Cement Siding'
### Instruction: CREATE TABLE table_39657 ( "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent with a score of 109 108? ### Response:
SELECT "Opponent" FROM table_39657 WHERE "Score" = '109–108'
### Instruction: CREATE TABLE table_name_23 ( term_end VARCHAR, political_party VARCHAR, born_died VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Term end has a Political Party of balli komb tar, and a Born-Died of 1905 1972? ### Response:
SELECT term_end FROM table_name_23 WHERE political_party = "balli kombëtar" AND born_died = "1905–1972"
### Instruction: CREATE TABLE table_204_223 ( id number, "party" text, "previous council" number, "staying councillors" number, "seats up for election" number, "election result" number, "new council" number ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "previous council" FROM table_204_223 WHERE "party" = 'total'
### Instruction: CREATE TABLE table_7351 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date had the final opponent of Iva...
SELECT "Date" FROM table_7351 WHERE "Opponent in the final" = 'iva majoli'
### Instruction: CREATE TABLE table_203_694 ( id number, "#" number, "name" text, "took office" text, "left office" text, "party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times has dervi &#351; ero &#287; lu been in office ? ###...
SELECT COUNT(*) FROM table_203_694 WHERE "name" = 'dervis eroglu'
### Instruction: CREATE TABLE table_70752 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Points when equipe ligier gauloises blondes is the entrant? ### Res...
SELECT AVG("Points") FROM table_70752 WHERE "Entrant" = 'equipe ligier gauloises blondes'
### Instruction: CREATE TABLE table_56609 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the game when the New York R...
SELECT "Score" FROM table_56609 WHERE "Home" = 'new york rangers'
### Instruction: CREATE TABLE table_72072 ( "Player" text, "No." text, "Nationality" text, "Position" text, "Years in Toronto" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are all of the players on the Westchester ...
SELECT "Player" FROM table_72072 WHERE "School/Club Team" = 'Westchester High School'
### Instruction: CREATE TABLE table_name_96 ( elevation_ VARCHAR, _height VARCHAR, delivery VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj ...
SELECT elevation_ + _height FROM table_name_96 WHERE delivery = "barge" AND location = "bikini, yurochi aka irioj (dog)"
### 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. -- which nationality has the least players ? ...
SELECT "nationality" FROM table_203_455 GROUP BY "nationality" ORDER BY COUNT("player") LIMIT 1
### Instruction: CREATE TABLE table_204_696 ( id number, "issue" number, "volume" number, "title" text, "main feature story" text, "first/early appearance story/stories" text, "release date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how...
SELECT "volume" FROM table_204_696 WHERE "title" = 'wolverine'
### Instruction: CREATE TABLE table_17201 ( "Round" real, "Overall" real, "Player" text, "Position" text, "Nationality" text, "Club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT POSITION DOES PATRICK WIERCIOCH PLAY? ### Response:
SELECT "Position" FROM table_17201 WHERE "Player" = 'Patrick Wiercioch'
### Instruction: CREATE TABLE table_76726 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the home team at Gold Coast Convention...
SELECT "Home team" FROM table_76726 WHERE "Venue" = 'gold coast convention centre'
### Instruction: CREATE TABLE table_204_332 ( id number, "administrative\narea" text, "area\nkm2" number, "area\nsq mi" number, "population" number, "administrative\ncentre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many administrative ...
SELECT COUNT(DISTINCT "administrative\ncentre") FROM table_204_332
### Instruction: CREATE TABLE table_204_928 ( id number, "year" number, "album" text, "territory" text, "label" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of blokshok records third studio album ? ### Response...
SELECT "album" FROM table_204_928 WHERE "label" = 'blokshok records' AND "notes" = 'third studio album'
### Instruction: CREATE TABLE table_74907 ( "Year" real, "Organisation" text, "Award" text, "Representative Work" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the award for 1998 with Representative Work of city beat? ### R...
SELECT "Award" FROM table_74907 WHERE "Year" = '1998' AND "Representative Work" = 'city beat'
### Instruction: CREATE TABLE table_78836 ( "Class" text, "Number(s)" text, "Quantity" real, "Year(s) of Manufacture" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Class has a Year(s) of Manufacture of 1899? ### Response:
SELECT "Class" FROM table_78836 WHERE "Year(s) of Manufacture" = '1899'
### Instruction: CREATE TABLE table_14762 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1st Party has an Election of 1849 by-election? ### Response:
SELECT "1st Party" FROM table_14762 WHERE "Election" = '1849 by-election'
### Instruction: CREATE TABLE table_61731 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which location has a method of decision and Nikos Tsoukalas for an opponent? ### Re...
SELECT "Location" FROM table_61731 WHERE "Method" = 'decision' AND "Opponent" = 'nikos tsoukalas'
### Instruction: CREATE TABLE products ( code number, name text, price number, manufacturer number ) CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
### Instruction: CREATE TABLE table_46589 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3? ### Resp...
SELECT "Score" FROM table_46589 WHERE "Home" = 'chicago black hawks' AND "Record" = '3-3'
### Instruction: CREATE TABLE table_8408 ( "Player" text, "Round" text, "Overall" text, "NHL Team" text, "MWEHL Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the NHL team for Round 5 and an overall ranking of #154? ### Response:
SELECT "NHL Team" FROM table_8408 WHERE "Round" = '5' AND "Overall" = '#154'
### Instruction: CREATE TABLE table_8705 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Scor...
SELECT "Score" FROM table_8705 WHERE "Game" = '75'
### Instruction: CREATE TABLE table_204_914 ( id number, "year" number, "team" text, "games" number, "attempts" number, "yards" number, "ypc" number, "long" number, "tds" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is his t...
SELECT SUM("games") FROM table_204_914
### Instruction: CREATE TABLE table_1637981_7 ( kalamazoo__azo_ VARCHAR, saginaw__mbs_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39? ### Response:
SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$481.39"
### Instruction: CREATE TABLE table_69362 ( "Outcome" text, "Year" real, "Tournament" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Malaysia Satellite tournaments were played after 1998? ### Response:
SELECT "Outcome" FROM table_69362 WHERE "Year" > '1998' AND "Tournament" = 'malaysia satellite'