answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT poor_law_union FROM table_30120633_1 WHERE townland = "Coolkirky" | What is the Poor Law Union for Coolkirky? | CREATE TABLE table_30120633_1 (poor_law_union VARCHAR, townland VARCHAR) |
SELECT ends FROM table_name_92 WHERE type = "transferred" | What ends has transferred as the type? | CREATE TABLE table_name_92 (ends VARCHAR, type VARCHAR) |
SELECT COUNT(game) FROM table_name_67 WHERE team = "charlotte" | What was the game number of the game played against Charlotte? | CREATE TABLE table_name_67 (game VARCHAR, team VARCHAR) |
SELECT COUNT(division) FROM table_name_89 WHERE regular_season = "2nd, northeast" AND year < 2008 | When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division? | CREATE TABLE table_name_89 (division VARCHAR, regular_season VARCHAR, year VARCHAR) |
SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73" | What points for have 30 as the game, and 73 as the total points? | CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR) |
SELECT bonus_points FROM table_name_28 WHERE drawn = "4" | What is the number of bonus points when there are 4 drawn? | CREATE TABLE table_name_28 (bonus_points VARCHAR, drawn VARCHAR) |
SELECT record FROM table_17118657_7 WHERE high_assists = "Canty (5)" | What was the record when Canty (5) was the high assists? | CREATE TABLE table_17118657_7 (record VARCHAR, high_assists VARCHAR) |
SELECT position FROM table_name_82 WHERE college = "mississippi state" | What position does the player from Mississippi state play? | CREATE TABLE table_name_82 (position VARCHAR, college VARCHAR) |
SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a" | What's the n Africa in 2012 with an N/A as the CPLP? | CREATE TABLE table_name_54 (n_africa_rank VARCHAR, year VARCHAR, cplp_rank VARCHAR) |
SELECT COUNT(round) FROM table_name_94 WHERE college = "georgia" | In how many rounds of the draft was there a college from Georgia involved? | CREATE TABLE table_name_94 (round VARCHAR, college VARCHAR) |
SELECT * FROM people | List all info about all people. | CREATE TABLE people (Id VARCHAR) |
SELECT record FROM table_22847880_2 WHERE opponent = "Kentucky" | Name the record for kentucky | CREATE TABLE table_22847880_2 (record VARCHAR, opponent VARCHAR) |
SELECT points FROM table_25561038_1 WHERE position = "1st" | List the total points for the 1st place team. | CREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR) |
SELECT MIN(april) FROM table_name_10 WHERE game < 76 | What is the earliest April date with a game less than 76? | CREATE TABLE table_name_10 (april INTEGER, game INTEGER) |
SELECT party FROM table_1341453_34 WHERE first_elected = "1990" | What's the party elected in the district that first elected in 1990? | CREATE TABLE table_1341453_34 (party VARCHAR, first_elected VARCHAR) |
SELECT measurements__in_cm_ FROM table_26427332_17 WHERE city = "Sindelfingen" | what measurement does the contestant from sindelfingen have? | CREATE TABLE table_26427332_17 (measurements__in_cm_ VARCHAR, city VARCHAR) |
SELECT championship FROM table_22597626_6 WHERE opponent_in_the_final = "Peter McNamara" | Name the championship for peter mcnamara | CREATE TABLE table_22597626_6 (championship VARCHAR, opponent_in_the_final VARCHAR) |
SELECT episode FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan" | Which episode had celebrities Nick Hewer and Saira Khan in them? | CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR) |
SELECT class FROM table_name_47 WHERE points > 2 AND year < 1973 AND wins > 0 | Which class corresponds to more than 2 points, wins greater than 0, and a year earlier than 1973? | CREATE TABLE table_name_47 (class VARCHAR, wins VARCHAR, points VARCHAR, year VARCHAR) |
SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English" | How many students attend course English? | CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) |
SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r" | What is the 2006 that has a 2r in 2004, and a 2r in 2005? | CREATE TABLE table_name_84 (Id VARCHAR) |
SELECT MIN(points_2) FROM table_17359181_1 WHERE goal_average_1 = "1.50" | What is the lowest value of Points 2 when the goal average is 1.50? | CREATE TABLE table_17359181_1 (points_2 INTEGER, goal_average_1 VARCHAR) |
SELECT score FROM table_name_92 WHERE date = "april 24" | What scored is recorded on April 24? | CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) |
SELECT first_elected FROM table_name_16 WHERE district = "minnesota 2" | What is First Elected, when District is "Minnesota 2"? | CREATE TABLE table_name_16 (first_elected VARCHAR, district VARCHAR) |
SELECT COUNT(total) FROM table_name_54 WHERE event = "+105 kg" AND clean_ & _jerk < 227.5 | What is the total that had an event of +105 kg and clean & jerk less than 227.5? | CREATE TABLE table_name_54 (total VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR) |
SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 november 1976, 03:59" | What is Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59? | CREATE TABLE table_name_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR) |
SELECT AVG(bronze) FROM table_name_62 WHERE total > 1 AND gold > 0 | How many bronze medals were won when the total is more than 1, and gold is more than 0? | CREATE TABLE table_name_62 (bronze INTEGER, total VARCHAR, gold VARCHAR) |
SELECT MIN(rank) FROM table_2527063_3 | Name the least rank | CREATE TABLE table_2527063_3 (rank INTEGER) |
SELECT MAX(karianne_gulliksen) FROM table_28677723_5 | What is the largest number for karianne gulliksen? | CREATE TABLE table_28677723_5 (karianne_gulliksen INTEGER) |
SELECT COUNT(week) FROM table_name_15 WHERE date = "october 12, 1975" AND attendance > 44 OFFSET 043 | In which week was the game played on October 12, 1975 and the crowd was larger than 44,043? | CREATE TABLE table_name_15 (week VARCHAR, date VARCHAR, attendance VARCHAR) |
SELECT tournament FROM table_name_73 WHERE career_sr = "atp masters series" | What is Tournament, when Career SR is "ATP Masters Series"? | CREATE TABLE table_name_73 (tournament VARCHAR, career_sr VARCHAR) |
SELECT score FROM table_name_48 WHERE venue = "manama, bahrain" AND competition = "friendly" | What was the final score of the Friendly Competition in Manama, Bahrain? | CREATE TABLE table_name_48 (score VARCHAR, venue VARCHAR, competition VARCHAR) |
SELECT away_team FROM table_name_57 WHERE tie_no = "4" | What is the away team with a 4 tie no.? | CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR) |
SELECT main_wins FROM table_name_63 WHERE team = "france" | How many main wins for France? | CREATE TABLE table_name_63 (main_wins VARCHAR, team VARCHAR) |
SELECT district FROM table_1341718_44 WHERE incumbent = "Earle Cabell" | Which district elected incumbent Earle Cabell? | CREATE TABLE table_1341718_44 (district VARCHAR, incumbent VARCHAR) |
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270) | Who has the Winning score of –10 (66-71-62-71=270) ? | CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR) |
SELECT AVG(goals_for) FROM table_name_94 WHERE wins > 8 | What is the average Goals For for a team that has more Wins than 8? | CREATE TABLE table_name_94 (goals_for INTEGER, wins INTEGER) |
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak" | Which Original Italian production has a First US National Tour of joanna glushak? | CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR) |
SELECT COUNT(silver) FROM table_name_93 WHERE nation = "china" | How many silver medals does China have? | CREATE TABLE table_name_93 (silver VARCHAR, nation VARCHAR) |
SELECT first_edition FROM table_name_50 WHERE isbn = "978-0785166252" | Which first edition has an ISBN of 978-0785166252? | CREATE TABLE table_name_50 (first_edition VARCHAR, isbn VARCHAR) |
SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks" | Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game? | CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR) |
SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "West Virginia" | who were the winners in west virginia | CREATE TABLE table_1133844_4 (candidates_winning_candidate_in_bold VARCHAR, state__linked_to_summaries_below_ VARCHAR) |
SELECT MAX(elimination_number) FROM table_18598175_2 WHERE time = "26:15" | What was the elimination number of the fighter who fought within 26:15? | CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR) |
SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani" | Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani? | CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers" | What is the average attendance when the opponent is telford tigers? | CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR) |
SELECT year FROM table_name_78 WHERE distance_duration = "44 laps" AND driver = "robin buck" | What year does robin buck go 44 laps? | CREATE TABLE table_name_78 (year VARCHAR, distance_duration VARCHAR, driver VARCHAR) |
SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND rank < 2 | What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2? | CREATE TABLE table_name_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) |
SELECT year_built FROM table_name_46 WHERE name = "cormorant" | What year was the cormorant built in? | CREATE TABLE table_name_46 (year_built VARCHAR, name VARCHAR) |
SELECT ihsaa_class FROM table_name_84 WHERE size > 511 | Which IHSAA Class has a Size larger than 511? | CREATE TABLE table_name_84 (ihsaa_class VARCHAR, size INTEGER) |
SELECT date FROM table_name_72 WHERE venue = "the boulevard" AND score = "8-8" | When was the game at the boulevard that ended with an 8-8 score? | CREATE TABLE table_name_72 (date VARCHAR, venue VARCHAR, score VARCHAR) |
SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = "h1z" | Tell me the bullet tip color of headstamp id of h1z | CREATE TABLE table_name_54 (bullet_tip_color VARCHAR, headstamp_id VARCHAR) |
SELECT losing_bonus FROM table_name_21 WHERE club = "crumlin rfc" | What's the losing bonus of Crumlin RFC? | CREATE TABLE table_name_21 (losing_bonus VARCHAR, club VARCHAR) |
SELECT 1 AS st_party FROM table_name_20 WHERE year = "1865" | In 1865, what was the first party? | CREATE TABLE table_name_20 (year VARCHAR) |
SELECT party FROM table_name_29 WHERE term_of_office = "1951–1966" AND state = "sa" | What party has a term of office of 1951–1966, and a State of sa? | CREATE TABLE table_name_29 (party VARCHAR, term_of_office VARCHAR, state VARCHAR) |
SELECT COUNT(podiums) FROM table_name_93 WHERE class = "total" | If the class is total, what is the total number of podiums? | CREATE TABLE table_name_93 (podiums VARCHAR, class VARCHAR) |
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940 | What is the name of the incumbent who was first eleccted in 1940? | CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR) |
SELECT MIN(capacity) FROM table_name_89 WHERE vehicle = "1975 toyota celica 1600gt" | What is the lowest capacity for the 1975 toyota celica 1600gt? | CREATE TABLE table_name_89 (capacity INTEGER, vehicle VARCHAR) |
SELECT music___director FROM table_name_69 WHERE co___singer = "hemachandra" AND film = "khaleja" | Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra? | CREATE TABLE table_name_69 (music___director VARCHAR, co___singer VARCHAR, film VARCHAR) |
SELECT railway_number_s_ FROM table_name_93 WHERE year_s__of_manufacture = "1899–1907" | Which Railway number(s) has a Year(s) of manufacture of 1899–1907? | CREATE TABLE table_name_93 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR) |
SELECT points FROM table_name_35 WHERE podiums = "5" | What were the points in the year when his Podiums were 5? | CREATE TABLE table_name_35 (points VARCHAR, podiums VARCHAR) |
SELECT MIN(year) FROM table_name_65 WHERE world_rank = "5th" AND result > 20.31 | What's the lowest Year with a World Rank of 5th, with a Result greater than 20.31? | CREATE TABLE table_name_65 (year INTEGER, world_rank VARCHAR, result VARCHAR) |
SELECT no3 FROM table_name_98 WHERE no2 = "delfina" AND final = "pedro" | Who was number 3 that had a number 2 of Delfina and a Final of Pedro? | CREATE TABLE table_name_98 (no3 VARCHAR, no2 VARCHAR, final VARCHAR) |
SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = "15.03" | 15.03 million u.s viewers seen what episode? | CREATE TABLE table_14847258_1 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT sport FROM table_name_3 WHERE venue = "wildcat stadium" | What sport happened at Wildcat Stadium? | CREATE TABLE table_name_3 (sport VARCHAR, venue VARCHAR) |
SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 | Find the name of the most expensive product. | CREATE TABLE products (product_name VARCHAR, product_price VARCHAR) |
SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles" | Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles? | CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR) |
SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005 | What is the number for the international with 669 domestic earlier than 2005? | CREATE TABLE table_name_78 (international INTEGER, domestic VARCHAR, year VARCHAR) |
SELECT date_of_attack FROM table_name_39 WHERE fate = "sunk by u-101 *" AND cargo = "iron ore" | What is the Date of attack of the ship with iron ore sunk by u-101 *? | CREATE TABLE table_name_39 (date_of_attack VARCHAR, fate VARCHAR, cargo VARCHAR) |
SELECT total FROM table_21249915_1 WHERE department = "Chuquisaca" | What is the total for Chuquisaca? | CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR) |
SELECT COUNT(year) FROM table_name_16 WHERE length = "4:00" | what year is 4:00 long | CREATE TABLE table_name_16 (year VARCHAR, length VARCHAR) |
SELECT rank FROM table_name_7 WHERE name = "tatyana lebedeva" | What rank does Tatyana Lebedeva have? | CREATE TABLE table_name_7 (rank VARCHAR, name VARCHAR) |
SELECT time_retired FROM table_name_96 WHERE laps = 55 | what is the time/retired when the laps is 55? | CREATE TABLE table_name_96 (time_retired VARCHAR, laps VARCHAR) |
SELECT language FROM table_name_15 WHERE draw = 3 | Which language has 3 draws? | CREATE TABLE table_name_15 (language VARCHAR, draw VARCHAR) |
SELECT 1980 FROM table_name_9 WHERE 1979 = "951" | what is 1980 when 1979 is 951? | CREATE TABLE table_name_9 (Id VARCHAR) |
SELECT console FROM table_12887260_1 WHERE franchise_or_game = "Shenmue" | What consoles was Shenmue released on? | CREATE TABLE table_12887260_1 (console VARCHAR, franchise_or_game VARCHAR) |
SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001 | What is the highest number lost when the number tied is more than 42, the years are less than 132, and the PCT is less than 0.5729000000000001? | CREATE TABLE table_name_57 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR) |
SELECT AVG(year_of_most_recent_appearance) FROM table_name_27 WHERE year_of_first_appearance > 1976 AND corps_name = "boston crusaders" | What is the average year of the most recent appearance of the Boston Crusaders, who had their first appearance after 1976? | CREATE TABLE table_name_27 (year_of_most_recent_appearance INTEGER, year_of_first_appearance VARCHAR, corps_name VARCHAR) |
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Motovilikhinsky" | What is the amount of trees, that require replacement when the district is motovilikhinsky? | CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR) |
SELECT score FROM table_name_29 WHERE attendance = "3,416" | What is Score, when Attendance is 3,416? | CREATE TABLE table_name_29 (score VARCHAR, attendance VARCHAR) |
SELECT no_of_processors FROM table_27765443_2 WHERE cpu_type = "NEC SX-4 vector processor" | Name the number of processors for nec sx-4 vector processor | CREATE TABLE table_27765443_2 (no_of_processors VARCHAR, cpu_type VARCHAR) |
SELECT runner_s__up FROM table_name_60 WHERE championship = "women's western open" AND year = 1946 | In 1946, what is the Runner(s)-up of the Women's Western Open Championship? | CREATE TABLE table_name_60 (runner_s__up VARCHAR, championship VARCHAR, year VARCHAR) |
SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 10 | Tell me the chip with frequency larger than 10 | CREATE TABLE table_name_63 (chip VARCHAR, frequency_ VARCHAR, mhz VARCHAR) |
SELECT event FROM table_name_49 WHERE competition = "european championships" AND position = "5th" | Which Event has 5th Position in the European Championships Competition? | CREATE TABLE table_name_49 (event VARCHAR, competition VARCHAR, position VARCHAR) |
SELECT team FROM table_name_47 WHERE last_match = "palmeiras 4-2 portuguesa" | What is the name of team with Palmeiras 4-2 portuguesa as the last match? | CREATE TABLE table_name_47 (team VARCHAR, last_match VARCHAR) |
SELECT AVG(year) FROM table_name_21 WHERE miss_fire__3rd_runner_up_ = "caroline medina" | What year was Caroline Medina Miss Fire (3rd Runner-up)? | CREATE TABLE table_name_21 (year INTEGER, miss_fire__3rd_runner_up_ VARCHAR) |
SELECT MAX(established) FROM table_name_65 WHERE championships = 0 AND venue = "apple bowl" | During the Apple Bowl having 0 championships, what was the established year? | CREATE TABLE table_name_65 (established INTEGER, championships VARCHAR, venue VARCHAR) |
SELECT points FROM table_13940275_5 WHERE played = "22" AND points_against = "319" | what's the points with played being 22 and points against being 319 | CREATE TABLE table_13940275_5 (points VARCHAR, played VARCHAR, points_against VARCHAR) |
SELECT qual FROM table_name_5 WHERE rank = "20" | What is the qual for rank 20? | CREATE TABLE table_name_5 (qual VARCHAR, rank VARCHAR) |
SELECT week FROM table_name_11 WHERE opponent = "at seattle seahawks" | Which Week has an Opponent of at seattle seahawks? | CREATE TABLE table_name_11 (week VARCHAR, opponent VARCHAR) |
SELECT singles_w_l FROM table_10023387_1 WHERE player = "Kim Doo-Hwan" | what's the singles w-l for kim doo-hwan | CREATE TABLE table_10023387_1 (singles_w_l VARCHAR, player VARCHAR) |
SELECT COUNT(position) FROM table_name_99 WHERE points > 24 AND w_l_d = "8-5-3" | What is the position number of the club with more than 24 points and a w-l-d of 8-5-3? | CREATE TABLE table_name_99 (position VARCHAR, points VARCHAR, w_l_d VARCHAR) |
SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "77.9" | Which region had a life expectancy at birth of 77.9 from 2001-2002? | CREATE TABLE table_25042332_33 (region VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR) |
SELECT name, trade_name FROM medicine WHERE FDA_approved = 'Yes' | What are the names and trade names of the medicines which has 'Yes' value in the FDA record? | CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, FDA_approved VARCHAR) |
SELECT tournament FROM table_name_27 WHERE runner_s__up = "ian baker-finch" | In which tournament was Ian Baker-Finch the runner-up? | CREATE TABLE table_name_27 (tournament VARCHAR, runner_s__up VARCHAR) |
SELECT opponent FROM table_name_45 WHERE overs = 3.3 | Who was the opponent when Steven Smith had 3.3 overs? | CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR) |
SELECT country FROM table_name_98 WHERE rank < 2 | What is the country with a rank less than 2? | CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) |
SELECT men’s_nickname FROM table_10577579_3 WHERE women’s_nickname = "Lady Wildcats" | What is the men's nickname at the school that has the lady wildcats women's nickname? | CREATE TABLE table_10577579_3 (men’s_nickname VARCHAR, women’s_nickname VARCHAR) |
SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2 | How many gold have a National of New Zealand with a total less than 2? | CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR) |
SELECT fate FROM table_name_4 WHERE nationality = "united kingdom" AND tonnage = "1,809" | Which Fate has a Nationality of united kingdom, and a Tonnage of 1,809? | CREATE TABLE table_name_4 (fate VARCHAR, nationality VARCHAR, tonnage VARCHAR) |
SELECT title FROM table_11630008_4 WHERE season_no = 2 | What is the title for season 2? | CREATE TABLE table_11630008_4 (title VARCHAR, season_no VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.