question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Frequency MHz of 93.7 has what class?
CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR)
SELECT class FROM table_name_4 WHERE frequency_mhz = 93.7
How many uninterrupted ranks does john dingell have?
CREATE TABLE table_name_87 (uninterrupted_rank VARCHAR, name VARCHAR)
SELECT COUNT(uninterrupted_rank) FROM table_name_87 WHERE name = "john dingell"
When Lansing's fare is $433.59, what is the Detroit fare?
CREATE TABLE table_1637981_7 (detroit__dtw_ VARCHAR, lansing__lan_ VARCHAR)
SELECT detroit__dtw_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59"
What's the best rank possible?
CREATE TABLE table_30058355_5 (rank INTEGER)
SELECT MIN(rank) FROM table_30058355_5
Which December 4, 1976 week has an attendance less than 57,366?
CREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366
Who was the opponent of carlton at their home game?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_95 WHERE home_team = "carlton"
What unit is in Argentina?
CREATE TABLE table_name_94 (unit VARCHAR, location VARCHAR)
SELECT unit FROM table_name_94 WHERE location = "argentina"
Name the most time for katrin meißner and rank less than 5
CREATE TABLE table_name_71 (time INTEGER, name VARCHAR, rank VARCHAR)
SELECT MAX(time) FROM table_name_71 WHERE name = "katrin meißner" AND rank < 5
How many numbers are listed under diameter with a lattitude of 5.0n?
CREATE TABLE table_16799784_14 (diameter__km_ VARCHAR, latitude VARCHAR)
SELECT COUNT(diameter__km_) FROM table_16799784_14 WHERE latitude = "5.0N"
What percentage of voters voted for a third party in the county that had 802 third party voters?
CREATE TABLE table_20278716_2 (others__percentage VARCHAR, others__number VARCHAR)
SELECT others__percentage FROM table_20278716_2 WHERE others__number = 802
Show names of shops that have more than one kind of device in stock.
CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)
SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1
Find the number of shops in each location.
CREATE TABLE shop (LOCATION VARCHAR)
SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION
What format is after 1991 and has a Catalog Number of 81868?
CREATE TABLE table_name_64 (format VARCHAR, year VARCHAR, catalog_number VARCHAR)
SELECT format FROM table_name_64 WHERE year > 1991 AND catalog_number = "81868"
Name the content for sky famiglia for italian and dar 16:9 for mtv hits
CREATE TABLE table_15887683_10 (content VARCHAR, television_service VARCHAR, dar VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT content FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND language = "Italian" AND dar = "16:9" AND television_service = "MTV Hits"
What is the other name for martonoš?
CREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = "Martonoš"
What is the most recent year with a mk.v type?
CREATE TABLE table_name_62 (year INTEGER, type VARCHAR)
SELECT MAX(year) FROM table_name_62 WHERE type = "mk.v"
What state had an active chapter from 1906-1991?
CREATE TABLE table_name_36 (state VARCHAR, charter_range VARCHAR)
SELECT state FROM table_name_36 WHERE charter_range = "1906-1991"
With a score of 2-2, what was the Result?
CREATE TABLE table_name_30 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_30 WHERE score = "2-2"
How many ansi codes are there for latitude 48.142938?
CREATE TABLE table_18600760_20 (ansi_code VARCHAR, latitude VARCHAR)
SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "48.142938"
On what surface did Katarina Srebotnik play Paola Suárez?
CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_final VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez"
What country has a 74-72-71-67=284 score?
CREATE TABLE table_name_46 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_46 WHERE score = 74 - 72 - 71 - 67 = 284
What is the least w?
CREATE TABLE table_29704430_1 (w INTEGER)
SELECT MIN(w) FROM table_29704430_1
Drawn of 0, and a Games larger than 5 has what amount of highest points?
CREATE TABLE table_name_62 (points INTEGER, drawn VARCHAR, games VARCHAR)
SELECT MAX(points) FROM table_name_62 WHERE drawn = 0 AND games > 5
Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?
CREATE TABLE table_name_37 (company VARCHAR, incorporated_in VARCHAR, type VARCHAR, principal_activities VARCHAR)
SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china"
Who took the loss on May 20?
CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_52 WHERE date = "may 20"
Find the title of course that is provided by both Statistics and Psychology departments.
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'
What was the population in North Jeolla?
CREATE TABLE table_name_63 (population__2010_ VARCHAR, province VARCHAR)
SELECT population__2010_ FROM table_name_63 WHERE province = "north jeolla"
What is the nationality for the player with over 64 goals?
CREATE TABLE table_name_56 (nat VARCHAR, goals INTEGER)
SELECT nat FROM table_name_56 WHERE goals > 64
List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file"
How many pole positions were there for the 2011 season?
CREATE TABLE table_24330803_1 (poles INTEGER, season VARCHAR)
SELECT MAX(poles) FROM table_24330803_1 WHERE season = 2011
What is the primary sponsor of driver Mark Martin?
CREATE TABLE table_name_78 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_78 WHERE driver_s_ = "mark martin"
Name the home for 16 april 2008
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_11 WHERE date = "16 april 2008"
What is the total number of events the Open Championship has with less than 0 cuts?
CREATE TABLE table_name_50 (events INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT SUM(events) FROM table_name_50 WHERE tournament = "the open championship" AND cuts_made < 0
Who had the pole position on 7 August?
CREATE TABLE table_name_2 (pole_position VARCHAR, date VARCHAR)
SELECT pole_position FROM table_name_2 WHERE date = "7 august"
Which Game has a Record of 27-11-10?
CREATE TABLE table_name_19 (game INTEGER, record VARCHAR)
SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-10"
Who was the lyricist for gopal krishna and co singer of solo?
CREATE TABLE table_11827596_4 (lyricist VARCHAR, film_name VARCHAR, co_singer VARCHAR)
SELECT lyricist FROM table_11827596_4 WHERE film_name = "Gopal Krishna" AND co_singer = "Solo"
Who was elected in 1972
CREATE TABLE table_1341423_35 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341423_35 WHERE first_elected = 1972
Name the total number of founded for public and 780 enrollment
CREATE TABLE table_262505_1 (founded VARCHAR, type VARCHAR, enrollment VARCHAR)
SELECT COUNT(founded) FROM table_262505_1 WHERE type = "Public" AND enrollment = "780"
What is the classification with a Team classification of la vie claire and a Stage of 12?
CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "12"
How many draws are there when the score is 13?
CREATE TABLE table_18594107_2 (draws INTEGER, scored VARCHAR)
SELECT MAX(draws) FROM table_18594107_2 WHERE scored = 13
What is listed in game when the location attendance is listed as Keyarena 16,841?
CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
What date was the game played at the Delta Center?
CREATE TABLE table_name_9 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_9 WHERE location = "delta center"
Which Streak has a Game of 3?
CREATE TABLE table_name_35 (streak VARCHAR, game VARCHAR)
SELECT streak FROM table_name_35 WHERE game = 3
What is the rank of the airport with the BKK/VTBS code?
CREATE TABLE table_name_60 (rank VARCHAR, code__iata_icao_ VARCHAR)
SELECT rank FROM table_name_60 WHERE code__iata_icao_ = "bkk/vtbs"
What is the original air date when the u.s. viewers in millions was 5.39?
CREATE TABLE table_27720737_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_27720737_1 WHERE us_viewers__million_ = "5.39"
Which week has a record of 5-7-1?
CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR)
SELECT week FROM table_name_58 WHERE record = "5-7-1"
Name the circuit for italian grand prix
CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR)
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix"
What is the incumbent for ohio 12?
CREATE TABLE table_1342249_35 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1342249_35 WHERE district = "Ohio 12"
What is the score for Set 2 at 15:21?
CREATE TABLE table_name_48 (score VARCHAR, set_2 VARCHAR)
SELECT score FROM table_name_48 WHERE set_2 = "15:21"
What was date of the bye week 11?
CREATE TABLE table_name_38 (date VARCHAR, attendance VARCHAR, week VARCHAR)
SELECT date FROM table_name_38 WHERE attendance = "bye" AND week = 11
For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.
CREATE TABLE game (date VARCHAR, id VARCHAR, season VARCHAR); CREATE TABLE injury_accident (player VARCHAR, game_id VARCHAR)
SELECT T1.date, T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id ORDER BY T1.season DESC
Which category was Michael Stewart a nominee in?
CREATE TABLE table_name_4 (category VARCHAR, nominee VARCHAR)
SELECT category FROM table_name_4 WHERE nominee = "michael stewart"
Who was the runner-up during the Mac Ice Classic?
CREATE TABLE table_name_51 (runner_up_skip VARCHAR, event VARCHAR)
SELECT runner_up_skip FROM table_name_51 WHERE event = "mac ice classic"
What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?
CREATE TABLE table_name_79 (no_3 VARCHAR, no_7 VARCHAR, no_4 VARCHAR)
SELECT no_3 FROM table_name_79 WHERE no_7 = "abigail" AND no_4 = "ava"
Which Rank is the lowest one that has a Name of maribor cathedral?
CREATE TABLE table_name_27 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_27 WHERE name = "maribor cathedral"
What is the avererage decile of Francis Douglas Memorial College?
CREATE TABLE table_name_74 (decile INTEGER, name VARCHAR)
SELECT AVG(decile) FROM table_name_74 WHERE name = "francis douglas memorial college"
What was the release price of the Atom Z510PT processor?
CREATE TABLE table_name_53 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT release_price___usd__ FROM table_name_53 WHERE model_number = "atom z510pt"
In which district is the incumbent Carl Vinson?
CREATE TABLE table_1341973_11 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341973_11 WHERE incumbent = "Carl Vinson"
What movie did Vijayalaxmi Co-star in and Shakeel Badayuni write the lyrics?
CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR, lyricist VARCHAR)
SELECT movie_album FROM table_2528382_5 WHERE co_stars = "VijayaLaxmi" AND lyricist = "Shakeel Badayuni"
Tell me the D 49 and D 46 of r 13
CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR)
SELECT d_49 FROM table_name_64 WHERE d_46 = "r 13"
What is the Away team of the Merthyr Tydfil Home game with a Score of 1–1?
CREATE TABLE table_name_46 (away_team VARCHAR, score VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_46 WHERE score = "1–1" AND home_team = "merthyr tydfil"
Name the film title for okkar á milli: í hita og þunga dagsins
CREATE TABLE table_name_98 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_98 WHERE original_name = "okkar á milli: í hita og þunga dagsins"
Who is the runner-up of Atlantic city classic?
CREATE TABLE table_name_42 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT runner_s__up FROM table_name_42 WHERE tournament = "atlantic city classic"
How many professors do have a Ph.D. degree?
CREATE TABLE professor (prof_high_degree VARCHAR)
SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.'
Can you tell me the Record that has the Opponent of vs. hamilton tiger cats?
CREATE TABLE table_name_55 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_55 WHERE opponent = "vs. hamilton tiger cats"
What is the name of the race when Lineth Chepkurui is the athlete?
CREATE TABLE table_name_17 (race VARCHAR, athlete VARCHAR)
SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui"
What is the airing date for a modern drama with more than 21 episodes?
CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21
what is the percent decline from peak population when the peak population (year) is 178320 (1960)?
CREATE TABLE table_name_98 (percent_decline_from_peak_population VARCHAR, peak_population__year_ VARCHAR)
SELECT percent_decline_from_peak_population FROM table_name_98 WHERE peak_population__year_ = "178320 (1960)"
How many seasons did Charles C. Farrell coach?
CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR)
SELECT COUNT(seasons) FROM table_name_56 WHERE name = "charles c. farrell"
Which Poles have a position of 4th?
CREATE TABLE table_name_63 (poles VARCHAR, position VARCHAR)
SELECT poles FROM table_name_63 WHERE position = "4th"
How many were in Attendance during a Tie no of 1?
CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_89 WHERE tie_no = 1
Name the competition for 13 december 2012
CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_6 WHERE date = "13 december 2012"
What is Tiger Woods' to par?
CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_26 WHERE player = "tiger woods"
Which Country has the Director Chen Kaige?
CREATE TABLE table_name_79 (country VARCHAR, director VARCHAR)
SELECT country FROM table_name_79 WHERE director = "chen kaige"
How many tasks does each project have? List the task count and the project detail.
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Tasks (project_id VARCHAR)
SELECT COUNT(*), T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id
What is the Position of the Level 3 winner from Saint Kitts and Nevis?
CREATE TABLE table_name_51 (position VARCHAR, level VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_51 WHERE level = 3 AND nationality = "saint kitts and nevis"
Whats the name of segment in s08e21
CREATE TABLE table_15187735_16 (segment_a VARCHAR, netflix VARCHAR)
SELECT segment_a FROM table_15187735_16 WHERE netflix = "S08E21"
What date was the winner the new york jets and a Result of 30–28?
CREATE TABLE table_name_67 (date VARCHAR, winner VARCHAR, result VARCHAR)
SELECT date FROM table_name_67 WHERE winner = "new york jets" AND result = "30–28"
What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?
CREATE TABLE table_name_87 (net_yards INTEGER, yards_per_attempt VARCHAR, touchdowns VARCHAR, attempts VARCHAR)
SELECT AVG(net_yards) FROM table_name_87 WHERE touchdowns = 9 AND attempts = 145 AND yards_per_attempt > 4.8
What was Anand's score in game 8?
CREATE TABLE table_name_67 (anand VARCHAR, game VARCHAR)
SELECT anand FROM table_name_67 WHERE game = "8"
What was the home Competition with Attendance of 1,268?
CREATE TABLE table_name_39 (competition VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT competition FROM table_name_39 WHERE venue = "home" AND attendance = "1,268"
What was the transfer window with a moving from of fenerbahçe?
CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT transfer_window FROM table_name_21 WHERE moving_from = "fenerbahçe"
What was the score of the game that had a loss of Drese (2-2)?
CREATE TABLE table_name_99 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_99 WHERE loss = "drese (2-2)"
What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?
CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)
SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = "0.54%"
Find the official names of cities with population bigger than 1500 or smaller than 500.
CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR)
SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500
What kilometer (Rizal Park-basis) has a kilometer of 25?
CREATE TABLE table_name_92 (kilometer_no__rizal_park_basis_ VARCHAR, kilometer_no__layac_basis_ VARCHAR)
SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = "25"
Which country's IATA is ika?
CREATE TABLE table_name_72 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_72 WHERE iata = "ika"
what is the total number of publisher where first appearance is daredevil #1
CREATE TABLE table_1217448_1 (publisher VARCHAR, first_appearance VARCHAR)
SELECT COUNT(publisher) FROM table_1217448_1 WHERE first_appearance = "Daredevil #1"
Find the last names of the students in third grade that are not taught by COVIN JEROME.
CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR)
SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> "COVIN" AND T2.lastname <> "JEROME"
What is the name of the player with an Overall larger than 227?
CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)
SELECT player FROM table_name_14 WHERE overall > 227
Deloria & Boas of n included what university of Minnesota?
CREATE TABLE table_name_89 (university_of_minnesota VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT university_of_minnesota FROM table_name_89 WHERE deloria_ & _boas = "n"
Name the imperative for गरिस् garis 'you did'
CREATE TABLE table_16337329_5 (imperative VARCHAR, past_habitual VARCHAR)
SELECT imperative FROM table_16337329_5 WHERE past_habitual = "गरिस् garis 'you did'"
Which urban sub-area has a population of 16,140?
CREATE TABLE table_name_58 (urban_sub_area VARCHAR, population VARCHAR)
SELECT urban_sub_area FROM table_name_58 WHERE population = "16,140"
What is the pick number for tulane university?
CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university"
What is the total number of field goals a player had when there were more than 0 extra points and there were 5 touchdowns?
CREATE TABLE table_name_6 (field_goals VARCHAR, extra_points VARCHAR, touchdowns VARCHAR)
SELECT COUNT(field_goals) FROM table_name_6 WHERE extra_points > 0 AND touchdowns = 5
What is the Result of the 2013 (86th) Ceremony?
CREATE TABLE table_name_77 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT result FROM table_name_77 WHERE year__ceremony_ = "2013 (86th)"
who is the the mens singles with mens doubles being kaj lindfors kaj osterberg
CREATE TABLE table_13857700_1 (mens_singles VARCHAR, mens_doubles VARCHAR)
SELECT mens_singles FROM table_13857700_1 WHERE mens_doubles = "Kaj Lindfors Kaj Osterberg"
On what weekday was the match that had Perth Glory as the away team?
CREATE TABLE table_name_86 (weekday VARCHAR, away VARCHAR)
SELECT weekday FROM table_name_86 WHERE away = "perth glory"
How many ties do teams with 25 Goals For and more than 5 wins have?
CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR)
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5
How many years did the new york giants lose at metlife stadium?
CREATE TABLE table_name_15 (year VARCHAR, location VARCHAR, loser VARCHAR)
SELECT COUNT(year) FROM table_name_15 WHERE location = "metlife stadium" AND loser = "new york giants"