answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT position FROM table_25539502_1 WHERE team = "FMS International" | What was his position when the team was FMS International? | CREATE TABLE table_25539502_1 (position VARCHAR, team VARCHAR) |
SELECT total FROM table_21249915_1 WHERE department = "Chuquisaca" | What is the total for Chuquisaca? | CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR) |
SELECT county FROM table_name_59 WHERE built = "1934" | Which county built a bridge in 1934? | CREATE TABLE table_name_59 (county VARCHAR, built VARCHAR) |
SELECT status FROM table_name_2 WHERE opposing_team = "gauteng falcons" | What status has gauteng falcons as the opposing team? | CREATE TABLE table_name_2 (status VARCHAR, opposing_team VARCHAR) |
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa" | What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa? | CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR) |
SELECT position FROM table_2182562_2 WHERE avg_finish = "21.5" | What was the position of the team with an average finish of 21.5? | CREATE TABLE table_2182562_2 (position VARCHAR, avg_finish VARCHAR) |
SELECT opponent FROM table_name_4 WHERE attendance = "78,883" | Which Opponent had an Attendance of 78,883? | CREATE TABLE table_name_4 (opponent VARCHAR, attendance VARCHAR) |
SELECT engine FROM table_name_66 WHERE introduced = "1935" | What engine was introduced in 1935? | CREATE TABLE table_name_66 (engine VARCHAR, introduced VARCHAR) |
SELECT COUNT(result) FROM table_17782308_1 WHERE week = 13 | How many results are listed for week 13? | CREATE TABLE table_17782308_1 (result VARCHAR, week VARCHAR) |
SELECT DISTINCT Director FROM film | List the distinct director of all films. | CREATE TABLE film (Director VARCHAR) |
SELECT time___et__ FROM table_14433719_1 WHERE opponent = "at Denver Broncos" | What time in eastern standard time was game held at denver broncos? | CREATE TABLE table_14433719_1 (time___et__ VARCHAR, opponent VARCHAR) |
SELECT round FROM table_name_26 WHERE time = "0:37" | Which Round has a Time of 0:37? | CREATE TABLE table_name_26 (round VARCHAR, time VARCHAR) |
SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id | What are the names , themes , and number of singers for every concert ? | CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR) |
SELECT family_relations FROM table_name_20 WHERE throne_name = "303" | What are the family relations of the king with the throne name 303? | CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR) |
SELECT 3 AS __f_ FROM table_name_1 WHERE verb = "khola" | What is the verb for Khola? | CREATE TABLE table_name_1 (verb VARCHAR) |
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+3.370 secs" | Which Laps is the highest one that has a Time/Retired of +3.370 secs? | CREATE TABLE table_name_52 (laps INTEGER, time_retired VARCHAR) |
SELECT date FROM table_name_6 WHERE game = 65 | What is Date, when Game is "65"? | CREATE TABLE table_name_6 (date VARCHAR, game VARCHAR) |
SELECT country FROM table_name_60 WHERE play = "electra" | What is the Country of the Play Electra? | CREATE TABLE table_name_60 (country VARCHAR, play VARCHAR) |
SELECT author FROM table_1620397_2 WHERE featuring = "Peri" AND released = "April 2010" | Name the author for peri and april 2010 | CREATE TABLE table_1620397_2 (author VARCHAR, featuring VARCHAR, released VARCHAR) |
SELECT COUNT(population__2000_census_) FROM table_22916979_2 WHERE census_designated_place = "Westmont" | what is the total number of population where census designated place is westmont? | CREATE TABLE table_22916979_2 (population__2000_census_ VARCHAR, census_designated_place VARCHAR) |
SELECT cuts_made FROM table_28540609_2 WHERE player = "Bernd Wiesberger" | How many cuts did Bernd Wiesberger make? | CREATE TABLE table_28540609_2 (cuts_made VARCHAR, player VARCHAR) |
SELECT away_team FROM table_name_35 WHERE venue = "lake oval" | What team has a Venue at Lake Oval? | CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen" | How many season did sportfreunde siegen win best supported club? | CREATE TABLE table_12272590_2 (season VARCHAR, best_supported_club VARCHAR) |
SELECT position FROM table_name_56 WHERE club_province = "perpignan" | What is the position of Perpignan? | CREATE TABLE table_name_56 (position VARCHAR, club_province VARCHAR) |
SELECT winner FROM table_14395920_2 WHERE points_classification = "Mark Cavendish" AND general_classification = "Rinaldo Nocentini" AND stage < 11.0 | Who won the stage when Mark Cavendish led the points classification, Rinaldo Nocentini led the general classification, and the stage was less than 11.0? | CREATE TABLE table_14395920_2 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR) |
SELECT album_title FROM table_name_25 WHERE original_label = "popup" | What is the title of the album that has Popup has the original label? | CREATE TABLE table_name_25 (album_title VARCHAR, original_label VARCHAR) |
SELECT originalairdate FROM table_16090262_1 WHERE tv_broadcast = "S07E04" | When was the show originally aired that had a TV broadcast of S07E04? | CREATE TABLE table_16090262_1 (originalairdate VARCHAR, tv_broadcast VARCHAR) |
SELECT MIN(series__number) FROM table_24639086_3 WHERE season__number = "2.08" | What is the series minimum if the season number is 2.08? | CREATE TABLE table_24639086_3 (series__number INTEGER, season__number VARCHAR) |
SELECT organisation FROM table_name_79 WHERE nominated_work_title = "n/a" AND year = 2005 | what is the organisation when the nominated work title is n/a in the year 2005? | CREATE TABLE table_name_79 (organisation VARCHAR, nominated_work_title VARCHAR, year VARCHAR) |
SELECT country FROM table_name_45 WHERE winner = "arnfinn bergmann" | The winner Arnfinn Bergmann has what under country? | CREATE TABLE table_name_45 (country VARCHAR, winner VARCHAR) |
SELECT high_assists FROM table_name_64 WHERE record = "28–40" | What is the High assists when the record was 28–40? | CREATE TABLE table_name_64 (high_assists VARCHAR, record VARCHAR) |
SELECT SUM(laps) FROM table_name_70 WHERE driver = "david coulthard" AND grid < 14 | How many Laps have a Driver of david coulthard, and a Grid smaller than 14? | CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE | Find the distinct first names of the students who have class senator votes. | CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_Senator_VOTE VARCHAR) |
SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = "Poblacion II" | Name the least population 2007 for barangay is poblacion ii | CREATE TABLE table_1686313_1 (population__2007_ INTEGER, barangay VARCHAR) |
SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = "south korea" | Name the Silver that has a Total smaller than 2, and a Nation of south korea? | CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR) |
SELECT game FROM table_name_22 WHERE opponent = "phoenix suns" | Which Game has an Opponent of phoenix suns? | CREATE TABLE table_name_22 (game VARCHAR, opponent VARCHAR) |
SELECT Company_name FROM phone GROUP BY Company_name HAVING COUNT(*) > 1 | List the name of the company that produced more than one phone model. | CREATE TABLE phone (Company_name VARCHAR) |
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon" | what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon? | CREATE TABLE table_name_32 (platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR) |
SELECT champion FROM table_name_65 WHERE venue = "berlin" AND attendance = "100,000" AND result = "2-0" | Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance? | CREATE TABLE table_name_65 (champion VARCHAR, result VARCHAR, venue VARCHAR, attendance VARCHAR) |
SELECT MIN(season) FROM table_name_38 WHERE profile = "advertising account manager" | What is the earliest season with an advertising account manager profile? | CREATE TABLE table_name_38 (season INTEGER, profile VARCHAR) |
SELECT equipment FROM table_name_46 WHERE points > 256 AND position = 3 | What is the Equipment that has a Point bigger than 256, and a Position of 3? | CREATE TABLE table_name_46 (equipment VARCHAR, points VARCHAR, position VARCHAR) |
SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker" | What platform was used for the game directed by Bryan Walker after 2006? | CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) |
SELECT score FROM table_name_12 WHERE h_a_n = "h" AND record = "12-24" | What was the score of the game with a H/A/N of H and a record of 12-24? | CREATE TABLE table_name_12 (score VARCHAR, h_a_n VARCHAR, record VARCHAR) |
SELECT team FROM table_name_95 WHERE class = "rotax light" | What is the name of the team whose class is Rotax Light? | CREATE TABLE table_name_95 (team VARCHAR, class VARCHAR) |
SELECT publisher FROM table_10875694_11 WHERE product_no = "SCUS-97265" | What publishers were involved with product number SCUS-97265? | CREATE TABLE table_10875694_11 (publisher VARCHAR, product_no VARCHAR) |
SELECT former_school FROM table_29418619_1 WHERE hometown = "North Port, FL" | What is the former school of the player from North Port, FL? | CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR) |
SELECT vacator FROM table_225100_4 WHERE district = "South Carolina 4th" | Who is the vacator when south carolina 4th is the district? | CREATE TABLE table_225100_4 (vacator VARCHAR, district VARCHAR) |
SELECT platelet_count FROM table_name_39 WHERE condition = "factor v deficiency" | Which Platelet count has a Condition of factor v deficiency? | CREATE TABLE table_name_39 (platelet_count VARCHAR, condition VARCHAR) |
SELECT COUNT(pick) FROM table_name_71 WHERE name = "george rosso" AND overall < 296 | What pick did George Rosso get drafted when the overall was less than 296? | CREATE TABLE table_name_71 (pick VARCHAR, name VARCHAR, overall VARCHAR) |
SELECT points FROM table_name_68 WHERE year > 1950 AND engine = "maserati straight-6" | What points larger than 1950 has a maserati straight-6 engine? | CREATE TABLE table_name_68 (points VARCHAR, year VARCHAR, engine VARCHAR) |
SELECT MAX(track) FROM table_name_12 WHERE japanese_title = "メロディー" | Which track has a Japanese title of メロディー? | CREATE TABLE table_name_12 (track INTEGER, japanese_title VARCHAR) |
SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id | What are the details of the lots which are not used in any transactions? | CREATE TABLE Lots (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE Lots (lot_details VARCHAR); CREATE TABLE transactions_lots (lot_id VARCHAR) |
SELECT home_team FROM table_name_71 WHERE date = "8 january 1946" AND tie_no = "4" | Who was the home team on 8 January 1946 with a tie no of 4? | CREATE TABLE table_name_71 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) |
SELECT rank FROM table_29218221_2 WHERE tues_31_may = "19' 02.34 118.903mph" | What is the rank of the rider whose Tues 31 May time was 19' 02.34 118.903mph? | CREATE TABLE table_29218221_2 (rank VARCHAR, tues_31_may VARCHAR) |
SELECT method_of_elimination FROM table_18598175_2 WHERE time = "32:32" | What was the styled used to defeat the opponent within the time frame of 32:32? | CREATE TABLE table_18598175_2 (method_of_elimination VARCHAR, time VARCHAR) |
SELECT party FROM table_1341453_22 WHERE district = "Maryland 6" | What party was the winner in the district Maryland 6? | CREATE TABLE table_1341453_22 (party VARCHAR, district VARCHAR) |
SELECT prothrombin_time FROM table_1226250_1 WHERE condition = "Uremia" | Is uremia affect prothrombin? | CREATE TABLE table_1226250_1 (prothrombin_time VARCHAR, condition VARCHAR) |
SELECT MIN(heat) FROM table_name_30 WHERE nationality = "bulgaria" AND result > 55.97 | Which Heat has a Nationality of bulgaria, and a Result larger than 55.97? | CREATE TABLE table_name_30 (heat INTEGER, nationality VARCHAR, result VARCHAR) |
SELECT AVG(points) FROM table_name_21 WHERE artist = "catcat" AND draw > 2 | How many points does catcat have with more than 2 draws? | CREATE TABLE table_name_21 (points INTEGER, artist VARCHAR, draw VARCHAR) |
SELECT location FROM table_name_72 WHERE event = "100m butterfly" | What is the Location, when Event is "100m Butterfly"? | CREATE TABLE table_name_72 (location VARCHAR, event VARCHAR) |
SELECT school FROM table_name_27 WHERE team = "kansas city royals" | What school has the Kansas City Royals for a team? | CREATE TABLE table_name_27 (school VARCHAR, team VARCHAR) |
SELECT location FROM table_13456202_1 WHERE mascot = "Eagles" | What are the locations with an eagles macot? | CREATE TABLE table_13456202_1 (location VARCHAR, mascot VARCHAR) |
SELECT new_channel_s_ FROM table_13549921_18 WHERE programme = "Gladiators" | What channel number is Gladiators on | CREATE TABLE table_13549921_18 (new_channel_s_ VARCHAR, programme VARCHAR) |
SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0 | What is the highest Shooting Total with a Bronze less than 0? | CREATE TABLE table_name_40 (total INTEGER, sport VARCHAR, bronze VARCHAR) |
SELECT tries_for FROM table_name_36 WHERE points_for = "190" | WHAT IS THE TRIES WITH POINTS 190? | CREATE TABLE table_name_36 (tries_for VARCHAR, points_for VARCHAR) |
SELECT home_team AS score FROM table_name_65 WHERE home_team = "carlton" | What was Carlton's score as the home team? | CREATE TABLE table_name_65 (home_team VARCHAR) |
SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = "Ahoada East" | What is the area when the Iga name is Ahoada East? | CREATE TABLE table_28891101_3 (area__km_2__ INTEGER, lga_name VARCHAR) |
SELECT SUM(district) FROM table_name_37 WHERE party = "democratic" AND home_town = "roby" | What district has a democratic leader from Roby? | CREATE TABLE table_name_37 (district INTEGER, party VARCHAR, home_town VARCHAR) |
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10 | What was the first year that the artist of every little thing ranked lower than 10? | CREATE TABLE table_name_56 (year INTEGER, artist VARCHAR, rank VARCHAR) |
SELECT chassis FROM table_21977704_1 WHERE constructor = "Alta" | Name the chassis for alta | CREATE TABLE table_21977704_1 (chassis VARCHAR, constructor VARCHAR) |
SELECT finish FROM table_name_6 WHERE year_s__won = "1991" | What is Finish, when Year(s) Won is "1991"? | CREATE TABLE table_name_6 (finish VARCHAR, year_s__won VARCHAR) |
SELECT MIN(poll_losses) FROM table_name_15 WHERE ties = 0 AND poll_wins > 1 AND wins < 2 | What is the lowest poll losses of the 0 ties, poll wins greater than 1 and wins less than 2? | CREATE TABLE table_name_15 (poll_losses INTEGER, wins VARCHAR, ties VARCHAR, poll_wins VARCHAR) |
SELECT nihon_shiki FROM table_26263954_1 WHERE english = "tea" | when english is tea how many nihon-shiki | CREATE TABLE table_26263954_1 (nihon_shiki VARCHAR, english VARCHAR) |
SELECT evening_gown FROM table_12094609_1 WHERE preliminaries = "8.977" | what's the evening gown where preliminaries is 8.977 | CREATE TABLE table_12094609_1 (evening_gown VARCHAR, preliminaries VARCHAR) |
SELECT result FROM table_name_7 WHERE year = 1970 AND location = "yankee stadium" | what is the result for 1970 at yankee stadium? | CREATE TABLE table_name_7 (result VARCHAR, year VARCHAR, location VARCHAR) |
SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang" | What are the notes where the authors are Zhou & Zhang? | CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR) |
SELECT region FROM table_name_16 WHERE venue = "thompson-boling arena" | In which region is the Thompson-Boling arena located? | CREATE TABLE table_name_16 (region VARCHAR, venue VARCHAR) |
SELECT MAX(losses) FROM table_name_91 WHERE central_murray = "lake boga" AND wins < 10 | What is the highest number of losses of the central murray of lake boga, which has less than 10 wins? | CREATE TABLE table_name_91 (losses INTEGER, central_murray VARCHAR, wins VARCHAR) |
SELECT MAX(planetary_mass___m) AS ⊕__ FROM table_name_5 WHERE rv__cm_s_ = 65 AND period__days_ < 21 | What is the highest planetary mass having an RV (cm/s) of 65 and a Period (days) less than 21? | CREATE TABLE table_name_5 (planetary_mass___m INTEGER, rv__cm_s_ VARCHAR, period__days_ VARCHAR) |
SELECT result FROM table_1342426_5 WHERE incumbent = "William J. Driver" | Name the result for william j. driver | CREATE TABLE table_1342426_5 (result VARCHAR, incumbent VARCHAR) |
SELECT tournament FROM table_name_16 WHERE winning_score = –27(65 - 68 - 64 - 64 = 261) | Which tournament ended with a winning score of –27 (65-68-64-64=261)? | CREATE TABLE table_name_16 (tournament VARCHAR, winning_score VARCHAR) |
SELECT max_power_output FROM table_2326823_2 WHERE model = "2.0 TS" AND peak_torque = "N·m (lb·ft) at 3,500 rpm" | List the max power produced for model 2.0 ts with peak of n·m (lb·ft) at 3,500 rpm. | CREATE TABLE table_2326823_2 (max_power_output VARCHAR, model VARCHAR, peak_torque VARCHAR) |
SELECT COUNT(game) FROM table_name_43 WHERE date = "april 7" | What is the game number on April 7? | CREATE TABLE table_name_43 (game VARCHAR, date VARCHAR) |
SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = "tba" AND car__number > 1 | WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012, TBA CURRENT CAR, AND MORE THAN 1 CAR? | CREATE TABLE table_name_95 (number_of_cars INTEGER, car__number VARCHAR, year_started VARCHAR, current_car VARCHAR) |
SELECT score FROM table_name_88 WHERE visiting_team = "edmonton drillers" AND date = "january 6, 2008" | What was the score for Edmonton Drillers on January 6, 2008? | CREATE TABLE table_name_88 (score VARCHAR, visiting_team VARCHAR, date VARCHAR) |
SELECT home_team FROM table_name_92 WHERE score = "101-93" | Who was the home team with a score of 101-93? | CREATE TABLE table_name_92 (home_team VARCHAR, score VARCHAR) |
SELECT method FROM table_name_72 WHERE time = "5:00" AND round < 3 AND res = "loss" AND event = "road fc 12" | What is the method of the match in the Road fc 12 at 5:00 with less than 3 rounds, and a loss result? | CREATE TABLE table_name_72 (method VARCHAR, event VARCHAR, res VARCHAR, time VARCHAR, round VARCHAR) |
SELECT SUM(pts) FROM table_name_11 WHERE pct < 0.1 | What is the sum of PTS when there is a PCT smaller than 0.1? | CREATE TABLE table_name_11 (pts INTEGER, pct INTEGER) |
SELECT wins FROM table_name_7 WHERE races > 16 | How many Wins in the Year with more than 16 Races? | CREATE TABLE table_name_7 (wins VARCHAR, races INTEGER) |
SELECT player FROM table_name_39 WHERE country = "united states" AND to_par = "–3" | WHo has a Country of united states and a To par of –3? | CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR) |
SELECT score FROM table_name_66 WHERE tournament = "antalya-belek" | What is the score in the touranament of Antalya-Belek? | CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR) |
SELECT miles__km_ FROM table_22648285_1 WHERE race_time = "2:47:11" | How many miles were driven in the race where the winner finished in 2:47:11? | CREATE TABLE table_22648285_1 (miles__km_ VARCHAR, race_time VARCHAR) |
SELECT date FROM table_name_88 WHERE venue = "state sports centre" | Which date had a venue of the State Sports Centre? | CREATE TABLE table_name_88 (date VARCHAR, venue VARCHAR) |
SELECT AVG(points) FROM table_name_12 WHERE engine = "ats v8" | What is the average points earned for entrants with ATS V8 engines? | CREATE TABLE table_name_12 (points INTEGER, engine VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay" | What's sawyer hannay's total pick number? | CREATE TABLE table_name_39 (pick__number VARCHAR, player VARCHAR) |
SELECT COUNT(weight) FROM table_name_28 WHERE block > 328 AND height > 207 AND spike > 375 | What is the Weight of the player with a Block larger than 328, Spike greater than 375 and Height larger than 207? | CREATE TABLE table_name_28 (weight VARCHAR, spike VARCHAR, block VARCHAR, height VARCHAR) |
SELECT away_team FROM table_name_33 WHERE home_team = "st kilda" | in a game against st kilda, what was the away team's score? | CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) |
SELECT position FROM table_name_25 WHERE crewe_alexandra_career = "1988–1990" AND goals = 31 | What is the position when the Crewe Alexandra career is 1988–1990, with 31 goals? | CREATE TABLE table_name_25 (position VARCHAR, crewe_alexandra_career VARCHAR, goals VARCHAR) |
SELECT circuit FROM table_1140105_6 WHERE race_name = "II Danish Grand Prix" | What is the name of the circuit in which the race name is ii danish grand prix? | CREATE TABLE table_1140105_6 (circuit VARCHAR, race_name VARCHAR) |
SELECT date_of_appointment FROM table_name_53 WHERE outgoing_manager = "javier aguirre" | What was the date of appointment for javier aguirre's replacement? | CREATE TABLE table_name_53 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.