question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR)
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385"
What is Location, when Game is 42?
CREATE TABLE table_name_70 (location VARCHAR, game VARCHAR)
SELECT location FROM table_name_70 WHERE game = 42
List document type codes and the number of documents in each code.
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT document_type_code, COUNT(*) FROM Documents GROUP BY document_type_code
What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team?
CREATE TABLE table_name_1 (year INTEGER, finish VARCHAR, start VARCHAR, team VARCHAR)
SELECT MAX(year) FROM table_name_1 WHERE start = "3" AND team = "morgan-mcclure" AND finish = "40"
What year is United States school/club team from Arkansas play in Toronto
CREATE TABLE table_name_87 (years_in_toronto VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT years_in_toronto FROM table_name_87 WHERE nationality = "united states" AND school_club_team = "arkansas"
When the percent is larger than 0.685, what is the average number of points scored?
CREATE TABLE table_name_61 (points INTEGER, pct__percentage INTEGER)
SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685
In which townlands is the civil parish Monkstown?
CREATE TABLE table_30120619_1 (townland VARCHAR, civil_parish VARCHAR)
SELECT townland FROM table_30120619_1 WHERE civil_parish = "Monkstown"
What is Date, when Tournament is Alfred Dunhill Championship 1?
CREATE TABLE table_name_87 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_87 WHERE tournament = "alfred dunhill championship 1"
Which city is in Cantabria?
CREATE TABLE table_name_34 (city VARCHAR, province VARCHAR)
SELECT city FROM table_name_34 WHERE province = "cantabria"
What is Country, when Place is "Torino"?
CREATE TABLE table_name_72 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_72 WHERE place = "torino"
what ceremony did big titty milfs work in
CREATE TABLE table_name_35 (ceremony VARCHAR, work VARCHAR)
SELECT ceremony FROM table_name_35 WHERE work = "big titty milfs"
What was the airdate of the episode with 106000 dave ja vu viewers?
CREATE TABLE table_25721_3 (airdate VARCHAR, dave_ja_vu_viewers VARCHAR)
SELECT airdate FROM table_25721_3 WHERE dave_ja_vu_viewers = 106000
Which IHSAA Class has a Mascot of wildcats?
CREATE TABLE table_name_2 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_2 WHERE mascot = "wildcats"
On what Date was the Result 82-92?
CREATE TABLE table_name_52 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_52 WHERE result = "82-92"
Name the score for columbus visitor
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_73 WHERE visitor = "columbus"
What is the venue where john zibnack was the runner-up?
CREATE TABLE table_name_54 (venue VARCHAR, runner_up VARCHAR)
SELECT venue FROM table_name_54 WHERE runner_up = "john zibnack"
Which sail is in the America 3 Foundation syndicate on the America 3 yacht?
CREATE TABLE table_name_96 (sail VARCHAR, syndicate VARCHAR, yacht VARCHAR)
SELECT sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 3"
How many millions of US viewers watched the episode written by Jack Sanderson?
CREATE TABLE table_27462177_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT us_viewers__millions_ FROM table_27462177_1 WHERE written_by = "Jack Sanderson"
What is the total number in 2006, which has an official foundation of municipality of 1918?
CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)
SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918
what is the venue on october 28, 2008?
CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_43 WHERE date = "october 28, 2008"
How many Points have an Opponent of @ calgary flames?
CREATE TABLE table_name_77 (points INTEGER, opponent VARCHAR)
SELECT SUM(points) FROM table_name_77 WHERE opponent = "@ calgary flames"
How many points have @ new york islanders as the opponent, with a game greater than 35?
CREATE TABLE table_name_64 (points VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT COUNT(points) FROM table_name_64 WHERE opponent = "@ new york islanders" AND game > 35
When was the operation in Field 103 executed?
CREATE TABLE table_13150274_1 (years_of_operation VARCHAR, area_of_operation VARCHAR)
SELECT years_of_operation FROM table_13150274_1 WHERE area_of_operation = "Field 103"
What is the sum of Year, when Role is "himself", and when Notes is "celebrity guest alongside yg family"?
CREATE TABLE table_name_39 (year INTEGER, role VARCHAR, notes VARCHAR)
SELECT SUM(year) FROM table_name_39 WHERE role = "himself" AND notes = "celebrity guest alongside yg family"
How many in the majority when Dan Sullivan won?
CREATE TABLE table_name_9 (majority VARCHAR, winner VARCHAR)
SELECT COUNT(majority) FROM table_name_9 WHERE winner = "dan sullivan"
Which vehicle had a class of CM14?
CREATE TABLE table_name_8 (vehicle VARCHAR, class VARCHAR)
SELECT vehicle FROM table_name_8 WHERE class = "cm14"
How many yardage figures for the player with 72.3 QB rating?
CREATE TABLE table_19418696_3 (yards VARCHAR, qb_rating VARCHAR)
SELECT COUNT(yards) FROM table_19418696_3 WHERE qb_rating = "72.3"
What was the score of the game when the attendance was 48945?
CREATE TABLE table_13258876_2 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_13258876_2 WHERE attendance = 48945
Who was the home team at the game held at the Junction Oval?
CREATE TABLE table_name_73 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_73 WHERE venue = "junction oval"
What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient?
CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient"
Name the least runs conceded for brett lee
CREATE TABLE table_15700367_4 (runs_conceded INTEGER, name VARCHAR)
SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee"
What was the score of the game where Wallace (17) had the highest points?
CREATE TABLE table_name_68 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_68 WHERE high_points = "wallace (17)"
What capital has an area of 2166086?
CREATE TABLE table_name_53 (capital VARCHAR, area__km²_ VARCHAR)
SELECT capital FROM table_name_53 WHERE area__km²_ = 2166086
What is the result week 6?
CREATE TABLE table_name_44 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_44 WHERE week = 6
What were the goals in the game with the 26-28 final score?
CREATE TABLE table_name_5 (goals VARCHAR, score VARCHAR)
SELECT goals FROM table_name_5 WHERE score = "26-28"
List the countries having more than 4 addresses listed.
CREATE TABLE addresses (country VARCHAR, address_id VARCHAR)
SELECT country FROM addresses GROUP BY country HAVING COUNT(address_id) > 4
what is the date for the tournament joué-lès-tours?
CREATE TABLE table_name_52 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_52 WHERE tournament = "joué-lès-tours"
What is the name of the driver in 1955?
CREATE TABLE table_name_18 (driver VARCHAR, year VARCHAR)
SELECT driver FROM table_name_18 WHERE year = "1955"
What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?
CREATE TABLE table_name_68 (losses VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR)
SELECT COUNT(losses) FROM table_name_68 WHERE draws < 7 AND points > 26 AND goals_for = 60 AND position < 4
What season was Freiburger FC the RL Süd (2nd) team?
CREATE TABLE table_20217456_7 (season VARCHAR, rl_süd__2nd_ VARCHAR)
SELECT season FROM table_20217456_7 WHERE rl_süd__2nd_ = "Freiburger FC"
What win method has a time of 2:32?
CREATE TABLE table_name_71 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_71 WHERE time = "2:32"
What is the Authority for Kuranui Primary School that is located in the Area of Tirau?
CREATE TABLE table_name_82 (authority VARCHAR, area VARCHAR, name VARCHAR)
SELECT authority FROM table_name_82 WHERE area = "tirau" AND name = "kuranui primary school"
What was the largest crowd where the home team was Fitzroy?
CREATE TABLE table_name_19 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_19 WHERE home_team = "fitzroy"
What day did the VFL play Punt Road Oval?
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_59 WHERE venue = "punt road oval"
Which Loss has a Record of 20–16–9?
CREATE TABLE table_name_75 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_75 WHERE record = "20–16–9"
What is the mean round number for center position when the pick number is less than 23?
CREATE TABLE table_name_39 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT AVG(round) FROM table_name_39 WHERE position = "center" AND pick__number < 23
How many points did ginger have when she was ranked 5th on a 350cc class bike?
CREATE TABLE table_name_73 (points VARCHAR, class VARCHAR, rank VARCHAR)
SELECT COUNT(points) FROM table_name_73 WHERE class = "350cc" AND rank = "5th"
What was November 4, 1973 attendance?
CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_64 WHERE date = "november 4, 1973"
Date of 24 september 2002 is what group position?
CREATE TABLE table_name_55 (group_position VARCHAR, date VARCHAR)
SELECT group_position FROM table_name_55 WHERE date = "24 september 2002"
What Outcome has Opponents of bob hewitt frew mcmillan?
CREATE TABLE table_name_2 (outcome VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_name_2 WHERE opponents = "bob hewitt frew mcmillan"
If the team is Rubio ñú, what is the 08 points?
CREATE TABLE table_22011138_7 (team VARCHAR)
SELECT 08 AS _pts FROM table_22011138_7 WHERE team = "Rubio Ñú"
On what date was the 4th round, with home team Itabuna, played?
CREATE TABLE table_name_4 (date VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_4 WHERE round = "4th" AND home_team = "itabuna"
WHich Position is from russia?
CREATE TABLE table_name_39 (position VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_39 WHERE nationality = "russia"
Which group has a weight (kg) less than 55?
CREATE TABLE table_name_18 (group VARCHAR, weight__kg_ INTEGER)
SELECT group FROM table_name_18 WHERE weight__kg_ < 55
Name the semifinalists for singapore
CREATE TABLE table_30007505_1 (semifinalists VARCHAR, country_territory VARCHAR)
SELECT semifinalists FROM table_30007505_1 WHERE country_territory = "Singapore"
What's Dorain Anneck's pick number?
CREATE TABLE table_1013129_3 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_1013129_3 WHERE player = "Dorain Anneck"
What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?
CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR)
SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = "forward topfeed" AND built_at = "crewe" AND lot_no < 187
What day in February had an opponent of @ Colorado Rockies?
CREATE TABLE table_name_57 (february INTEGER, opponent VARCHAR)
SELECT SUM(february) FROM table_name_57 WHERE opponent = "@ colorado rockies"
What's the maximum game in the javale mcgee (5) high rebounds?
CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR)
SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)"
How many informations does Michael Hawkins have?
CREATE TABLE table_11340432_1 (information VARCHAR, shadow_ridge VARCHAR)
SELECT COUNT(information) FROM table_11340432_1 WHERE shadow_ridge = "Michael Hawkins"
What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?
CREATE TABLE table_name_81 (wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR)
SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1
Which class had 110 points?
CREATE TABLE table_name_23 (class VARCHAR, points VARCHAR)
SELECT class FROM table_name_23 WHERE points = 110
What catalog had an Epic Records label in CD format?
CREATE TABLE table_name_16 (catalog VARCHAR, label VARCHAR, format VARCHAR)
SELECT catalog FROM table_name_16 WHERE label = "epic records" AND format = "cd"
Name the area for civil parish ballynoe and killasseragh
CREATE TABLE table_30120664_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)
SELECT area__acres__ FROM table_30120664_1 WHERE civil_parish = "Ballynoe" AND townland = "Killasseragh"
The nhl team new york islanders is what nationality?
CREATE TABLE table_1013129_1 (nationality VARCHAR, nhl_team VARCHAR)
SELECT nationality FROM table_1013129_1 WHERE nhl_team = "New York Islanders"
Which customer had at least 2 policies but did not file any claims? List the customer details and id.
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (customer_id VARCHAR, policy_id VARCHAR); CREATE TABLE Claims (policy_id VARCHAR)
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims ...
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 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(*)
On what date was Nick Price the runner-up?
CREATE TABLE table_name_7 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_7 WHERE runner_s__up = "nick price"
What's the L3 cache that has a low power part number?
CREATE TABLE table_name_84 (l3_cache VARCHAR, part_number_s_ VARCHAR)
SELECT l3_cache FROM table_name_84 WHERE part_number_s_ = "low power"
When vfl park is the venue what's the Away team playing?
CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_81 WHERE venue = "vfl park"
On what date was Tie #26 played?
CREATE TABLE table_name_90 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_90 WHERE tie_no = "26"
What was the departure time when the arrival was 14.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, arrival VARCHAR)
SELECT departure FROM table_18332845_2 WHERE arrival = "14.40"
What is Doucet when Lawrance is 36?
CREATE TABLE table_11447995_2 (doucet VARCHAR, lawrance VARCHAR)
SELECT doucet FROM table_11447995_2 WHERE lawrance = "36"
Which Round has kim eun-ha as an Opponent?
CREATE TABLE table_name_37 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_37 WHERE opponent = "kim eun-ha"
What catalogno was in 1971 and had a remark of #27 us?
CREATE TABLE table_name_31 (catalogno VARCHAR, year VARCHAR, remark VARCHAR)
SELECT catalogno FROM table_name_31 WHERE year = 1971 AND remark = "#27 us"
Which Home Town had the weight of 201?
CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR)
SELECT home_town FROM table_name_67 WHERE weight = 201
Name the date for washington
CREATE TABLE table_27722734_7 (date VARCHAR, team VARCHAR)
SELECT date FROM table_27722734_7 WHERE team = "Washington"
what is part 2 when part 4 is gebonden?
CREATE TABLE table_name_92 (part_2 VARCHAR, part_4 VARCHAR)
SELECT part_2 FROM table_name_92 WHERE part_4 = "gebonden"
What was the competition for score of 3-0
CREATE TABLE table_name_71 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_71 WHERE score = "3-0"
What are the official name(s) of places with an area of 304.06 km2?
CREATE TABLE table_176521_2 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT official_name FROM table_176521_2 WHERE area_km_2 = "304.06"
Name the least horizontal for smpte 259m three quarters
CREATE TABLE table_272313_2 (horizontal INTEGER, pixel_aspect_ratio VARCHAR)
SELECT MIN(horizontal) FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M three quarters"
What team did they play on april 6?
CREATE TABLE table_27755603_11 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27755603_11 WHERE date = "April 6"
How many students play sports?
CREATE TABLE Sportsinfo (StuID VARCHAR)
SELECT COUNT(DISTINCT StuID) FROM Sportsinfo
What is Norway's least ends lost?
CREATE TABLE table_16922657_2 (Ends INTEGER, country VARCHAR, Norway VARCHAR)
SELECT MIN(Ends) AS lost FROM table_16922657_2 WHERE country = Norway
What is the highest number played with a goal difference less than -27?
CREATE TABLE table_name_57 (played INTEGER, goal_difference INTEGER)
SELECT MAX(played) FROM table_name_57 WHERE goal_difference < -27
Which position has a School of green valley high school?
CREATE TABLE table_name_26 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_26 WHERE school = "green valley high school"
What is the low win count with more than 72 goals?
CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER)
SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72
What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?
CREATE TABLE table_name_6 (year VARCHAR, wins VARCHAR, win__percentage VARCHAR, matches VARCHAR)
SELECT year FROM table_name_6 WHERE win__percentage = "50.00%" AND matches > 14 AND wins > 8
Which school picked a back in round 16, after pick 89?
CREATE TABLE table_name_20 (school VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT school FROM table_name_20 WHERE pick > 89 AND position = "back" AND round = 16
Name the average attendance with result of won 2-0 on 2 november 2007
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007"
Golfer Steve Pate has what To par?
CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
What is the population with an area of 1,126.84?
CREATE TABLE table_name_44 (population INTEGER, area VARCHAR)
SELECT MIN(population) FROM table_name_44 WHERE area = 1 OFFSET 126.84
Which WNBA team that won at least 2 championships was established most recently?
CREATE TABLE table_name_54 (established INTEGER, league VARCHAR, championships VARCHAR)
SELECT MAX(established) FROM table_name_54 WHERE league = "wnba" AND championships > 2
What country has a score of 71-66-72-72=281?
CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_79 WHERE score = 71 - 66 - 72 - 72 = 281
What is the date of the match when Detroit is the home team and Colorado is the visiting team?
CREATE TABLE table_name_21 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_21 WHERE home = "detroit" AND visitor = "colorado"
How many Goals For have Drawn of 10?
CREATE TABLE table_name_83 (goals_for VARCHAR, drawn VARCHAR)
SELECT COUNT(goals_for) FROM table_name_83 WHERE drawn = 10
What was the attendance when the away team was Real Espana?
CREATE TABLE table_name_67 (attendance INTEGER, away VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE away = "real espana"
How many wins did he have when he made over 2 cuts and had under 2 top 10s?
CREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 2
What was the largest ethnic group in sočica?
CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE settlement = "Sočica"
What's the average bronze with a total number of medals being 1, with more than 0 silvers?
CREATE TABLE table_name_25 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_25 WHERE total = 1 AND silver > 0