question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total amount of allied-unrelated where the component is human capital?
CREATE TABLE table_11944282_1 (allied_unrelated VARCHAR, component VARCHAR)
SELECT COUNT(allied_unrelated) FROM table_11944282_1 WHERE component = "Human Capital"
Find the name of the program that is broadcast most frequently.
CREATE TABLE program (name VARCHAR, program_id VARCHAR); CREATE TABLE broadcast (program_id VARCHAR)
SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1
What time in office does the U.S. Navy have?
CREATE TABLE table_name_59 (time_in_office VARCHAR, branch VARCHAR)
SELECT time_in_office FROM table_name_59 WHERE branch = "u.s. navy"
List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.
CREATE TABLE Professionals (email_address VARCHAR, state VARCHAR)
SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'
Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?
CREATE TABLE table_name_48 (team VARCHAR, sponsor VARCHAR, tire VARCHAR, chassis VARCHAR)
SELECT team FROM table_name_48 WHERE tire = "firestone" AND chassis = "reynard 95i" AND sponsor = "motorola"
How big was the crowd in game that featured the visiting team of north melbourne?
CREATE TABLE table_name_76 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_76 WHERE away_team = "north melbourne"
What is SS Player Rich McKinney's Team?
CREATE TABLE table_name_19 (team VARCHAR, position VARCHAR, player VARCHAR)
SELECT team FROM table_name_19 WHERE position = "ss" AND player = "rich mckinney"
What's the Original Title of the English title A Judgement in Stone?
CREATE TABLE table_name_70 (original_title VARCHAR, english_title VARCHAR)
SELECT original_title FROM table_name_70 WHERE english_title = "a judgement in stone"
What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter?
CREATE TABLE table_name_6 (name VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_6 WHERE transfer_window = "winter" AND moving_to = "anorthosis famagusta"
What Site has Attendance of 53,000, and a Date of october 21, 1967?
CREATE TABLE table_name_83 (site VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT site FROM table_name_83 WHERE attendance = "53,000" AND date = "october 21, 1967"
What is the market income per capita of the county with the 9.4% poverty rate?
CREATE TABLE table_22815568_2 (market_income_per_capita VARCHAR, poverty_rate VARCHAR)
SELECT market_income_per_capita FROM table_22815568_2 WHERE poverty_rate = "9.4%"
What is the average total of player hale irwin, who had a t52 finish?
CREATE TABLE table_name_83 (total INTEGER, finish VARCHAR, player VARCHAR)
SELECT AVG(total) FROM table_name_83 WHERE finish = "t52" AND player = "hale irwin"
Which Video has a Channel of 25.3?
CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR)
SELECT video FROM table_name_49 WHERE channel = 25.3
Who directed the film with the title three summer days?
CREATE TABLE table_22265716_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_22265716_1 WHERE film_title_used_in_nomination = "Three Summer Days"
What was the away score at the game at MCG?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_63 WHERE venue = "mcg"
Show the faculty id of each faculty member, along with the number of students he or she advises.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
Name the most number in season for production code 3abc12
CREATE TABLE table_23289934_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT MAX(no_in_season) FROM table_23289934_1 WHERE production_code = "3ABC12"
What is the time of the driver on grid 7?
CREATE TABLE table_name_48 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_48 WHERE grid = 7
Who had a finish of t20?
CREATE TABLE table_name_20 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_20 WHERE finish = "t20"
Name the hdi 2012 for dominica
CREATE TABLE table_26313243_1 (hdi_2012 VARCHAR, country VARCHAR)
SELECT hdi_2012 FROM table_26313243_1 WHERE country = "Dominica"
What is the series number for season episode 24?
CREATE TABLE table_13505192_3 (series_number INTEGER, season_number VARCHAR)
SELECT MIN(series_number) FROM table_13505192_3 WHERE season_number = 24
If the Class A is Anton and Class AAA is Burnet, what is Class AA?
CREATE TABLE table_name_88 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR)
SELECT class_aA FROM table_name_88 WHERE class_a = "anton" AND class_aAA = burnet
Tell me the nomination for ukraine
CREATE TABLE table_name_17 (nomination VARCHAR, country VARCHAR)
SELECT nomination FROM table_name_17 WHERE country = "ukraine"
What is Postposition, when Noun Root (Meaning) is "mshobl- (parent)"?
CREATE TABLE table_name_75 (postposition VARCHAR, noun_root__meaning_ VARCHAR)
SELECT postposition FROM table_name_75 WHERE noun_root__meaning_ = "mshobl- (parent)"
Name the total number of overall for defensive tackle
CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR)
SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle"
What is Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)?
CREATE TABLE table_name_65 (director VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
SELECT director FROM table_name_65 WHERE result = "nominee" AND year__ceremony_ = "1969 (42nd)"
what is the score when the championship is rome and the opponent is richard krajicek?
CREATE TABLE table_name_31 (score VARCHAR, championship VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_31 WHERE championship = "rome" AND opponent = "richard krajicek"
What was the final score on March 22, 1993?
CREATE TABLE table_name_24 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_24 WHERE date = "march 22, 1993"
Find the names of nurses who are nursing an undergoing treatment.
CREATE TABLE undergoes (AssistingNurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR)
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID
Which series was on May 16?
CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR)
SELECT series FROM table_name_4 WHERE date = "may 16"
What tournament did Smeets play against Mark nielsen?
CREATE TABLE table_name_11 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_11 WHERE opponent_in_the_final = "mark nielsen"
Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?
CREATE TABLE table_name_67 (nominated_work VARCHAR, category VARCHAR, year VARCHAR)
SELECT nominated_work FROM table_name_67 WHERE category = "best performance by a leading actress in a play" AND year < 2007
When was a game won with more than 11 to par?
CREATE TABLE table_name_6 (year_s__won VARCHAR, to_par INTEGER)
SELECT year_s__won FROM table_name_6 WHERE to_par > 11
What is the average rank of the record on 2007-06-21 with a mark less than 91.29?
CREATE TABLE table_name_31 (rank INTEGER, date VARCHAR, mark VARCHAR)
SELECT AVG(rank) FROM table_name_31 WHERE date = "2007-06-21" AND mark < 91.29
In what edition is Ungur's opponent David Nalbandian?
CREATE TABLE table_24099476_8 (edition VARCHAR, opponent VARCHAR)
SELECT edition FROM table_24099476_8 WHERE opponent = "David Nalbandian"
Which championship was won on July 7, 2010?
CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
What was the average number of silver medals won by France when they are ranked higher than 8?
CREATE TABLE table_name_88 (silver INTEGER, nation VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_88 WHERE nation = "france" AND rank > 8
Who was Judge Jack Edward Tanner's chief judge?
CREATE TABLE table_name_37 (Chief VARCHAR, judge VARCHAR)
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner"
Which Year has a Runner(s)-up of tammie green?
CREATE TABLE table_name_71 (year INTEGER, runner_s__up VARCHAR)
SELECT MIN(year) FROM table_name_71 WHERE runner_s__up = "tammie green"
What was the aircraft damage for the Boeing 707-320B?
CREATE TABLE table_name_51 (aircraft VARCHAR)
SELECT aircraft AS damage FROM table_name_51 WHERE aircraft = "boeing 707-320b"
Who was the highest drafted player that attended college at Virginia?
CREATE TABLE table_name_44 (pick INTEGER, college VARCHAR)
SELECT MAX(pick) FROM table_name_44 WHERE college = "virginia"
What is the sector when the population change 2002-2012 (%) is 79.6?
CREATE TABLE table_12496904_1 (sector VARCHAR, population_change_2002_2012___percentage_ VARCHAR)
SELECT sector FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "79.6"
What is the Score when there was a hard surface and the Championship is new haven , usa?
CREATE TABLE table_name_93 (score VARCHAR, surface VARCHAR, championship VARCHAR)
SELECT score FROM table_name_93 WHERE surface = "hard" AND championship = "new haven , usa"
Which home has an attendance of 507?
CREATE TABLE table_name_99 (home VARCHAR, attendance VARCHAR)
SELECT home FROM table_name_99 WHERE attendance = 507
Which player gradyated from Florida State?
CREATE TABLE table_name_76 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_76 WHERE school_club_team = "florida state"
what team played on april 21
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_93 WHERE date = "april 21"
What is the time for Sheffield?
CREATE TABLE table_name_15 (time VARCHAR, city VARCHAR)
SELECT time FROM table_name_15 WHERE city = "sheffield"
What position does Michael Ruffin play?
CREATE TABLE table_name_98 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_98 WHERE player = "michael ruffin"
What was the Opponents in Final during the match with a Score in Final of 6–4, 3–6, 5–7?
CREATE TABLE table_name_5 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT opponents_in_final FROM table_name_5 WHERE score_in_final = "6–4, 3–6, 5–7"
How many nominee's had a vote to evict percentage of 3.92%
CREATE TABLE table_15162479_8 (nominee VARCHAR, vote_to_evict VARCHAR)
SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = "3.92%"
Which year did The Adventures of Tintin come out?
CREATE TABLE table_name_17 (year INTEGER, film VARCHAR)
SELECT SUM(year) FROM table_name_17 WHERE film = "the adventures of tintin"
What is the earliest date when the championship was Monterrey WCT, Mexico?
CREATE TABLE table_name_76 (date INTEGER, championship VARCHAR)
SELECT MIN(date) FROM table_name_76 WHERE championship = "monterrey wct, mexico"
What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?
CREATE TABLE table_name_26 (competition VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT competition FROM table_name_26 WHERE opponent = "peterborough phantoms" AND date = 2
How many opponents did the Sun Devils play when they scored 41 points?
CREATE TABLE table_21007615_1 (opponent VARCHAR, sun_devils_points VARCHAR)
SELECT COUNT(opponent) FROM table_21007615_1 WHERE sun_devils_points = 41
what is the score when the venue is athens olympic stadium on 30 april 2011?
CREATE TABLE table_name_78 (score VARCHAR, venue VARCHAR, year VARCHAR)
SELECT score FROM table_name_78 WHERE venue = "athens olympic stadium" AND year = "30 april 2011"
How many dates have a total points for race of 180?
CREATE TABLE table_23293785_2 (date VARCHAR, race_total_pts_ VARCHAR)
SELECT COUNT(date) FROM table_23293785_2 WHERE race_total_pts_ = 180
What year was Bob Clement first elected?
CREATE TABLE table_1341453_44 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341453_44 WHERE incumbent = "Bob Clement"
From where did the Scout carrier rocket with the satellite that has a COSPAR ID of 1971-109a launch?
CREATE TABLE table_name_6 (launch_site VARCHAR, carrier_rocket VARCHAR, cospar_id VARCHAR)
SELECT launch_site FROM table_name_6 WHERE carrier_rocket = "scout" AND cospar_id = "1971-109a"
What score won $36,090?
CREATE TABLE table_name_65 (score VARCHAR, money___$__ VARCHAR)
SELECT score FROM table_name_65 WHERE money___$__ = "36,090"
What NHL team picked Tom White?
CREATE TABLE table_2781227_7 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_2781227_7 WHERE player = "Tom White"
What is Myron Walwyn with a Territorial at-large Constiuency's First Elected Date
CREATE TABLE table_name_87 (first_elected VARCHAR, constiuency VARCHAR, name VARCHAR)
SELECT first_elected FROM table_name_87 WHERE constiuency = "territorial at-large" AND name = "myron walwyn"
what is the number of the wc matches if the matches were 79
CREATE TABLE table_30085411_1 (WC INTEGER, matches VARCHAR)
SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 79
What country was the player, rod pampling, from who placed t10?
CREATE TABLE table_name_43 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_43 WHERE place = "t10" AND player = "rod pampling"
What is the mountain range at 37.3934°n 104.9201°w?
CREATE TABLE table_name_3 (mountain_range VARCHAR, location VARCHAR)
SELECT mountain_range FROM table_name_3 WHERE location = "37.3934°n 104.9201°w"
Show the crime rates of counties in ascending order of number of police officers.
CREATE TABLE county_public_safety (Crime_rate VARCHAR, Police_officers VARCHAR)
SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers
What was the score of the game whose first star was O. Pavelec?
CREATE TABLE table_27537518_6 (score VARCHAR, first_star VARCHAR)
SELECT score FROM table_27537518_6 WHERE first_star = "O. Pavelec"
What is every average when number of dances is 1?
CREATE TABLE table_26375386_28 (average VARCHAR, number_of_dances VARCHAR)
SELECT average FROM table_26375386_28 WHERE number_of_dances = 1
What was the broadcast date of the episode that visited South Africa?
CREATE TABLE table_name_68 (uk_broadcast_date VARCHAR, countries_visited VARCHAR)
SELECT uk_broadcast_date FROM table_name_68 WHERE countries_visited = "south africa"
What is the name of the non-mammal from brazil of the unit of caturrita formation?
CREATE TABLE table_name_19 (name VARCHAR, location VARCHAR, unit VARCHAR)
SELECT name FROM table_name_19 WHERE location = "brazil" AND unit = "caturrita formation"
What's the competition that happened in Singapore?
CREATE TABLE table_name_59 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_59 WHERE venue = "singapore"
Which Species has a medium Threat Level?
CREATE TABLE table_name_63 (species VARCHAR, threat_level VARCHAR)
SELECT species FROM table_name_63 WHERE threat_level = "medium"
What was David Backes' Offer Team?
CREATE TABLE table_name_59 (offer_team VARCHAR, player VARCHAR)
SELECT offer_team FROM table_name_59 WHERE player = "david backes"
Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.
CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR)
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200
What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?
CREATE TABLE table_name_20 (college VARCHAR, pick__number VARCHAR, round VARCHAR)
SELECT college FROM table_name_20 WHERE pick__number < 98 AND round = "round 4"
What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?
CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)
SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3
How many winning drivers were the for the rnd equalling 5?
CREATE TABLE table_10707176_2 (winning_driver VARCHAR, rnd VARCHAR)
SELECT COUNT(winning_driver) FROM table_10707176_2 WHERE rnd = "5"
Which Surface has an Opponent of oleksandra kravets?
CREATE TABLE table_name_99 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_99 WHERE opponent = "oleksandra kravets"
Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?
CREATE TABLE table_name_61 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT grid FROM table_name_61 WHERE laps > 8 AND manufacturer = "honda" AND time_retired = "retirement"
who is the opponent on 2004-06-26 with the result of loss?
CREATE TABLE table_name_78 (opponent VARCHAR, date VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_78 WHERE date = "2004-06-26" AND result = "loss"
What RECNet has elk lake as the city of license?
CREATE TABLE table_name_57 (recnet VARCHAR, city_of_license VARCHAR)
SELECT recnet FROM table_name_57 WHERE city_of_license = "elk lake"
What was his record when the method was technical submission (forearm choke)?
CREATE TABLE table_name_57 (record VARCHAR, method VARCHAR)
SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)"
What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012?
CREATE TABLE table_19542477_9 (song_s__—_weeks VARCHAR, issue_years VARCHAR, artist_s_ VARCHAR)
SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna"
How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?
CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300"
How many losses have byes greater than 2?
CREATE TABLE table_name_38 (losses VARCHAR, byes INTEGER)
SELECT COUNT(losses) FROM table_name_38 WHERE byes > 2
What is the playoff Game on April 30?
CREATE TABLE table_name_59 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_59 WHERE date = "april 30"
What was Matthew Warchus' Award?
CREATE TABLE table_name_29 (award VARCHAR, nominee VARCHAR)
SELECT award FROM table_name_29 WHERE nominee = "matthew warchus"
Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill".
CREATE TABLE film (Studio VARCHAR, Director VARCHAR)
SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill"
What is the lowest total that has barbados as the nation with a bronze greater than 0?
CREATE TABLE table_name_96 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_96 WHERE nation = "barbados" AND bronze > 0
What was the opposing team for the game on August 29?
CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_28 WHERE date = "august 29"
What is the date of the game later than week 13 and 41,862 people attended?
CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_62 WHERE week > 13 AND attendance = "41,862"
What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?
CREATE TABLE table_name_61 (top_5 INTEGER, top_25 VARCHAR, wins VARCHAR)
SELECT AVG(top_5) FROM table_name_61 WHERE top_25 = 1 AND wins < 0
What is Margin of Victory, when Tournament is "Women's Kemper Open"?
CREATE TABLE table_name_93 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_93 WHERE tournament = "women's kemper open"
When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?
CREATE TABLE table_23285849_11 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT COUNT(high_rebounds) FROM table_23285849_11 WHERE high_points = "Carmelo Anthony (42)"
What is the date when jameer nelson (10) had the high assists?
CREATE TABLE table_27700530_10 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_27700530_10 WHERE high_assists = "Jameer Nelson (10)"
What venue featured fitzroy as the home squad?
CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_62 WHERE home_team = "fitzroy"
Which Venue has an Against of 25?
CREATE TABLE table_name_26 (venue VARCHAR, against VARCHAR)
SELECT venue FROM table_name_26 WHERE against = 25
What was the average attendance in weeks after 16?
CREATE TABLE table_name_58 (attendance INTEGER, week INTEGER)
SELECT AVG(attendance) FROM table_name_58 WHERE week > 16
Name the number of ratings for bruce forsyth
CREATE TABLE table_29135051_2 (ratings VARCHAR, guest_s_ VARCHAR)
SELECT COUNT(ratings) FROM table_29135051_2 WHERE guest_s_ = "Bruce Forsyth"
Which Margin of victory has a Runner(s)-up of josé maria cañizares?
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_38 WHERE runner_s__up = "josé maria cañizares"
Name the date for score l 89–91 (ot)
CREATE TABLE table_17288845_8 (date VARCHAR, score VARCHAR)
SELECT date FROM table_17288845_8 WHERE score = "L 89–91 (OT)"