question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27?
CREATE TABLE table_name_36 (value__ VARCHAR, rank VARCHAR, _percentage_change_on_year VARCHAR)
SELECT COUNT(value__) AS $m_ FROM table_name_36 WHERE rank > 6 AND _percentage_change_on_year = "-27"
What game date was the game at AOL Arena?
CREATE TABLE table_24453847_2 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_24453847_2 WHERE game_site = "AOL Arena"
What was the attendance for the game that has a tie number of 13?
CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR)
SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13"
What is the draws when there are less than 3 losses and more than 16 wins?
CREATE TABLE table_name_20 (draws INTEGER, losses VARCHAR, wins VARCHAR)
SELECT MAX(draws) FROM table_name_20 WHERE losses < 3 AND wins > 16
what's the party with incumbent being william b. bankhead
CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342292_2 WHERE incumbent = "William B. Bankhead"
Which tennis team is from the United States?
CREATE TABLE table_name_55 (team VARCHAR, sport VARCHAR, nation_of_citizenship VARCHAR)
SELECT team FROM table_name_55 WHERE sport = "tennis" AND nation_of_citizenship = "united states"
What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT 2003 FROM table_name_67 WHERE 2012 = "1r" AND 2004 = "2r" AND tournament = "australian open"
What was the result at the Berlin International Film Festival in a year greater than 1987?
CREATE TABLE table_name_80 (result VARCHAR, year VARCHAR, awards VARCHAR)
SELECT result FROM table_name_80 WHERE year > 1987 AND awards = "berlin international film festival"
Who was the race leader for stage 5?
CREATE TABLE table_name_66 (race_leader VARCHAR, stage VARCHAR)
SELECT race_leader FROM table_name_66 WHERE stage = "5"
What is the result of games played at frontier field
CREATE TABLE table_name_10 (result VARCHAR, field VARCHAR)
SELECT result FROM table_name_10 WHERE field = "frontier field"
Who wrote when the original airdate is April 5, 1987?
CREATE TABLE table_2226817_2 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2226817_2 WHERE original_air_date = "April 5, 1987"
what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?
CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)
SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007
How many countries has more than 2 car makers ?
CREATE TABLE car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR)
SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2
What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell?
CREATE TABLE table_name_15 (winner VARCHAR, year VARCHAR, country VARCHAR, score VARCHAR)
SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_15 WHERE country = "united states" AND score < 271 AND year > 1964 AND winner = "bobby mitchell"
What is the ERP W for K236AM?
CREATE TABLE table_name_22 (erp_w VARCHAR, call_sign VARCHAR)
SELECT erp_w FROM table_name_22 WHERE call_sign = "k236am"
What is the competition when aggregate is 1–4?
CREATE TABLE table_1233026_4 (competition VARCHAR, aggregate VARCHAR)
SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4"
Name the london great britain for championship record
CREATE TABLE table_23619492_3 (london_ VARCHAR, _great_britain VARCHAR, world_record VARCHAR)
SELECT london_, _great_britain FROM table_23619492_3 WHERE world_record = "Championship record"
What is the Propulsion for the model offered in 2003-2004 by neoplan usa?
CREATE TABLE table_name_68 (propulsion VARCHAR, order_year VARCHAR, manufacturer VARCHAR)
SELECT propulsion FROM table_name_68 WHERE order_year = "2003-2004" AND manufacturer = "neoplan usa"
What is the date for the episode performed by Sue Manchester?
CREATE TABLE table_191105_4 (first_aired VARCHAR, performed_by VARCHAR)
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
What is the total decile with an Authority of state, and a Name of newfield park school?
CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school"
What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor
CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT record FROM table_name_35 WHERE round = 5 AND time = "5:00" AND opponent = "torrance taylor"
What is the highest number of gold medals when the silver is less than 0?
CREATE TABLE table_name_57 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_57 WHERE silver < 0
Who had third place when the champions is baník ostrava (1)?
CREATE TABLE table_2429942_2 (third_place VARCHAR, champions VARCHAR)
SELECT third_place FROM table_2429942_2 WHERE champions = "Baník Ostrava (1)"
If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's the players name?
CREATE TABLE table_name_43 (player VARCHAR, year_s__won VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_43 WHERE total = "wd" AND to_par < 16 AND year_s__won = "1967"
How many total catches did the player with no. 46 have?
CREATE TABLE table_27770426_1 (catches VARCHAR, no VARCHAR)
SELECT COUNT(catches) FROM table_27770426_1 WHERE no = 46
what is the highest pick for the position tight end?
CREATE TABLE table_name_20 (pick INTEGER, position VARCHAR)
SELECT MAX(pick) FROM table_name_20 WHERE position = "tight end"
What games have the event of Men's Slalom?
CREATE TABLE table_name_91 (games VARCHAR, event VARCHAR)
SELECT games FROM table_name_91 WHERE event = "men's slalom"
Return the text of tweets about the topic 'intern'.
CREATE TABLE tweets (text VARCHAR)
SELECT text FROM tweets WHERE text LIKE '%intern%'
What is the highest number of points team vitória, which had more than 38 played, had?
CREATE TABLE table_name_92 (points INTEGER, team VARCHAR, played VARCHAR)
SELECT MAX(points) FROM table_name_92 WHERE team = "vitória" AND played > 38
Name the year started where car number is 55
CREATE TABLE table_1688640_4 (year_started INTEGER, car__number VARCHAR)
SELECT MAX(year_started) FROM table_1688640_4 WHERE car__number = "55"
What was the venue where Fitzroy played as the home team?
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_87 WHERE home_team = "fitzroy"
What position does Matt Hobgood play?
CREATE TABLE table_11677100_15 (position VARCHAR, player VARCHAR)
SELECT position FROM table_11677100_15 WHERE player = "Matt Hobgood"
At what latitude can the name origin of yuzut-arkh fossae be found?
CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR)
SELECT latitude FROM table_16799784_11 WHERE name = "Yuzut-Arkh Fossae"
Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?
CREATE TABLE table_name_98 (wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR)
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9
Name the circuit for round 18
CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR)
SELECT circuit FROM table_name_25 WHERE round = 18
What is the highest Pick, when Round is greater than 15, and when College is "Tennessee"?
CREATE TABLE table_name_19 (pick INTEGER, round VARCHAR, college VARCHAR)
SELECT MAX(pick) FROM table_name_19 WHERE round > 15 AND college = "tennessee"
Who were the partners in 2012?
CREATE TABLE table_2259502_2 (partner VARCHAR, year VARCHAR)
SELECT partner FROM table_2259502_2 WHERE year = 2012
What year was the rider with a final position-tour of 88 and less than 11 final position-giros?
CREATE TABLE table_name_29 (year INTEGER, final_position___tour VARCHAR, final_position___giro VARCHAR)
SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AND final_position___giro < 11
Name the M939 series for short wheelbase and M809 series of m817
CREATE TABLE table_name_84 (m939_series VARCHAR, m809_series VARCHAR, wheelbase VARCHAR)
SELECT m939_series FROM table_name_84 WHERE m809_series = "m817" AND wheelbase = "short"
Name the cfl team for patrice denis
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_28059992_2 WHERE player = "Patrice Denis"
What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?
CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968
When 30% is scott mcadams (d) percentage how many poll sources are there?
CREATE TABLE table_20597634_3 (poll_source VARCHAR, scott_mcadams__d_ VARCHAR)
SELECT COUNT(poll_source) FROM table_20597634_3 WHERE scott_mcadams__d_ = "30%"
What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?
CREATE TABLE table_name_62 (lost INTEGER, team VARCHAR, drawn VARCHAR, goals_against VARCHAR, position VARCHAR)
SELECT AVG(lost) FROM table_name_62 WHERE goals_against > 57 AND position < 17 AND drawn = 8 AND team = "hyde united"
What is the highest weight of the position scrum half?
CREATE TABLE table_name_24 (weight__kg_ INTEGER, position VARCHAR)
SELECT MAX(weight__kg_) FROM table_name_24 WHERE position = "scrum half"
If the grand average is 12.76-202, who is the player?
CREATE TABLE table_27533947_1 (players VARCHAR, grand_average VARCHAR)
SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202"
What are the profits in billions for Berkshire Hathaway?
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE company = "Berkshire Hathaway"
Which Director has a Rank of 12?
CREATE TABLE table_name_22 (director VARCHAR, rank VARCHAR)
SELECT director FROM table_name_22 WHERE rank = 12
Where is Norco HIgh School?
CREATE TABLE table_11677691_6 (hometown VARCHAR, school VARCHAR)
SELECT hometown FROM table_11677691_6 WHERE school = "Norco High school"
What is the Traditional Chinese of 国殇 which is over 9?
CREATE TABLE table_name_14 (traditional_chinese VARCHAR, standard_order VARCHAR, simplified_chinese VARCHAR)
SELECT traditional_chinese FROM table_name_14 WHERE standard_order > 9 AND simplified_chinese = "国殇"
What percentage of voters chose McCain in the county where 2.1% of voters voted third party?
CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, others__percentage VARCHAR)
SELECT mccain__percentage FROM table_20278716_2 WHERE others__percentage = "2.1%"
What country has the label Control?
CREATE TABLE table_name_57 (country VARCHAR, label VARCHAR)
SELECT country FROM table_name_57 WHERE label = "control"
Name the average debt as % of value for operating income more than -16 and % change on year being 62
CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR)
SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = "62" AND operating_income__$m_ > -16
What is the try bonus when there were 58 points?
CREATE TABLE table_name_67 (try_bonus VARCHAR, points VARCHAR)
SELECT try_bonus FROM table_name_67 WHERE points = "58"
When driver yuji tachikawa had a make of lexus, what team did he represent?
CREATE TABLE table_name_38 (team VARCHAR, make VARCHAR, drivers VARCHAR)
SELECT team FROM table_name_38 WHERE make = "lexus" AND drivers = "yuji tachikawa"
display the employee ID for each employee and the date on which he ended his previous job.
CREATE TABLE job_history (employee_id VARCHAR, end_date INTEGER)
SELECT employee_id, MAX(end_date) FROM job_history GROUP BY employee_id
What is the gold when silver is less than 1, rank is 12, and total is less than 3?
CREATE TABLE table_name_68 (gold INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT MAX(gold) FROM table_name_68 WHERE silver < 1 AND rank = 12 AND total < 3
How did the ship named proletarij finish its service?
CREATE TABLE table_name_7 (fate VARCHAR, name_of_ship VARCHAR)
SELECT fate FROM table_name_7 WHERE name_of_ship = "proletarij"
What comparable country has a national share of 1.08?
CREATE TABLE table_171666_1 (comparable_country VARCHAR, national_share___percentage_ VARCHAR)
SELECT comparable_country FROM table_171666_1 WHERE national_share___percentage_ = "1.08"
Which network broadcast the game when the Western Bulldogs played melbourne?
CREATE TABLE table_24919137_2 (broadcaster VARCHAR, opposition VARCHAR)
SELECT broadcaster FROM table_24919137_2 WHERE opposition = "Melbourne"
What is the highest number of bronze for the United States with more than 1 silver?
CREATE TABLE table_name_13 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_13 WHERE nation = "united states" AND silver > 1
What's the Street address with a Name of New York Life Insurance building?
CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR)
SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building"
What date was the race won by Louis Chiron?
CREATE TABLE table_name_81 (date VARCHAR, winning_drivers VARCHAR)
SELECT date FROM table_name_81 WHERE winning_drivers = "louis chiron"
Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles
CREATE TABLE table_14903999_1 (mens_singles VARCHAR, mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT mens_singles FROM table_14903999_1 WHERE mens_doubles = "Sveinn Logi Sölvason Tryggvi Nilsen" AND womens_singles = "Elsa Nielsen"
When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?
CREATE TABLE table_23286158_10 (location_attendance VARCHAR, high_assists VARCHAR, game VARCHAR)
SELECT COUNT(location_attendance) FROM table_23286158_10 WHERE high_assists = "Brandon Roy (6)" AND game = 78
What was the 2nd leg score for Al-Merrikh as team 2?
CREATE TABLE table_name_61 (team_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "al-merrikh"
What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs?
CREATE TABLE table_name_16 (rushing_yards INTEGER, rushes VARCHAR, rushing_tds VARCHAR)
SELECT MAX(rushing_yards) FROM table_name_16 WHERE rushes = 283 AND rushing_tds < 10
What is Years, when Win-Loss is 11-60?
CREATE TABLE table_name_55 (years VARCHAR, win_loss VARCHAR)
SELECT years FROM table_name_55 WHERE win_loss = "11-60"
Who were all the candidates when incumbent was Tim Valentine?
CREATE TABLE table_1341577_34 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341577_34 WHERE incumbent = "Tim Valentine"
What event has 8 as the days held?
CREATE TABLE table_name_33 (event VARCHAR, days_held VARCHAR)
SELECT event FROM table_name_33 WHERE days_held = "8"
What is the average rank for nations with fewer than 0 gold medals?
CREATE TABLE table_name_86 (rank INTEGER, gold INTEGER)
SELECT AVG(rank) FROM table_name_86 WHERE gold < 0
When Denizli was the province, what was the total number of valid votes?
CREATE TABLE table_27274222_2 (valid_votes VARCHAR, province VARCHAR)
SELECT COUNT(valid_votes) FROM table_27274222_2 WHERE province = "Denizli"
Name the population for 11 languages
CREATE TABLE table_26519486_1 (population VARCHAR, languages VARCHAR)
SELECT population FROM table_26519486_1 WHERE languages = "11"
What was the nationality of player Cliff Abrecht?
CREATE TABLE table_2679061_9 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_2679061_9 WHERE player = "Cliff Abrecht"
What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?
CREATE TABLE table_23465864_6 (tues_25_aug VARCHAR, mon_24_aug VARCHAR)
SELECT tues_25_aug FROM table_23465864_6 WHERE mon_24_aug = "22' 24.56 101.021mph"
How many attended the game at Arden Street Oval?
CREATE TABLE table_name_86 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_86 WHERE venue = "arden street oval"
What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club?
CREATE TABLE table_name_83 (runner_up VARCHAR, country VARCHAR, venue VARCHAR)
SELECT runner_up FROM table_name_83 WHERE country = "england" AND venue = "royal porthcawl golf club"
Name the visitor for march 23
CREATE TABLE table_22871239_9 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_22871239_9 WHERE date = "March 23"
What is the version shown for the Length of 4:58?
CREATE TABLE table_name_1 (version VARCHAR, length VARCHAR)
SELECT version FROM table_name_1 WHERE length = "4:58"
Name the least fum rec td
CREATE TABLE table_15581223_8 (fum_rec INTEGER)
SELECT MIN(fum_rec) AS TD FROM table_15581223_8
What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?
CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR)
SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)"
Find the number of pets for each student who has any pet and student id.
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
What is the extra result associated with 6th place in 1972?
CREATE TABLE table_name_22 (extra VARCHAR, result VARCHAR, year VARCHAR)
SELECT extra FROM table_name_22 WHERE result = "6th" AND year = 1972
What is the position of the player with a pick less than 3 from team san diego?
CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR)
SELECT position FROM table_name_82 WHERE pick < 3 AND team = "san diego"
Which batting team had 624 runs?
CREATE TABLE table_name_84 (batting_team VARCHAR, runs VARCHAR)
SELECT batting_team FROM table_name_84 WHERE runs = "624"
When was the game that ended with a score of 6-4?
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_38 WHERE score = "6-4"
Is the iin range 4 active?
CREATE TABLE table_15905399_1 (active VARCHAR, iin_ranges VARCHAR)
SELECT active FROM table_15905399_1 WHERE iin_ranges = "4"
For ranks over 2 with Golds over 6 and Silvers over 5 what would be the lowest qualifying Total?
CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(total) FROM table_name_4 WHERE gold > 6 AND rank > 2 AND silver > 5
What country was Ernie Els from?
CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_80 WHERE player = "ernie els"
What is the enrollment of the school whose mascot is hot dogs?
CREATE TABLE table_name_53 (enrollment INTEGER, mascot VARCHAR)
SELECT SUM(enrollment) FROM table_name_53 WHERE mascot = "hot dogs"
Who is the opponent on May 7?
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_55 WHERE date = "may 7"
What is the average length in feet of the bridges?
CREATE TABLE bridge (length_feet INTEGER)
SELECT AVG(length_feet) FROM bridge
What is the total amount of grants given by each organisations? Also list the organisation id.
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id
Who was on the Democratic ticket for the Office of Attorney General?
CREATE TABLE table_name_70 (democratic_ticket VARCHAR, office VARCHAR)
SELECT democratic_ticket FROM table_name_70 WHERE office = "attorney general"
Which Position has a Player of steve nemeth?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_94 WHERE player = "steve nemeth"
How many totals have a Bronze of 0, and a Gold smaller than 0?
CREATE TABLE table_name_22 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_22 WHERE bronze = 0 AND gold < 0
What was the result when the opponent was Arsenal?
CREATE TABLE table_name_56 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_56 WHERE opponent = "arsenal"
Name the first election for john mchugh
CREATE TABLE table_1341423_32 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1341423_32 WHERE incumbent = "John McHugh"
Who is the builder of Pennant d03?
CREATE TABLE table_name_43 (builder VARCHAR, pennant_number VARCHAR)
SELECT builder FROM table_name_43 WHERE pennant_number = "d03"
What CFL team does Jeff brown play for?
CREATE TABLE table_name_16 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_name_16 WHERE player = "jeff brown"
What is the qual with a 19 rank?
CREATE TABLE table_name_28 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_28 WHERE rank = "19"