instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_18769 ( "Saddle cloth" real, "Horse" text, "Trainer" text, "Jockey" text, "Weight (kg)" text, "Barrier" real, "Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many people work with N Rawiller ...
SELECT COUNT("Trainer") FROM table_18769 WHERE "Jockey" = 'N Rawiller'
### Instruction: CREATE TABLE table_36353 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Surface has a Partner of sorana c rstea? ### Response:
SELECT "Surface" FROM table_36353 WHERE "Partner" = 'sorana cîrstea'
### Instruction: CREATE TABLE table_68625 ( "Year" real, "Team" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Team had less than 1 point with a Zakspeed 871 chassis? ### Response:
SELECT "Team" FROM table_68625 WHERE "Points" < '1' AND "Chassis" = 'zakspeed 871'
### Instruction: CREATE TABLE table_25392 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the percentage for g...
SELECT "Percentage" FROM table_25392 WHERE "Team" = 'Georgia'
### Instruction: CREATE TABLE table_70462 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average decile for te puru school? ### Re...
SELECT AVG("Decile") FROM table_70462 WHERE "Name" = 'te puru school'
### Instruction: CREATE TABLE table_16508 ( "Hand" text, "1 credit" real, "2 credits" real, "3 credits" real, "4 credits" real, "5 credits" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the hand for 4 credits is 1600? ### Response:
SELECT "Hand" FROM table_16508 WHERE "4 credits" = '1600'
### Instruction: CREATE TABLE table_78775 ( "Edition" text, "Date" text, "Winner" text, "Country" text, "Time ( h : m : s )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the nationality of the winner on December 8, 1968? ### Response:
SELECT "Country" FROM table_78775 WHERE "Date" = 'december 8, 1968'
### Instruction: CREATE TABLE table_44638 ( "Heat" real, "Lane" real, "Name" text, "Country" text, "Mark" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country had the runner abubaker kaki khamis in lane 5? ### Response:
SELECT "Country" FROM table_44638 WHERE "Lane" = '5' AND "Name" = 'abubaker kaki khamis'
### Instruction: CREATE TABLE table_name_29 ( year_s_ INTEGER, games_drawn___tests__ VARCHAR, points_against___tests__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest year when games drawn was 0, points against are 86? ### Response:...
SELECT MIN(year_s_) FROM table_name_29 WHERE games_drawn___tests__ = "0" AND points_against___tests__ = "86"
### Instruction: CREATE TABLE table_204_771 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many medals did venezuela win in this compet...
SELECT "total" FROM table_204_771 WHERE "nation" = 'venezuela'
### Instruction: CREATE TABLE table_51085 ( "American name" text, "British name" text, "Value" text, "Dotted Value" text, "Double Dotted Value" text, "Triple Dotted Value" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the value when the...
SELECT "Value" FROM table_51085 WHERE "British name" = 'maxima'
### Instruction: CREATE TABLE table_61196 ( "Date" text, "Year" real, "Location" text, "Country" text, "Killed" text, "Injured" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has 2 for killed, and jaffa as the location? ### Response:...
SELECT "Date" FROM table_61196 WHERE "Killed" = '2' AND "Location" = 'jaffa'
### Instruction: CREATE TABLE table_22134 ( "English name" text, "Thai name" text, "Abbr." text, "Transcription" text, "Sanskrit word" text, "Zodiac sign" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the English name for the month with ...
SELECT "English name" FROM table_22134 WHERE "Abbr." = 'พ.ย.'
### Instruction: CREATE TABLE table_name_2 ( yards INTEGER, game_time VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards? ### Response:
SELECT AVG(yards) FROM table_name_2 WHERE game_time = "2nd quarter (0:00)" AND date = "november 8, 1971"
### Instruction: CREATE TABLE table_58209 ( "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 is the NBA draft result of the player with a height of 6-7?...
SELECT "NBA Draft" FROM table_58209 WHERE "Height" = '6-7'
### Instruction: CREATE TABLE table_15157 ( "Game" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has Series of 2 3? ### Res...
SELECT "Visitor" FROM table_15157 WHERE "Series" = '2 – 3'
### Instruction: CREATE TABLE table_74474 ( "Townland" text, "Area( acres )" real, "Barony" text, "Civil parish" text, "Poor law union" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the areas (in acres) of the Kilnahera East townland? ##...
SELECT "Area( acres )" FROM table_74474 WHERE "Townland" = 'Kilnahera East'
### Instruction: CREATE TABLE table_204_100 ( id number, "date" text, "name of ship" text, "nationality" text, "tonnage" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference in tonnage between the heaviest and the...
SELECT MAX("tonnage") - MIN("tonnage") FROM table_204_100
### Instruction: CREATE TABLE table_10737 ( "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 is the Record with a Date with 29 march 2008? ### Response:...
SELECT "Record" FROM table_10737 WHERE "Date" = '29 march 2008'
### Instruction: CREATE TABLE table_56085 ( "Character" text, "Position" text, "Actor" text, "First Episode" text, "Final Episode" text, "Episodes Credited" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final episode credited of 18...
SELECT "Final Episode" FROM table_56085 WHERE "Episodes Credited" = '187'
### Instruction: CREATE TABLE table_50316 ( "Outcome" text, "Date" real, "Championship" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent of the game in 1989? ### Response:
SELECT "Opponent" FROM table_50316 WHERE "Date" = '1989'
### Instruction: CREATE TABLE table_50879 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest lab for Gilera with a grid less than 12? ### Response:
SELECT MIN("Laps") FROM table_50879 WHERE "Manufacturer" = 'gilera' AND "Grid" < '12'
### Instruction: CREATE TABLE county ( County_name VARCHAR, County_id VARCHAR ) CREATE TABLE election ( District VARCHAR, Committee VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names of the county that the delegates on 'Appropriations...
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
### Instruction: CREATE TABLE table_69355 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Time" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where the time is 2:46, what is the record? ### Re...
SELECT "Record" FROM table_69355 WHERE "Time" = '2:46'
### Instruction: CREATE TABLE table_73123 ( "Number One(s)" real, "Artist(s)" text, "Song(s) \u2014 Weeks" text, "Issue Years" real, "Whole Weeks" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the longest number of weeks any 1 song was at n...
SELECT MAX("Whole Weeks") FROM table_73123
### Instruction: CREATE TABLE table_73790 ( "Series #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many viewers (in millions) did...
SELECT "Viewers (in millions)" FROM table_73790 WHERE "Series #" = '1'
### Instruction: CREATE TABLE table_name_39 ( polyunsaturated_fat VARCHAR, total_fat VARCHAR, saturated_fat VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g ### Response:
SELECT polyunsaturated_fat FROM table_name_39 WHERE total_fat = "100g" AND saturated_fat = "7g"
### Instruction: CREATE TABLE table_64913 ( "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the duration of the Archers with Norman Painting as an actor? ### Respons...
SELECT "Duration" FROM table_64913 WHERE "Soap Opera" = 'the archers' AND "Actor" = 'norman painting'
### Instruction: CREATE TABLE table_43849 ( "English" text, "three" text, "four" text, "person" text, "house" text, "coconut" text, "what" text, "fire" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the language, when 'what' is '...
SELECT "English" FROM table_43849 WHERE "what" = 'ango'
### Instruction: CREATE TABLE table_56211 ( "Class" text, "Wheel arrangement" text, "Manufacturer" text, "Year made" text, "Quantity made" text, "Quantity preserved" text, "Year(s) withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Na...
SELECT "Year made" FROM table_56211 WHERE "Class" = 'hercules'
### Instruction: CREATE TABLE table_17883 ( "No" real, "Player" text, "Height" text, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the height for the player born in 1980 and center? ### R...
SELECT "Height" FROM table_17883 WHERE "Year born" = '1980' AND "Position" = 'Center'
### Instruction: CREATE TABLE table_1211545_2 ( heavy_vehicle__3_4_axles_ VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the toll for heavy vehicles with 3/4 axles at Verkeerdevlei toll plaza? ### Response:
SELECT heavy_vehicle__3_4_axles_ FROM table_1211545_2 WHERE name = "Verkeerdevlei Toll Plaza"
### Instruction: CREATE TABLE table_name_96 ( career_sr VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10? ### Response:
SELECT 2011 FROM table_name_96 WHERE 1999 = "a" AND 2004 = "2r" AND career_sr = "0 / 10"
### Instruction: CREATE TABLE tags ( index number, id number, tag text ) CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) -- Using valid SQLite, answer the following questions for the tab...
SELECT artist FROM torrents GROUP BY artist HAVING COUNT(*) = 1
### Instruction: CREATE TABLE table_49999 ( "Rank" real, "Year" real, "Title" text, "Artist" text, "Sales" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the first year that the artist of every little thing ranked lower than 10? ### Respo...
SELECT MIN("Year") FROM table_49999 WHERE "Artist" = 'every little thing' AND "Rank" < '10'
### Instruction: CREATE TABLE table_14759 ( "Series" text, "Name" text, "Hometown" text, "Occupation" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the person from series bb1 with a hometown of Bolton? ### Respo...
SELECT "Name" FROM table_14759 WHERE "Series" = 'bb1' AND "Hometown" = 'bolton'
### Instruction: CREATE TABLE table_32852 ( "Date" real, "Sport" text, "Winner" text, "Score" text, "Loser" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What sport was played before 2006 with a loser of france b? ### Response:
SELECT "Sport" FROM table_32852 WHERE "Date" < '2006' AND "Loser" = 'france b'
### Instruction: CREATE TABLE table_13781 ( "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 the 2nd leg when Ermis Aradippou is the first team? ### Response:
SELECT "2nd leg" FROM table_13781 WHERE "Team 1" = 'ermis aradippou'
### Instruction: CREATE TABLE table_33938 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the gold number when the total is 8 and bronze is more than 4? ### Response:
SELECT AVG("Gold") FROM table_33938 WHERE "Total" = '8' AND "Bronze" > '4'
### Instruction: CREATE TABLE table_22288 ( "Departure" text, "Going to" text, "Calling at" text, "Arrival" text, "Operator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the train operator when the train departed at 11.02 in 1922? ### Re...
SELECT "Operator" FROM table_22288 WHERE "Departure" = '11.02'
### Instruction: CREATE TABLE table_19943 ( "#" real, "Season" real, "Bowl game" text, "Result" text, "Opponent" text, "Stadium" text, "Location" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of #...
SELECT "Location" FROM table_19943 WHERE "#" = '1'
### Instruction: CREATE TABLE table_204_947 ( 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 opponents were played twice that season ? ### Response:...
SELECT COUNT(*) FROM (SELECT "opponent" FROM table_204_947 GROUP BY "opponent" HAVING COUNT(*) = 2)
### Instruction: CREATE TABLE table_4905 ( "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. -- Where did Richmond play as the h...
SELECT "Venue" FROM table_4905 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_30139 ( "Institution" text, "City" text, "State" text, "Team Name" text, "Affiliation" text, "Enrollment" real, "Home Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many institutes have the...
SELECT COUNT("Institution") FROM table_30139 WHERE "Team Name" = 'Spartans'
### Instruction: CREATE TABLE table_name_22 ( city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el? ### Response:
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el"
### Instruction: CREATE TABLE table_18456 ( "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. -- which affiliation does edwin e. willis affiliate with ...
SELECT "Party" FROM table_18456 WHERE "Incumbent" = 'Edwin E. Willis'
### Instruction: CREATE TABLE table_21891 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the outcome in 1975? ### Respon...
SELECT "Outcome" FROM table_21891 WHERE "Year" = '1975'
### Instruction: CREATE TABLE table_name_59 ( place VARCHAR, to_par VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Place, when To Par is less than 15, and when Score is 76-72-75-71=294? ### Response:
SELECT place FROM table_name_59 WHERE to_par < 15 AND score = 76 - 72 - 75 - 71 = 294
### Instruction: CREATE TABLE table_75928 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the outcome of the match with Roger Federer as the oppo...
SELECT "Outcome" FROM table_75928 WHERE "Opponent" = 'roger federer'
### Instruction: CREATE TABLE table_64253 ( "Country" text, "Airport" text, "City" text, "2012" real, "Change (12/11)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the city is agadir what is the change (12/11)? ### Response:
SELECT "Change (12/11)" FROM table_64253 WHERE "City" = 'agadir'
### Instruction: CREATE TABLE table_204_374 ( id number, "event" text, "gold" number, "silver" number, "bronze" number, "total" number, "ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of silver medals earned the year switzerl...
SELECT "silver" FROM table_204_374 WHERE "gold" = 0
### Instruction: CREATE TABLE table_45700 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Laps have a Grid larger than 8, and a Rider of anthony west? ### Response:
SELECT MAX("Laps") FROM table_45700 WHERE "Grid" > '8' AND "Rider" = 'anthony west'
### Instruction: CREATE TABLE table_77225 ( "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. -- What is Call Sign, when ERP W is greater than 50? ...
SELECT "Call sign" FROM table_77225 WHERE "ERP W" > '50'
### Instruction: CREATE TABLE table_55047 ( "Name" text, "Model" text, "Park" text, "Opened" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status of the junior coaster model that opened in 2008? ### Response:
SELECT "Status" FROM table_55047 WHERE "Opened" = '2008' AND "Model" = 'junior coaster'
### Instruction: CREATE TABLE table_20862 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many nationalities does athlete Casey J...
SELECT COUNT("Nationality") FROM table_20862 WHERE "Player" = 'Casey Jacobsen'
### Instruction: CREATE TABLE table_40072 ( "Ring name" text, "Current rank" text, "Debut" text, "Stable" text, "Birthplace" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Ring Name, when Current Rank is E0 Maegashira 9 West? ### Response:...
SELECT "Ring name" FROM table_40072 WHERE "Current rank" = 'e0 maegashira 9 west'
### Instruction: CREATE TABLE table_21625 ( "Series #" real, "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. -- What season episode is directed by Skipp Suddut...
SELECT "Season #" FROM table_21625 WHERE "Directed by" = 'Skipp Sudduth'
### Instruction: CREATE TABLE table_69743 ( "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 Date that chicago black hawks has a Record of 2 2? ### Response:
SELECT "Date" FROM table_69743 WHERE "Visitor" = 'chicago black hawks' AND "Record" = '2–2'
### Instruction: CREATE TABLE table_50209 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Against when the Opposing Team was sheffield wednesday? ### Response:
SELECT "Against" FROM table_50209 WHERE "Opposing Team" = 'sheffield wednesday'
### Instruction: CREATE TABLE table_42905 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which method's event was flawless fighting championship 1: the beginning...
SELECT "Method" FROM table_42905 WHERE "Event" = 'flawless fighting championship 1: the beginning'
### Instruction: CREATE TABLE table_58424 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of the Jazz player 1977-79? ### Respon...
SELECT "Nationality" FROM table_58424 WHERE "Years for Jazz" = '1977-79'
### Instruction: CREATE TABLE table_20630 ( "#" real, "Date" text, "at/vs." text, "Opponent" text, "Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most number for new england blazers ### Re...
SELECT MAX("#") FROM table_20630 WHERE "Opponent" = 'New England Blazers'
### Instruction: CREATE TABLE table_name_70 ( time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than...
SELECT SUM(time) FROM table_name_70 WHERE lane > 6 AND nationality = "canada" AND react < 0.151
### Instruction: CREATE TABLE table_769 ( "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 won the election of 1942 in the district Illinois 13?...
SELECT "Incumbent" FROM table_769 WHERE "District" = 'Illinois 13'
### Instruction: CREATE TABLE table_60082 ( "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 Score, when Country is 'United States', and when Player is 'Bob Tway'? ### Respo...
SELECT "Score" FROM table_60082 WHERE "Country" = 'united states' AND "Player" = 'bob tway'
### Instruction: CREATE TABLE invoices ( customer_id VARCHAR ) CREATE TABLE customers ( id VARCHAR, first_name VARCHAR, last_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many orders does Lucas Mancini has? ### Response:
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
### Instruction: CREATE TABLE table_34642 ( "Year" text, "Venue" text, "Winner" text, "Country" text, "Score" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up of the competition played at Minikahda Club? #...
SELECT "Runner-up" FROM table_34642 WHERE "Venue" = 'minikahda club'
### Instruction: CREATE TABLE table_18198 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Status" text, "Opponent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who ran unsuccessfully against Bill Hefner? ### Respons...
SELECT "Opponent" FROM table_18198 WHERE "Incumbent" = 'Bill Hefner'
### Instruction: CREATE TABLE table_10610 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Channel" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result on December 31, 2005? ### Response:
SELECT "Result" FROM table_10610 WHERE "Date" = 'december 31, 2005'
### Instruction: CREATE TABLE table_59951 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much gold does the tank have that has 3 silver and more than 3 bronze? ### Response:
SELECT COUNT("Gold") FROM table_59951 WHERE "Silver" = '3' AND "Bronze" > '3'
### Instruction: CREATE TABLE table_61061 ( "Season" text, "Date" text, "Winners" text, "Finalists" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what season was Kilmarnock a finalist and Hibernian the winner? ### Response:
SELECT "Season" FROM table_61061 WHERE "Winners" = 'hibernian' AND "Finalists" = 'kilmarnock'
### Instruction: CREATE TABLE table_12405 ( "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 to par of the player with a 68-67-75=210? ### Response:
SELECT "To par" FROM table_12405 WHERE "Score" = '68-67-75=210'
### Instruction: CREATE TABLE table_17467 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team does Pierre Duguay play for? #...
SELECT "NHL team" FROM table_17467 WHERE "Player" = 'Pierre Duguay'
### Instruction: CREATE TABLE table_8619 ( "Grade" text, "Dates" text, "School" text, "Location" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the dates for Honolulu, Hawaii in Kindergarten? ### Response:
SELECT "Dates" FROM table_8619 WHERE "Location" = 'honolulu, hawaii' AND "Grade" = 'kindergarten'
### Instruction: CREATE TABLE table_59352 ( "Player" text, "Round" real, "Pick" real, "Position" text, "NFL Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player from a round less than 13 and has a pick of 74? ### Response:
SELECT "Player" FROM table_59352 WHERE "Round" < '13' AND "Pick" = '74'
### Instruction: CREATE TABLE table_24720 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Title in the original language" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the film titled 'S...
SELECT "Director" FROM table_24720 WHERE "Film title used in nomination" = 'Steam of Life'
### Instruction: CREATE TABLE table_69234 ( "Rank" text, "Mine" text, "County" text, "Operator" text, "Capacity (thousands of metric tons)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rank is the Silver Bell mine of Pima county? ### Respon...
SELECT "Rank" FROM table_69234 WHERE "County" = 'pima' AND "Mine" = 'silver bell'
### Instruction: CREATE TABLE table_12859 ( "Designation" text, "Launch date/time ( GMT )" text, "Mass" text, "Apogee" text, "Inclination" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Apogee, when Designation is Prognoz 6? ### Response:
SELECT "Apogee" FROM table_12859 WHERE "Designation" = 'prognoz 6'
### Instruction: CREATE TABLE table_203_139 ( id number, "name" text, "abbr." text, "leader" text, "ideology" text, "political position" text, "mps" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- there are at least 10 mps for how many politi...
SELECT COUNT(*) FROM table_203_139 WHERE "mps" >= 10
### Instruction: CREATE TABLE table_60655 ( "Mission" text, "Location" text, "Type" text, "Head of Mission" text, "Position" text, "List" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the type when the position is ambassador and the loc...
SELECT "Type" FROM table_60655 WHERE "Position" = 'ambassador' AND "Location" = 'rabat'
### Instruction: CREATE TABLE table_204_785 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many bronze medals did el salvador win ? #...
SELECT "bronze" FROM table_204_785 WHERE "nation" = 'el salvador'
### Instruction: CREATE TABLE table_41229 ( "Location" text, "Aircraft" text, "Tail number" text, "Aircraft damage" text, "Fatalities" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what location were the fatalities unknown for the Ju-52 aircraft...
SELECT "Location" FROM table_41229 WHERE "Fatalities" = 'unknown' AND "Aircraft" = 'ju-52'
### Instruction: CREATE TABLE table_49745 ( "Model number" text, "Frequency" text, "L1 Cache" text, "Mult." real, "Voltage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the L1 Cache, when the Model Number is X5-133 ADY? ### Response:
SELECT "L1 Cache" FROM table_49745 WHERE "Model number" = 'x5-133 ady'
### Instruction: CREATE TABLE table_name_75 ( time__cst_ VARCHAR, nfl_recap VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What time (cst) has and NFL recap of recap with october 19, 2008 as the date? ### Response:
SELECT time__cst_ FROM table_name_75 WHERE nfl_recap = "recap" AND date = "october 19, 2008"
### Instruction: CREATE TABLE table_65927 ( "Team" text, "Car Spec." text, "Drivers" text, "Class" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rounds did RML Racing Silverline and James Nash compete? ### Response:
SELECT "Rounds" FROM table_65927 WHERE "Team" = 'rml racing silverline' AND "Drivers" = 'james nash'
### Instruction: CREATE TABLE table_name_54 ( competition VARCHAR, main_article VARCHAR, captain VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with les...
SELECT competition FROM table_name_54 WHERE captain = "robbie paul" AND lost < 5 AND main_article = "bradford bulls 1997"
### Instruction: CREATE TABLE table_name_75 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r? ### Response:
SELECT 2012 FROM table_name_75 WHERE 2007 = "1r" AND 2008 = "1r" AND 2013 = "2r"
### Instruction: CREATE TABLE table_69110 ( "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 the score of the game that had a loss of Wegman (2-6)? ###...
SELECT "Score" FROM table_69110 WHERE "Loss" = 'wegman (2-6)'
### Instruction: CREATE TABLE table_2775 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of director for vesni ko m...
SELECT COUNT("Director") FROM table_2775 WHERE "Original title" = 'Vesničko má středisková'
### Instruction: CREATE TABLE table_79063 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent for game 75? ### R...
SELECT "Opponent" FROM table_79063 WHERE "Game" = '75'
### Instruction: CREATE TABLE table_51798 ( "Year" text, "Team" text, "Comp" text, "Long" text, "Rate" text, "RAtt" text, "RYds" text, "RAvg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rate of 17 years? ### Response:
SELECT "Rate" FROM table_51798 WHERE "Year" = '17 years'
### Instruction: CREATE TABLE table_35736 ( "Word" text, "Pronunciation a" text, "Meaning a" text, "Pronunciation b" text, "Meaning b" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the pronunciation for meaning b of border, frontier ### Resp...
SELECT "Pronunciation b" FROM table_35736 WHERE "Meaning b" = 'border, frontier'
### Instruction: CREATE TABLE table_48860 ( "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 Score, when Country is United States, and when Player is 'Arnold Palmer'? ### Re...
SELECT "Score" FROM table_48860 WHERE "Country" = 'united states' AND "Player" = 'arnold palmer'
### Instruction: CREATE TABLE table_29082 ( "Round #" text, "Home Team" text, "Win/Loss" text, "Score" text, "Opposition" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home team when the opposition is wairarapa bush...
SELECT "Home Team" FROM table_29082 WHERE "Opposition" = 'Wairarapa Bush'
### Instruction: CREATE TABLE table_37683 ( "Name" text, "Status" text, "Population" real, "District" text, "Former local authority" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What district is the parish who had the South Cambridgeshire rural di...
SELECT "District" FROM table_37683 WHERE "Former local authority" = 'south cambridgeshire rural district'
### Instruction: CREATE TABLE table_68497 ( "Season" real, "Team" text, "Country" text, "Apps" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country does FC Atyrau represent after the 2006 season? ### Response:
SELECT "Country" FROM table_68497 WHERE "Season" > '2006' AND "Team" = 'fc atyrau'
### Instruction: CREATE TABLE table_18646 ( "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. -- When was incumbent Leo E. Allen first elected? ### Re...
SELECT MIN("First elected") FROM table_18646 WHERE "Incumbent" = 'Leo E. Allen'
### Instruction: CREATE TABLE table_50170 ( "Cartridge" text, "Bullet weight" text, "Muzzle velocity" text, "Muzzle energy" text, "Max pressure" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the muzzle velocity for the .38 long colt cartrid...
SELECT "Muzzle velocity" FROM table_50170 WHERE "Cartridge" = '.38 long colt'
### Instruction: CREATE TABLE table_21561 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who left a position on...
SELECT "Outgoing manager" FROM table_21561 WHERE "Date of vacancy" = '24 January'
### Instruction: CREATE TABLE table_203_670 ( id number, "pos" text, "driver" text, "entrant" text, "constructor" text, "time/retired" text, "grid" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what entrant has the most drivers ? ### Re...
SELECT "entrant" FROM table_203_670 GROUP BY "entrant" ORDER BY COUNT("driver") DESC LIMIT 1