question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the nationality for the guard position from Bowling Green?
CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green"
What is the total of televote for the artist Pokeris when the place was less than 10?
CREATE TABLE table_name_44 (televote INTEGER, artist VARCHAR, place VARCHAR)
SELECT SUM(televote) FROM table_name_44 WHERE artist = "pokeris" AND place < 10
What is the highest place of a swimmer from the Netherlands?
CREATE TABLE table_name_75 (rank INTEGER, nationality VARCHAR)
SELECT MAX(rank) FROM table_name_75 WHERE nationality = "netherlands"
What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?
CREATE TABLE table_name_87 (silver INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT AVG(silver) FROM table_name_87 WHERE bronze < 15 AND nation = "montenegro" AND total > 11
Who has a DCSF number of 3373?
CREATE TABLE table_name_19 (name VARCHAR, dcsf_number VARCHAR)
SELECT name FROM table_name_19 WHERE dcsf_number = 3373
What is the lowest played that has points greater than 11, 1 as the position, and a loss less than 1?
CREATE TABLE table_name_38 (played INTEGER, lost VARCHAR, points VARCHAR, position VARCHAR)
SELECT MIN(played) FROM table_name_38 WHERE points > 11 AND position = 1 AND lost < 1
What is the highest f/laps with less than 0 wins?
CREATE TABLE table_name_53 (f_laps INTEGER, wins INTEGER)
SELECT MAX(f_laps) FROM table_name_53 WHERE wins < 0
Name the score for howard (8) high rebounds
CREATE TABLE table_name_44 (score VARCHAR, high_rebounds VARCHAR)
SELECT score FROM table_name_44 WHERE high_rebounds = "howard (8)"
Name the city of license with resolution of sd 480i and official website of telemundo.com
CREATE TABLE table_name_34 (city_of_license VARCHAR, resolution VARCHAR, official_website VARCHAR)
SELECT city_of_license FROM table_name_34 WHERE resolution = "sd 480i" AND official_website = "telemundo.com"
Find employee with ID and name of the country presently where (s)he is working.
CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, department_id VARCHAR)
SELECT T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id
What was the date when the away team was the leeds united?
CREATE TABLE table_name_3 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_3 WHERE away_team = "leeds united"
What Game had a Result of 125-123 (OT)?
CREATE TABLE table_name_45 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_45 WHERE result = "125-123 (ot)"
What is the place of player john cook?
CREATE TABLE table_name_73 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_73 WHERE player = "john cook"
What is the record for the game against New England Patriots at the Rich Stadium?
CREATE TABLE table_name_89 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_89 WHERE game_site = "rich stadium" AND opponent = "new england patriots"
What is the 2nd leg for Barcelona Team 2?
CREATE TABLE table_name_49 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona"
When the clippers are the team how many games are there?
CREATE TABLE table_23285849_10 (game VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_23285849_10 WHERE team = "Clippers"
Which Year is the highest one that has a Work of the clone, and an Award of contigo award?
CREATE TABLE table_name_8 (year INTEGER, work VARCHAR, award VARCHAR)
SELECT MAX(year) FROM table_name_8 WHERE work = "the clone" AND award = "contigo award"
How many defending points did radek štěpánek have?
CREATE TABLE table_24431264_18 (points INTEGER, player VARCHAR)
SELECT MAX(points) AS defending FROM table_24431264_18 WHERE player = "Radek Štěpánek"
How many players are there for mens singles when chen qi ma lin played mens doubles?
CREATE TABLE table_28138035_20 (mens_singles VARCHAR, mens_doubles VARCHAR)
SELECT COUNT(mens_singles) FROM table_28138035_20 WHERE mens_doubles = "Chen Qi Ma Lin"
Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38
CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR)
SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38"
What is the area in acres of gortnaskehy?
CREATE TABLE table_30120605_1 (area__acres__ VARCHAR, townland VARCHAR)
SELECT area__acres__ FROM table_30120605_1 WHERE townland = "Gortnaskehy"
How many steals did jasmine wynne have?
CREATE TABLE table_23346303_4 (steals VARCHAR, player VARCHAR)
SELECT steals FROM table_23346303_4 WHERE player = "Jasmine Wynne"
What is No. 2, when No. 9 is Mia?
CREATE TABLE table_name_56 (no_2 VARCHAR, no_9 VARCHAR)
SELECT no_2 FROM table_name_56 WHERE no_9 = "mia"
What actor has goede tijden, slechte tijden, as the soap opera, 11 years as the duration, with rosa gonzalez as the character?
CREATE TABLE table_name_91 (actor VARCHAR, character VARCHAR, soap_opera VARCHAR, duration VARCHAR)
SELECT actor FROM table_name_91 WHERE soap_opera = "goede tijden, slechte tijden" AND duration = "11 years" AND character = "rosa gonzalez"
Which Elimination Move is listed at Elimination 8 for Team Batista?
CREATE TABLE table_name_90 (elimination VARCHAR, team VARCHAR)
SELECT elimination AS Move FROM table_name_90 WHERE team = "team batista" AND elimination = "8"
Which nhl team has a college/junior/club team named university of notre dame (ncaa)
CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)"
If the location is Yangon, Myanmar, what is the opponent total number?
CREATE TABLE table_25428629_1 (opponent VARCHAR, location VARCHAR)
SELECT COUNT(opponent) FROM table_25428629_1 WHERE location = "Yangon, Myanmar"
Which stage has a Winner of lucien van impe?
CREATE TABLE table_name_19 (stage VARCHAR, winner VARCHAR)
SELECT stage FROM table_name_19 WHERE winner = "lucien van impe"
What is the highest frequency from uncionfeypoder.com?
CREATE TABLE table_name_79 (frequency INTEGER, website VARCHAR)
SELECT MAX(frequency) FROM table_name_79 WHERE website = "uncionfeypoder.com"
How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR)
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "Pete Goffe-Wood Andrew Atkinson Benny Masekwameng"
Which away team that had a tie of 7?
CREATE TABLE table_name_27 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_27 WHERE tie_no = "7"
Which nation has the number of silver medals greater than 1, and bronze medals as 1?
CREATE TABLE table_name_7 (nation VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_7 WHERE silver > 1 AND bronze = 1
What is the lowest round of the Kitchener Rangers (OHA)?
CREATE TABLE table_name_97 (round INTEGER, college_junior_club_team__league_ VARCHAR)
SELECT MIN(round) FROM table_name_97 WHERE college_junior_club_team__league_ = "kitchener rangers (oha)"
Name the starter for schulte
CREATE TABLE table_14342592_4 (starter VARCHAR, player VARCHAR)
SELECT starter FROM table_14342592_4 WHERE player = "Schulte"
What is the maximum number of km listed?
CREATE TABLE table_206361_2 (kilometer INTEGER)
SELECT MAX(kilometer) FROM table_206361_2
how many have the number 8
CREATE TABLE table_10470082_5 (no VARCHAR, _number VARCHAR)
SELECT COUNT(no) FROM table_10470082_5 WHERE _number = 8
What is the names of the physicians who prescribe medication Thesisin?
CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE medication (code VARCHAR, name VARCHAR)
SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = "Thesisin"
What are the titles of the books whose writer is not "Elaine Lee"?
CREATE TABLE book (Title VARCHAR, Writer VARCHAR)
SELECT Title FROM book WHERE Writer <> "Elaine Lee"
Name the resolution for ketftv.com and callsign of kldo-dt2
CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR)
SELECT resolution FROM table_name_87 WHERE official_website = "ketftv.com" AND callsign = "kldo-dt2"
What is the Score on 11 march 2001?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_76 WHERE date = "11 march 2001"
What is the Number of dances is 11 and competition finish is larger than 2.0 total
CREATE TABLE table_1354805_3 (total VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)
SELECT total FROM table_1354805_3 WHERE number_of_dances = 11 AND competition_finish > 2.0
On what Date did the Away team essendon play?
CREATE TABLE table_name_11 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_11 WHERE away_team = "essendon"
What is the City, when the Prize is $1,859,000?
CREATE TABLE table_name_17 (city VARCHAR, prize VARCHAR)
SELECT city FROM table_name_17 WHERE prize = "$1,859,000"
what is the competition when the result is 2-1?
CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_58 WHERE result = "2-1"
When did the Theme of bobsleigh release?
CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR)
SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh"
Show the statuses of roller coasters longer than 3300 or higher than 100.
CREATE TABLE roller_coaster (Status VARCHAR, LENGTH VARCHAR, Height VARCHAR)
SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
What is the highest Version, when Release Date is "2011-04-01"?
CREATE TABLE table_name_38 (version INTEGER, release_date VARCHAR)
SELECT MAX(version) FROM table_name_38 WHERE release_date = "2011-04-01"
What is the number of artists for each gender?
CREATE TABLE artist (gender VARCHAR)
SELECT COUNT(*), gender FROM artist GROUP BY gender
What is the average year of the montreal expos?
CREATE TABLE table_name_14 (year INTEGER, team VARCHAR)
SELECT AVG(year) FROM table_name_14 WHERE team = "montreal expos"
When was the departure date when a manager was replaced by Bojan Prašnikar?
CREATE TABLE table_name_41 (date_of_departure VARCHAR, replaced_by VARCHAR)
SELECT date_of_departure FROM table_name_41 WHERE replaced_by = "bojan prašnikar"
What are the average, maximum and total revenues of all companies?
CREATE TABLE manufacturers (revenue INTEGER)
SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers
Which Draw is the lowest one that has Champs smaller than 0?
CREATE TABLE table_name_40 (draw INTEGER, champs INTEGER)
SELECT MIN(draw) FROM table_name_40 WHERE champs < 0
Which event has a distance of ft10in (m)?
CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)
SELECT event FROM table_name_88 WHERE distance = "ft10in (m)"
Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat?
CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ"
What is Final round, when Player is Danilo Gallinari?
CREATE TABLE table_name_50 (final_round VARCHAR, player VARCHAR)
SELECT final_round FROM table_name_50 WHERE player = "danilo gallinari"
What was the location attendance when High points was by Pierce (22)?
CREATE TABLE table_11959669_4 (location_attendance VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_11959669_4 WHERE high_points = "Pierce (22)"
What was the highest attendance at a game that was played in tulane stadium?
CREATE TABLE table_name_63 (attendance INTEGER, game_site VARCHAR)
SELECT MAX(attendance) FROM table_name_63 WHERE game_site = "tulane stadium"
What are the sales in Japan for the release totaling 1.82 million?
CREATE TABLE table_name_88 (japan VARCHAR, total VARCHAR)
SELECT japan FROM table_name_88 WHERE total = "1.82 million"
What is the total for Austria when there is less than 1 bronze?
CREATE TABLE table_name_47 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_47 WHERE nation = "austria" AND bronze < 1
Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?
CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_68 WHERE score = "1–1" AND away_team = "tottenham hotspur"
Which Match has the percentage won 52.38?
CREATE TABLE table_name_77 (matches VARCHAR, _percentage_won VARCHAR)
SELECT matches FROM table_name_77 WHERE _percentage_won = "52.38"
In what nation did Darko Sovran place third?
CREATE TABLE table_name_19 (nation VARCHAR, third VARCHAR)
SELECT nation FROM table_name_19 WHERE third = "darko sovran"
Which College/Junior/Club Team (League) are from sweden?
CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden"
How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?
CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3
What is the highest To Par, when Place is "1"?
CREATE TABLE table_name_22 (to_par INTEGER, place VARCHAR)
SELECT MAX(to_par) FROM table_name_22 WHERE place = "1"
What school/club team did Amal McCaskill play for?
CREATE TABLE table_name_40 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_40 WHERE player = "amal mccaskill"
What was the score of the game against the San Diego Chargers?
CREATE TABLE table_name_41 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_41 WHERE opponent = "san diego chargers"
Which Venue has a Kitmaker of lotto, and a Team of apoel?
CREATE TABLE table_name_37 (venue VARCHAR, kitmaker VARCHAR, team VARCHAR)
SELECT venue FROM table_name_37 WHERE kitmaker = "lotto" AND team = "apoel"
What name has an overall less than 268, and 1 as the round?
CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR)
SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1
Who appointed Judge Edward E. Cushman?
CREATE TABLE table_name_73 (appointed_by VARCHAR, judge VARCHAR)
SELECT appointed_by FROM table_name_73 WHERE judge = "edward e. cushman"
On what Date was the Score 4–1?
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_76 WHERE score = "4–1"
What was the aggregate score for the match won by Brive?
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive"
What is the height above sea level for the station opened 175.67km from Wellington prior to 1887?
CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)
SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = "175.67km"
What is the smallest Weight, when Spike is less than 330, when Block is 315, and when Height is greater than 187?
CREATE TABLE table_name_78 (weight INTEGER, height VARCHAR, spike VARCHAR, block VARCHAR)
SELECT MIN(weight) FROM table_name_78 WHERE spike < 330 AND block = 315 AND height > 187
Which townland has an area of 165 acres?
CREATE TABLE table_30120619_1 (townland VARCHAR, area__acres__ VARCHAR)
SELECT townland FROM table_30120619_1 WHERE area__acres__ = 165
What is Race 4, when Race 1 is 28?
CREATE TABLE table_name_51 (race_4 VARCHAR, race_1 VARCHAR)
SELECT race_4 FROM table_name_51 WHERE race_1 = "28"
The Milford School has what Division Record?
CREATE TABLE table_name_79 (division_record VARCHAR, school VARCHAR)
SELECT division_record FROM table_name_79 WHERE school = "milford"
What is the result for w. arthur winstead?
CREATE TABLE table_1342233_24 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342233_24 WHERE incumbent = "W. Arthur Winstead"
Who was the visiting team at the Cavaliers game that had a score of 121–85?
CREATE TABLE table_name_29 (visitor VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_29 WHERE score = "121–85"
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?
CREATE TABLE table_name_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = "china"
Who was the outgoing manager of Charleroi?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_27374004_3 WHERE team = "Charleroi"
What was the year when the diameter was 729 km?
CREATE TABLE table_name_59 (year_named VARCHAR, diameter__km_ VARCHAR)
SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729
Lowest number of drop goals?
CREATE TABLE table_20505342_1 (drop_goals INTEGER)
SELECT MIN(drop_goals) FROM table_20505342_1
Name the nat for total apps for 27
CREATE TABLE table_19018191_5 (nat VARCHAR, total_apps VARCHAR)
SELECT nat FROM table_19018191_5 WHERE total_apps = 27
List the name of tracks belongs to genre Rock or genre Jazz.
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
Which Event has a Record of 4:02.54?
CREATE TABLE table_name_90 (event VARCHAR, record VARCHAR)
SELECT event FROM table_name_90 WHERE record = "4:02.54"
Which Nationality has a Player of larry wright?
CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_86 WHERE player = "larry wright"
How many have a class of 330?
CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR)
SELECT quantity_made FROM table_name_97 WHERE class = "330"
I want the venue for 23 july 1992
CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_64 WHERE date = "23 july 1992"
What was the record on the game played on July 1?
CREATE TABLE table_18894744_6 (record VARCHAR, date VARCHAR)
SELECT record FROM table_18894744_6 WHERE date = "July 1"
What is the GDP (PPP) (USD, per capita) for Algeria?
CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR)
SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = "Algeria"
Which Year Start has a Number of 28?
CREATE TABLE table_name_41 (year_start INTEGER, number VARCHAR)
SELECT MAX(year_start) FROM table_name_41 WHERE number = 28
What is the score for the away team of north melbourne?
CREATE TABLE table_name_79 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_79 WHERE away_team = "north melbourne"
What was the result of the election when someone was first elected in 1960?
CREATE TABLE table_1341640_14 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341640_14 WHERE first_elected = 1960
Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?
CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)
SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = ...
What is the Transfer fee, when the Transfer window is "winter", and when the item "Moving to" is Northwich Victoria?
CREATE TABLE table_name_94 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
SELECT transfer_fee FROM table_name_94 WHERE transfer_window = "winter" AND moving_to = "northwich victoria"
What city held that game with a 5:2 result?
CREATE TABLE table_name_5 (city VARCHAR, results¹ VARCHAR)
SELECT city FROM table_name_5 WHERE results¹ = "5:2"
What was the earliest year during which the winner was Matthew King, and during which the score was higher than 270?
CREATE TABLE table_name_25 (year INTEGER, winner VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_name_25 WHERE winner = "matthew king" AND score > 270
What is Event, when Year is 2008?
CREATE TABLE table_name_59 (event VARCHAR, year VARCHAR)
SELECT event FROM table_name_59 WHERE year = 2008
When did Geelong play as the home team?
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "geelong"