instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Name the engine for ecurie lutetia
### Response:
|
SELECT "Engine" FROM table_74237 WHERE "Entrant" = 'Ecurie Lutetia'
|
### Instruction:
What was the date when the attendance was 77,918?
### Response:
|
SELECT date FROM table_name_90 WHERE attendance = "77,918"
|
### Instruction:
What is the number of games for Shlomi Avrahami?
### Response:
|
SELECT COUNT(games) FROM table_name_75 WHERE name = "shlomi avrahami"
|
### Instruction:
What is the goals against for the goalkeeper with 2520 minutes?
### Response:
|
SELECT goals_against FROM table_name_75 WHERE minutes = 2520
|
### Instruction:
how many votes did alan keyes receive ?
### Response:
|
SELECT "votes" FROM table_204_951 WHERE "candidate" = 'alan keyes'
|
### Instruction:
Who is the opponent in 1992?
### Response:
|
SELECT "Opponent" FROM table_68868 WHERE "Year" = '1992'
|
### Instruction:
Count the number of captains that have each rank by a bar chart, and sort in asc by the total number.
### Response:
|
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*)
|
### Instruction:
What was the title of the episode that martin worth wrote the story for?
### Response:
|
SELECT "Title" FROM table_41524 WHERE "Story" = 'martin worth'
|
### Instruction:
Name the type with cancelable of no and attribute of ondragend
### Response:
|
SELECT type FROM table_name_79 WHERE cancelable = "no" AND attribute = "ondragend"
|
### Instruction:
Where was the Fairfield Barnett classic tournament held?
### Response:
|
SELECT "Location" FROM table_16961 WHERE "Tournament" = 'Fairfield Barnett Classic'
|
### Instruction:
Who was third in Barwa International Campos Team?
### Response:
|
SELECT "Third" FROM table_36111 WHERE "Team Champion" = 'barwa international campos team'
|
### Instruction:
who was thompson 's secretary of state ?
### Response:
|
SELECT "secretary of state" FROM table_201_27 WHERE "prime minister" = 'thompson'
|
### Instruction:
Which sport has most number of students on scholarship?
### Response:
|
SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
What was the voting order when the commentator was renato tagliani?
### Response:
|
SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani"
|
### Instruction:
Roy Rogers play for what school/club team?
### Response:
|
SELECT "School/Club Team" FROM table_31534 WHERE "Player" = 'roy rogers'
|
### Instruction:
When was Jill Hall of the Labor Party first elected?
### Response:
|
SELECT first_elected FROM table_name_6 WHERE party = "labor" AND member = "jill hall"
|
### Instruction:
Name the driver for Laps less than 9 and a grid of 13
### Response:
|
SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13
|
### Instruction:
What is the total number of votes if Scotland cast 35?
### Response:
|
SELECT COUNT("Scotland") FROM table_15960 WHERE "Total" = '35'
|
### Instruction:
What is the name of the writer for issue 224?
### Response:
|
SELECT "Writer" FROM table_42832 WHERE "Issue" = '224'
|
### Instruction:
What is the name and number in 1964?
### Response:
|
SELECT "Number & name" FROM table_11929 WHERE "Date" = '1964'
|
### Instruction:
Name the high assists for december 14
### Response:
|
SELECT high_assists FROM table_15869204_5 WHERE date = "December 14"
|
### Instruction:
which companies were founded at least after 1990 ?
### Response:
|
SELECT "name" FROM table_203_241 WHERE "founded" > 1990
|
### Instruction:
What is the year of entry for the University of Essex?
### Response:
|
SELECT year_entered_league FROM table_name_70 WHERE university = "university of essex"
|
### Instruction:
What is the %FPv for the Workers' Party?
### Response:
|
SELECT "% FPv" FROM table_9515 WHERE "Party" = 'workers'' party'
|
### Instruction:
Name th most poles for macau grand prix
### Response:
|
SELECT MAX(poles) FROM table_24466191_1 WHERE series = "Macau Grand Prix"
|
### Instruction:
Name the nfl team for pick number 151
### Response:
|
SELECT nfl_team FROM table_2508633_6 WHERE pick__number = 151
|
### Instruction:
Mike Miller played for what school/club team?
### Response:
|
SELECT "School/Club Team" FROM table_40723 WHERE "Player" = 'mike miller'
|
### Instruction:
what's the party with incumbent being john sparkman
### Response:
|
SELECT party FROM table_1342292_2 WHERE incumbent = "John Sparkman"
|
### Instruction:
what is the only model of these aircraft to originate in canada ?
### Response:
|
SELECT "model" FROM table_204_710 WHERE "origin" = 'canada'
|
### Instruction:
What's the title of the audio book with story number 91?
### Response:
|
SELECT "Title" FROM table_23576 WHERE "Story #" = '91'
|
### Instruction:
Name the result for first elected of 1920
### Response:
|
SELECT result FROM table_1342149_24 WHERE first_elected = 1920
|
### Instruction:
How many production codes were in series 39?
### Response:
|
SELECT COUNT("Production code") FROM table_26542 WHERE "No. in series" = '39'
|
### Instruction:
What's the name of Channel 29 (UHF)?
### Response:
|
SELECT name FROM table_name_65 WHERE channel___bkk__ = "29 (uhf)"
|
### Instruction:
What rank has a Time of 4:00.191?
### Response:
|
SELECT rank FROM table_name_94 WHERE time = "4:00.191"
|
### Instruction:
Name the venue with opponent of collingwood
### Response:
|
SELECT "Venue" FROM table_15448 WHERE "Opponent" = 'collingwood'
|
### Instruction:
Which competition ended with a score of 58-4?
### Response:
|
SELECT "Competition" FROM table_53307 WHERE "Score" = '58-4'
|
### Instruction:
What teams drafted players that played for northwood school?
### Response:
|
SELECT cfl_team FROM table_10960039_6 WHERE college = "Northwood"
|
### Instruction:
What is Site, when Opponent is 'All times are in eastern.'?
### Response:
|
SELECT site FROM table_name_13 WHERE opponent = "all times are in eastern."
|
### Instruction:
What company collaborated with non-hodgkin lymphoma?
### Response:
|
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
|
### Instruction:
When was the stokers' training ship launched?
### Response:
|
SELECT "Launched" FROM table_26884 WHERE "Disposition" = 'Stokers'' training ship'
|
### Instruction:
WHAT IS THE FIRST LEG OF TUILLA?
### Response:
|
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "tuilla"
|
### Instruction:
What party did Frank J. Becker represent?
### Response:
|
SELECT party FROM table_1342013_31 WHERE incumbent = "Frank J. Becker"
|
### Instruction:
Visualize a bar chart about the distribution of meter_600 and ID , display by the Y in asc.
### Response:
|
SELECT meter_600, ID FROM swimmer ORDER BY ID
|
### Instruction:
Name the team for susan bates
### Response:
|
SELECT team FROM table_24535095_2 WHERE listed_owner_s_ = "Susan Bates"
|
### Instruction:
Name the recognised seats for pharmacology
### Response:
|
SELECT recognised_seats FROM table_19304764_2 WHERE discipline = "Pharmacology"
|
### Instruction:
what years was natalia oriero on the show lynch ?
### Response:
|
SELECT "ano" FROM table_204_871 WHERE "title" = 'lynch'
|
### Instruction:
When Estudiantes was team #2, what was their agg. value?
### Response:
|
SELECT agg FROM table_name_28 WHERE team__number2 = "estudiantes"
|
### Instruction:
Visualize the relationship between student_id and monthly_rental .
### Response:
|
SELECT student_id, monthly_rental FROM Student_Addresses ORDER BY monthly_rental DESC
|
### Instruction:
What is the low lap total for a grid of 14?
### Response:
|
SELECT MIN("Laps") FROM table_57955 WHERE "Grid" = '14'
|
### Instruction:
How many points are listed when the rank is 17?
### Response:
|
SELECT MAX(points) FROM table_29572583_19 WHERE rank = 17
|
### Instruction:
On what Week was the Result W 17-14?
### Response:
|
SELECT AVG(week) FROM table_name_4 WHERE result = "w 17-14"
|
### Instruction:
Who is the December playmate with a November playmate Marlene Janssen?
### Response:
|
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
|
### Instruction:
What is the document type code for document type 'Paper'?
### Response:
|
SELECT document_type_code FROM ref_document_types WHERE document_type_name = "Paper"
|
### Instruction:
Show card number, name, and hometown for all members in a descending order of level.
### Response:
|
SELECT card_number, name, hometown FROM member ORDER BY level DESC
|
### Instruction:
what is lab test category of subject id 6983?
### Response:
|
SELECT lab."CATEGORY" FROM lab WHERE lab.subject_id = "6983"
|
### Instruction:
If the letters is , what is the founding date?
### Response:
|
SELECT founding_date FROM table_2538117_7 WHERE letters = "ΦΑΝ"
|
### Instruction:
When was the last final lost of the club with 7 wins?
### Response:
|
SELECT "Last final lost" FROM table_34523 WHERE "Wins" = '7'
|
### Instruction:
On what date was the record 62 84?
### Response:
|
SELECT "Date" FROM table_69538 WHERE "Record" = '62–84'
|
### Instruction:
What is the home team when kwong wah was the away team?
### Response:
|
SELECT home_team FROM table_name_41 WHERE away_team = "kwong wah"
|
### Instruction:
Who was the winner when the third place was fernando meligeni?
### Response:
|
SELECT winner FROM table_name_11 WHERE third_place = "fernando meligeni"
|
### Instruction:
How many totals have a play-off less than 0?
### Response:
|
SELECT COUNT("Total") FROM table_41421 WHERE "Play-offs" < '0'
|
### Instruction:
what was the total number of appearances in 2005 ?
### Response:
|
SELECT COUNT(*) FROM table_203_842 WHERE "date" = 2005
|
### Instruction:
Name the least attendance for 52-37 record
### Response:
|
SELECT MIN(attendance) FROM table_name_53 WHERE record = "52-37"
|
### Instruction:
Name the loss with record of 38-53
### Response:
|
SELECT "Loss" FROM table_69509 WHERE "Record" = '38-53'
|
### Instruction:
list the ships that have their class as arktika .
### Response:
|
SELECT "ship name" FROM table_203_193 WHERE "class" = 'arktika'
|
### Instruction:
specify the death status of patient id 2560
### Response:
|
SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "2560"
|
### Instruction:
What was the result when the team had contested 14 home games?
### Response:
|
SELECT "Result" FROM table_984 WHERE "Home Matches" = '14'
|
### Instruction:
Who wrote episode number 19 in the series?
### Response:
|
SELECT "Written by" FROM table_30329 WHERE "No. in series" = '19'
|
### Instruction:
The player who had 5 touchdowns had how many extra points?
### Response:
|
SELECT "Extra points" FROM table_3365 WHERE "Touchdowns" = '5'
|
### Instruction:
Who was the author for company Buzz Productions Theater?
### Response:
|
SELECT "author" FROM table_63760 WHERE "company" = 'buzz productions theater'
|
### Instruction:
Where did Geelong play as the away team?
### Response:
|
SELECT "Venue" FROM table_33283 WHERE "Away team" = 'geelong'
|
### Instruction:
What is the hometown of player Jason Place?
### Response:
|
SELECT hometown FROM table_11677100_12 WHERE player = "Jason Place"
|
### Instruction:
Which Raison Blue has the highest nicotine?
### Response:
|
SELECT MAX("Nicotine") FROM table_38189 WHERE "Name" = 'raison blue'
|
### Instruction:
What is the home team score that played at Kardinia Park?
### Response:
|
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
|
### Instruction:
find users with about me text like.
### Response:
|
SELECT Id AS "user_link", Reputation, CreationDate, LastAccessDate FROM Users WHERE AboutMe LIKE '%##text##%'
|
### Instruction:
What was the result against Beijing Hyundai?
### Response:
|
SELECT result_f_a FROM table_name_43 WHERE opponents = "beijing hyundai"
|
### Instruction:
Who was from Great Britain in lanes under number 3?
### Response:
|
SELECT name FROM table_name_1 WHERE lane < 3 AND nationality = "great britain"
|
### Instruction:
Name the number of opponent with arrowhead stadium
### Response:
|
SELECT COUNT("Opponent") FROM table_647 WHERE "Game site" = 'Arrowhead Stadium'
|
### Instruction:
In what Venue was the Score 1-1?
### Response:
|
SELECT "Venue" FROM table_49402 WHERE "Score" = '1-1'
|
### Instruction:
Name the original air date for ai% for 83
### Response:
|
SELECT "Original air date" FROM table_22063 WHERE "AI (%)" = '83'
|
### Instruction:
What is Result, when Venue is G tzis , Austria?
### Response:
|
SELECT result FROM table_name_77 WHERE venue = "götzis , austria"
|
### Instruction:
mmse score > or equal to 21
### Response:
|
SELECT * FROM table_train_80 WHERE mini_mental_state_examination_mmse >= 21
|
### Instruction:
What is the date of the game where Richmond was the away team?
### Response:
|
SELECT "Date" FROM table_32577 WHERE "Away team" = 'richmond'
|
### Instruction:
What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.
### Response:
|
SELECT nationality, COUNT(*) FROM pilot GROUP BY nationality
|
### Instruction:
how many people were eliminated in week 1 ?
### Response:
|
SELECT COUNT(*) FROM table_204_688 WHERE "status" = 'eliminated week 1'
|
### Instruction:
What are the schools that were either founded before 1850 or are public?
### Response:
|
SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public'
|
### Instruction:
Which wheels were built 1920?
### Response:
|
SELECT "Wheels" FROM table_46581 WHERE "Built" = '1920'
|
### Instruction:
What is the home team when the tie is 11?
### Response:
|
SELECT "Home team" FROM table_59910 WHERE "Tie no" = '11'
|
### Instruction:
Which university is in Los Angeles county and opened after 1950?
### Response:
|
SELECT campus FROM campuses WHERE county = "Los Angeles" AND YEAR > 1950
|
### Instruction:
who authored the least number of titles ?
### Response:
|
SELECT "author" FROM table_203_394 GROUP BY "author" ORDER BY COUNT("title") LIMIT 1
|
### Instruction:
What is listed in notes for the athlete, lassi karonen?
### Response:
|
SELECT notes FROM table_name_46 WHERE athlete = "lassi karonen"
|
### Instruction:
Which teams had an aggregate score of 3-4?
### Response:
|
SELECT "Team 1" FROM table_79787 WHERE "Agg." = '3-4'
|
### Instruction:
What is IATA, when City is 'Alexandria'?
### Response:
|
SELECT "IATA" FROM table_8821 WHERE "City" = 'alexandria'
|
### Instruction:
What team was the game on November 21 played against?
### Response:
|
SELECT "Team" FROM table_21550 WHERE "Date" = 'November 21'
|
### Instruction:
what is number of acres in castledon
### Response:
|
SELECT "area\nacres" FROM table_203_207 WHERE "site name" = 'castleton'
|
### Instruction:
What is the British letter with o /o /?
### Response:
|
SELECT "British" FROM table_61409 WHERE "Letter" = 'o /oʊ/'
|
### Instruction:
who is the first producer with the least amount of time ?
### Response:
|
SELECT "producer(s)" FROM table_204_238 ORDER BY "time" LIMIT 1
|
### Instruction:
Who's the owner of Sanam Pao as the broadcasting area?
### Response:
|
SELECT owner FROM table_name_33 WHERE broadcasting_area = "sanam pao"
|
### Instruction:
What is the total rating of channel for each channel owner. Plot them as pie chart.
### Response:
|
SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner
|
### Instruction:
How many rounds were on July 10?
### Response:
|
SELECT COUNT("Round") FROM table_24626 WHERE "Date" = 'July 10'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.