question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Representative has a Presentation of Credentials on september 8, 2005?
CREATE TABLE table_name_93 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT representative FROM table_name_93 WHERE presentation_of_credentials = "september 8, 2005"
Which Termination of Mission has a Presentation of Credentials on October 29, 1981
CREATE TABLE table_name_5 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR)
SELECT termination_of_mission FROM table_name_5 WHERE presentation_of_credentials = "october 29, 1981"
What is the total for danny allsopp?
CREATE TABLE table_name_98 (total VARCHAR, name VARCHAR)
SELECT total FROM table_name_98 WHERE name = "danny allsopp"
Where is the area of operation that had drilling during the year 1999?
CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR)
SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999"
What country did the client Agiba-agip work in?
CREATE TABLE table_name_5 (country VARCHAR, client VARCHAR)
SELECT country FROM table_name_5 WHERE client = "agiba-agip"
What years was soc a client?
CREATE TABLE table_name_88 (years_of_operation VARCHAR, client VARCHAR)
SELECT years_of_operation FROM table_name_88 WHERE client = "soc"
What years was El Mabrouk the area of operation?
CREATE TABLE table_name_42 (years_of_operation VARCHAR, area_of_operation VARCHAR)
SELECT years_of_operation FROM table_name_42 WHERE area_of_operation = "el mabrouk"
What services were in the area of operation Wadi Borjuj?
CREATE TABLE table_name_2 (services VARCHAR, area_of_operation VARCHAR)
SELECT services FROM table_name_2 WHERE area_of_operation = "wadi borjuj"
How many points did the Cosworth v8 engine get in 1972?
CREATE TABLE table_name_42 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT points FROM table_name_42 WHERE year = 1972 AND engine = "cosworth v8"
Which gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no?
CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR)
SELECT gold_coast FROM table_name_36 WHERE melbourne = "yes" AND perth = "yes" AND auckland = "no" AND sydney = "no"
Which Adelaide has an Auckland of no and a Melbourne of no?
CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no"
Which Sydney has a Gold Coast of yes, an Adelaide of no, and an Auckland of yes?
CREATE TABLE table_name_13 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_13 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "yes"
Which Sydney has a Perth of no, an Adelaide of yes, and a Gold Coast of no?
CREATE TABLE table_name_84 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_84 WHERE perth = "no" AND adelaide = "yes" AND gold_coast = "no"
Which Adelaide has a Sydney of yes, a Perth of no, a Melbourne of yes, and an Auckland of no?
CREATE TABLE table_name_30 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT adelaide FROM table_name_30 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND auckland = "no"
Which Melbourne has a Perth of yes, and an Auckland of yes?
CREATE TABLE table_name_35 (melbourne VARCHAR, perth VARCHAR, auckland VARCHAR)
SELECT melbourne FROM table_name_35 WHERE perth = "yes" AND auckland = "yes"
what is the analog type for wxmi?
CREATE TABLE table_name_9 (analog VARCHAR, callsign VARCHAR)
SELECT analog FROM table_name_9 WHERE callsign = "wxmi"
what is the callsign for independent affiliation?
CREATE TABLE table_name_69 (callsign VARCHAR, affiliation VARCHAR)
SELECT callsign FROM table_name_69 WHERE affiliation = "independent"
what is the analog type for cw on digital 26?
CREATE TABLE table_name_45 (analog VARCHAR, affiliation VARCHAR, digital VARCHAR)
SELECT analog FROM table_name_45 WHERE affiliation = "cw" AND digital = "26"
what is the callsign for analog 19?
CREATE TABLE table_name_42 (callsign VARCHAR, analog VARCHAR)
SELECT callsign FROM table_name_42 WHERE analog = "19"
Who is the winner of the European Poker Tour Grand Final?
CREATE TABLE table_name_11 (winner VARCHAR, event VARCHAR)
SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final"
What is the name of the event that had a prize of zł 1,226,711?
CREATE TABLE table_name_22 (event VARCHAR, prize VARCHAR)
SELECT event FROM table_name_22 WHERE prize = "zł 1,226,711"
Who was the winner of the prize zł 1,226,711?
CREATE TABLE table_name_39 (winner VARCHAR, prize VARCHAR)
SELECT winner FROM table_name_39 WHERE prize = "zł 1,226,711"
What is the score of Goal For which has a Ties larger 0?
CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER)
SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 0
Name the sum of goals conceded when lost is more than 7 and points less than 26
CREATE TABLE table_name_60 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_60 WHERE lost > 7 AND points < 26
Name the most place for goals scored more than 28 and played less than 18
CREATE TABLE table_name_23 (place INTEGER, goals_scored VARCHAR, played VARCHAR)
SELECT MAX(place) FROM table_name_23 WHERE goals_scored > 28 AND played < 18
Name the D46 when it has D 44 of ← majority
CREATE TABLE table_name_50 (d_46 VARCHAR, d_44 VARCHAR)
SELECT d_46 FROM table_name_50 WHERE d_44 = "← majority"
Name the D 45 which has D 44 of d 53
CREATE TABLE table_name_40 (d_45 VARCHAR, d_44 VARCHAR)
SELECT d_45 FROM table_name_40 WHERE d_44 = "d 53"
Name the D 43 when it has D 45 of d 25
CREATE TABLE table_name_45 (d_43 VARCHAR, d_45 VARCHAR)
SELECT d_43 FROM table_name_45 WHERE d_45 = "d 25"
Name the D 43 when it has D 41 of d 56
CREATE TABLE table_name_35 (d_43 VARCHAR, d_41 VARCHAR)
SELECT d_43 FROM table_name_35 WHERE d_41 = "d 56"
Name the D 46 which has D 42 of r 14
CREATE TABLE table_name_36 (d_46 VARCHAR, d_42 VARCHAR)
SELECT d_46 FROM table_name_36 WHERE d_42 = "r 14"
Which nominating festival did Russia enter?
CREATE TABLE table_name_12 (nominating_festival VARCHAR, country VARCHAR)
SELECT nominating_festival FROM table_name_12 WHERE country = "russia"
Which nominating festival did Olga Baillif enter?
CREATE TABLE table_name_72 (nominating_festival VARCHAR, director_s_ VARCHAR)
SELECT nominating_festival FROM table_name_72 WHERE director_s_ = "olga baillif"
Which nominating festival did Bosnia and Herzegovina enter?
CREATE TABLE table_name_62 (nominating_festival VARCHAR, country VARCHAR)
SELECT nominating_festival FROM table_name_62 WHERE country = "bosnia and herzegovina"
Which director made Mi-temps?
CREATE TABLE table_name_13 (director_s_ VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps"
Which nominating festival did United Kingdom enter?
CREATE TABLE table_name_72 (nominating_festival VARCHAR, country VARCHAR)
SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom"
How many years was Audi Sport Team Joest in 3rd position?
CREATE TABLE table_name_8 (year VARCHAR, team VARCHAR, pos VARCHAR)
SELECT COUNT(year) FROM table_name_8 WHERE team = "audi sport team joest" AND pos = "3rd"
Who were the co-drivers with more than 377 laps in 1st position?
CREATE TABLE table_name_62 (co_drivers VARCHAR, laps VARCHAR, pos VARCHAR)
SELECT co_drivers FROM table_name_62 WHERE laps > 377 AND pos = "1st"
How many goals were scored when they had over 28 points and played over 18 games?
CREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR)
SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18
What place is associated with under 28 points, under 11 games lost, and under 18 games played?
CREATE TABLE table_name_71 (place INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
SELECT SUM(place) FROM table_name_71 WHERE points < 28 AND lost < 11 AND played < 18
How many points are there when they have under 27 goals scored, conceded 24 goals, and lost less than 6 times?
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE goals_scored < 27 AND goals_conceded = 24 AND lost < 6
What year did Bryant Heating enter?
CREATE TABLE table_name_48 (year INTEGER, entrant VARCHAR)
SELECT SUM(year) FROM table_name_48 WHERE entrant = "bryant heating"
Russia has films in which category?
CREATE TABLE table_name_45 (category VARCHAR, country VARCHAR)
SELECT category FROM table_name_45 WHERE country = "russia"
The Prix UIP Vilo Do Conde festival nominated which film?
CREATE TABLE table_name_7 (film VARCHAR, nominating_festival VARCHAR)
SELECT film FROM table_name_7 WHERE nominating_festival = "prix uip vilo do conde"
Which country made Le Portefeuille?
CREATE TABLE table_name_98 (country VARCHAR, film VARCHAR)
SELECT country FROM table_name_98 WHERE film = "le portefeuille"
Which nominating festival nominated Iao Lethem's film?
CREATE TABLE table_name_80 (nominating_festival VARCHAR, director_s_ VARCHAR)
SELECT nominating_festival FROM table_name_80 WHERE director_s_ = "iao lethem"
Julio Robledo represents which country?
CREATE TABLE table_name_55 (country VARCHAR, director_s_ VARCHAR)
SELECT country FROM table_name_55 WHERE director_s_ = "julio robledo"
(A) Torzija was nominated in which category?
CREATE TABLE table_name_60 (category VARCHAR, film VARCHAR)
SELECT category FROM table_name_60 WHERE film = "(a) torzija"
How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?
CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR)
SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = "40-4" AND goals_for > 57
What's the average number of played games from Rayo Vallecano with less than 12 wins?
CREATE TABLE table_name_81 (played INTEGER, club VARCHAR, wins VARCHAR)
SELECT AVG(played) FROM table_name_81 WHERE club = "rayo vallecano" AND wins < 12
Who has canidae as family and canis rufus audubon & bachman, 1851 as species/authority?
CREATE TABLE table_name_24 (name VARCHAR, family VARCHAR, species_authority VARCHAR)
SELECT name FROM table_name_24 WHERE family = "canidae" AND species_authority = "canis rufus audubon & bachman, 1851"
Name the lowest league for play-offs more than 0 and total of 25
CREATE TABLE table_name_88 (league INTEGER, play_offs VARCHAR, total VARCHAR)
SELECT MIN(league) FROM table_name_88 WHERE play_offs > 0 AND total = 25
What are the earliest year with games played fewer than 2?
CREATE TABLE table_name_96 (first_game INTEGER, played INTEGER)
SELECT MIN(first_game) FROM table_name_96 WHERE played < 2
What is the number of games played in the season before 2005?
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER)
SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005
Name the least selection for ron barnett
CREATE TABLE table_name_39 (selection INTEGER, player VARCHAR)
SELECT MIN(selection) FROM table_name_39 WHERE player = "ron barnett"
Name the player that went to notre dame
CREATE TABLE table_name_88 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_88 WHERE college = "notre dame"
What is the to par that has bill collins as the player?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "bill collins"
How much money has 76-70-68-73=287 as a score?
CREATE TABLE table_name_86 (money___ INTEGER, score VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_86 WHERE score = 76 - 70 - 68 - 73 = 287
What is the commissioned for Vietnam?
CREATE TABLE table_name_29 (commissioned VARCHAR, operator VARCHAR)
SELECT commissioned FROM table_name_29 WHERE operator = "vietnam"
What is the commissioned with a 636.3 project, and ordered status?
CREATE TABLE table_name_24 (commissioned VARCHAR, project VARCHAR, status VARCHAR)
SELECT commissioned FROM table_name_24 WHERE project = "636.3" AND status = "ordered"
When was the date that had a Loss of Shirley (0-1)?
CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_31 WHERE loss = "shirley (0-1)"
Where was the game on Thursday, April 29, and they played the Chicago Cubs?
CREATE TABLE table_name_84 (site VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT site FROM table_name_84 WHERE opponent = "chicago cubs" AND date = "thursday, april 29"
Who were they playing when Bird (1-4) had a loss?
CREATE TABLE table_name_42 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_42 WHERE loss = "bird (1-4)"
What was the score of the game when there was a loss of Kern (0-2)?
CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_44 WHERE loss = "kern (0-2)"
What camera has the highest Mpix with an aspect ratio of 2:1, a height less than 1536, and a width smaller than 2048?
CREATE TABLE table_name_51 (mpix INTEGER, width VARCHAR, aspect_ratio VARCHAR, height VARCHAR)
SELECT MAX(mpix) FROM table_name_51 WHERE aspect_ratio = "2:1" AND height < 1536 AND width < 2048
What is the max fps of a camera with mpix larger than 8.4 and frame size of 4k 16:9?
CREATE TABLE table_name_5 (max_fps VARCHAR, mpix VARCHAR, frame_size VARCHAR)
SELECT COUNT(max_fps) FROM table_name_5 WHERE mpix > 8.4 AND frame_size = "4k 16:9"
What frame size corresponds the selection with a max fps of 120, a width of 2048, and height of 1024?
CREATE TABLE table_name_74 (frame_size VARCHAR, height VARCHAR, max_fps VARCHAR, width VARCHAR)
SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024
What is the overall record of the Ravens?
CREATE TABLE table_name_16 (overall_record VARCHAR, team VARCHAR)
SELECT overall_record FROM table_name_16 WHERE team = "ravens"
What is the division record of Sussex Central?
CREATE TABLE table_name_41 (division_record VARCHAR, school VARCHAR)
SELECT division_record FROM table_name_41 WHERE school = "sussex central"
Which Engine has Points of 3?
CREATE TABLE table_name_30 (engine VARCHAR, points VARCHAR)
SELECT engine FROM table_name_30 WHERE points = 3
What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?
CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_41 WHERE chassis = "gordini t16" AND year < 1954
What is the lowest grid that Paul Tracy had when he had over 4 points?
CREATE TABLE table_name_67 (grid INTEGER, name VARCHAR, points VARCHAR)
SELECT MIN(grid) FROM table_name_67 WHERE name = "paul tracy" AND points > 4
What is the Date, when the Winner is Aaron Gustavson?
CREATE TABLE table_name_79 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_79 WHERE winner = "aaron gustavson"
What is the Date, when the City is Warsaw?
CREATE TABLE table_name_39 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_39 WHERE city = "warsaw"
What is the Prize, when the Winner is Aaron Gustavson?
CREATE TABLE table_name_90 (prize VARCHAR, winner VARCHAR)
SELECT prize FROM table_name_90 WHERE winner = "aaron gustavson"
Who is the Winner, when the City is Berlin?
CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR)
SELECT winner FROM table_name_19 WHERE city = "berlin"
What is the name of the party called name?
CREATE TABLE table_name_45 (party VARCHAR)
SELECT party FROM table_name_45 WHERE "name" = "name"
What is the Left Office of cabinet secretary for culture and external affairs named?
CREATE TABLE table_name_16 (name VARCHAR, left_office VARCHAR)
SELECT name FROM table_name_16 WHERE left_office = "cabinet secretary for culture and external affairs"
What left office does the First Minister of henry mcleish belong to?
CREATE TABLE table_name_49 (left_office VARCHAR, first_minister VARCHAR)
SELECT left_office FROM table_name_49 WHERE first_minister = "henry mcleish"
What was the sum total of the region after 1976 when Mareeba had population was more than 18,212?
CREATE TABLE table_name_1 (population__region_total_ INTEGER, year VARCHAR, population__mareeba_ VARCHAR)
SELECT SUM(population__region_total_) FROM table_name_1 WHERE year > 1976 AND population__mareeba_ > 18 OFFSET 212
Name the most games for standing of 5th, lebel and goals against larger than 220 with lost more than 52
CREATE TABLE table_name_2 (games INTEGER, lost VARCHAR, standing VARCHAR, goals_against VARCHAR)
SELECT MAX(games) FROM table_name_2 WHERE standing = "5th, lebel" AND goals_against > 220 AND lost > 52
Name the least tied with games more than 70 and goals for less than 310 with points of 98
CREATE TABLE table_name_94 (tied INTEGER, points VARCHAR, games VARCHAR, goals_for VARCHAR)
SELECT MIN(tied) FROM table_name_94 WHERE games > 70 AND goals_for < 310 AND points = 98
Which player had a place of T4?
CREATE TABLE table_name_62 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_62 WHERE place = "t4"
What is the latest year with less than 0 points?
CREATE TABLE table_name_54 (year INTEGER, points INTEGER)
SELECT MAX(year) FROM table_name_54 WHERE points < 0
What entrant has a year earlier than 1960 and a veritas straight-6 engine?
CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-6"
What is the average Year with a Veritas rs chassis and more than 0 points?
CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0
What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960
What is the latest year for a Emeryson 1006 chassis with more than 0 points?
CREATE TABLE table_name_37 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE chassis = "emeryson 1006" AND points > 0
What was the score of the second leg with an agg of 4-6?
CREATE TABLE table_name_50 (agg VARCHAR)
SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "4-6"
What is the second team that has first team of Africa sports?
CREATE TABLE table_name_25 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_25 WHERE team_1 = "africa sports"
What is team one that has tp englebert for team 2?
CREATE TABLE table_name_32 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_32 WHERE team_2 = "tp englebert"
Which team has far rabat as the team 1?
CREATE TABLE table_name_64 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_64 WHERE team_1 = "far rabat"
with a Time/Retired of +47.376 what is the lap sum?
CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_67 WHERE time_retired = "+47.376"
with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
CREATE TABLE table_name_85 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_85 WHERE rider = "marco melandri" AND grid < 10
with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
CREATE TABLE table_name_15 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32
Who came in 2nd place when Ding Junhui won in 2010?
CREATE TABLE table_name_53 (runner_up VARCHAR, year VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_53 WHERE year > 2010 AND winner = "ding junhui"
What ethnic group is 65,104 in 1931?
CREATE TABLE table_name_43 (malay_ethnic_group VARCHAR)
SELECT malay_ethnic_group FROM table_name_43 WHERE 1931 = "65,104"
For Vegas Verdicts week, what was the result?
CREATE TABLE table_name_21 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_21 WHERE week = "vegas verdicts"
Which week had a theme of Heroes?
CREATE TABLE table_name_47 (week VARCHAR, theme VARCHAR)
SELECT week FROM table_name_47 WHERE theme = "heroes"
What was the theme for Vegas Verdicts week with a result of Advanced?
CREATE TABLE table_name_30 (theme VARCHAR, result VARCHAR, week VARCHAR)
SELECT theme FROM table_name_30 WHERE result = "advanced" AND week = "vegas verdicts"
What is the Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner?
CREATE TABLE table_name_58 (placement VARCHAR, votes VARCHAR, candidate VARCHAR)
SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = "jordan turner"