answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT district FROM table_name_19 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "242"
Name the District that has a Reserved for ( SC / ST /None) of none and a Constituency number of 242?
CREATE TABLE table_name_19 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT single FROM table_name_67 WHERE artist = "queen"
what is the single of the queen
CREATE TABLE table_name_67 (single VARCHAR, artist VARCHAR)
SELECT position FROM table_name_37 WHERE school = "university of alabama"
what is the position for the player from university of alabama?
CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR)
SELECT district FROM table_1341395_44 WHERE incumbent = "Ron Paul"
What district has Ron Paul?
CREATE TABLE table_1341395_44 (district VARCHAR, incumbent VARCHAR)
SELECT team FROM table_22297198_3 WHERE date_of_vacancy = "12 Dec 2009"
What team did a manager leave on 12 Dec 2009
CREATE TABLE table_22297198_3 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT AVG(age), gender FROM Person GROUP BY gender
What is the average age for each gender?
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20"
Set 1 of 25–20, what was Set 2?
CREATE TABLE table_name_38 (set_2 VARCHAR, set_1 VARCHAR)
SELECT diameter__km_ FROM table_16799784_3 WHERE year_named = 1997
What was the diameter of the feature found in 1997?
CREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, year_named VARCHAR)
SELECT MIN(elevation_ft) FROM table_27435931_1 WHERE year = "April 2006"
what was the lowest elevation in april 2006?
CREATE TABLE table_27435931_1 (elevation_ft INTEGER, year VARCHAR)
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"
Find all students taught by OTHA MOYER. Output the first and last names of the students.
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the building that has the most company offices.
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid'
Find the names of schools that have some students playing in goalie and mid positions.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT most_laps_led FROM table_25668203_2 WHERE location = "Monterey, California" AND winning_driver = "Scott Rarick"
Who had the most laps led in monterey, california when scott rarick won the race?
CREATE TABLE table_25668203_2 (most_laps_led VARCHAR, location VARCHAR, winning_driver VARCHAR)
SELECT label FROM table_name_53 WHERE country = "canada" AND format = "cd/digital download"
Which Label has a Country of canada, and a Format of cd/digital download?
CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini"
Name the number of gregorian calenda rof gemini
CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR)
SELECT ihsaa_class FROM table_name_80 WHERE _number___county = "12 clinton" AND mascot = "hornets"
What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot?
CREATE TABLE table_name_80 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR)
SELECT result FROM table_name_37 WHERE work = "t.u.f.f. puppy"
What was the result of t.u.f.f. puppy?
CREATE TABLE table_name_37 (result VARCHAR, work VARCHAR)
SELECT COUNT(population) FROM table_19605700_1 WHERE capital = "Hong Kong"
How many populations have a capital of Hong Kong?
CREATE TABLE table_19605700_1 (population VARCHAR, capital VARCHAR)
SELECT COUNT(points) FROM table_10705060_1 WHERE season = "2005"
How many points for 2005?
CREATE TABLE table_10705060_1 (points VARCHAR, season VARCHAR)
SELECT republican__democratic FROM table_name_91 WHERE state_ranked_in_partisan_order = "south carolina"
What is the ratio of Republicans to Democrats in South Carolina?
CREATE TABLE table_name_91 (republican__democratic VARCHAR, state_ranked_in_partisan_order VARCHAR)
SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318
Which school has a state authority and a roll of 318?
CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT COUNT(bronze) FROM table_name_29 WHERE nation = "chinese taipei" AND gold < 0
How many bronze medals did Chinese Taipei win with less than 0 gold?
CREATE TABLE table_name_29 (bronze VARCHAR, nation VARCHAR, gold VARCHAR)
SELECT team FROM table_name_99 WHERE shirt_sponsor = "tulip computers nv"
What is the name of the team that Tulip Computers NV sponsors?
CREATE TABLE table_name_99 (team VARCHAR, shirt_sponsor VARCHAR)
SELECT opinion_research_centre__opc_ FROM table_159614_2 WHERE national_opinion_polls__nop_ = "1.3%"
On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage?
CREATE TABLE table_159614_2 (opinion_research_centre__opc_ VARCHAR, national_opinion_polls__nop_ VARCHAR)
SELECT name FROM table_name_39 WHERE teams = "fc sète olympique de marseille"
Which name is on the of fc sète olympique de marseille?
CREATE TABLE table_name_39 (name VARCHAR, teams VARCHAR)
SELECT MAX(no) FROM table_11545282_12 WHERE school_club_team = "Minnesota"
Which number is the player from Minnesota?
CREATE TABLE table_11545282_12 (no INTEGER, school_club_team VARCHAR)
SELECT weblink FROM table_name_76 WHERE college_or_campus_name = "anna university college of engineering tindivanam"
What Weblink has a College or Campus Name of anna university college of engineering tindivanam?
CREATE TABLE table_name_76 (weblink VARCHAR, college_or_campus_name VARCHAR)
SELECT years FROM table_name_38 WHERE ranking < 8 AND goals < 66 AND name = "paul mcgee"
What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee?
CREATE TABLE table_name_38 (years VARCHAR, name VARCHAR, ranking VARCHAR, goals VARCHAR)
SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = "—" AND country = "iraq"
What law has a penalty of — in Iraq?
CREATE TABLE table_name_90 (laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR)
SELECT MIN(grid) FROM table_name_83 WHERE laps > 22
What is the minimum grid when there was more than 22 laps?
CREATE TABLE table_name_83 (grid INTEGER, laps INTEGER)
SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%"
What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?
CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR)
SELECT branding FROM table_name_35 WHERE callsign = "dxre"
What is the brand of DXRE?
CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR)
SELECT rank FROM table_name_2 WHERE player = "charles eady" AND bowling = "12/63"
What is rank of player Charles Eady and a Bowling of 12/63?
CREATE TABLE table_name_2 (rank VARCHAR, player VARCHAR, bowling VARCHAR)
SELECT MIN(bronze) FROM table_name_3 WHERE total > 13 AND gold > 10 AND silver < 22
What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?
CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT opponents_in_final FROM table_name_25 WHERE date = "september 16, 1990"
Which Opponents in Final has a Date of september 16, 1990?
CREATE TABLE table_name_25 (opponents_in_final VARCHAR, date VARCHAR)
SELECT best_female_artist FROM table_22546460_4 WHERE best_male_artist = "Best Lyrical Record"
What won the Best Female Artist if Best Lyrical Record won the Best Male Artist?
CREATE TABLE table_22546460_4 (best_female_artist VARCHAR, best_male_artist VARCHAR)
SELECT SUM(league_cup_apps) FROM table_name_63 WHERE fa_cup_goals > 0 AND fa_cup_apps < 2
What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2?
CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT name FROM table_name_22 WHERE delivered = "1839/08"
What is the name where the delivered date is 1839/08?
CREATE TABLE table_name_22 (name VARCHAR, delivered VARCHAR)
SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927"
What is the death date of the archbishop who was ordained as bishop April 26, 1927?
CREATE TABLE table_1656555_1 (died VARCHAR, ordained_bishop VARCHAR)
SELECT award FROM table_name_38 WHERE result = "nominated" AND year > 2011
Name the award for nominated result and year after 2011
CREATE TABLE table_name_38 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18"
What is the general classification at stage 18 that has a points classification of Tony Rominger?
CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT dates_active FROM table_name_93 WHERE deaths = "204"
When was there 204 deaths?
CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR)
SELECT opponent FROM table_name_72 WHERE october < 18 AND game = 3
Which opponent played in game 3 before October 18?
CREATE TABLE table_name_72 (opponent VARCHAR, october VARCHAR, game VARCHAR)
SELECT MAX(defective_year) FROM table_28985631_1 WHERE regular_year = "29 days" AND month_sequence = 2
What is the defective year for the regular year of 29 days and month sequence of 2?
CREATE TABLE table_28985631_1 (defective_year INTEGER, regular_year VARCHAR, month_sequence VARCHAR)
SELECT MIN(viewers__millions_) FROM table_name_11 WHERE weekly_rank = "#3" AND share = 9 AND rating > 5
Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?
CREATE TABLE table_name_11 (viewers__millions_ INTEGER, rating VARCHAR, weekly_rank VARCHAR, share VARCHAR)
SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska"
How many no votes from Alaska in 1998?
CREATE TABLE table_name_31 (no_vote VARCHAR, date VARCHAR, state VARCHAR)
SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 16
Which Drawn has a Points of 6, and a Against larger than 16?
CREATE TABLE table_name_17 (drawn INTEGER, points VARCHAR, against VARCHAR)
SELECT bonus_points FROM table_name_38 WHERE club = "stade français"
What number of bonus points did Stade Français?
CREATE TABLE table_name_38 (bonus_points VARCHAR, club VARCHAR)
SELECT SUM(maidens) FROM table_name_36 WHERE matches = 2
What is the sum of Maidens with a number of Matches that is 2?
CREATE TABLE table_name_36 (maidens INTEGER, matches VARCHAR)
SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1
Return the apartment number with the largest number of bedrooms.
CREATE TABLE Apartments (apt_number VARCHAR, bedroom_count VARCHAR)
SELECT region FROM table_name_61 WHERE catalog = "25ap 301"
What is the Region, when the Catalog is 25AP 301?
CREATE TABLE table_name_61 (region VARCHAR, catalog VARCHAR)
SELECT transliteration FROM table_20354_7 WHERE malayalam_name = "ചിങ്ങം"
Name the transliteration for ചിങ്ങം
CREATE TABLE table_20354_7 (transliteration VARCHAR, malayalam_name VARCHAR)
SELECT MAX(total) FROM table_name_21 WHERE norrköping = "12"
What was the highest total when Norrkoping scored 12?
CREATE TABLE table_name_21 (total INTEGER, norrköping VARCHAR)
SELECT date FROM table_name_49 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
When was the outcome runner-up with a score of 4–6, 3–6?
CREATE TABLE table_name_49 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22"
Name who directed the episode that was viewed by 4.22 million
CREATE TABLE table_18569389_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT missouri_vs FROM table_16201038_4 WHERE at_opponents_venue = "UI, 4-1"
Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_opponents_venue VARCHAR)
SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207
Which country was the player from who scored 66-72-70=207?
CREATE TABLE table_name_45 (country VARCHAR, score VARCHAR)
SELECT player FROM table_name_83 WHERE wins = 14
What player has 14 wins?
CREATE TABLE table_name_83 (player VARCHAR, wins VARCHAR)
SELECT score FROM table_name_17 WHERE player = "hal sutton"
What score has hal sutton as the player?
CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR)
SELECT date FROM table_name_19 WHERE away_team = "essendon"
On what date does Essendon play as the away team?
CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)
SELECT MAX(byes) FROM table_name_13 WHERE benalla_dfl = "longwood" AND against < 1944
What's the most number of byes for Longwood having less than 1944 against?
CREATE TABLE table_name_13 (byes INTEGER, benalla_dfl VARCHAR, against VARCHAR)
SELECT AVG(attendance) FROM table_name_22 WHERE date = "september 21, 1980"
How many people attended the September 21, 1980 game?
CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR)
SELECT player FROM table_name_70 WHERE place = "t3"
Which player is T3?
CREATE TABLE table_name_70 (player VARCHAR, place VARCHAR)
SELECT date FROM table_name_6 WHERE score = "2-1"
Which date has a score of 2-1?
CREATE TABLE table_name_6 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_32 WHERE track = "truro"
What is the date of the race at Truro?
CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR)
SELECT position FROM table_name_32 WHERE school = "texas a&m"
What position does the player from texas a&m play?
CREATE TABLE table_name_32 (position VARCHAR, school VARCHAR)
SELECT economics FROM table_145439_1 WHERE justice = "90.8"
what's the economics score with justice being 90.8
CREATE TABLE table_145439_1 (economics VARCHAR, justice VARCHAR)
SELECT MIN(floors) FROM table_name_82 WHERE name = "dubai marriott harbour hotel & suites"
What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?
CREATE TABLE table_name_82 (floors INTEGER, name VARCHAR)
SELECT nationality FROM table_name_10 WHERE distance = "200m" AND year > 1994 AND record = "33.778s"
Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?
CREATE TABLE table_name_10 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR)
SELECT representative FROM table_name_93 WHERE presentation_of_credentials = "september 8, 2005"
Which Representative has a Presentation of Credentials on september 8, 2005?
CREATE TABLE table_name_93 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1998___pioneer_ = "Paul Dobson"
what's the character name with voice actor (englbeingh 1998 / pioneer) being paul dobson
CREATE TABLE table_1410384_1 (character_name VARCHAR, voice_actor__english_1998___pioneer_ VARCHAR)
SELECT team FROM table_name_10 WHERE location_attendance = "madison square garden" AND score = "87-83"
Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?
CREATE TABLE table_name_10 (team VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%"
What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?
CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR)
SELECT title FROM table_name_98 WHERE tracks = "noxialicht"
What movie has noxialicht as a track?
CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR)
SELECT replaced_by FROM table_name_2 WHERE team = "bolton wanderers"
What is the name of the replacement manager for the Bolton Wanderers?
CREATE TABLE table_name_2 (replaced_by VARCHAR, team VARCHAR)
SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8
Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
what's the result with candidates being charles edward bennett (d) unopposed
CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR)
SELECT constructor FROM table_23548160_1 WHERE year = 1975
What was the constructor in 1975?
CREATE TABLE table_23548160_1 (constructor VARCHAR, year VARCHAR)
SELECT TYPE, COUNT(*) FROM mill GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
What is the most common mill type, and how many are there?
CREATE TABLE mill (TYPE VARCHAR)
SELECT political_group FROM table_name_58 WHERE name = "p. maelius capitolinus"
What is the Political group for p. maelius capitolinus?
CREATE TABLE table_name_58 (political_group VARCHAR, name VARCHAR)
SELECT COUNT(vote) FROM table_1272844_2 WHERE finish = "6th voted Out Day 12"
How many votes were taken when the outcome was "6th voted out day 12"?
CREATE TABLE table_1272844_2 (vote VARCHAR, finish VARCHAR)
SELECT record FROM table_17288825_7 WHERE date = "January 19"
What is the record for the team on January 19?
CREATE TABLE table_17288825_7 (record VARCHAR, date VARCHAR)
SELECT score FROM table_name_87 WHERE tie_no = "13"
What was the score when the tie no was 13?
CREATE TABLE table_name_87 (score VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_16388230_1 WHERE away_team = "West Coast"
What home team played the West Coast away team?
CREATE TABLE table_16388230_1 (home_team VARCHAR, away_team VARCHAR)
SELECT tries_against FROM table_13564637_3 WHERE lost = "4"
what are the tries where the game was lost by 4?
CREATE TABLE table_13564637_3 (tries_against VARCHAR, lost VARCHAR)
SELECT money___£__ FROM table_name_78 WHERE score = 68 - 71 - 68 - 72 = 279
How much money does the player with a 68-71-68-72=279 score have?
CREATE TABLE table_name_78 (money___£__ VARCHAR, score VARCHAR)
SELECT game FROM table_23286158_8 WHERE high_rebounds = "Andre Miller , Rudy Fernandez (7)"
Name the game for andre miller , rudy fernandez (7)
CREATE TABLE table_23286158_8 (game VARCHAR, high_rebounds VARCHAR)
SELECT record_label FROM table_name_63 WHERE album = "rambo"
Which Record label has an Album of rambo?
CREATE TABLE table_name_63 (record_label VARCHAR, album VARCHAR)
SELECT opponent FROM table_name_48 WHERE attendance = "73,369"
Which team did the Patriots play when there was a game attendance of 73,369?
CREATE TABLE table_name_48 (opponent VARCHAR, attendance VARCHAR)
SELECT visitor FROM table_name_52 WHERE date = "october 19"
Name the visitor for october 19
CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats"
What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?
CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)
SELECT opponent FROM table_name_50 WHERE tournament = "auckland, new zealand"
Who was the Opponent in the Auckland, New Zealand Tournament?
CREATE TABLE table_name_50 (opponent VARCHAR, tournament VARCHAR)
SELECT term_start FROM table_name_38 WHERE name = "fejzi bej alizoti"
When did Fejzi Bej Alizoti's term start?
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR)
SELECT location FROM table_name_21 WHERE round < 3 AND method = "submission (triangle choke)"
Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?
CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, method VARCHAR)
SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = "climax l4"
What is the tyres with a year earlier than 1961 for a climax l4 engine?
CREATE TABLE table_name_33 (tyres VARCHAR, year VARCHAR, engine VARCHAR)
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235"
What Inchicore Class has a GSR Class of 235?
CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR)
SELECT opponent FROM table_name_96 WHERE date = "june 29"
On June 29, who was the opponent?
CREATE TABLE table_name_96 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(composition) FROM table_14598_5 WHERE christians = "39.7"
How many data points for chrstians are 39.7?
CREATE TABLE table_14598_5 (composition VARCHAR, christians VARCHAR)
SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack"
In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?
CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)
SELECT name FROM table_name_35 WHERE time = "3:50.90"
Who has a time of 3:50.90?
CREATE TABLE table_name_35 (name VARCHAR, time VARCHAR)