answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT director FROM table_name_57 WHERE title = "min dally nseek" AND result = "won" | Who is the director with the Min Dally Nseek title, and won? | CREATE TABLE table_name_57 (director VARCHAR, title VARCHAR, result VARCHAR) |
SELECT dorm_name FROM dorm WHERE student_capacity > 300 | Find the name of dorms that can accommodate more than 300 students. | CREATE TABLE dorm (dorm_name VARCHAR, student_capacity INTEGER) |
SELECT MAX(grid) FROM table_name_90 WHERE time = "+0.283" | What driver had the highest grid position with a time of +0.283? | CREATE TABLE table_name_90 (grid INTEGER, time VARCHAR) |
SELECT club FROM table_name_18 WHERE losing_bonus = "1" | Which Club has 1 Losing bonus? | CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR) |
SELECT result FROM table_name_97 WHERE attendance = "63,443" | Which stadium can hold 63,443 people? | CREATE TABLE table_name_97 (result VARCHAR, attendance VARCHAR) |
SELECT away_team AS score FROM table_name_61 WHERE venue = "victoria park" | When the Venue was victoria park, what was the Away team score? | CREATE TABLE table_name_61 (away_team VARCHAR, venue VARCHAR) |
SELECT score FROM table_name_7 WHERE record = "22-55" | What is the score of the game where the record was 22-55? | CREATE TABLE table_name_7 (score VARCHAR, record VARCHAR) |
SELECT COUNT(won) FROM table_14070062_4 WHERE points_for = "490" | tell how many wins there was when the score was 490 | CREATE TABLE table_14070062_4 (won VARCHAR, points_for VARCHAR) |
SELECT reason_for_vacancy FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)" | When rudolph kleberg (d) is the successor is the reason for vacancy? | CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, successor VARCHAR) |
SELECT home_team FROM table_name_73 WHERE venue = "junction oval" | Who was the home team at the game held at the Junction Oval? | CREATE TABLE table_name_73 (home_team VARCHAR, venue VARCHAR) |
SELECT attendance FROM table_name_74 WHERE home = "cleveland" AND date = "january 30" | What is Attendance, when Home is Cleveland, and when Date is January 30? | CREATE TABLE table_name_74 (attendance VARCHAR, home VARCHAR, date VARCHAR) |
SELECT SUM(week) FROM table_name_33 WHERE result = "w 38-24" AND attendance < 43 OFFSET 449 | What's the week when the result was W 38-24 and attendance was less than 43,449? | CREATE TABLE table_name_33 (week INTEGER, result VARCHAR, attendance VARCHAR) |
SELECT registration FROM table_1997759_1 WHERE first_flew = "31 January 1975" | what is the registration located on 31 january 1975 where first flew? | CREATE TABLE table_1997759_1 (registration VARCHAR, first_flew VARCHAR) |
SELECT no FROM table_23670057_7 WHERE player = "Aigars Vitols" | What is every number when the player is Aigars Vitols? | CREATE TABLE table_23670057_7 (no VARCHAR, player VARCHAR) |
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY COUNT(*) DESC LIMIT 1 | Find the city with the most number of stores. | CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR) |
SELECT league FROM table_name_90 WHERE year = "1996" | Name the league for 1996 | CREATE TABLE table_name_90 (league VARCHAR, year VARCHAR) |
SELECT 2008 FROM table_name_30 WHERE tournament = "hamburg masters" | What is the 2008 value of the hamburg masters? | CREATE TABLE table_name_30 (tournament VARCHAR) |
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17 | How many losses has more than 59 goals against and more than 17 position? | CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR) |
SELECT SUM(finishes) FROM table_name_90 WHERE points > 337 AND starts > 26 | what is the finishes when points is more than 337 and starts is more than 26? | CREATE TABLE table_name_90 (finishes INTEGER, points VARCHAR, starts VARCHAR) |
SELECT name FROM table_name_75 WHERE rank < 6 AND year > 1974 | I want the name for rank less than 6 and year more than 1974 | CREATE TABLE table_name_75 (name VARCHAR, rank VARCHAR, year VARCHAR) |
SELECT second FROM table_name_90 WHERE lead = "michel gribi" | Who is the Second when Michel Gribi is the lead? | CREATE TABLE table_name_90 (second VARCHAR, lead VARCHAR) |
SELECT date FROM table_name_95 WHERE venue = "brisbane cricket ground" | On what date was the venue at Brisbane Cricket Ground? | CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR) |
SELECT result FROM table_name_17 WHERE year = 2009 AND award = "sopot international song festival" | What result took pace in 2009 and had an award of sopot international song festival? | CREATE TABLE table_name_17 (result VARCHAR, year VARCHAR, award VARCHAR) |
SELECT streak FROM table_name_9 WHERE record = "21β22" | Which Streak has a Record of 21β22? | CREATE TABLE table_name_9 (streak VARCHAR, record VARCHAR) |
SELECT location FROM table_name_14 WHERE stop = "l" AND station = "tamagaki" | What is the location of Tamagaki station with an l stop? | CREATE TABLE table_name_14 (location VARCHAR, stop VARCHAR, station VARCHAR) |
SELECT 2007 FROM table_name_16 WHERE 2008 = "grand slam tournaments" | What is the 2007 of the Grand Slam Tournaments in 2008? | CREATE TABLE table_name_16 (Id VARCHAR) |
SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes" | yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast? | CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) |
SELECT country FROM table_name_99 WHERE date = "december 8, 1968" | What was the nationality of the winner on December 8, 1968? | CREATE TABLE table_name_99 (country VARCHAR, date VARCHAR) |
SELECT club FROM table_name_25 WHERE goals_against > 46 AND wins = 10 AND goal_difference = -24 | Which club has more than 46 goals, 10 wins, and a goal difference of -24? | CREATE TABLE table_name_25 (club VARCHAR, goal_difference VARCHAR, goals_against VARCHAR, wins VARCHAR) |
SELECT MAX(laps) AS Led FROM table_17693171_1 WHERE laps = 191 | If the laps is 191, what is the maximum laps led? | CREATE TABLE table_17693171_1 (laps INTEGER) |
SELECT AVG(grid) FROM table_name_25 WHERE bike = "suzuki gsx-r1000" AND rider = "fonsi nieto" | What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000? | CREATE TABLE table_name_25 (grid INTEGER, bike VARCHAR, rider VARCHAR) |
SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 2008" | How many goals were scored on 21 Junio 2008? | CREATE TABLE table_name_26 (goal VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie" | How many staff have the first name Ludie? | CREATE TABLE Staff (first_name VARCHAR) |
SELECT score FROM table_name_48 WHERE country = "united states" AND place = "t2" AND player = "tom watson" | Can you tell me the Score that has the Country of united states, and the Place of t2, and the Player of tom watson? | CREATE TABLE table_name_48 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) |
SELECT player FROM table_name_7 WHERE place = "t6" AND score = 72 - 68 - 72 = 212 | Who is the player with a t6 place and a 72-68-72=212 score? | CREATE TABLE table_name_7 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT Name FROM climber ORDER BY Points DESC | List the names of climbers in descending order of points. | CREATE TABLE climber (Name VARCHAR, Points VARCHAR) |
SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.3" | What's the number of starts in the year with 19.3 average finish? | CREATE TABLE table_1909647_2 (starts INTEGER, avg_finish VARCHAR) |
SELECT city FROM Addresses ORDER BY city | List all cities of addresses in alphabetical order. | CREATE TABLE Addresses (city VARCHAR) |
SELECT winning_team FROM table_name_84 WHERE winning_driver = "jonathan bomarito" AND fastest_lap = "jonathan summerton" | What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap? | CREATE TABLE table_name_84 (winning_team VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) |
SELECT score FROM table_name_75 WHERE march > 19 AND game = 67 | After March 19, what's the score of game 67? | CREATE TABLE table_name_75 (score VARCHAR, march VARCHAR, game VARCHAR) |
SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1 | What is the average number of gold medals with more than 1 bronze medal? | CREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER) |
SELECT MAX(_number_of_total_votes) FROM table_19769687_3 WHERE election = "1878" | Name the most number of total votes for election for 1878 | CREATE TABLE table_19769687_3 (_number_of_total_votes INTEGER, election VARCHAR) |
SELECT SUM(overall) FROM table_name_58 WHERE round > 7 AND position = "c" | What was the Overall number for the player with a position of C and a round greater than 7? | CREATE TABLE table_name_58 (overall INTEGER, round VARCHAR, position VARCHAR) |
SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = "Anthony" | List the airport code and name in the city of Anthony. | CREATE TABLE AIRPORTS (AirportCode VARCHAR, AirportName VARCHAR, city VARCHAR) |
SELECT composition FROM table_name_37 WHERE founded = 1976 | What composition was founded in 1976? | CREATE TABLE table_name_37 (composition VARCHAR, founded VARCHAR) |
SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = "141" | How many solar eclipse during august 21-22 and January 15-16 is 141? | CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, january_15_16 VARCHAR) |
SELECT AVG(crowd) FROM table_name_13 WHERE away_team = "geelong" | What is geelong's aberage crowd as Away Team? | CREATE TABLE table_name_13 (crowd INTEGER, away_team VARCHAR) |
SELECT signed FROM table_name_50 WHERE school = "university of southern california" | Was the University of Southern California Signed? | CREATE TABLE table_name_50 (signed VARCHAR, school VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman" | What is the college/junior/club team (league) of left wing Ondrej Roman? | CREATE TABLE table_name_62 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR) |
SELECT date FROM table_16387700_1 WHERE away_team = "Richmond" | Name the date for richmond | CREATE TABLE table_16387700_1 (date VARCHAR, away_team VARCHAR) |
SELECT MAX(grid) FROM table_name_22 WHERE manufacturer = "aprilia" AND time_retired = "+1.660" | What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660? | CREATE TABLE table_name_22 (grid INTEGER, manufacturer VARCHAR, time_retired VARCHAR) |
SELECT points FROM table_16729457_18 WHERE equipment = "KTM-VMC" | What are the points for ktm-vmc equipment? | CREATE TABLE table_16729457_18 (points VARCHAR, equipment VARCHAR) |
SELECT place FROM table_name_97 WHERE country = "south africa" | What place did the player from South Africa finish? | CREATE TABLE table_name_97 (place VARCHAR, country VARCHAR) |
SELECT COUNT(constr) FROM table_12707313_2 WHERE first_win = "1978 Brazilian Grand Prix" | Name the number of constr with the first win at the 1978 brazilian grand prix | CREATE TABLE table_12707313_2 (constr VARCHAR, first_win VARCHAR) |
SELECT place_of_birth FROM table_name_94 WHERE elector = "laborante de panormo" | What is the place of birth for the elector Laborante de Panormo? | CREATE TABLE table_name_94 (place_of_birth VARCHAR, elector VARCHAR) |
SELECT 1980 FROM table_name_22 WHERE 1978 = "2.3" | what is 1980 when 1978 is 2.3? | CREATE TABLE table_name_22 (Id VARCHAR) |
SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s" | Tell me the constellation which has a right ascension of 18h17m41.1s | CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois" | What is the type of turbine having fewer than 17 units and located in County Laois? | CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR) |
SELECT manufacturer FROM table_2267465_1 WHERE team = "Race Hill Farm team" | Can you tell me the manufacturer behind Race Hill Farm Team? | CREATE TABLE table_2267465_1 (manufacturer VARCHAR, team VARCHAR) |
SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = "7" AND wk_10 > 2 AND wk_7 = "5" AND wk_11 < 2 | What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2? | CREATE TABLE table_name_13 (wk_9 INTEGER, wk_11 VARCHAR, wk_7 VARCHAR, wk_6 VARCHAR, wk_10 VARCHAR) |
SELECT kit_maker FROM table_name_42 WHERE team = "aston villa" | Which kit maker does Aston Villa use? | CREATE TABLE table_name_42 (kit_maker VARCHAR, team VARCHAR) |
SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = "Karen Gaviola" | What episode was directed by Karen Gaviola? | CREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR) |
SELECT catalog FROM table_name_5 WHERE label = "geffen records / universal music special markets" | What Catalog has a Label of geffen records / universal music special markets? | CREATE TABLE table_name_5 (catalog VARCHAR, label VARCHAR) |
SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college) | What is the number of states that has some colleges whose enrollment is smaller than the average enrollment? | CREATE TABLE college (state VARCHAR, enr INTEGER) |
SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = "19:56" | What is the time for the bike (40km) when the swim (1.5km) is 19:56? | CREATE TABLE table_name_38 (bike__40km_ VARCHAR, swim__15km_ VARCHAR) |
SELECT MAX(2010) FROM table_name_94 WHERE state = "fl" AND major_city_served = "miami" | What is the greatest 2010 for Miami, Fl? | CREATE TABLE table_name_94 (state VARCHAR, major_city_served VARCHAR) |
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne" | What was the away team when the home team was South Melbourne? | CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR) |
SELECT result FROM table_1346118_5 WHERE incumbent = "Clarence F. Lea" | What was the result of the election when Clarence F. Lea was the incumbent? | CREATE TABLE table_1346118_5 (result VARCHAR, incumbent VARCHAR) |
SELECT country FROM table_name_1 WHERE of_1 = "locotenent" | What country has OF-1 Locotenent? | CREATE TABLE table_name_1 (country VARCHAR, of_1 VARCHAR) |
SELECT family_families FROM table_19897294_8 WHERE no_overall = "UK31" | Name the family for uk31 | CREATE TABLE table_19897294_8 (family_families VARCHAR, no_overall VARCHAR) |
SELECT regular_season FROM table_1241987_1 WHERE playoffs = "division Finals" | Which regular season contains playoffs in division finals? | CREATE TABLE table_1241987_1 (regular_season VARCHAR, playoffs VARCHAR) |
SELECT specimen_weight_size FROM table_26211058_1 WHERE calculated_activity___ci__ = "4.96Γ10 β11" | If the calculated activity (CI) is 4.96Γ10 β11, what is the specimen weight/size? | CREATE TABLE table_26211058_1 (specimen_weight_size VARCHAR, calculated_activity___ci__ VARCHAR) |
SELECT name FROM table_name_45 WHERE team = "st. paul a.c." AND birthdate = "3 august 1890" | What is the Name when the team is the st. paul a.c., with a Birthdate of 3 august 1890? | CREATE TABLE table_name_45 (name VARCHAR, team VARCHAR, birthdate VARCHAR) |
SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the stadium name and capacity with most number of concerts in year 2014 or after. | CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, year VARCHAR) |
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973" | What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"? | CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) |
SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = "antonio davis (12)" | What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds? | CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR) |
SELECT method FROM table_name_98 WHERE event = "ufc 44" | The UFC 44 event has what method? | CREATE TABLE table_name_98 (method VARCHAR, event VARCHAR) |
SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 | Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. | CREATE TABLE submission (College VARCHAR, Scores INTEGER) |
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57" | Who directed the episode that had 0.57 million U.S. viewers? | CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT MAX(pick) FROM table_name_53 WHERE college = "united states international university" | For the United States International University, what was the highest pick number allowed? | CREATE TABLE table_name_53 (pick INTEGER, college VARCHAR) |
SELECT country FROM table_name_96 WHERE label = "hydra head records" AND date = "february 2005" | Which country has Hydra Head Records on February 2005? | CREATE TABLE table_name_96 (country VARCHAR, label VARCHAR, date VARCHAR) |
SELECT result FROM table_name_15 WHERE district = "ohio 6" | Which result was in the district of ohio 6? | CREATE TABLE table_name_15 (result VARCHAR, district VARCHAR) |
SELECT COUNT(bronze) FROM table_name_75 WHERE silver > 0 AND gold > 3 AND rank = "1" | What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1? | CREATE TABLE table_name_75 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR) |
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar" | Which bridge is located in Nectar, in Blount County? | CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR) |
SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = "bellbrook hs" AND silver_medals < 1 | How many gold medals for bellbrook HS with less than 1 silver? | CREATE TABLE table_name_73 (gold_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR) |
SELECT date FROM table_name_94 WHERE result = "w 14-10" | What date has w 14-10 as the result? | CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR) |
SELECT record FROM table_22879323_9 WHERE score = "L 90β100 (OT)" | Name the record for l 90β100 (ot) | CREATE TABLE table_22879323_9 (record VARCHAR, score VARCHAR) |
SELECT location_attendance FROM table_22879262_7 WHERE game = 27 | what is the location attendance for game 27? | CREATE TABLE table_22879262_7 (location_attendance VARCHAR, game VARCHAR) |
SELECT event FROM table_name_16 WHERE venue = "chihuahua, mexico" | What event was held in Chihuahua, Mexico? | CREATE TABLE table_name_16 (event VARCHAR, venue VARCHAR) |
SELECT COUNT(position) FROM table_name_7 WHERE losses = 1 AND conceded > 9 | What is the total number of positions having 1 loss and more than 9 conceded? | CREATE TABLE table_name_7 (position VARCHAR, losses VARCHAR, conceded VARCHAR) |
SELECT model__list_ FROM table_24099916_1 WHERE tdp = "5.5 W" | What's the model of the processor with a 5.5 w TDP? | CREATE TABLE table_24099916_1 (model__list_ VARCHAR, tdp VARCHAR) |
SELECT away_team AS score FROM table_name_66 WHERE home_team = "footscray" | What is footscray's away team score? | CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR) |
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21 | Tell me the average spectators for 2006-06-21 and time more than 21 | CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR) |
SELECT home FROM table_name_50 WHERE record = "2-4" | Who was the home team in the game with a record of 2-4? | CREATE TABLE table_name_50 (home VARCHAR, record VARCHAR) |
SELECT status FROM table_name_71 WHERE opposing_teams = "france" | What status has France as the opposing teams? | CREATE TABLE table_name_71 (status VARCHAR, opposing_teams VARCHAR) |
SELECT country FROM table_name_3 WHERE iata = "jfk" | Which country has an IATA of JFK? | CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) |
SELECT team FROM table_name_92 WHERE year = 2005 | What Team was in 2005? | CREATE TABLE table_name_92 (team VARCHAR, year VARCHAR) |
SELECT AVG(conceded) FROM table_name_68 WHERE position > 8 AND wins > 2 | What is the average conceded number of the team with a position lower than 8 and more than 2 wins? | CREATE TABLE table_name_68 (conceded INTEGER, position VARCHAR, wins VARCHAR) |
SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam" | what is the highest gold when the rank is 12 for the nation vietnam? | CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR) |
SELECT opponent_in_the_final FROM table_22839669_1 WHERE score_in_the_final = "3β6, 4β6, 7β5, 4β6" | Who is the opponent in the match with final score 3β6, 4β6, 7β5, 4β6? | CREATE TABLE table_22839669_1 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.