answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT sodium FROM table_name_10 WHERE lithium = "h a l o g e n s" AND rubidium = "nacl (2.1)"
what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?
CREATE TABLE table_name_10 (sodium VARCHAR, lithium VARCHAR, rubidium VARCHAR)
SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date LIMIT 1
When is the first transcript released? List the date and details.
CREATE TABLE Transcripts (transcript_date VARCHAR, other_details VARCHAR)
SELECT score FROM table_name_48 WHERE date = "april 12"
What was the score on April 12?
CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_99 WHERE points > 86 AND opponent = "sharks"
How many attended the game against the sharks with over 86 points?
CREATE TABLE table_name_99 (attendance INTEGER, points VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_24 WHERE home_team = "f.c. central chugoku"
What is the attendance of the match with F.C. central chugoku as the home team?
CREATE TABLE table_name_24 (attendance VARCHAR, home_team VARCHAR)
SELECT program FROM table_16275828_4 WHERE location = "Charleston, Illinois"
What programs were held in charleston, illinois?
CREATE TABLE table_16275828_4 (program VARCHAR, location VARCHAR)
SELECT battle FROM table_name_21 WHERE bulgarian_commander = "ivan asen ii"
What is the Battle with Bulgarian Commander Ivan Asen II?
CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR)
SELECT team FROM table_name_43 WHERE laps = 90 AND points < 19 AND driver = "patrick carpentier"
When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing?
CREATE TABLE table_name_43 (team VARCHAR, driver VARCHAR, laps VARCHAR, points VARCHAR)
SELECT record FROM table_name_54 WHERE game = 27
What is Record, when Game is 27?
CREATE TABLE table_name_54 (record VARCHAR, game VARCHAR)
SELECT result FROM table_name_60 WHERE date = "3 march 2004"
What is the result of the match on 3 March 2004?
CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_72 WHERE theatre = "shubert theatre"
Tell me the lowest year for shubert theatre
CREATE TABLE table_name_72 (year INTEGER, theatre VARCHAR)
SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)
SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = "East Carolina"
what is the total number of semi-finalist #2 where runner-up is east carolina
CREATE TABLE table_11214772_1 (semi_finalist__number2 VARCHAR, runner_up VARCHAR)
SELECT player FROM table_18974269_1 WHERE original_season = "Fresh Meat" AND gender = "Female"
Who was the female contestant on the Original season of Fresh Meat?
CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, gender VARCHAR)
SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2
Show the names of editors that are on at least two journal committees.
CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_10 WHERE original_name = "mig og charly"
What is the Film title used in nomination of Mig Og Charly?
CREATE TABLE table_name_10 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)
SELECT country FROM table_name_93 WHERE top_team = "jam" AND edition = "31st"
Which Country has a Top Team of jam, and an Edition of 31st?
CREATE TABLE table_name_93 (country VARCHAR, top_team VARCHAR, edition VARCHAR)
SELECT entrant FROM table_name_87 WHERE year = 1963
Who was in 1963?
CREATE TABLE table_name_87 (entrant VARCHAR, year VARCHAR)
SELECT 1 AS st_round FROM table_name_65 WHERE team_1 = "sporting toulon var (d2)"
What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?
CREATE TABLE table_name_65 (team_1 VARCHAR)
SELECT margin_of_victory FROM table_name_60 WHERE winning_score = −3(74 - 68 - 72 - 71 = 285)
What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?
CREATE TABLE table_name_60 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "st kilda"
When st kilda played as the away team, what date was that?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT MIN(gold) FROM table_name_56 WHERE rank > 9
What nation has the lowest gold average that has a rank over 9?
CREATE TABLE table_name_56 (gold INTEGER, rank INTEGER)
SELECT result FROM table_name_28 WHERE film_title_used_in_nomination = "lake of tears"
WHAT IS THE RESULT WITH FILM LAKE OF TEARS?
CREATE TABLE table_name_28 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 4
What is the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4?
CREATE TABLE table_name_39 (position INTEGER, goal_difference VARCHAR, losses VARCHAR, goals_for VARCHAR)
SELECT COUNT(club) FROM table_12886178_5 WHERE won = "6"
How many clubs have won 6 games?
CREATE TABLE table_12886178_5 (club VARCHAR, won VARCHAR)
SELECT title FROM table_name_39 WHERE first_issue = "august 2010"
What is the title that was first published in August 2010?
CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR)
SELECT MAX(steals) FROM table_24856332_4 WHERE minutes = 324
What is the highest number of steals for a player with 324 minutes?
CREATE TABLE table_24856332_4 (steals INTEGER, minutes VARCHAR)
SELECT country FROM table_name_26 WHERE indigenous_mining_production_2006 = "0"
Which country has an Indigenous mining production 2006 of 0?
CREATE TABLE table_name_26 (country VARCHAR, indigenous_mining_production_2006 VARCHAR)
SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 0
What is the sum of the value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0?
CREATE TABLE table_name_26 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT club FROM table_name_93 WHERE played = "19" AND lost = "14"
What club has a played number of 19, and the lost of 14?
CREATE TABLE table_name_93 (club VARCHAR, played VARCHAR, lost VARCHAR)
SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003
What is the category when Hy Conrad nominated in 2003?
CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT english FROM table_name_32 WHERE what = "ango"
What is the language, when "what" is "ango"?
CREATE TABLE table_name_32 (english VARCHAR, what VARCHAR)
SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%"
How many villages had 21.7% of slovenes in 1991?
CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR)
SELECT MIN(round) FROM table_name_98 WHERE nominees = "david mundy"
what is the earliest round for nominee david mundy?
CREATE TABLE table_name_98 (round INTEGER, nominees VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE overall = 63
What round was the overall 63 drafted?
CREATE TABLE table_name_94 (round VARCHAR, overall VARCHAR)
SELECT points FROM table_name_84 WHERE year > 1972 AND entrant = "marlboro team alfa romeo"
After 1972, how many points did Marlboro Team Alfa Romeo have?
CREATE TABLE table_name_84 (points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT score FROM table_name_12 WHERE away_team = "wrexham"
What was the score when the way team was Wrexham?
CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR)
SELECT party FROM table_1342359_5 WHERE incumbent = "William E. Evans"
what's the party with incumbent being william e. evans
CREATE TABLE table_1342359_5 (party VARCHAR, incumbent VARCHAR)
SELECT try_bonus FROM table_name_17 WHERE tries_against = "19"
What try bonus has 19 as the tries against?
CREATE TABLE table_name_17 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e."
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?
CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
SELECT model_number FROM table_name_69 WHERE part_number_s_ = "cl8064701510101"
What model number has part number cl8064701510101?
CREATE TABLE table_name_69 (model_number VARCHAR, part_number_s_ VARCHAR)
SELECT member FROM table_10054296_1 WHERE classification = "Sorority"
What are the members listed with the sorority classification
CREATE TABLE table_10054296_1 (member VARCHAR, classification VARCHAR)
SELECT finish FROM table_name_51 WHERE country = "united states" AND player = "tiger woods"
what is the finish when the country is united states and the player is tiger woods?
CREATE TABLE table_name_51 (finish VARCHAR, country VARCHAR, player VARCHAR)
SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE municipal_district = "Smoky Lake County"
What is the density per km in Smoky Lake County?
CREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, municipal_district VARCHAR)
SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017
Find the distinct names of all races held between 2014 and 2017?
CREATE TABLE races (name VARCHAR, YEAR INTEGER)
SELECT jockey FROM table_name_39 WHERE trainer = "nick zito" AND odds = "34-1"
Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1?
CREATE TABLE table_name_39 (jockey VARCHAR, trainer VARCHAR, odds VARCHAR)
SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich"
How many places are named manolo fortich?
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR)
SELECT COUNT(total) FROM table_name_65 WHERE to_par = "+9"
How much total has a To par of +9?
CREATE TABLE table_name_65 (total VARCHAR, to_par VARCHAR)
SELECT torque FROM table_name_97 WHERE engine_code = "n46b20" AND power = "ps (kw; hp)@6400"
What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?
CREATE TABLE table_name_97 (torque VARCHAR, engine_code VARCHAR, power VARCHAR)
SELECT COUNT(network) FROM table_12438767_1 WHERE local_name = "In Sickness and in Health"
In how many networks the local name of the franchise was "in sickness and in health"?
CREATE TABLE table_12438767_1 (network VARCHAR, local_name VARCHAR)
SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = "Indianapolis Motor Speedway"
How many races took place on the Indianapolis Motor Speedway track?
CREATE TABLE table_22673956_1 (race_name VARCHAR, track VARCHAR)
SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)
List the names of technicians who have not been assigned to repair machines.
CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR)
SELECT score FROM table_name_82 WHERE date = "3 may 2009"
What was the score on 3 may 2009?
CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR)
SELECT method FROM table_name_63 WHERE record = "3-2"
What is the method when the record was 3-2?
CREATE TABLE table_name_63 (method VARCHAR, record VARCHAR)
SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = "Confirmed"
Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed".
CREATE TABLE Apartment_Bookings (guest_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_last_name VARCHAR, guest_id VARCHAR)
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27"
How many points were there scored on October 27?
CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)
SELECT LOCATION, COUNT(*) FROM cinema GROUP BY LOCATION
Show each location and the number of cinemas there.
CREATE TABLE cinema (LOCATION VARCHAR)
SELECT SUM(played) FROM table_name_27 WHERE first_game < 2000 AND lost < 21 AND drawn < 0
What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn?
CREATE TABLE table_name_27 (played INTEGER, drawn VARCHAR, first_game VARCHAR, lost VARCHAR)
SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998"
What was the week on October 11, 1998?
CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)
SELECT COUNT(december_28) FROM table_29217650_1 WHERE movies = "Rosario"
How many figures are provided for December 28 for Rosario?
CREATE TABLE table_29217650_1 (december_28 VARCHAR, movies VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE year = "1990"
Who was the manufacturer in 1990?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, year VARCHAR)
SELECT deadline_for_completion FROM table_12078626_1 WHERE description = "iPhone recall within the first 3 months of release"
what's the deadline for completion where description is iphone recall within the first 3 months of release
CREATE TABLE table_12078626_1 (deadline_for_completion VARCHAR, description VARCHAR)
SELECT total_time FROM table_name_44 WHERE margin = "04:02" AND driver = "coad"
How much time did Coad make when the margin was 04:02?
CREATE TABLE table_name_44 (total_time VARCHAR, margin VARCHAR, driver VARCHAR)
SELECT party FROM table_1341395_36 WHERE incumbent = "Deborah Pryce"
Incumbent Deborah Pryce was a member of what party?
CREATE TABLE table_1341395_36 (party VARCHAR, incumbent VARCHAR)
SELECT MIN(games) FROM table_name_86 WHERE name = "shaun stonerook"
What is the number of games for Shaun Stonerook?
CREATE TABLE table_name_86 (games INTEGER, name VARCHAR)
SELECT score FROM table_name_57 WHERE date = "september 20"
What was the score in the September 20 game?
CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR)
SELECT SUM(points) FROM table_name_15 WHERE lyricist = "ray agius"
What is the total number of points for ray agius
CREATE TABLE table_name_15 (points INTEGER, lyricist VARCHAR)
SELECT MIN(closed__as_a_rl_stadium_) FROM table_name_94 WHERE country = "france"
What is the earliest closed year in the country of france?
CREATE TABLE table_name_94 (closed__as_a_rl_stadium_ INTEGER, country VARCHAR)
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz"
Who are all directors when Sherwood Schwartz is the writer?
CREATE TABLE table_2342078_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(tv_season) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "10.2"
Which season received 10.2 million viewers?
CREATE TABLE table_217785_2 (tv_season VARCHAR, viewers__in_millions_of_households_ VARCHAR)
SELECT median_family_income FROM table_name_12 WHERE median_household_income = "$43,125"
Which Median family income has a Median household income of $43,125?
CREATE TABLE table_name_12 (median_family_income VARCHAR, median_household_income VARCHAR)
SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1
Show the membership level with most number of members.
CREATE TABLE member (LEVEL VARCHAR)
SELECT MIN(population__2010_census_) FROM table_232458_1 WHERE area__km²_ = "66.34"
If the area is 66.34, what is the minimum (2010 census) population?
CREATE TABLE table_232458_1 (population__2010_census_ INTEGER, area__km²_ VARCHAR)
SELECT COUNT(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city <> "San Francisco"
Count the number of trips that did not end in San Francisco city.
CREATE TABLE trip (end_station_id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR)
SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)"
What is the sum of Game with a Score that is w 104–90 (ot)?
CREATE TABLE table_name_44 (game INTEGER, score VARCHAR)
SELECT place FROM table_name_87 WHERE country = "united states" AND score = 74 - 72 = 146
What is the place of the player from the United States with a score of 74-72=146?
CREATE TABLE table_name_87 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_18 WHERE week < 14 AND date = "october 10, 1993"
Who was the opponent in a week below 14 on October 10, 1993?
CREATE TABLE table_name_18 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT english_country_name FROM table_name_5 WHERE english_capital_name = "doha"
What is the English name of the country that has Doha as its capital?
CREATE TABLE table_name_5 (english_country_name VARCHAR, english_capital_name VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "steve elkington"
What did Steve Elkington par?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT inning FROM table_name_86 WHERE team = "minnesota twins" AND date = "06-07-1961"
Which inning were the Minnesota Twins in on 06-07-1961?
CREATE TABLE table_name_86 (inning VARCHAR, team VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_95 WHERE team = "boston"
What is the High points with a Team with boston?
CREATE TABLE table_name_95 (high_points VARCHAR, team VARCHAR)
SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 0
Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0?
CREATE TABLE table_name_8 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, season VARCHAR)
SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 26
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
CREATE TABLE table_name_21 (draw VARCHAR, goal_diff VARCHAR, loss VARCHAR, point VARCHAR)
SELECT COUNT(laps) FROM table_name_69 WHERE driver = "ukyo katayama" AND grid < 16
How many laps for ukyo katayama with a grid under 16?
CREATE TABLE table_name_69 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
What is the alpha 2 code for the area also known as NZL?
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)
SELECT comp FROM table_name_42 WHERE year = "1989"
What is the comp for the year 1989?
CREATE TABLE table_name_42 (comp VARCHAR, year VARCHAR)
SELECT incumbent FROM table_2668352_11 WHERE district = "New York 10"
Name the incumbent for new york 10
CREATE TABLE table_2668352_11 (incumbent VARCHAR, district VARCHAR)
SELECT home FROM table_name_28 WHERE attendance > 1675 AND away = "olimpia"
Who was the home team in the game with more than 1675, and Olimpia was the away side?
CREATE TABLE table_name_28 (home VARCHAR, attendance VARCHAR, away VARCHAR)
SELECT ad_freq FROM table_name_84 WHERE show_name = "american top 40"
How often are there ads during American Top 40?
CREATE TABLE table_name_84 (ad_freq VARCHAR, show_name VARCHAR)
SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = "benson" AND ansi_code < 1759243
Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243?
CREATE TABLE table_name_13 (water__sqmi_ INTEGER, county VARCHAR, ansi_code VARCHAR)
SELECT qld_cup_premierships FROM table_2383498_4 WHERE team = "Gold Coast Vikings"
What is the QLD Cup Premierships if team is Gold Coast Vikings?
CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, team VARCHAR)
SELECT COUNT(date) FROM table_1140103_6 WHERE circuit = "Silverstone"
How many dates have silverstone circuit
CREATE TABLE table_1140103_6 (date VARCHAR, circuit VARCHAR)
SELECT release_date FROM table_name_71 WHERE title = "inki and the minah bird"
When was Inki and the Minah Bird released?
CREATE TABLE table_name_71 (release_date VARCHAR, title VARCHAR)
SELECT year_s__won FROM table_name_57 WHERE finish = "t27"
When the finish is t27 what is the year (s) won?
CREATE TABLE table_name_57 (year_s__won VARCHAR, finish VARCHAR)
SELECT attendance FROM table_name_29 WHERE score = "75-90"
How many people attended the game with a final score of 75-90?
CREATE TABLE table_name_29 (attendance VARCHAR, score VARCHAR)
SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*)
How many staff does each project has? List the project id and the number in an ascending order.
CREATE TABLE Project_Staff (project_id VARCHAR); CREATE TABLE Projects (project_id VARCHAR)
SELECT number_of_episodes FROM table_name_90 WHERE actor = "jessica napier"
What is Number Of Episodes, when Actor is "Jessica Napier"
CREATE TABLE table_name_90 (number_of_episodes VARCHAR, actor VARCHAR)
SELECT player FROM table_name_97 WHERE score = "6–4, 7–6 (7–5)"
Which Player has a Score of 6–4, 7–6 (7–5)?
CREATE TABLE table_name_97 (player VARCHAR, score VARCHAR)
SELECT MIN(number_of_believers) FROM table_24613895_1
Name the least number of believers
CREATE TABLE table_24613895_1 (number_of_believers INTEGER)
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r"
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
CREATE TABLE table_name_23 (career_w_l VARCHAR)