instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Which builder has a railway of Rhodesia Railways? ### Response:
SELECT "Builder" FROM table_5681 WHERE "Railway" = 'rhodesia railways'
### Instruction: Name the wrestlers with days held of 428 ### Response:
SELECT "Wrestlers" FROM table_68550 WHERE "Days held" = '428'
### Instruction: what game had a score of 86-71 ### Response:
SELECT "Attendance" FROM table_37120 WHERE "Record" = '86-71'
### Instruction: who was the top player in 2012 ? ### Response:
SELECT "champion" FROM table_204_474 WHERE "year" = 2012
### Instruction: Show me a bar chart for what is the total rating of channel for each channel owner? ### Response:
SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner
### Instruction: Which assets did not incur any fault log? List the asset model. ### Response:
SELECT asset_model FROM assets WHERE NOT asset_id IN (SELECT asset_id FROM fault_log)
### Instruction: What is the record of the match at 6:00? ### Response:
SELECT "Record" FROM table_15514 WHERE "Time" = '6:00'
### Instruction: List the status for the operator Toronto transit commission. ### Response:
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission"
### Instruction: What was sweden's purse in USD? ### Response:
SELECT SUM(purse___us_) AS $__ FROM table_name_58 WHERE country = "sweden"
### Instruction: Which college had an overall number more than 180? ### Response:
SELECT "College" FROM table_35390 WHERE "Overall" > '180'
### Instruction: What is the field of the game on July 22? ### Response:
SELECT "Field" FROM table_11498 WHERE "Date" = 'july 22'
### Instruction: How many connections aux in using FIrewire? ### Response:
SELECT COUNT("AUX In") FROM table_26795 WHERE "Dock Connection" = 'FireWire'
### Instruction: Tell me the power output for total production of 100 ### Response:
SELECT power_output_(kw) FROM table_name_38 WHERE total_production = 100
### Instruction: how many lifts are detach quads ? ### Response:
SELECT COUNT("lift name") FROM table_204_907 WHERE "type" = 'detach quad'
### Instruction: What are Tiger Woods' average earnings? ### Response:
SELECT AVG(money___) AS $__ FROM table_name_86 WHERE player = "tiger woods"
### Instruction: What's the genre of the song recorded in 1929? ### Response:
SELECT genre FROM table_name_41 WHERE year_recorded = "1929"
### Instruction: Which model has a CPU speed of 133mhz? ### Response:
SELECT model FROM table_name_52 WHERE cpu_speed = "133mhz"
### Instruction: What was the number of podiums in 12th position? ### Response:
SELECT "Podiums" FROM table_28744 WHERE "Position" = '12th'
### Instruction: How many years was Reasons to be Pretty nominated for best play? ### Response:
SELECT COUNT("Year") FROM table_64802 WHERE "Category" = 'best play'
### Instruction: When did the game at Arden Street Oval occur? ### Response:
SELECT "Date" FROM table_77737 WHERE "Venue" = 'arden street oval'
### Instruction: What country was the game played in when the location was trestles? ### Response:
SELECT "Country" FROM table_41993 WHERE "Location" = 'trestles'
### Instruction: Users by creation date (2011). ### Response:
SELECT Id, CreationDate FROM Users WHERE YEAR(CreationDate) = 2011 ORDER BY CreationDate
### Instruction: A bar chart for how many competitions for each country, and display bars from high to low order. ### Response:
SELECT Country, COUNT(Country) FROM competition GROUP BY Country ORDER BY Country DESC
### Instruction: Which Date has a Record of 7 7 1? ### Response:
SELECT "Date" FROM table_49318 WHERE "Record" = '7–7–1'
### Instruction: What is the segment B of episode 242? ### Response:
SELECT segment_b FROM table_15187735_19 WHERE episode = 242
### Instruction: Which Distance has a Time of 2:20.00? ### Response:
SELECT distance FROM table_name_73 WHERE time = "2:20.00"
### Instruction: What is the 1st leg for Instituto? ### Response:
SELECT "1st Leg" FROM table_36085 WHERE "Home (2nd leg)" = 'instituto'
### Instruction: When were the Spartans founded? ### Response:
SELECT MAX(founded) FROM table_28211213_1 WHERE team_nickname = "Spartans"
### Instruction: The match that lasted 2:43 has what record? ### Response:
SELECT "Record" FROM table_50739 WHERE "Time" = '2:43'
### Instruction: what is the total amount of sacks with houston ? ### Response:
SELECT SUM("sacks") FROM table_203_258 WHERE "team" = 'hou'
### Instruction: Who wrote the episode directed by Peter Woeste? ### Response:
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste"
### Instruction: Which away team is from junction oval? ### Response:
SELECT "Away team" FROM table_58409 WHERE "Venue" = 'junction oval'
### Instruction: how many games have been won by only one point ? ### Response:
SELECT COUNT(*) FROM table_204_770 WHERE ABS("result" - "result") = 1
### Instruction: What is the injured that has skierlik as the location? ### Response:
SELECT "Injured" FROM table_61197 WHERE "Location" = 'skierlik'
### Instruction: Tell me the chip with frequency larger than 10 ### Response:
SELECT "Chip" FROM table_32034 WHERE "Frequency [MHz]" > '10'
### Instruction: What is the coin with a equivalency of 0.30 made of? ### Response:
SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"
### Instruction: What is the sum of Goals, when Matches is less than 29? ### Response:
SELECT SUM(goals) FROM table_name_31 WHERE matches < 29
### Instruction: Which school has enrollment of 887? ### Response:
SELECT "School" FROM table_66219 WHERE "Enrollment" = '887'
### Instruction: What is the record with 23 points and a visitor of Chicago? ### Response:
SELECT record FROM table_name_70 WHERE points = 23 AND visitor = "chicago"
### Instruction: What is the length of the coaster with the unknown speed ### Response:
SELECT "Length (ft)" FROM table_73986 WHERE "Speed (mph)" = 'unknown'
### Instruction: What was the attendance on March 17? ### Response:
SELECT "Location Attendance" FROM table_17328 WHERE "Date" = 'March 17'
### Instruction: What is the average lane with Netherlands Antilles Nationality? ### Response:
SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"
### Instruction: Which of the opponents has bye as their box score? ### Response:
SELECT "Opponent" FROM table_33422 WHERE "Box scores" = 'bye'
### Instruction: What is the sales when the artist is kelly clarkson? ### Response:
SELECT COUNT(sales) FROM table_name_88 WHERE artist = "kelly clarkson"
### Instruction: Comments with image links in them. ### Response:
SELECT PostId AS "post_link", Text, CreationDate FROM Comments WHERE Text LIKE '%i.stack.imgur.com%'
### Instruction: what was the number of races aired only by fox ? ### Response:
SELECT COUNT("race title") FROM table_204_508 WHERE "tv" = 'fox'
### Instruction: How many minutes were played by Sue Bird? ### Response:
SELECT MIN(minutes) FROM table_24915964_4 WHERE player = "Sue Bird"
### Instruction: Who was the winner when the SEC team LSU played? ### Response:
SELECT "Winner" FROM table_23748 WHERE "SEC Team" = 'LSU'
### Instruction: Character Max Length Limits across the Site. ### Response:
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE CHARACTER_MAXIMUM_LENGTH > 0
### Instruction: What Viewers (m) has an Episode of school council? ### Response:
SELECT AVG(viewers__m_) FROM table_name_82 WHERE episode = "school council"
### Instruction: when was number 4102 entered into service ? ### Response:
SELECT "entered service" FROM table_203_27 WHERE "number" = 4102
### Instruction: Which opponents are on the date September 5? ### Response:
SELECT "Opponent" FROM table_26189 WHERE "Date" = 'September 5'
### Instruction: Who was the home team when millwall was the away team? ### Response:
SELECT "Home team" FROM table_48129 WHERE "Away team" = 'millwall'
### Instruction: Which average lost that has a match less than 14? ### Response:
SELECT AVG("Lost") FROM table_41175 WHERE "Match" < '14'
### Instruction: What date is the crowd larger than 20,000? ### Response:
SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 000
### Instruction: What circuit was on June 1 with a class of both? ### Response:
SELECT circuit FROM table_name_16 WHERE class = "both" AND date = "june 1"
### Instruction: What Home team had an Attendance of 2,776? ### Response:
SELECT home_team FROM table_name_12 WHERE attendance = "2,776"
### Instruction: how many games are there before 1990 ? ### Response:
SELECT COUNT("game") FROM table_204_121 WHERE "year" < 1990
### Instruction: Which name has a License of gpl, and a Platform of windows? ### Response:
SELECT name FROM table_name_47 WHERE license = "gpl" AND platform = "windows"
### Instruction: which is the only device to have the flash memory array note ? ### Response:
SELECT "device" FROM table_204_152 WHERE "notes" = 'flash memory array'
### Instruction: What type of school is Jefferson College of Health Sciences? ### Response:
SELECT type FROM table_2076608_1 WHERE school = "Jefferson College of Health Sciences"
### Instruction: name the title of the episode with production code 201 ### Response:
SELECT "Title" FROM table_30274 WHERE "Production code" = '201'
### Instruction: How many new entries this round have clubs 2 1? ### Response:
SELECT new_entries_this_round FROM table_name_58 WHERE clubs = "2 → 1"
### Instruction: Show me the proportion on how many different locations does each school have? ### Response:
SELECT SCHOOL_CODE, COUNT(DISTINCT DEPT_ADDRESS) FROM DEPARTMENT
### Instruction: What is the equation where the 3rd throw is 7? ### Response:
SELECT "Equation" FROM table_72857 WHERE "3rd throw" = '7'
### Instruction: How many votes were cast in Wayne county? ### Response:
SELECT MAX(total__number) FROM table_13625792_1 WHERE county = "Wayne"
### Instruction: Bronze smaller than 5, and a Silver larger than 0 is which nation? ### Response:
SELECT nation FROM table_name_66 WHERE bronze < 5 AND silver > 0
### Instruction: Name the height for demetrius jemison ### Response:
SELECT "Height" FROM table_27603 WHERE "Name" = 'Demetrius Jemison'
### Instruction: what's the boiling point of diethyl ether? ### Response:
SELECT boiling_point FROM table_name_74 WHERE solvent = "diethyl ether"
### Instruction: What player was born in 1983? ### Response:
SELECT player FROM table_12962773_16 WHERE year_born = 1983
### Instruction: What district did S. William Green belong to? ### Response:
SELECT "District" FROM table_18326 WHERE "Incumbent" = 'S. William Green'
### Instruction: What Player comes from the Hometown of Wichita, KS? ### Response:
SELECT player FROM table_name_75 WHERE hometown = "wichita, ks"
### Instruction: What is the duration for mike walling as the actor? ### Response:
SELECT "Duration" FROM table_36174 WHERE "Actor" = 'mike walling'
### Instruction: What is the away team of the game with an attendance of 117? ### Response:
SELECT away_team FROM table_name_58 WHERE attendance = 117
### Instruction: On what day was the attendance that had a Tie value of 40? ### Response:
SELECT attendance FROM table_name_84 WHERE tie_no = "40"
### Instruction: how many total medals did the netherlands win ? ### Response:
SELECT "total" FROM table_203_707 WHERE "npc" = 'netherlands'
### Instruction: Which Song Sung has a Status of Eliminated? ### Response:
SELECT "Song Sung" FROM table_60182 WHERE "Status" = 'eliminated'
### Instruction: what year has the highest marcel granollers champions? ### Response:
SELECT MAX("Year") FROM table_4628 WHERE "Champion" = 'marcel granollers'
### Instruction: Name the general classification of stage 15 ### Response:
SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = "15"
### Instruction: calculate the total number of patients aged below 24 ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "24"
### Instruction: how many seasons did he race in team Carlin? ### Response:
SELECT COUNT(podiums) FROM table_26400438_1 WHERE team = "Carlin"
### Instruction: Stack overflow users count for each country. ### Response:
SELECT * FROM (SELECT COUNT(Id) AS UserCount, Location FROM Users AS u GROUP BY Location) AS K ORDER BY UserCount DESC
### Instruction: What placement gets more than $400? ### Response:
SELECT "Place" FROM table_67009 WHERE "Money ( $ )" > '400'
### Instruction: Which location has a time of 9:30pm? ### Response:
SELECT "Location" FROM table_24296 WHERE "Time" = '9:30PM'
### Instruction: What is the score of New York team before game 61? ### Response:
SELECT score FROM table_name_63 WHERE game < 61 AND team = "new york"
### Instruction: When 5 is the game who has the highest amount of points? ### Response:
SELECT high_points FROM table_22883210_11 WHERE game = 5
### Instruction: In what Season does the Internazionale Club have more than 2 Apps? ### Response:
SELECT season FROM table_name_90 WHERE apps > 2 AND club = "internazionale"
### Instruction: What location has an annual change of 7.6% ### Response:
SELECT "Location" FROM table_75706 WHERE "Annual change" = '7.6%'
### Instruction: What are the earliest year with games played fewer than 2? ### Response:
SELECT MIN("First game") FROM table_15387 WHERE "Played" < '2'
### Instruction: Who is the goalkeeper with fewer than 24 goals? ### Response:
SELECT "Goalkeeper" FROM table_61754 WHERE "Goals" < '24'
### Instruction: What kind of school is Canton, New York? ### Response:
SELECT affiliation FROM table_16381914_1 WHERE location = "Canton, New York"
### Instruction: How many prisons is Joan Leaven connected with? ### Response:
SELECT COUNT("Prison connection") FROM table_31095 WHERE "Name" = 'Joan Leaven'
### Instruction: Which couple had a week 2 score of exactly 23? ### Response:
SELECT couple FROM table_28946565_2 WHERE week_2 = 23
### Instruction: How many T-260 EU aircrafts are currently in service? ### Response:
SELECT in_service FROM table_name_64 WHERE versions = "t-260 eu"
### Instruction: Whats the title of the episode with production code 109 ### Response:
SELECT "Title" FROM table_1377 WHERE "Production code" = '109'
### Instruction: What's the lowest Attendance for a Week of 2? ### Response:
SELECT MIN("Attendance") FROM table_39102 WHERE "Week" = '2'
### Instruction: What was the attendance at Windy Hill? ### Response:
SELECT MAX("Crowd") FROM table_56126 WHERE "Venue" = 'windy hill'
### Instruction: Give me the times and numbers of all trains that go to Chennai with a pie chart. ### Response:
SELECT time, train_number FROM train WHERE destination = 'Chennai'
### Instruction: Which Cover Model was featured on 8-03? ### Response:
SELECT "Cover model" FROM table_43058 WHERE "Date" = '8-03'
### Instruction: How many laps does luca badoer have? ### Response:
SELECT "Laps" FROM table_78485 WHERE "Driver" = 'luca badoer'