question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Ariel 3's COSPAR ID?
CREATE TABLE table_name_3 (cospar_id VARCHAR, satellite VARCHAR)
SELECT cospar_id FROM table_name_3 WHERE satellite = "ariel 3"
how many times is there more than 0 draws and more than 0 losses?
CREATE TABLE table_name_5 (played VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT COUNT(played) FROM table_name_5 WHERE drawn > 0 AND lost > 0
Who was the home team that played against the Boston Bruins on January 11?
CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11"
What is the highest Pick, when Player is "Todd Van Poppel"?
CREATE TABLE table_name_86 (pick INTEGER, player VARCHAR)
SELECT MAX(pick) FROM table_name_86 WHERE player = "todd van poppel"
What film was released in 1996?
CREATE TABLE table_name_76 (film VARCHAR, year VARCHAR)
SELECT film FROM table_name_76 WHERE year = 1996
What team was the away team when the home team was Hereford United?
CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_32 WHERE home_team = "hereford united"
Before the year 2010, and when Kalamazoo had a passenger fare of $517.32, what was the passenger fare for Detroit?
CREATE TABLE table_name_36 (detroit__dtw_ VARCHAR, year VARCHAR, kalamazoo__azo_ VARCHAR)
SELECT detroit__dtw_ FROM table_name_36 WHERE year < 2010 AND kalamazoo__azo_ = "$517.32"
what is the surface when the winner and score is gustavo kuerten 6-4, 7-5, 7-6(6)?
CREATE TABLE table_name_76 (surface VARCHAR, winner_and_score VARCHAR)
SELECT surface FROM table_name_76 WHERE winner_and_score = "gustavo kuerten 6-4, 7-5, 7-6(6)"
which examples are pronounced et in australian
CREATE TABLE table_17798093_20 (examples VARCHAR, australian VARCHAR)
SELECT examples FROM table_17798093_20 WHERE australian = "et"
Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?
CREATE TABLE table_name_66 (in_de_creased_by INTEGER, governorate VARCHAR, seats_2005 VARCHAR)
SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = "al anbar governorate" AND seats_2005 < 9
How many places have yamaha as the machine, and 89.85mph as the speed?
CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR)
SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph"
What teams has 1-5 as the away?
CREATE TABLE table_name_96 (teams VARCHAR, away VARCHAR)
SELECT teams FROM table_name_96 WHERE away = "1-5"
what is the grid when the time/retired is oil pressure and the laps are more than 50?
CREATE TABLE table_name_15 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_15 WHERE time_retired = "oil pressure" AND laps > 50
What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?
CREATE TABLE table_name_18 (rank INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(rank) FROM table_name_18 WHERE total > 2 AND gold = 21 AND bronze > 12
What home team has an n/a attendance?
CREATE TABLE table_name_38 (home VARCHAR, attendance VARCHAR)
SELECT home FROM table_name_38 WHERE attendance = "n/a"
who is the the artbeingt with position being 32
CREATE TABLE table_13789248_2 (artist VARCHAR, position VARCHAR)
SELECT artist FROM table_13789248_2 WHERE position = 32
When did the program air on Vier?
CREATE TABLE table_178242_1 (premiere___aired VARCHAR, channel VARCHAR)
SELECT premiere___aired FROM table_178242_1 WHERE channel = "VIER"
What state has an interview of 8.313 (8) ?
CREATE TABLE table_16268026_3 (state VARCHAR, interview VARCHAR)
SELECT state FROM table_16268026_3 WHERE interview = "8.313 (8)"
Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?
CREATE TABLE table_name_19 (long INTEGER, gain VARCHAR, loss VARCHAR)
SELECT MIN(long) FROM table_name_19 WHERE gain = 20 AND loss < 0
Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?
CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR)
SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3
Who is the opposing team when the game was played on the Shea Stadium?
CREATE TABLE table_17386066_2 (opponent VARCHAR, stadium VARCHAR)
SELECT opponent FROM table_17386066_2 WHERE stadium = "Shea stadium"
Which Partner has Opponents in the final of john bromwich frank sedgman?
CREATE TABLE table_name_20 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_20 WHERE opponents_in_the_final = "john bromwich frank sedgman"
Which department has more than 1 head at a time? List the id, name and the number of heads.
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1
What is the thurs 25 aug when wed 24 aug is 19' 59.73 113.216mph?
CREATE TABLE table_30058355_2 (thurs_25_aug VARCHAR, wed_24_aug VARCHAR)
SELECT thurs_25_aug FROM table_30058355_2 WHERE wed_24_aug = "19' 59.73 113.216mph"
What district is incumbent ike skelton from?
CREATE TABLE table_1341604_26 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
From where did Train No. 15929/30 originate?
CREATE TABLE table_name_15 (origin VARCHAR, train_no VARCHAR)
SELECT origin FROM table_name_15 WHERE train_no = "15929/30"
What are names of the movies that are either made before 1980 or directed by James Cameron?
CREATE TABLE Movie (title VARCHAR, director VARCHAR, YEAR VARCHAR)
SELECT title FROM Movie WHERE director = "James Cameron" OR YEAR < 1980
How many production codes are there for episode number 45?
CREATE TABLE table_2602958_4 (prod_code VARCHAR, no VARCHAR)
SELECT COUNT(prod_code) FROM table_2602958_4 WHERE no = 45
When did Edoardo Amaldi launch?
CREATE TABLE table_name_25 (launch_date VARCHAR, name VARCHAR)
SELECT launch_date FROM table_name_25 WHERE name = "edoardo amaldi"
What is solidv4 when sequencer is data output per run?
CREATE TABLE table_127511_1 (solidv4 VARCHAR, sequencer VARCHAR)
SELECT solidv4 FROM table_127511_1 WHERE sequencer = "Data output per run"
Tell me the total number of grid for rider of james toseland
CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR)
SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland"
What is the sum of goals against for positions higher than 14, with fewer than 30 played?
CREATE TABLE table_name_22 (goals_against INTEGER, position VARCHAR, played VARCHAR)
SELECT SUM(goals_against) FROM table_name_22 WHERE position > 14 AND played < 30
What are the Poor Law Unions when the area (in acres) is 142?
CREATE TABLE table_30121082_1 (poor_law_union VARCHAR, area__acres__ VARCHAR)
SELECT poor_law_union FROM table_30121082_1 WHERE area__acres__ = 142
What Branding does WRKO calls use?
CREATE TABLE table_10333757_1 (branding VARCHAR, calls VARCHAR)
SELECT branding FROM table_10333757_1 WHERE calls = "WRKO"
What is the nationality of the Team Purdue?
CREATE TABLE table_name_73 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_73 WHERE school_club_team = "purdue"
What is the highest position of the team having played under 10 matches?
CREATE TABLE table_name_73 (position INTEGER, played INTEGER)
SELECT MAX(position) FROM table_name_73 WHERE played < 10
Result F–A of 2–0 had what group position?
CREATE TABLE table_name_80 (group_position VARCHAR, result_f_a VARCHAR)
SELECT group_position FROM table_name_80 WHERE result_f_a = "2–0"
What was Berlin when fk pirmasens was Südwest and westfalia herne was west?
CREATE TABLE table_name_60 (berlin VARCHAR, südwest VARCHAR, west VARCHAR)
SELECT berlin FROM table_name_60 WHERE südwest = "fk pirmasens" AND west = "westfalia herne"
What was the score of the game that had a loss of Williams (1-1)?
CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_48 WHERE loss = "williams (1-1)"
What is the average episode # with a name of the origin of Donnie (part 1)?
CREATE TABLE table_name_75 (episode__number INTEGER, episode_name VARCHAR)
SELECT AVG(episode__number) FROM table_name_75 WHERE episode_name = "the origin of donnie (part 1)"
What circuit was used on August 21?
CREATE TABLE table_25459168_2 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_25459168_2 WHERE date = "August 21"
who are the participants from hanover?
CREATE TABLE table_26427332_17 (contestant VARCHAR, city VARCHAR)
SELECT contestant FROM table_26427332_17 WHERE city = "Hanover"
What lane was Henrique Barbosa in?
CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR)
SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa"
How many races involve incumbent Pat Cannon?
CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = "Pat Cannon"
Which home team competed against the away team Geelong?
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_16 WHERE away_team = "geelong"
What state/territory has lovett tower as the building?
CREATE TABLE table_name_85 (state___territory VARCHAR, building VARCHAR)
SELECT state___territory FROM table_name_85 WHERE building = "lovett tower"
Matches W-L of 1-2, and a Team of spain had what seeding?
CREATE TABLE table_name_41 (seeding VARCHAR, matches_w_l VARCHAR, team VARCHAR)
SELECT seeding FROM table_name_41 WHERE matches_w_l = "1-2" AND team = "spain"
When was james chester loaned out until ?
CREATE TABLE table_name_78 (date_to VARCHAR, name VARCHAR)
SELECT date_to FROM table_name_78 WHERE name = "james chester"
What is the most total goals for a player having 0 FA Cup goals and 41 League appearances?
CREATE TABLE table_name_98 (total_goals INTEGER, fa_cup_goals VARCHAR, league_apps VARCHAR)
SELECT MAX(total_goals) FROM table_name_98 WHERE fa_cup_goals = 0 AND league_apps = "41"
What episode premier received 0.680 million viewers?
CREATE TABLE table_23392257_4 (original_airdate VARCHAR, viewers__millions_ VARCHAR)
SELECT original_airdate FROM table_23392257_4 WHERE viewers__millions_ = "0.680"
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_5 WHERE rank = "11" AND bronze < 1
When 1 (5) is the races what is the team name?
CREATE TABLE table_22737506_1 (team_name VARCHAR, races VARCHAR)
SELECT team_name FROM table_22737506_1 WHERE races = "1 (5)"
Name the most world rank for asian rank being 31
CREATE TABLE table_2249029_1 (world_rank INTEGER, asian_rank VARCHAR)
SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31
Which Venue has a Result of won 5-4?
CREATE TABLE table_name_65 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_65 WHERE result = "won 5-4"
What is the highest rank of a swimmer in lane 5?
CREATE TABLE table_name_20 (rank INTEGER, lane VARCHAR)
SELECT MAX(rank) FROM table_name_20 WHERE lane = 5
What is the title of the episode with the production code 2-19?
CREATE TABLE table_234886_3 (title VARCHAR, prod_code VARCHAR)
SELECT title FROM table_234886_3 WHERE prod_code = "2-19"
What's the segment A in episode 42?
CREATE TABLE table_name_87 (segment_a VARCHAR, episode VARCHAR)
SELECT segment_a FROM table_name_87 WHERE episode = 42
Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?
CREATE TABLE table_name_2 (third_member VARCHAR, second_member VARCHAR, second_party VARCHAR, third_party VARCHAR)
SELECT third_member FROM table_name_2 WHERE second_party = "liberal" AND third_party = "conservative" AND second_member = "humphrey mildmay"
What's the series number of the episode with a broadcast order s04 e07?
CREATE TABLE table_1231892_4 (number_in_series INTEGER, broadcast_order VARCHAR)
SELECT MAX(number_in_series) FROM table_1231892_4 WHERE broadcast_order = "S04 E07"
Which 1990s 1992 was 3r?
CREATE TABLE table_name_78 (Id VARCHAR)
SELECT 1990 FROM table_name_78 WHERE 1992 = "3r"
In what Year were there 48 of 120 Seats and a % votes larger than 34.18?
CREATE TABLE table_name_94 (year INTEGER, seats VARCHAR, _percentage_votes VARCHAR)
SELECT SUM(year) FROM table_name_94 WHERE seats = "48 of 120" AND _percentage_votes > 34.18
What was the Result of the game dated 21st?
CREATE TABLE table_name_97 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_97 WHERE date = "21st"
List the season above 241.0 that was handled by brad tanenbaum.
CREATE TABLE table_27437601_2 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT no_in_season FROM table_27437601_2 WHERE directed_by = "Brad Tanenbaum" AND no_in_series > 241.0
What is the home team for the Princes Park venue?
CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_87 WHERE venue = "princes park"
What are the names , themes , and number of singers for every concert ?
CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR)
SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id
What was Matthew Hoggard's high score when he had a strike rate of n/a?
CREATE TABLE table_name_64 (high_score VARCHAR, strike_rate VARCHAR, player VARCHAR)
SELECT high_score FROM table_name_64 WHERE strike_rate = "n/a" AND player = "matthew hoggard"
Name the number of high assists for july 1
CREATE TABLE table_17103645_10 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_17103645_10 WHERE date = "July 1"
What was the competition on October 21, 2003?
CREATE TABLE table_name_83 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_83 WHERE date = "october 21, 2003"
What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?
CREATE TABLE table_name_2 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE silver > 4 AND gold > 16
Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date?
CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR, competition VARCHAR, score VARCHAR)
SELECT date FROM table_name_5 WHERE competition = "pl" AND score = "1-1" AND opponents = "kelantan"
When did Geelong play as the away team?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "geelong"
what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon
CREATE TABLE table_13663434_1 (wii_points VARCHAR, title_and_source VARCHAR)
SELECT wii_points FROM table_13663434_1 WHERE title_and_source = "Tsūshin Taikyoku: Igo Dōjō 2700-Mon"
What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6?
CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6
On which surface did Mathieu play against Antonio Veić?
CREATE TABLE table_name_84 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_84 WHERE opponent_in_the_final = "antonio veić"
Which tournament took place on June 18, 2013?
CREATE TABLE table_name_94 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_94 WHERE date = "june 18, 2013"
what is the total number of census designated places with a population of 10581?
CREATE TABLE table_22916979_2 (census_designated_place VARCHAR, population__2000_census_ VARCHAR)
SELECT COUNT(census_designated_place) FROM table_22916979_2 WHERE population__2000_census_ = 10581
What was the category of Richard Nixon as President in a year prior to 2009?
CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR)
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009
What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?
CREATE TABLE table_name_71 (date_of_inauguration VARCHAR)
SELECT date_of_inauguration FROM table_name_71 WHERE "lifespan" = "lifespan"
what is the minimum number is lariciresinol where matairesinol number is 440?
CREATE TABLE table_1831262_2 (lariciresinol INTEGER, matairesinol VARCHAR)
SELECT MIN(lariciresinol) FROM table_1831262_2 WHERE matairesinol = 440
Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme
What is the description of document type 'Paper'?
CREATE TABLE Ref_Document_Types (document_type_description VARCHAR, document_type_code VARCHAR)
SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = "Paper"
What is the Points Jury for Dance pop?
CREATE TABLE table_name_39 (points_jury VARCHAR, dance VARCHAR)
SELECT points_jury FROM table_name_39 WHERE dance = "pop"
Who was in a with opponent St. Johnstone?
CREATE TABLE table_name_8 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT scorers FROM table_name_8 WHERE venue = "a" AND opponent = "st. johnstone"
How much did Nina Carberry win?
CREATE TABLE table_26903214_1 (prize_money VARCHAR, rider VARCHAR)
SELECT prize_money FROM table_26903214_1 WHERE rider = "Nina Carberry"
What is the Attendance of the game with a Score of 3–2?
CREATE TABLE table_name_59 (attendance VARCHAR, score VARCHAR)
SELECT COUNT(attendance) FROM table_name_59 WHERE score = "3–2"
What are the laws against homosexuality in Malaysia?
CREATE TABLE table_name_34 (laws_against_homosexuality VARCHAR, country VARCHAR)
SELECT laws_against_homosexuality FROM table_name_34 WHERE country = "malaysia"
What is the result of the game on October 17, 1965?
CREATE TABLE table_name_73 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_73 WHERE date = "october 17, 1965"
What is the gearbox when the torque is torque?
CREATE TABLE table_250230_2 (gearbox VARCHAR)
SELECT gearbox FROM table_250230_2 WHERE "torque" = "torque"
What was part 4 when part 3 was *hleupun?
CREATE TABLE table_name_65 (part_4 VARCHAR, part_3 VARCHAR)
SELECT part_4 FROM table_name_65 WHERE part_3 = "*hleupun"
Who was the home team on 8 January 1946 with a tie no of 4?
CREATE TABLE table_name_71 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_71 WHERE date = "8 january 1946" AND tie_no = "4"
I want to know the third with runner of paris saint-germain and edition less than 5
CREATE TABLE table_name_40 (third VARCHAR, runner_up VARCHAR, edition VARCHAR)
SELECT third FROM table_name_40 WHERE runner_up = "paris saint-germain" AND edition < 5
Who was the opponent the falcons played against on week 3?
CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_87 WHERE week = 3
What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977?
CREATE TABLE table_name_27 (overall_pick INTEGER, position VARCHAR, nfl_draft VARCHAR)
SELECT MAX(overall_pick) FROM table_name_27 WHERE position = "c" AND nfl_draft > 1977
Which team played on November 15?
CREATE TABLE table_27712702_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27712702_7 WHERE date = "November 15"
What is the Score of the competition on October 25?
CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_47 WHERE date = "october 25"
What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?
CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_53 WHERE date = "5,6,7,8 june 1997"
how many song title with artbeingt being chubby checker
CREATE TABLE table_13789248_2 (song_title VARCHAR, artist VARCHAR)
SELECT COUNT(song_title) FROM table_13789248_2 WHERE artist = "Chubby Checker"
Which position was picked before 63, for Oklahoma College?
CREATE TABLE table_name_46 (position VARCHAR, pick VARCHAR, college VARCHAR)
SELECT position FROM table_name_46 WHERE pick < 63 AND college = "oklahoma"
What is the class that that won 2 stages and has a position of DNF?
CREATE TABLE table_name_20 (class VARCHAR, stages_won VARCHAR, position VARCHAR)
SELECT class FROM table_name_20 WHERE stages_won = "2" AND position = "dnf"
Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?
CREATE TABLE table_name_63 (opponent VARCHAR, location_attendance VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_63 WHERE location_attendance = "delta center/19,911" AND date = "dec 6"