instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the average Silver, when Gold is less than 0?
### Response:
| SELECT AVG("Silver") FROM table_62342 WHERE "Gold" < '0' |
### Instruction:
What did the away team score at VFL Park?
### Response:
| SELECT "Away team score" FROM table_52865 WHERE "Venue" = 'vfl park' |
### Instruction:
How many Laps does GP Motorsport Team have?
### Response:
| SELECT SUM("Laps") FROM table_45656 WHERE "Team" = 'gp motorsport' |
### Instruction:
how many teams started before 1940 ?
### Response:
| SELECT COUNT("team name") FROM table_203_168 WHERE "year started" < 1940 |
### Instruction:
which state has the most member schools ?
### Response:
| SELECT "state" FROM table_204_842 GROUP BY "state" ORDER BY COUNT("institution") DESC LIMIT 1 |
### Instruction:
What is the city of the Museum that houses the specimen discovered by Jane Solem?
### Response:
| SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem" |
### Instruction:
What venue was on 27 May 2000?
### Response:
| SELECT venue FROM table_name_81 WHERE date = "27 may 2000" |
### Instruction:
Name who wrote the episode directed by arthur albert
### Response:
| SELECT written_by FROM table_17356042_1 WHERE directed_by = "Arthur Albert" |
### Instruction:
bishops in alexandria
### Response:
| SELECT "bishops" FROM table_204_284 WHERE "jurisdiction" = 'alexandria' |
### Instruction:
Which substrate has an OMIM of 176000?
### Response:
| SELECT substrate FROM table_name_47 WHERE omim = 176000 |
### Instruction:
What was his record when the method was technical submission (forearm choke)?
### Response:
| SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)" |
### Instruction:
how many stars do not have a current magnitude greater than zero ?
### Response:
| SELECT COUNT("star") FROM table_203_56 WHERE "current\nmagnitude" <= 0 |
### Instruction:
What is the russian title of the ugly swans?
### Response:
| SELECT "Russian title" FROM table_2344 WHERE "English title" = 'The Ugly Swans' |
### Instruction:
Where is the track that opened in 1995?
### Response:
| SELECT "Location" FROM table_17685 WHERE "Year Opened" = '1995' |
### Instruction:
Return the number of music festivals of each category, order from high to low by the Y.
### Response:
| SELECT Category, COUNT(*) FROM music_festival GROUP BY Category ORDER BY COUNT(*) DESC |
### Instruction:
what is the highest rank for director john woo?
### Response:
| SELECT MAX("Rank") FROM table_43608 WHERE "Director" = 'john woo' |
### Instruction:
Which call sign has a frequency of FM 105.3?
### Response:
| SELECT call_sign FROM table_name_81 WHERE frequency = "fm 105.3" |
### Instruction:
Which champion has sentosa golf club as the tournament location?
### Response:
| SELECT "Champion" FROM table_7037 WHERE "Tournament Location" = 'sentosa golf club' |
### Instruction:
how many verbs have the yo form as sienta?
### Response:
| SELECT COUNT("Verbs") FROM table_23315 WHERE "Yo" = 'sienta' |
### Instruction:
During 2003 what was open cup qualifying status?
### Response:
| SELECT "Open Cup" FROM table_20268 WHERE "Year" = '2003' |
### Instruction:
Where was the series that the Kansas City Royals lost?
### Response:
| SELECT "Site" FROM table_40442 WHERE "Winning team" = 'kansas city royals' |
### Instruction:
What is the profession of the housemate from Leskovac city?
### Response:
| SELECT "Profession" FROM table_6825 WHERE "City" = 'leskovac' |
### Instruction:
What's the type of the school whose students' name is spirits?
### Response:
| SELECT type FROM table_1973842_1 WHERE nickname = "Spirits" |
### Instruction:
What is the payment method code used by the most orders?
### Response:
| SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
how many albums has key produced after 2010 ?
### Response:
| SELECT COUNT("album") FROM table_204_243 WHERE "year" > 2010 |
### Instruction:
Where was the season that ended on June 25 located?
### Response:
| SELECT "Country" FROM table_23024 WHERE "End Date" = 'June 25' |
### Instruction:
What is the home team score when north Melbourne was the away team?
### Response:
| SELECT home_team AS score FROM table_name_49 WHERE away_team = "north melbourne" |
### Instruction:
WHAT IS THE LAPS WITH A GRID OF 26?
### Response:
| SELECT "Laps" FROM table_47683 WHERE "Grid" = '26' |
### Instruction:
What position was the player who was drafted by Edmonton?
### Response:
| SELECT "Position" FROM table_30265 WHERE "CFL Team" = 'Edmonton' |
### Instruction:
What is Tries Against, when Points For is 98?
### Response:
| SELECT tries_against FROM table_name_22 WHERE points_for = "98" |
### Instruction:
What feature is at latitude 23.9S?
### Response:
| SELECT name FROM table_16799784_13 WHERE latitude = "23.9S" |
### Instruction:
Name the year for japanese
### Response:
| SELECT year__ceremony_ FROM table_21790203_1 WHERE language_s_ = "Japanese" |
### Instruction:
If the latitude is 71 18 n, what is the longitude?
### Response:
| SELECT longitude FROM table_name_98 WHERE latitude = "71°18′n" |
### Instruction:
What was the game number when record is 59-15?
### Response:
| SELECT MIN(game) FROM table_name_71 WHERE record = "59-15" |
### Instruction:
What venue had a Score of 120-108?
### Response:
| SELECT venue FROM table_name_1 WHERE score = "120-108" |
### Instruction:
tell me the only country to schore below 38 total points .
### Response:
| SELECT "nation" FROM table_204_979 WHERE "total" < 38 |
### Instruction:
Who had highest assists at the game against Houston?
### Response:
| SELECT high_assists FROM table_27700530_11 WHERE team = "Houston" |
### Instruction:
Name the average attendance from june 11
### Response:
| SELECT AVG("Attendance") FROM table_36106 WHERE "Date" = 'june 11' |
### Instruction:
history of liver or renal disease
### Response:
| SELECT * FROM table_train_127 WHERE liver_disease = 1 OR renal_disease = 1 |
### Instruction:
What's the try bonus that had 423 points?
### Response:
| SELECT "Try bonus" FROM table_75124 WHERE "Points for" = '423' |
### Instruction:
Name the tv time for attendance of 69,551
### Response:
| SELECT tv_time FROM table_name_84 WHERE attendance = "69,551" |
### Instruction:
Who was the director for the episode in season #50?
### Response:
| SELECT directed_by FROM table_16471432_4 WHERE series__number = 50 |
### Instruction:
Who was the outgoing manager for Aberdeen?
### Response:
| SELECT outgoing_manager FROM table_16075179_6 WHERE team = "Aberdeen" |
### Instruction:
What was the Score on 25 May 2007?
### Response:
| SELECT score FROM table_name_79 WHERE date = "25 may 2007" |
### Instruction:
What is the highest Rank, when Director is 'Henry Hathaway'?
### Response:
| SELECT MAX(rank) FROM table_name_63 WHERE director = "henry hathaway" |
### Instruction:
Who played Peter Pan in the 1990 Broadway?
### Response:
| SELECT "1990 Broadway" FROM table_16038 WHERE "Character" = 'Peter Pan' |
### Instruction:
In which district is the incumbent Carl Vinson?
### Response:
| SELECT district FROM table_1341973_11 WHERE incumbent = "Carl Vinson" |
### Instruction:
In what facility was Pittsburgh's home game played?
### Response:
| SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh" |
### Instruction:
What is the player that went to st. benedict's prep?
### Response:
| SELECT player FROM table_name_61 WHERE school = "st. benedict's prep" |
### Instruction:
What is the Athlete from Riverbank, California?
### Response:
| SELECT "ATHLETE" FROM table_63384 WHERE "CITY" = 'riverbank, california' |
### Instruction:
Name the scoring average for best finsih being t35
### Response:
| SELECT "Scoring average" FROM table_1828 WHERE "Best finish" = 'T35' |
### Instruction:
what is the power when the capacity is 898cc?
### Response:
| SELECT "Power" FROM table_14848 WHERE "Capacity" = '898cc' |
### Instruction:
What was the result in the game broadcast on the SEC Network?
### Response:
| SELECT "Result" FROM table_29049 WHERE "Broadcast" = 'SEC Network' |
### Instruction:
What was the largest crowd when South Melbourne was the away team?
### Response:
| SELECT MAX(crowd) FROM table_name_89 WHERE away_team = "south melbourne" |
### Instruction:
Name the park and ride for roosevelt u
### Response:
| SELECT "Park and ride?" FROM table_25296 WHERE "Station" = 'Roosevelt U' |
### Instruction:
When was the game that was held at the Princes Park?
### Response:
| SELECT "Date" FROM table_32808 WHERE "Venue" = 'princes park' |
### Instruction:
What is the Location Attendance when the Date was February 27?
### Response:
| SELECT location_attendance FROM table_name_83 WHERE date = "february 27" |
### Instruction:
Which Surface has a Place of lappeenranta?
### Response:
| SELECT "Surface" FROM table_70152 WHERE "Place" = 'lappeenranta' |
### Instruction:
What is the elevation for number 39?
### Response:
| SELECT MAX(elevation__m_) FROM table_2731431_1 WHERE no = 39 |
### Instruction:
If the total is 17, what was the maximum rank amount?
### Response:
| SELECT MAX("Rank") FROM table_23244 WHERE "Total" = '17' |
### Instruction:
Which Office has a Republican ticket of daniel h. conway?
### Response:
| SELECT office FROM table_name_63 WHERE republican_ticket = "daniel h. conway" |
### Instruction:
Who is the youngest employee in the company? List employee's first and last name.
### Response:
| SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1 |
### Instruction:
Name the stadium for regular season game
### Response:
| SELECT stadium FROM table_21436373_11 WHERE type_of_record = "Regular season game" |
### Instruction:
Which episode's segment b is s hacksaw?
### Response:
| SELECT "Episode" FROM table_36219 WHERE "Segment B" = 's hacksaw' |
### Instruction:
What is the score when the opposition is mid canterbury?
### Response:
| SELECT score FROM table_26847237_3 WHERE opposition = "Mid Canterbury" |
### Instruction:
What chassis did the BRM V8 engine have?
### Response:
| SELECT "Chassis" FROM table_15734 WHERE "Engine" = 'brm v8' |
### Instruction:
What is the score of the game where real espana was the home team?
### Response:
| SELECT "Score" FROM table_46561 WHERE "Home" = 'real espana' |
### Instruction:
Who was the home team when the VFL played Kardinia Park?
### Response:
| SELECT home_team AS score FROM table_name_27 WHERE venue = "kardinia park" |
### Instruction:
When did Masthead Studios release their game?
### Response:
| SELECT "Release date" FROM table_43620 WHERE "Developer(s)" = 'masthead studios' |
### Instruction:
What was the position of the player who was picked in round 22?
### Response:
| SELECT "Position" FROM table_46758 WHERE "Round" = '22' |
### Instruction:
Bar chart x axis country y axis the total number, and list by the total number from low to high.
### Response:
| SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) |
### Instruction:
What district had someone first elected in 1982?
### Response:
| SELECT "District" FROM table_18213 WHERE "First elected" = '1982' |
### Instruction:
When the Grids is less than 2 what are the total laps?
### Response:
| SELECT COUNT("Laps") FROM table_49290 WHERE "Grid" < '2' |
### Instruction:
From what Country is T6 Place Player Robert Karlsson?
### Response:
| SELECT country FROM table_name_19 WHERE place = "t6" AND player = "robert karlsson" |
### Instruction:
What is the station number of the station at Dogsthorpe?
### Response:
| SELECT "Station Number" FROM table_52853 WHERE "Location" = 'dogsthorpe' |
### Instruction:
The game that had a record of 39-25, what was the score?
### Response:
| SELECT score FROM table_name_77 WHERE record = "39-25" |
### Instruction:
in what year was there the largest percentage of hungarians ?
### Response:
| SELECT "year" FROM table_203_355 ORDER BY "hungarians" DESC LIMIT 1 |
### Instruction:
What is Set 2, when Date is May 31?
### Response:
| SELECT "Set 2" FROM table_6882 WHERE "Date" = 'may 31' |
### Instruction:
Count the number of services by services, and display Y-axis from low to high order please.
### Response:
| SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY COUNT(services) |
### Instruction:
In which period did Stanislav Chistov get a penalty?
### Response:
| SELECT "Period" FROM table_47120 WHERE "Player" = 'stanislav chistov' |
### Instruction:
Name the total number of segment b for s banjo
### Response:
| SELECT COUNT("Segment B") FROM table_19899 WHERE "Segment D" = 's Banjo' |
### Instruction:
Please show the names of the buildings whose status is 'on-hold', in ascending order of stories.
### Response:
| SELECT name FROM buildings WHERE Status = "on-hold" ORDER BY Stories |
### Instruction:
what location has team trek-livestrong?
### Response:
| SELECT location FROM table_27887723_1 WHERE team = "Trek-Livestrong" |
### Instruction:
What was the smallest crowd size for away team st kilda?
### Response:
| SELECT MIN(crowd) FROM table_name_25 WHERE away_team = "st kilda" |
### Instruction:
What is Season, when Prize is '$100,000'?
### Response:
| SELECT season FROM table_name_37 WHERE prize = "$100,000" |
### Instruction:
Which firm conducted a poll in August 2006?
### Response:
| SELECT polling_firm FROM table_name_42 WHERE dates = "august 2006" |
### Instruction:
What is the park & ride lot for the Temple Square station?
### Response:
| SELECT park_and_ride_lot FROM table_name_97 WHERE station_name = "temple square" |
### Instruction:
Which Semifinalists has a Finalist of andre agassi?
### Response:
| SELECT semifinalists FROM table_name_23 WHERE finalist = "andre agassi" |
### Instruction:
How many teams are listed for 3rd wickets?
### Response:
| SELECT COUNT("Batting team") FROM table_20967 WHERE "Wicket" = '3rd' |
### Instruction:
Who is the operator to Highbury & Islington?
### Response:
| SELECT "Operator" FROM table_20580 WHERE "Destination" = 'Highbury & Islington' |
### Instruction:
Which Home team has a Venue of victoria park?
### Response:
| SELECT "Home team" FROM table_54731 WHERE "Venue" = 'victoria park' |
### Instruction:
if the bbi is 4/39 what is the average
### Response:
| SELECT "Average" FROM table_4110 WHERE "BBI" = '4/39' |
### Instruction:
Lowest round for g that was smaller than 31?
### Response:
| SELECT MIN(round) FROM table_name_76 WHERE position = "g" AND overall < 31 |
### Instruction:
how many floors does the tallest building have ?
### Response:
| SELECT "floors" FROM table_204_489 ORDER BY "floors" DESC LIMIT 1 |
### Instruction:
what are the number of times 4g is listed as the generation ?
### Response:
| SELECT COUNT(*) FROM table_203_868 WHERE "generation" = '4g' |
### Instruction:
What is the enrollment of the university established in or after 2011?
### Response:
| SELECT enrollment FROM table_name_68 WHERE established > 2011 |
### Instruction:
Stack bar chart of team_id vs ACC_Home based on all home
### Response:
| SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home |
### Instruction:
What is the Score that has an Attendance of 4 679?
### Response:
| SELECT score FROM table_name_52 WHERE attendance = "4 679" |
### Instruction:
Name the malayalam name for leo
### Response:
| SELECT "Malayalam name" FROM table_23671 WHERE "Zodiac sign" = 'Leo' |
### Instruction:
What's the pick number of the player whose position is CB?
### Response:
| SELECT pick__number FROM table_10812938_5 WHERE position = "CB" |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.