instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Which country has a $46,426 median family income? ### Response:
SELECT county FROM table_name_34 WHERE median_family_income = "$46,426"
### Instruction: how many number is located at registration f-bvff? ### Response:
SELECT COUNT(number) FROM table_1997759_1 WHERE registration = "F-BVFF"
### Instruction: Which Lost has a Position of 3, and a Drawn larger than 3? ### Response:
SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 3
### Instruction: What is the lowest caps for the Club of SBV Excelsior? ### Response:
SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior"
### Instruction: What was the final round score for the player from the Milwaukee Bucks? ### Response:
SELECT final_round FROM table_name_31 WHERE team = "milwaukee bucks"
### Instruction: Which Team/Chassis has less than 65 points? ### Response:
SELECT "Team/Chassis" FROM table_59161 WHERE "Pts." < '65'
### Instruction: What is the smallest Pick with Overall of 244? ### Response:
SELECT MIN("Pick") FROM table_60084 WHERE "Overall" = '244'
### Instruction: What is the result/score that has 6-5 as the record? ### Response:
SELECT "Result/Score" FROM table_43096 WHERE "Record" = '6-5'
### Instruction: Who was on the pole position at the monaco grand prix? ### Response:
SELECT "Pole Position" FROM table_16658 WHERE "Grand Prix" = 'Monaco Grand Prix'
### Instruction: what is the average number of goals for of the top 5 teams ? ### Response:
SELECT AVG("goals for") FROM table_203_145 WHERE "position" <= 5
### Instruction: What event did the shooter, who had 29 total points, compete in? ### Response:
SELECT "Event" FROM table_13115 WHERE "Total" = '29'
### Instruction: Band of am, and a Callsign of 6wh has what purpose? ### Response:
SELECT purpose FROM table_name_71 WHERE band = "am" AND callsign = "6wh"
### Instruction: Who is the player with an average of 35.42? ### Response:
SELECT "Player" FROM table_30780 WHERE "Average" = '35.42'
### Instruction: What is the sum of pick# for Don Majkowski?3 ### Response:
SELECT SUM("Pick #") FROM table_75180 WHERE "Player" = 'don majkowski'
### Instruction: in which tournament did the team score the most points per game ? ### Response:
SELECT "tournament" FROM table_203_527 ORDER BY "points per game" DESC LIMIT 1
### Instruction: Name the third place for anders j rryd ### Response:
SELECT "Third Place" FROM table_10645 WHERE "Runner-up" = 'anders järryd'
### Instruction: What is the total number of rounds at 5:36? ### Response:
SELECT COUNT("Round") FROM table_49387 WHERE "Time" = '5:36'
### Instruction: What was the score for the game played at Sarge Frye Field? ### Response:
SELECT score FROM table_name_15 WHERE site_stadium = "sarge frye field"
### Instruction: What are the Runner(s)-up of the 1956 Championship? ### Response:
SELECT runner_s__up FROM table_name_52 WHERE year = "1956"
### Instruction: Which episode number was directed by Bill Eagles? ### Response:
SELECT MIN("Series #") FROM table_72606 WHERE "Directed by" = 'Bill Eagles'
### Instruction: For entries with a lost of 5, what is the sum of the draw entry? ### Response:
SELECT SUM("Draw") FROM table_12409 WHERE "Lost" = '5'
### Instruction: How many runs when bangladesh was the fielding team? ### Response:
SELECT runs FROM table_1670921_2 WHERE fielding_team = "Bangladesh"
### Instruction: Which Country is the Play Electra and Orestes, The Trial from? ### Response:
SELECT country FROM table_name_82 WHERE play = "electra and orestes, the trial"
### Instruction: What is the location and what is the attendance of game 38? ### Response:
SELECT location_attendance FROM table_15780049_6 WHERE game = 38
### Instruction: What was the total Attendance for Games while Chicago was the visiting Team? ### Response:
SELECT SUM("Attendance") FROM table_52448 WHERE "Visitor" = 'chicago'
### Instruction: Tell me the score on 1978-12-16 ### Response:
SELECT score FROM table_name_91 WHERE date = "1978-12-16"
### Instruction: What is City of License, when Frequency is greater than 1380? ### Response:
SELECT city_of_license FROM table_name_80 WHERE frequency > 1380
### Instruction: What week did they play the amsterdam admirals? ### Response:
SELECT MAX(week) FROM table_24278858_2 WHERE opponent = "Amsterdam Admirals"
### Instruction: Which Venue has a crowd larger than 25,000? ### Response:
SELECT away_team FROM table_name_83 WHERE crowd > 25 OFFSET 000
### Instruction: What was the score for the game in which Al-Qadsia was Team 2? ### Response:
SELECT score FROM table_name_55 WHERE team_2 = "al-qadsia"
### Instruction: What is the total number of captains with different classes?, and list Y in descending order please. ### Response:
SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY COUNT(Class) DESC
### Instruction: Who is the designer of the Christmas: Winter Fun (USA) stamp? ### Response:
SELECT "Design" FROM table_368 WHERE "Theme" = 'Christmas: Winter Fun (USA)'
### Instruction: Name the least game for january 29 ### Response:
SELECT MIN(game) FROM table_23286112_8 WHERE date = "January 29"
### Instruction: What was the time of the driver who had a grid of 22? ### Response:
SELECT "Time/Retired" FROM table_11188 WHERE "Grid" = '22'
### Instruction: How many games have 23 goals with a rank greater than 9? ### Response:
SELECT COUNT(games) FROM table_name_62 WHERE goals = 23 AND rank > 9
### Instruction: How scored the most points where the record is 3-0 for the season? ### Response:
SELECT "High points" FROM table_25867 WHERE "Record" = '3-0'
### Instruction: Who has the high points when 3-2 is the series? ### Response:
SELECT high_points FROM table_22871316_11 WHERE series = "3-2"
### Instruction: What is the total word count with a subframe count greater than 3? ### Response:
SELECT SUM("Word #") FROM table_78075 WHERE "Subframe #" > '3'
### Instruction: When was the Hamaoka-4 unit commercial operation date? ### Response:
SELECT "Commercial Operation" FROM table_53327 WHERE "Unit" = 'hamaoka-4'
### Instruction: What is the score of the game that was a loss to Dotson (2-3)? ### Response:
SELECT score FROM table_name_34 WHERE loss = "dotson (2-3)"
### Instruction: patients with known lvef <= 40 % ### Response:
SELECT * FROM table_test_28 WHERE left_ventricular_ejection_fraction_lvef <= 40
### Instruction: What district was incumbent Jerry Kleczka in? ### Response:
SELECT district FROM table_1341472_51 WHERE incumbent = "Jerry Kleczka"
### Instruction: what's the pole position with location being hockenheimring ### Response:
SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring"
### Instruction: Number of posts with 'API' in their title. ### Response:
SELECT COUNT(DISTINCT Id) FROM Posts AS p WHERE p.PostTypeId = 1 AND Title LIKE '% API %'
### Instruction: What was the date of the game against Hayes & Yeading United? ### Response:
SELECT date FROM table_name_60 WHERE opponent = "hayes & yeading united"
### Instruction: Which units are commanded by Lieutenant Colonel Francis Hepburn? ### Response:
SELECT unit FROM table_11793221_2 WHERE commander = "Lieutenant Colonel Francis Hepburn"
### Instruction: What position(s) did the player(s) with a pick number of 125 play? ### Response:
SELECT position FROM table_name_38 WHERE pick__number = 125
### Instruction: What time was the match that had an attendance of 22,329? ### Response:
SELECT time FROM table_name_99 WHERE attendance = "22,329"
### Instruction: How many points were there scored on October 27? ### Response:
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27"
### Instruction: What was the 1st leg when Team 2 was Aurora? ### Response:
SELECT "1st leg" FROM table_68947 WHERE "Team 2" = 'aurora'
### Instruction: Which date had a final score of 20-27? ### Response:
SELECT "Date" FROM table_68807 WHERE "Final Score" = '20-27'
### Instruction: Who was the pole position for the rnd equalling 12? ### Response:
SELECT pole_position FROM table_10707176_2 WHERE rnd = "12"
### Instruction: What was the date for the G1 group race at Flemington? ### Response:
SELECT date FROM table_name_98 WHERE group = "g1" AND venue = "flemington"
### Instruction: Who was the visiting team at Raymond James Stadium? ### Response:
SELECT "Visiting Team" FROM table_68078 WHERE "Stadium" = 'raymond james stadium'
### Instruction: What was the year of the competition in which Odd Grenland was the runner-up? ### Response:
SELECT years FROM table_name_57 WHERE runners_up = "odd grenland"
### Instruction: What date was the game with a record of 47 39? ### Response:
SELECT "Date" FROM table_71034 WHERE "Record" = '47–39'
### Instruction: What is the smallest round with a Grand Prix of indian gp? ### Response:
SELECT MIN(round) FROM table_name_74 WHERE grand_prix = "indian gp"
### Instruction: When South Melbourne was the home team, who was the away team? ### Response:
SELECT "Away team" FROM table_55103 WHERE "Home team" = 'south melbourne'
### Instruction: how many players went to the miami dolphins ? ### Response:
SELECT COUNT("player") FROM table_204_70 WHERE "nfl team" = 'miami dolphins'
### Instruction: who is the candidate where district is louisiana 3? ### Response:
SELECT "Candidates" FROM table_18536 WHERE "District" = 'Louisiana 3'
### Instruction: What is the longitude of the feature named Razia Patera? ### Response:
SELECT longitude FROM table_16799784_8 WHERE name = "Razia Patera"
### Instruction: Name the score for 26 may 1997 ### Response:
SELECT "Score" FROM table_14604 WHERE "Date" = '26 may 1997'
### Instruction: What is the series episode number of 'Taxi Dance'? ### Response:
SELECT MIN("No. in series") FROM table_29532 WHERE "Title" = 'Taxi Dance'
### Instruction: What gender is Luc Desnoyers? ### Response:
SELECT "Gender" FROM table_80146 WHERE "Candidate's Name" = 'luc desnoyers'
### Instruction: What is the IUPAC name for chloroform? ### Response:
SELECT "IUPAC name" FROM table_35703 WHERE "Common name" = 'chloroform'
### Instruction: What grid has a Time/Retired of +5 laps? ### Response:
SELECT "Grid" FROM table_11087 WHERE "Time/Retired" = '+5 laps'
### Instruction: Who wrote episode number 149 in the series? ### Response:
SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149
### Instruction: What is the number in January for Philadelphia Flyers as opponents? ### Response:
SELECT COUNT(january) FROM table_name_30 WHERE opponent = "philadelphia flyers"
### Instruction: Stack bar chart of how many home team vs Away_team based on home team ### Response:
SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Away_team, Home_team
### Instruction: What is the total when silver is less than 1 and rank larger than 3? ### Response:
SELECT COUNT(total) FROM table_name_82 WHERE silver < 1 AND rank > 3
### Instruction: What is the record for Big Ten Team #4 Purdue? ### Response:
SELECT winner FROM table_23058971_8 WHERE big_ten_team = "#4 Purdue"
### Instruction: Who was the incumbent who was first elected in 1876? ### Response:
SELECT incumbent FROM table_name_43 WHERE first_elected = "1876"
### Instruction: Which Notes have a Distance larger than 7, and a Location of aplin? ### Response:
SELECT notes FROM table_name_62 WHERE distance > 7 AND location = "aplin"
### Instruction: What country'c capital is santiago? ### Response:
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Santiago"
### Instruction: What college has a pick smaller than 87 for the position of tackle? ### Response:
SELECT college FROM table_name_73 WHERE position = "tackle" AND pick < 87
### Instruction: What venue features hawthorn as the away team? ### Response:
SELECT "Venue" FROM table_32372 WHERE "Away team" = 'hawthorn'
### Instruction: Who won the Gold Medal in Moscow after the year 1982? ### Response:
SELECT gold FROM table_name_55 WHERE year > 1982 AND place = "moscow"
### Instruction: What is the least amount of draws with an against of 1261? ### Response:
SELECT MIN(draws) FROM table_name_16 WHERE against = 1261
### Instruction: What are the total enrollments of universities of each affiliation type. Plot them as bar chart. ### Response:
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation
### Instruction: Which Source has Terry McAuliffe of 36% ### Response:
SELECT "Source" FROM table_80321 WHERE "Terry McAuliffe" = '36%'
### Instruction: Name the wickets when overs bowled is 9 ### Response:
SELECT wickets FROM table_15700367_4 WHERE overs_bowled = "9"
### Instruction: The rider mike di meglio had a total of how many grids? ### Response:
SELECT COUNT(grid) FROM table_name_71 WHERE rider = "mike di meglio"
### Instruction: How many draft picks is player byron dafoe? ### Response:
SELECT COUNT("Pick #") FROM table_74347 WHERE "Player" = 'Byron Dafoe'
### Instruction: What are all the title directed by reginald hudlin ### Response:
SELECT COUNT("Title") FROM table_24701 WHERE "Directed by" = 'Reginald Hudlin'
### Instruction: what is the original air date for production code 216? ### Response:
SELECT "Original air date" FROM table_26492 WHERE "Production code" = '216'
### Instruction: Which Opponent is on 29 september 1997? ### Response:
SELECT opponent FROM table_name_70 WHERE date = "29 september 1997"
### Instruction: Which composer has a track length of 2:50? ### Response:
SELECT "Composer(s)" FROM table_53162 WHERE "Time" = '2:50'
### Instruction: Who was the host team at Candlestick Park? ### Response:
SELECT "Host Team" FROM table_68806 WHERE "Stadium" = 'candlestick park'
### Instruction: which movie was the first win ? ### Response:
SELECT "nominated work" FROM table_203_146 WHERE "result" = 'won' ORDER BY "year" LIMIT 1
### Instruction: What was the timeslot for the episode in the year 2008? ### Response:
SELECT "Timeslot" FROM table_3554 WHERE "Year" = '2008'
### Instruction: What draw has a Span of 1987-1999? ### Response:
SELECT draw FROM table_name_85 WHERE span = "1987-1999"
### Instruction: What was the loss when the record was 34-56? ### Response:
SELECT "Loss" FROM table_56275 WHERE "Record" = '34-56'
### Instruction: Where was the game and what was the attendance on April 3? ### Response:
SELECT "Location Attendance" FROM table_74160 WHERE "Date" = 'April 3'
### Instruction: Return the names and ids of customers who have TN in their address. Show a pie chart. ### Response:
SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE "%TN%"
### Instruction: What competition was held 1 March 1909? ### Response:
SELECT "Competition" FROM table_4377 WHERE "Date" = '1 march 1909'
### Instruction: Name the high rebounds for american airlines center ### Response:
SELECT high_rebounds FROM table_22879323_9 WHERE location_attendance = "American Airlines Center"
### Instruction: at which location has the east west game been played the most ? ### Response:
SELECT "location" FROM table_203_636 GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: What year was the building completed that has 10 floors? ### Response:
SELECT AVG("Year completed") FROM table_75395 WHERE "Floors" = '10'
### Instruction: Name the max irish points for eastern michigan ### Response:
SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = "Eastern Michigan"
### Instruction: who was the trofeo fast team in stage 10? ### Response:
SELECT "Trofeo Fast Team" FROM table_78047 WHERE "Stage" = '10'