question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the earliest year where the result of the election was a retired republican hold? | CREATE TABLE table_1341472_40 (first_elected INTEGER, result VARCHAR) | SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = "Retired Republican hold" |
How many bonus points were won by 5? | CREATE TABLE table_17510803_2 (bonus_points VARCHAR, won VARCHAR) | SELECT bonus_points FROM table_17510803_2 WHERE won = "5" |
what is the total number of average where evening gown is 8.988 | CREATE TABLE table_12094609_1 (average VARCHAR, evening_gown VARCHAR) | SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = "8.988" |
What are the ground where the crowd totals 19929? | CREATE TABLE table_14312471_4 (ground VARCHAR, crowd VARCHAR) | SELECT ground FROM table_14312471_4 WHERE crowd = 19929 |
Which away team had a crowd bigger than 21,000? | CREATE TABLE table_name_60 (away_team VARCHAR, crowd INTEGER) | SELECT away_team FROM table_name_60 WHERE crowd > 21 OFFSET 000 |
When 1.79 is the height what is the geographical region? | CREATE TABLE table_18618707_1 (geographical_regions VARCHAR, height VARCHAR) | SELECT geographical_regions FROM table_18618707_1 WHERE height = "1.79" |
what is the location when the time is 3:15? | CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR) | SELECT location FROM table_name_7 WHERE time = "3:15" |
What is the maximum number of episodes in the series listed? | CREATE TABLE table_18424435_4 (no INTEGER) | SELECT MAX(no) FROM table_18424435_4 |
Find how many different affiliation types there are. | CREATE TABLE university (affiliation VARCHAR) | SELECT COUNT(DISTINCT affiliation) FROM university |
What's the shut down state of the unit that's been in commercial operation since 01.02.1984? | CREATE TABLE table_12983929_1 (shut_down VARCHAR, commercial_operation VARCHAR) | SELECT shut_down FROM table_12983929_1 WHERE commercial_operation = "01.02.1984" |
How many millions of people in the US saw the episode number 226? | CREATE TABLE table_23294081_11 (us_viewers__millions_ VARCHAR, no VARCHAR) | SELECT us_viewers__millions_ FROM table_23294081_11 WHERE no = 226 |
How long does student Linda Smith spend on the restaurant in total? | CREATE TABLE Visits_Restaurant (Spent INTEGER); CREATE TABLE Student (Spent INTEGER) | SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" |
Name the block A for shuji kondo | CREATE TABLE table_name_93 (block_a VARCHAR, toshizo VARCHAR) | SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo" |
What Away team is from Fitzroy? | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_16 WHERE home_team = "fitzroy" |
What is the Away team when the home team was wycombe wanderers? | CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_9 WHERE home_team = "wycombe wanderers" |
What are the stations in Tarzana? | CREATE TABLE table_2093995_1 (stations VARCHAR, city__neighborhood VARCHAR) | SELECT stations FROM table_2093995_1 WHERE city__neighborhood = "Tarzana" |
What is the y = 2008 when y = 2011 is a = 3? | CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, a VARCHAR, _2011 VARCHAR) | SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3 |
How many cook island league competitions were there? | CREATE TABLE table_25735_1 (latest_year VARCHAR, competition VARCHAR) | SELECT COUNT(latest_year) FROM table_25735_1 WHERE competition = "Cook Island League" |
what are the air dates for episodes with the production code 08-02-214 | CREATE TABLE table_16390576_3 (original_air_date VARCHAR, production_code VARCHAR) | SELECT original_air_date FROM table_16390576_3 WHERE production_code = "08-02-214" |
What player is from Seton Hall University? | CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR) | SELECT player FROM table_name_24 WHERE school = "seton hall university" |
Find the number of distinct gender for dorms. | CREATE TABLE dorm (gender VARCHAR) | SELECT COUNT(DISTINCT gender) FROM dorm |
Show all school names in alphabetical order. | CREATE TABLE school (school_name VARCHAR) | SELECT school_name FROM school ORDER BY school_name |
On what date did the home team Essendon play? | CREATE TABLE table_name_50 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_50 WHERE home_team = "essendon" |
What is the Home team on January 24, 1947? | CREATE TABLE table_name_62 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_62 WHERE date = "january 24, 1947" |
What is the score of the B.C. Open in New York? | CREATE TABLE table_name_65 (score VARCHAR, location VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_65 WHERE location = "new york" AND tournament = "b.c. open" |
What year was the team with the nickname pride established? | CREATE TABLE table_name_14 (established VARCHAR, nickname VARCHAR) | SELECT COUNT(established) FROM table_name_14 WHERE nickname = "pride" |
What is the pennant with Denny, Dumbarton as the builder? | CREATE TABLE table_name_8 (pennant VARCHAR, builder VARCHAR) | SELECT pennant FROM table_name_8 WHERE builder = "denny, dumbarton" |
What sport was played at the bosse field? | CREATE TABLE table_name_25 (sport VARCHAR, venue VARCHAR) | SELECT sport FROM table_name_25 WHERE venue = "bosse field" |
what is the crude birth rate (per 1000) when the live births 1 is 356 013? | CREATE TABLE table_name_72 (crude_birth_rate__per_1000_ INTEGER, live_births_1 VARCHAR) | SELECT SUM(crude_birth_rate__per_1000_) FROM table_name_72 WHERE live_births_1 = "356 013" |
Who was the opponent in a week over 8 on December 4, 1960? | CREATE TABLE table_name_54 (opponent VARCHAR, week VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_54 WHERE week > 8 AND date = "december 4, 1960" |
What was the rating of the episode with an overall ranking of 190? | CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR) | SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190" |
What couple had less than 2.0 points from the public? | CREATE TABLE table_19744915_22 (couple VARCHAR, public INTEGER) | SELECT couple FROM table_19744915_22 WHERE public < 2.0 |
Name the most conceded when draws is 5 and position is 1 | CREATE TABLE table_14889048_1 (conceded INTEGER, draws VARCHAR, position VARCHAR) | SELECT MAX(conceded) FROM table_14889048_1 WHERE draws = 5 AND position = 1 |
in what playoffs the league was in the semifinals | CREATE TABLE table_1908049_1 (league VARCHAR, playoffs VARCHAR) | SELECT league FROM table_1908049_1 WHERE playoffs = "Semifinals" |
How many registed students do each course have? List course name and the number of their registered students? | CREATE TABLE students (student_id VARCHAR); CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR) | SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id |
What type are State Assemblyman | CREATE TABLE table_1602620_1 (type VARCHAR, office VARCHAR) | SELECT type FROM table_1602620_1 WHERE office = "State Assemblyman" |
What district is incumbent albert rains from? | CREATE TABLE table_1341897_3 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341897_3 WHERE incumbent = "Albert Rains" |
Which players were number 3? | CREATE TABLE table_11734041_16 (player VARCHAR, no_s_ VARCHAR) | SELECT player FROM table_11734041_16 WHERE no_s_ = "3" |
Find the ids of the departments where any manager is managing 4 or more employees. | CREATE TABLE employees (department_id VARCHAR, manager_id VARCHAR, employee_id VARCHAR) | SELECT DISTINCT department_id FROM employees GROUP BY department_id, manager_id HAVING COUNT(employee_id) >= 4 |
What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10? | CREATE TABLE table_name_72 (top_5 INTEGER, tournament VARCHAR, cuts_made VARCHAR) | SELECT AVG(top_5) FROM table_name_72 WHERE tournament = "u.s. open" AND cuts_made > 10 |
which is the minimun amount of gold medals? | CREATE TABLE table_22355_35 (gold INTEGER) | SELECT MIN(gold) FROM table_22355_35 |
who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor) | CREATE TABLE table_13779832_1 (judges VARCHAR, local_title VARCHAR, presenters VARCHAR) | SELECT judges FROM table_13779832_1 WHERE local_title = "X Factor" AND presenters = "Heikki Paasonen Jukka Rossi (Xtra Factor)" |
What is the earlest election with a 0.9% share of votes? | CREATE TABLE table_name_13 (election INTEGER, share_of_votes VARCHAR) | SELECT MIN(election) FROM table_name_13 WHERE share_of_votes = "0.9%" |
Name the average for spain delegate | CREATE TABLE table_11674683_2 (average VARCHAR, delegate VARCHAR) | SELECT average FROM table_11674683_2 WHERE delegate = "Spain" |
Which date did richmond play as away? | CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_27 WHERE away_team = "richmond" |
Name the most number of leitrim | CREATE TABLE table_1705429_1 (no INTEGER, constituency VARCHAR) | SELECT MAX(no) FROM table_1705429_1 WHERE constituency = "Leitrim" |
What is the sum of Overall, when Pick is greater than 5, when Round is less than 11, and when Name is "Tom Barrington"? | CREATE TABLE table_name_69 (overall INTEGER, name VARCHAR, pick VARCHAR, round VARCHAR) | SELECT SUM(overall) FROM table_name_69 WHERE pick > 5 AND round < 11 AND name = "tom barrington" |
What is the latest year established that had 5 powiats? | CREATE TABLE table_1784514_1 (year_established INTEGER, number_of_powiats VARCHAR) | SELECT MAX(year_established) FROM table_1784514_1 WHERE number_of_powiats = "5 powiats" |
What is the reg gp of the player with a round number less than 2? | CREATE TABLE table_name_83 (reg_gp INTEGER, rd__number INTEGER) | SELECT SUM(reg_gp) FROM table_name_83 WHERE rd__number < 2 |
Who was the incumbent who was first elected in 1876? | CREATE TABLE table_name_43 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_name_43 WHERE first_elected = "1876" |
What party has the district Georgia 7? | CREATE TABLE table_name_46 (party VARCHAR, district VARCHAR) | SELECT party FROM table_name_46 WHERE district = "georgia 7" |
Who was the winner when the SEC team LSU played? | CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team VARCHAR) | SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU" |
Tell me the total number of top 25 for wins less than 1 and cuts made of 22 | CREATE TABLE table_name_59 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR) | SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1 |
What was the club that won 10 top division titles? | CREATE TABLE table_18143210_2 (club VARCHAR, top_division_titles VARCHAR) | SELECT club FROM table_18143210_2 WHERE top_division_titles = 10 |
How many were first elected when the incumbent was Morgan M. Moulder? | CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder" |
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 |
Find the component amounts and names of all furnitures that have more than 10 components. | CREATE TABLE furniture (Num_of_Component INTEGER, name VARCHAR) | SELECT Num_of_Component, name FROM furniture WHERE Num_of_Component > 10 |
Find the id of the customers who have order status both "On Road" and "Shipped". | CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR) | SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" |
What was the class when part 3 was *heldun? | CREATE TABLE table_name_79 (class VARCHAR, part_3 VARCHAR) | SELECT class FROM table_name_79 WHERE part_3 = "*heldun" |
Which candidates are associated with the Georgia 7 district? | CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 7" |
What position does the winner from Ohio State with 412 points play? | CREATE TABLE table_name_38 (position VARCHAR, school VARCHAR, points VARCHAR) | SELECT position FROM table_name_38 WHERE school = "ohio state" AND points = "412" |
What was the comment on the Denali area? | CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) | SELECT comment FROM table_17978052_2 WHERE borough_or_census_area = "Denali" |
Who was the home side at glenferrie oval? | CREATE TABLE table_name_37 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_37 WHERE venue = "glenferrie oval" |
Opponents of sheffield wednesday had what date? | CREATE TABLE table_name_81 (date VARCHAR, opponents VARCHAR) | SELECT date FROM table_name_81 WHERE opponents = "sheffield wednesday" |
What is the air date of the episode written by Itamar Moses? | CREATE TABLE table_25356350_3 (original_air_date VARCHAR, written_by VARCHAR) | SELECT original_air_date FROM table_25356350_3 WHERE written_by = "Itamar Moses" |
In which district was the incumbent Dick Saslaw? | CREATE TABLE table_13618584_1 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_13618584_1 WHERE incumbent = "Dick Saslaw" |
What is the number range for the T 3 class? | CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR) | SELECT number_range FROM table_name_88 WHERE class = "t 3" |
What is the reason the Chief Judge of 1971–1977 was terminated? | CREATE TABLE table_name_33 (reason_for_termination VARCHAR, chief_judge VARCHAR) | SELECT reason_for_termination FROM table_name_33 WHERE chief_judge = "1971–1977" |
What are the swimsuits for south africa? | CREATE TABLE table_11674683_2 (swimsuit VARCHAR, delegate VARCHAR) | SELECT swimsuit FROM table_11674683_2 WHERE delegate = "South Africa" |
Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana" | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR) | SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" |
Who is Gerolsteiner's cyclist? | CREATE TABLE table_name_89 (cyclist VARCHAR, team VARCHAR) | SELECT cyclist FROM table_name_89 WHERE team = "gerolsteiner" |
What is the abbreviation/symbol of 辽宁省 liáoníng shěng? | CREATE TABLE table_254234_1 (abbreviation_symbol VARCHAR, chinese_name VARCHAR) | SELECT abbreviation_symbol FROM table_254234_1 WHERE chinese_name = "辽宁省 Liáoníng Shěng" |
What was the result of the game that was played on Nov. 26, 1972? | CREATE TABLE table_17386066_2 (result VARCHAR, date VARCHAR) | SELECT result FROM table_17386066_2 WHERE date = "Nov. 26" |
What year had a league position of 8/12? | CREATE TABLE table_name_63 (year VARCHAR, league_position VARCHAR) | SELECT year FROM table_name_63 WHERE league_position = "8/12" |
What parishes are in Solvorn? | CREATE TABLE table_178398_1 (parish__prestegjeld_ VARCHAR, location_of_the_church VARCHAR) | SELECT parish__prestegjeld_ FROM table_178398_1 WHERE location_of_the_church = "Solvorn" |
What is the most lost games for the team with a difference smaller than 86 and points of 32? | CREATE TABLE table_name_74 (lost INTEGER, points VARCHAR, difference VARCHAR) | SELECT MAX(lost) FROM table_name_74 WHERE points = 32 AND difference < 86 |
Name the frequency for 103.7 energy fm dipolog* | CREATE TABLE table_27914076_1 (frequency VARCHAR, branding VARCHAR) | SELECT frequency FROM table_27914076_1 WHERE branding = "103.7 Energy FM Dipolog*" |
Show the dates of performances with attending members whose roles are "Violin". | CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Member_ID VARCHAR, Role VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR) | SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin" |
What E score has the T score of 8 and a number smaller than 22.95? | CREATE TABLE table_name_66 (e_score INTEGER, t_score VARCHAR, total VARCHAR) | SELECT MIN(e_score) FROM table_name_66 WHERE t_score = 8 AND total < 22.95 |
Name the opponent for june 12 | CREATE TABLE table_19789597_5 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_19789597_5 WHERE date = "June 12" |
When Symbian/Series 40 is 0.40%, what is the percentage of "other"? | CREATE TABLE table_11381701_3 (other VARCHAR, symbian___series_40 VARCHAR) | SELECT other FROM table_11381701_3 WHERE symbian___series_40 = "0.40%" |
What is Melbourne's home venue? | CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_32 WHERE home_team = "melbourne" |
What is the total number of wins in 2010, when there were more than 14 matches? | CREATE TABLE table_name_99 (wins VARCHAR, year VARCHAR, matches VARCHAR) | SELECT COUNT(wins) FROM table_name_99 WHERE year = "2010" AND matches > 14 |
What is the per capital income for Washington county? | CREATE TABLE table_name_12 (per_capita_income VARCHAR, county VARCHAR) | SELECT per_capita_income FROM table_name_12 WHERE county = "washington" |
Name the english title for zhang yimou | CREATE TABLE table_name_18 (english_title VARCHAR, director VARCHAR) | SELECT english_title FROM table_name_18 WHERE director = "zhang yimou" |
Who is the male winner the year after 1998 with Marleen Renders as the female winner? | CREATE TABLE table_name_40 (winner__male_ VARCHAR, winner__female_ VARCHAR, year VARCHAR) | SELECT winner__male_ FROM table_name_40 WHERE winner__female_ = "marleen renders" AND year > 1998 |
What is Event, when Viewers is 2.4 Million, and when Rating is 1.4? | CREATE TABLE table_name_49 (event VARCHAR, viewers VARCHAR, rating VARCHAR) | SELECT event FROM table_name_49 WHERE viewers = "2.4 million" AND rating = "1.4" |
How many deaths occurred during Darby? | CREATE TABLE table_name_64 (deaths VARCHAR, storm_name VARCHAR) | SELECT deaths FROM table_name_64 WHERE storm_name = "darby" |
What was the water depth in the Gulf of Mexico named Discoverer Clear Leader? | CREATE TABLE table_name_87 (water_depth VARCHAR, location VARCHAR, name VARCHAR) | SELECT water_depth FROM table_name_87 WHERE location = "gulf of mexico" AND name = "discoverer clear leader" |
Which District is Constituency number 22? | CREATE TABLE table_name_43 (district VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_43 WHERE constituency_number = "22" |
What's the total for the wc belgrade event with 10 rank points? | CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR) | SELECT total FROM table_name_3 WHERE event = "wc belgrade" AND rank_points = "10" |
What is South Korea's to par value? | CREATE TABLE table_name_69 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_69 WHERE country = "south korea" |
Which Name has a Term end of 18 july 1944? | CREATE TABLE table_name_88 (name VARCHAR, term_end VARCHAR) | SELECT name FROM table_name_88 WHERE term_end = "18 july 1944" |
Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1? | CREATE TABLE table_name_48 (bronze INTEGER, rank VARCHAR, total VARCHAR) | SELECT MAX(bronze) FROM table_name_48 WHERE rank = "26" AND total > 1 |
what is drawn when the club is hirwaun rfc? | CREATE TABLE table_name_80 (drawn VARCHAR, club VARCHAR) | SELECT drawn FROM table_name_80 WHERE club = "hirwaun rfc" |
Can you tell me the Score that has the Attendance of 4,567? | CREATE TABLE table_name_94 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_94 WHERE attendance = "4,567" |
How many times was the high assists andre miller (7)? | CREATE TABLE table_27734769_8 (date VARCHAR, high_assists VARCHAR) | SELECT COUNT(date) FROM table_27734769_8 WHERE high_assists = "Andre Miller (7)" |
What is the high assists of Hamilton (24)? | CREATE TABLE table_name_22 (high_assists VARCHAR, high_points VARCHAR) | SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)" |
What was the number of rounds on the Hidden Valley Raceway? | CREATE TABLE table_14016079_1 (rd VARCHAR, circuit VARCHAR) | SELECT COUNT(rd) FROM table_14016079_1 WHERE circuit = "Hidden Valley Raceway" |
What is the group A region with a region number of 2? | CREATE TABLE table_name_20 (group_a VARCHAR, region VARCHAR) | SELECT group_a FROM table_name_20 WHERE region = 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.