answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 2009 FROM table_name_84 WHERE 2008 = "a" AND 2010 = "4r"
Which 2009 has a 2008 of A, and a 2010 of 4r?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT COUNT(total) FROM table_name_82 WHERE silver < 1 AND rank > 3
What is the total when silver is less than 1 and rank larger than 3?
CREATE TABLE table_name_82 (total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM STUDENTS WHERE NOT student_id IN (SELECT student_id FROM Behavior_Incident)
How many students are not involved in any behavior incident?
CREATE TABLE STUDENTS (student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = "25 May"
How many vacancies happened on 25 May?
CREATE TABLE table_17327458_1 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT power FROM table_name_50 WHERE frequency = "88.5 fm"
what is the Power with 88.5 fm Frequency
CREATE TABLE table_name_50 (power VARCHAR, frequency VARCHAR)
SELECT SUM(rank) FROM table_name_83 WHERE total = 1 AND silver < 0
What is the sum of the ranks with a total of 1 and silver less than 0.
CREATE TABLE table_name_83 (rank INTEGER, total VARCHAR, silver VARCHAR)
SELECT source_version FROM table_name_10 WHERE target_version = "java 7, 6, 5"
What is Source Version, when Target Version is Java 7, 6, 5?
CREATE TABLE table_name_10 (source_version VARCHAR, target_version VARCHAR)
SELECT competition FROM table_name_91 WHERE report = "aiff"
Which competition has a report of AIFF?
CREATE TABLE table_name_91 (competition VARCHAR, report VARCHAR)
SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4"
Who were the candidates in the Louisiana 4 district?
CREATE TABLE table_1341604_19 (candidates VARCHAR, district VARCHAR)
SELECT annual_change FROM table_name_48 WHERE location = "manaus"
Can you tell me the Annual change that has the Location of manaus?
CREATE TABLE table_name_48 (annual_change VARCHAR, location VARCHAR)
SELECT MIN(wins) FROM table_name_45 WHERE country = "australia"
What are the lowest wins for Australia?
CREATE TABLE table_name_45 (wins INTEGER, country VARCHAR)
SELECT COUNT(version) FROM table_28540539_2 WHERE release = "1.0.12"
What's the number of the 1.0.12 release version?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT gold FROM table_name_50 WHERE total > 2 AND bronze < 1
Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1?
CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980
What is the average horsepower of the cars before 1980?
CREATE TABLE CARS_DATA (horsepower INTEGER, YEAR INTEGER)
SELECT monounsaturated_fat FROM table_name_22 WHERE saturated_fat = "15g"
What is the monounsaturated fat with 15g of saturated fat?
CREATE TABLE table_name_22 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR)
SELECT date FROM table_27734769_8 WHERE high_rebounds = "LaMarcus Aldridge (6)"
What is the date the high rebounds were by lamarcus aldridge (6)?
CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)
SELECT term_start FROM table_name_12 WHERE term_end = "1919" AND date_of_birth = "january 8, 1859"
When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?
CREATE TABLE table_name_12 (term_start VARCHAR, term_end VARCHAR, date_of_birth VARCHAR)
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Leninsky"
What is the amount of trees, that require replacement when district is leninsky?
CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR)
SELECT winning_score FROM table_name_88 WHERE runner_s__up = "robin walton"
What is the winning scor of the tournament with Robin Walton as the runner-up?
CREATE TABLE table_name_88 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT opponent FROM table_name_7 WHERE score = "109–108"
Who was the opponent with a score of 109–108?
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
SELECT MIN(cores) FROM table_24099916_1
What's the smallest number for cores of any of the processor models?
CREATE TABLE table_24099916_1 (cores INTEGER)
SELECT COUNT(original_air_date) FROM table_18428024_3 WHERE no_in_series = 360
What is the original air date in series 360?
CREATE TABLE table_18428024_3 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_name_11 WHERE name = "mentuhotep iv"
What title did Mentuhotep IV have?
CREATE TABLE table_name_11 (title VARCHAR, name VARCHAR)
SELECT deputy FROM table_name_41 WHERE year = "1992–93"
What is the name of the deputy in 1992–93?
CREATE TABLE table_name_41 (deputy VARCHAR, year VARCHAR)
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE year = "2008"
How many % same-sex marriages are there for the year 2008?
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)
SELECT nationality FROM table_name_12 WHERE pick = 16
Name the nationality for pick of 16
CREATE TABLE table_name_12 (nationality VARCHAR, pick VARCHAR)
SELECT label FROM table_name_42 WHERE region = "united states" AND format = "download"
What label is in download format in the United States?
CREATE TABLE table_name_42 (label VARCHAR, region VARCHAR, format VARCHAR)
SELECT record FROM table_name_26 WHERE week = "9"
What was the record at week 9?
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR)
SELECT david_norris FROM table_name_92 WHERE michael_d_higgins = "46.2%"
What is the David Norris with a Michael D. Higgins that is 46.2%?
CREATE TABLE table_name_92 (david_norris VARCHAR, michael_d_higgins VARCHAR)
SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = "0.72%"
What religious groups made up 0.72% of the Indian population in 2001?
CREATE TABLE table_10710364_1 (religious_group VARCHAR, population__percentage_2001 VARCHAR)
SELECT home_away FROM table_name_68 WHERE field = "nickerson field" AND date = "july 10"
What is the home/away of the game at Nickerson Field at July 10?
CREATE TABLE table_name_68 (home_away VARCHAR, field VARCHAR, date VARCHAR)
SELECT pick__number FROM table_name_53 WHERE overall > 23 AND position = "guard" AND round = 13
In Round 13, what was the Pick # of the Guard Position with an Overall greater than 23?
CREATE TABLE table_name_53 (pick__number VARCHAR, round VARCHAR, overall VARCHAR, position VARCHAR)
SELECT position FROM table_name_24 WHERE player = "wayne ellington"
What position does Wayne Ellington play?
CREATE TABLE table_name_24 (position VARCHAR, player VARCHAR)
SELECT written_by FROM table_18646432_4 WHERE original_air_date = "September 29, 1999"
Who wrote the episode originally aired on September 29, 1999?
CREATE TABLE table_18646432_4 (written_by VARCHAR, original_air_date VARCHAR)
SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario"
Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario?
CREATE TABLE table_name_71 (winner VARCHAR, week_of VARCHAR, runner_up VARCHAR)
SELECT location FROM table_name_25 WHERE listed = "1977-11-23"
What location was listed on 1977-11-23?
CREATE TABLE table_name_25 (location VARCHAR, listed VARCHAR)
SELECT points FROM table_name_42 WHERE bike = "motobi tsr 6" AND riders = "kohta nozane"
How many points does Kohta Nozane have with a Motobi TSR 6?
CREATE TABLE table_name_42 (points VARCHAR, bike VARCHAR, riders VARCHAR)
SELECT player FROM table_name_85 WHERE position = "power forward" AND school_club_team = "depaul"
Which Player has position of power forward and School/Club Team of Depaul?
CREATE TABLE table_name_85 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_13 WHERE pick__number < 130 AND player = "tyler bunz"
Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1
CREATE TABLE table_name_13 (nationality VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT grid FROM table_name_57 WHERE time_retired = "accident"
What is the grid value which has Time/Retired value of accident?
CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR)
SELECT branding FROM table_2523809_1 WHERE channel = "TV-62"
List the branding name for channel tv-62.
CREATE TABLE table_2523809_1 (branding VARCHAR, channel VARCHAR)
SELECT loss FROM table_name_30 WHERE date = "april 26"
Which loss has a Date of april 26?
CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR)
SELECT name FROM table_10706879_3 WHERE winning_driver = "Johnny Rutherford"
What are the races that johnny rutherford has won?
CREATE TABLE table_10706879_3 (name VARCHAR, winning_driver VARCHAR)
SELECT visitor FROM table_name_42 WHERE time = "5:00 pm"
Who was the visitor at 5:00 pm?
CREATE TABLE table_name_42 (visitor VARCHAR, time VARCHAR)
SELECT location_attendance FROM table_27704187_11 WHERE game = 75
Where did they play and how many attended game number 75?
CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR)
SELECT race_name FROM table_22669375_1 WHERE rnd = 11
Name the race name for rnd being 11
CREATE TABLE table_22669375_1 (race_name VARCHAR, rnd VARCHAR)
SELECT name FROM table_name_64 WHERE type = "transfer" AND transfer_fee = "€8m + €2m in variables"
What is the name of the person with a type of transfer, and a Transfer fee of €8m + €2m in variables?
CREATE TABLE table_name_64 (name VARCHAR, type VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_17 WHERE country = "nga"
What is the name of the player from NGA?
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR)
SELECT network FROM table_name_70 WHERE year < 2011 AND title = "star king"
What is the network that aired Star King prior to 2011?
CREATE TABLE table_name_70 (network VARCHAR, year VARCHAR, title VARCHAR)
SELECT COUNT(season) FROM table_name_19 WHERE place = "santiago de chile, chile"
How many seasons took place in santiago de chile, chile?
CREATE TABLE table_name_19 (season VARCHAR, place VARCHAR)
SELECT population FROM table_101196_1 WHERE english_name = "Spiddal"
What is the population for the English name Spiddal?
CREATE TABLE table_101196_1 (population VARCHAR, english_name VARCHAR)
SELECT _number___county FROM table_name_13 WHERE year_joined > 1926 AND previous_conference = "olympic"
Which #/ County has a Year Joined larger than 1926, and a Previous Conference of olympic?
CREATE TABLE table_name_13 (_number___county VARCHAR, year_joined VARCHAR, previous_conference VARCHAR)
SELECT round FROM table_name_64 WHERE method = "submission"
What round has a method of submission?
CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR)
SELECT date FROM table_name_67 WHERE tie_no = "3"
What is the Date of Tie no 3?
CREATE TABLE table_name_67 (date VARCHAR, tie_no VARCHAR)
SELECT broadcast_date FROM table_name_60 WHERE run_time = "24:44"
What was the broadcaste date for the episode with a run time of 24:44?
CREATE TABLE table_name_60 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = "2001 2001"
with delivery date of 2001 2001 what is gross tonnage?
CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR)
SELECT SUM(week) FROM table_name_55 WHERE date = "september 24, 2000"
What week was September 24, 2000 on?
CREATE TABLE table_name_55 (week INTEGER, date VARCHAR)
SELECT dimensions FROM table_name_27 WHERE name = "u50"
What is the dimensions of the u50 appliance?
CREATE TABLE table_name_27 (dimensions VARCHAR, name VARCHAR)
SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 18.87 106.209mph"
When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?
CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR)
SELECT network FROM table_name_99 WHERE viewers = "17.5 million"
Which Network has 17.5 million Viewers?
CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR)
SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3"
For score 6–2, 6–3 and outcome is loser mention all the edition.
CREATE TABLE table_27877656_7 (edition VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT sabaean FROM table_26919_6 WHERE arabic = "sabʕ-"
Name the sabaean for sabʕ-
CREATE TABLE table_26919_6 (sabaean VARCHAR, arabic VARCHAR)
SELECT round FROM table_name_70 WHERE nationality = "canada" AND player = "jimmy drolet"
What is the round of Jimmy Drolet from Canada?
CREATE TABLE table_name_70 (round VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT 2012 FROM table_name_12 WHERE tournament = "us open"
What was the result in the 2012 for the US Open tournament?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT MAX(highest) FROM table_11207040_5 WHERE team = "St. Johnstone"
What is the highest attendance at a game played by St. Johnstone?
CREATE TABLE table_11207040_5 (highest INTEGER, team VARCHAR)
SELECT mark FROM table_name_19 WHERE name = "dmytro hlushchenko"
What is Mark, when Name is Dmytro Hlushchenko?
CREATE TABLE table_name_19 (mark VARCHAR, name VARCHAR)
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
What is the average decile for te puru school?
CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)
SELECT COUNT(week) FROM table_name_46 WHERE attendance < 21 OFFSET 097
What week had an Attendance smaller than 21,097?
CREATE TABLE table_name_46 (week VARCHAR, attendance INTEGER)
SELECT COUNT(races) FROM table_name_70 WHERE poles > 0
What is the total number of Races with a Pole that is larger than 0?
CREATE TABLE table_name_70 (races VARCHAR, poles INTEGER)
SELECT original_name FROM table_name_71 WHERE language = "spanish" AND country = "spain"
What was the original name of the Spanish song in Spain?
CREATE TABLE table_name_71 (original_name VARCHAR, language VARCHAR, country VARCHAR)
SELECT COUNT(pts_agst) FROM table_21991074_1 WHERE points = 7
For the team with 7 points, how many points were scored against this season?
CREATE TABLE table_21991074_1 (pts_agst VARCHAR, points VARCHAR)
SELECT time FROM table_name_68 WHERE opponent = "fredson paixão"
What time was Opponent Fredson Paixão beaten in?
CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR)
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
In the games at corio oval, what was the highest crowd?
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
SELECT celebrity FROM table_name_64 WHERE exited = "day 12"
Who exited on Day 12?
CREATE TABLE table_name_64 (celebrity VARCHAR, exited VARCHAR)
SELECT nation FROM table_name_19 WHERE third = "darko sovran"
In what nation did Darko Sovran place third?
CREATE TABLE table_name_19 (nation VARCHAR, third VARCHAR)
SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party'
What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?
CREATE TABLE services (service_type_code VARCHAR, organization_id VARCHAR); CREATE TABLE organizations (organization_id VARCHAR, organization_details VARCHAR)
SELECT COUNT(*) FROM Rooms WHERE bedType = "King"
Find the number of rooms with a king bed.
CREATE TABLE Rooms (bedType VARCHAR)
SELECT competition FROM table_name_4 WHERE date = "2 june 1992"
What competition was played on 2 June 1992?
CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR)
SELECT extra FROM table_name_30 WHERE result = "2nd" AND year < 2005
Which extra resulted in 2nd before 2005?
CREATE TABLE table_name_30 (extra VARCHAR, result VARCHAR, year VARCHAR)
SELECT surface FROM table_name_45 WHERE partner = "galina voskoboeva"
Which Surface has a Partner of galina voskoboeva?
CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR)
SELECT airport FROM table_name_71 WHERE city = "macau"
Which airport is associated with Macau?
CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR)
SELECT house_1950 FROM table_name_19 WHERE general_1950 = "general 1986"
What shows for House 1950 when the General 1950 is general 1986?
CREATE TABLE table_name_19 (house_1950 VARCHAR, general_1950 VARCHAR)
SELECT MAX(challenge_cup) FROM table_17598822_11 WHERE player = "Damon Gray"
Name the most challenge cup for damon gray
CREATE TABLE table_17598822_11 (challenge_cup INTEGER, player VARCHAR)
SELECT COUNT(afc_cup) FROM table_14460937_1 WHERE play_off = 1
How many times has the playoff been 1 in the contest for the afc cup?
CREATE TABLE table_14460937_1 (afc_cup VARCHAR, play_off VARCHAR)
SELECT location FROM table_name_86 WHERE record = "2-1"
What was the location of the game when the record was 2-1?
CREATE TABLE table_name_86 (location VARCHAR, record VARCHAR)
SELECT COUNT(rank) FROM table_name_3 WHERE goals = 100 AND matches < 300
What is the total number of Rank with 100 goals, and less than 300 matches?
CREATE TABLE table_name_3 (rank VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_35 WHERE cyrillic_name_other_names = "Меленци"
Name the dominant religion 2002 for меленци
CREATE TABLE table_2562572_35 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves"
What ground had Portsmouth reserves as an opponent?
CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR)
SELECT nickname FROM table_name_73 WHERE age___ma__ = "4.9"
Name the nickname with age of 4.9
CREATE TABLE table_name_73 (nickname VARCHAR, age___ma__ VARCHAR)
SELECT visiting_team FROM table_name_99 WHERE stadium = "rca dome"
Who was the visiting team at the matchup at the RCA Dome?
CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR)
SELECT AVG(drawn) FROM table_name_64 WHERE difference = "17" AND points = 22
What is the average number of drawn with a difference of 17 and 22 points?
CREATE TABLE table_name_64 (drawn INTEGER, difference VARCHAR, points VARCHAR)
SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1
Find the id and name of the most expensive base price room.
CREATE TABLE Rooms (RoomId VARCHAR, roomName VARCHAR, basePrice VARCHAR)
SELECT away_team AS score FROM table_name_17 WHERE away_team = "melbourne"
What was Melbourne's score as the away team?
CREATE TABLE table_name_17 (away_team VARCHAR)
SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = "Kitechura"
How many tree species are in the kitechura reserve?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, central_forest_reserve VARCHAR)
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds"
What percentage of the votes did McCain get in Hinds?
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT COUNT(starts) FROM table_2622469_1 WHERE avg_finish = "17.9"
How many different starts had an average finish of 17.9?
CREATE TABLE table_2622469_1 (starts VARCHAR, avg_finish VARCHAR)
SELECT release_title FROM table_27932399_1 WHERE artist = "Heavy Winged"
What was the name of the album released by Heavy Winged?
CREATE TABLE table_27932399_1 (release_title VARCHAR, artist VARCHAR)
SELECT method FROM table_name_89 WHERE round = 1 AND record = "1-0"
Which method was used in round 1 with a record of 1-0?
CREATE TABLE table_name_89 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM files WHERE duration LIKE "4:%"
How many songs have 4 minute duration?
CREATE TABLE files (duration VARCHAR)
SELECT format FROM table_name_80 WHERE station = "kcbs"
Which format has a Station of kcbs?
CREATE TABLE table_name_80 (format VARCHAR, station VARCHAR)