answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT kitmaker FROM table_name_38 WHERE team = "fc augsburg" | Who is the kitmaker for Fc Augsburg? | CREATE TABLE table_name_38 (kitmaker VARCHAR, team VARCHAR) |
SELECT score FROM table_name_11 WHERE competition_round = "copa libertadores group 3" AND date = "2 february 1994" | What is the score of the copa libertadores group 3 competition round on 2 February 1994? | CREATE TABLE table_name_11 (score VARCHAR, competition_round VARCHAR, date VARCHAR) |
SELECT result FROM table_1342256_6 WHERE district = "California 10" | what's the result with dbeingtrict being california 10 | CREATE TABLE table_1342256_6 (result VARCHAR, district VARCHAR) |
SELECT runner_up FROM table_name_82 WHERE year = 2004 | Who was the runner-up in 2004? | CREATE TABLE table_name_82 (runner_up VARCHAR, year VARCHAR) |
SELECT name FROM enzyme ORDER BY name DESC | List the name of enzymes in descending lexicographical order. | CREATE TABLE enzyme (name VARCHAR) |
SELECT COUNT(*) FROM inventory WHERE store_id = 1 | How many items in inventory does store 1 have? | CREATE TABLE inventory (store_id VARCHAR) |
SELECT date FROM table_name_33 WHERE opposition = "sydney fc" AND round = "round 19" | When was the opposition sydney fc on round 19? | CREATE TABLE table_name_33 (date VARCHAR, opposition VARCHAR, round VARCHAR) |
SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11 | What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11? | CREATE TABLE table_name_79 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR) |
SELECT method FROM table_name_51 WHERE time = "1:01" | What was the method when the time was 1:01? | CREATE TABLE table_name_51 (method VARCHAR, time VARCHAR) |
SELECT score FROM table_name_81 WHERE record = "16-8-4" | What is the score of the game where the Rangers record was 16-8-4? | CREATE TABLE table_name_81 (score VARCHAR, record VARCHAR) |
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country | What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there. | CREATE TABLE perpetrator (Country VARCHAR) |
SELECT general_classification_yellow_jersey FROM table_name_74 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND team_classification = "lampre-fondital" | What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital? | CREATE TABLE table_name_74 (general_classification_yellow_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) |
SELECT ground FROM table_29126507_1 WHERE away_team = "Richmond" | When Richmond played as the away team, what was the ground? | CREATE TABLE table_29126507_1 (ground VARCHAR, away_team VARCHAR) |
SELECT total FROM table_name_84 WHERE builder = "international" | How many international builders are there? | CREATE TABLE table_name_84 (total VARCHAR, builder VARCHAR) |
SELECT points_for FROM table_name_91 WHERE club = "fall bay rfc" | How many points are for the Fall Bay RFC club? | CREATE TABLE table_name_91 (points_for VARCHAR, club VARCHAR) |
SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant" | What is the hometown of the contestant whose background is as a financial consultant? | CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) |
SELECT MIN(game) FROM table_name_71 WHERE record = "59-15" | What was the game number when record is 59-15? | CREATE TABLE table_name_71 (game INTEGER, record VARCHAR) |
SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822 | What were all USAF space flights when the aximum speed was 3822? | CREATE TABLE table_221315_3 (usaf_space_flights VARCHAR, max_speed__mph_ VARCHAR) |
SELECT gearbox FROM table_250230_2 WHERE "torque" = "torque" | What is the gearbox when the torque is torque? | CREATE TABLE table_250230_2 (gearbox VARCHAR) |
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07" | what is the title of the episode with the director pamela fryman and the production code 2alh07? | CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR) |
SELECT label FROM table_name_37 WHERE date = "october 21, 1981" | What is the label for October 21, 1981? | CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR) |
SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1 | What is the highest bronze number when silver is 0, and the total is smaller than 1? | CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR) |
SELECT to_par FROM table_name_15 WHERE player = "ernie els" | What did Ernie Els par? | CREATE TABLE table_name_15 (to_par VARCHAR, player VARCHAR) |
SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 | List the most common result of the musicals. | CREATE TABLE musical (RESULT VARCHAR) |
SELECT team FROM table_17382360_7 WHERE date = "February 18" | what team play in february 18 in the supersonic season | CREATE TABLE table_17382360_7 (team VARCHAR, date VARCHAR) |
SELECT MIN(pick__number) FROM table_name_69 WHERE player = "marc pilon" | What was the lowest pick number for Marc Pilon? | CREATE TABLE table_name_69 (pick__number INTEGER, player VARCHAR) |
SELECT SUM(grid) FROM table_name_5 WHERE laps < 6 | For Laps smaller than 6, what does the Grid add up to? | CREATE TABLE table_name_5 (grid INTEGER, laps INTEGER) |
SELECT game_site FROM table_name_50 WHERE result = "w 10-3" | What game site has w 10-3 as the result? | CREATE TABLE table_name_50 (game_site VARCHAR, result VARCHAR) |
SELECT chrome FROM table_name_22 WHERE opera = "0.30%" AND safari = "6.77%" | What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari? | CREATE TABLE table_name_22 (chrome VARCHAR, opera VARCHAR, safari VARCHAR) |
SELECT population_2000_census FROM table_14986292_1 WHERE area__km²_ = "77" | Name the population 2000 census for 77 area | CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, area__km²_ VARCHAR) |
SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name | Find the number of products for each manufacturer, showing the name of each company. | CREATE TABLE products (Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR) |
SELECT MIN(available_subnets) FROM table_149426_4 WHERE network_mask = "255.255.255.128" | When the network mask is 255.255.255.128 what is the lowest available subnet? | CREATE TABLE table_149426_4 (available_subnets INTEGER, network_mask VARCHAR) |
SELECT COUNT(wins) FROM table_name_48 WHERE draws > 0 AND points = 11 | Can you tell me the total number of Wins that has the Draws larger than 0, and the Points of 11? | CREATE TABLE table_name_48 (wins VARCHAR, draws VARCHAR, points VARCHAR) |
SELECT constructor FROM table_name_24 WHERE laps < 31 AND driver = "michael schumacher" | Who built michael schumacher's car that went under 31 laps? | CREATE TABLE table_name_24 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT class FROM table_name_51 WHERE name = "hms fowey" | What's the class of the HMS Fowey? | CREATE TABLE table_name_51 (class VARCHAR, name VARCHAR) |
SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291 | What team had less than 291 total points whole having 76 bronze and over 21 gold? | CREATE TABLE table_name_67 (silver INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR) |
SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = "10" | Tell me the year built for number built of 10 | CREATE TABLE table_name_14 (year_built__converted VARCHAR, _ VARCHAR, no_built__converted VARCHAR) |
SELECT player FROM table_name_71 WHERE score = 72 - 69 - 73 = 214 | Which Player has a Score of 72-69-73=214? | CREATE TABLE table_name_71 (player VARCHAR, score VARCHAR) |
SELECT MAX(rank) FROM table_name_4 WHERE name = "jimmy jones" AND matches < 285 | What was Jimmy Jones' rank when the matches were smaller than 285? | CREATE TABLE table_name_4 (rank INTEGER, name VARCHAR, matches VARCHAR) |
SELECT behind FROM table_name_72 WHERE day_2 = "3:42.162" | For the team with 3:42.162 on day 2, what was the behind? | CREATE TABLE table_name_72 (behind VARCHAR, day_2 VARCHAR) |
SELECT college FROM table_11677691_9 WHERE hometown = "Crete, Illinois" | Which college is present in the hometown of Crete, Illinois? | CREATE TABLE table_11677691_9 (college VARCHAR, hometown VARCHAR) |
SELECT lead FROM table_name_23 WHERE second = "katrin kuusk" | Which Lead has a Second of katrin kuusk? | CREATE TABLE table_name_23 (lead VARCHAR, second VARCHAR) |
SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba" | Which club has a League of american basketball association, and a Venue of tba? | CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR) |
SELECT traditional FROM table_2135222_2 WHERE simplified = "永城市" | What is the traditional form for 永城市? | CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR) |
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 7 | When parnell dickinson was the player and the rounds were under 7, what's the highest pick? | CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR) |
SELECT final_score FROM table_24126606_2 WHERE week = 5 | Name the final score for week 5 | CREATE TABLE table_24126606_2 (final_score VARCHAR, week VARCHAR) |
SELECT MIN(march) FROM table_name_7 WHERE record = "22-12-6" | What's the smallest March when the record is 22-12-6? | CREATE TABLE table_name_7 (march INTEGER, record VARCHAR) |
SELECT gender FROM table_26615633_3 WHERE species = "Asian black bear" | what gender has an asian black bear? | CREATE TABLE table_26615633_3 (gender VARCHAR, species VARCHAR) |
SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" | What are the enrollment dates of all the tests that have result "Pass"? | CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR) |
SELECT years_member FROM table_name_62 WHERE school = "goreville high school" | What years does Goreville High School have members? | CREATE TABLE table_name_62 (years_member VARCHAR, school VARCHAR) |
SELECT SUM(population) FROM table_name_60 WHERE official_name = "saint-antoine" AND area_km_2 > 6.43 | What is the total population for Saint-Antoine with an area squared of 6.43? | CREATE TABLE table_name_60 (population INTEGER, official_name VARCHAR, area_km_2 VARCHAR) |
SELECT pick FROM table_name_91 WHERE college = "west virginia" | What is the pick for West Virginia college? | CREATE TABLE table_name_91 (pick VARCHAR, college VARCHAR) |
SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4 | When the total was 11 and silver was greater than 4 what was the highest gold? | CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR) |
SELECT investor_id, COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id | Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0. | CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR) |
SELECT loss FROM table_name_8 WHERE record = "11-6" | Which team has the record of 11-6? | CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR) |
SELECT high_rebounds FROM table_17001658_7 WHERE game = 46 | Who got the game high rebounds in game 46? | CREATE TABLE table_17001658_7 (high_rebounds VARCHAR, game VARCHAR) |
SELECT COUNT(*) FROM AIRLINES WHERE Country = "USA" | How many airlines are from USA? | CREATE TABLE AIRLINES (Country VARCHAR) |
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385" | What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? | CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR) |
SELECT MAX(prize_money__usd_) FROM table_29302711_12 WHERE name = "Bob Lutz" | how much prize money (in USD) did bob lutz win | CREATE TABLE table_29302711_12 (prize_money__usd_ INTEGER, name VARCHAR) |
SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12" | What was the highest week with a result of l 16–12? | CREATE TABLE table_name_53 (week INTEGER, result VARCHAR) |
SELECT COUNT(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori" | How many papers have "Atsushi Ohori" published? | CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE papers (paperid VARCHAR) |
SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13" | Date of wed. nov. 13 had how many number of games? | CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR) |
SELECT year FROM table_29970488_2 WHERE _number = 10 | What year was player number 10? | CREATE TABLE table_29970488_2 (year VARCHAR, _number VARCHAR) |
SELECT MIN(overall) FROM table_name_46 WHERE college = "san diego state" AND pick__number < 30 | College of san diego state, and a Pick # smaller than 30 has what lowest overall? | CREATE TABLE table_name_46 (overall INTEGER, college VARCHAR, pick__number VARCHAR) |
SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7 | Name the birth date for shirt number 7 | CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR) |
SELECT mens_singles FROM table_15001681_1 WHERE year = 1987 | In 1987 who was the mens singles | CREATE TABLE table_15001681_1 (mens_singles VARCHAR, year VARCHAR) |
SELECT home_team FROM table_name_42 WHERE away_team = "footscray" | When the Away team is footscray, what is the Home team playing? | CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) |
SELECT country FROM table_17596418_5 WHERE loan_club = "Fulham" | what ist he country where the loan club is fulham? | CREATE TABLE table_17596418_5 (country VARCHAR, loan_club VARCHAR) |
SELECT engine FROM table_name_7 WHERE year < 1959 AND points > 4 | what is the engine for year less than 1959 and points more than 4? | CREATE TABLE table_name_7 (engine VARCHAR, year VARCHAR, points VARCHAR) |
SELECT COUNT(avg_g) FROM table_name_82 WHERE gp_gs = "13–13" AND effic < 114.23 | Avg/G that has a GP-GS of 13–13, and a Effic smaller than 114.23 has what total of numbers? | CREATE TABLE table_name_82 (avg_g VARCHAR, gp_gs VARCHAR, effic VARCHAR) |
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.4" | What is the rate limit when the desired rate change (%) is +40.4? | CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR) |
SELECT security_forces FROM table_name_15 WHERE civilians = "67" | Name the security forces with civilians of 67 | CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR) |
SELECT result FROM table_name_37 WHERE date = "december 22, 1991" | What was the result of the game on December 22, 1991? | CREATE TABLE table_name_37 (result VARCHAR, date VARCHAR) |
SELECT AVG(total) FROM table_name_85 WHERE nation = "japan (jpn)" AND silver < 1 | Which Total has a Nation of japan (jpn), and a Silver smaller than 1? | CREATE TABLE table_name_85 (total INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1 | Find the last name of the staff member who processed the complaint of the cheapest product. | CREATE TABLE products (product_id VARCHAR, product_price VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, product_id VARCHAR); CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR) |
SELECT date FROM table_13079788_3 WHERE gtc_winner = "Graeme Mundy Jamie Smyth" AND gt3_winner = "Hector Lester Tim Mullen" | what are all the date for gtc winners graeme mundy jamie smyth and gt3 winners hector lester tim mullen | CREATE TABLE table_13079788_3 (date VARCHAR, gtc_winner VARCHAR, gt3_winner VARCHAR) |
SELECT 2007 FROM table_name_81 WHERE 2003 = "1r" | Which 2007 has a 2003 of 1r? | CREATE TABLE table_name_81 (Id VARCHAR) |
SELECT sitalsasthi_carnival FROM table_name_97 WHERE kosal = "sonepur" | What is the sitalsasthi carnival with sonepur as kosal? | CREATE TABLE table_name_97 (sitalsasthi_carnival VARCHAR, kosal VARCHAR) |
SELECT enrollment FROM table_28243691_2 WHERE team_nickname = "Comets" | How many students are enrolled in the team nicknamed Comets? | CREATE TABLE table_28243691_2 (enrollment VARCHAR, team_nickname VARCHAR) |
SELECT tries_for FROM table_14070062_3 WHERE club = "Pontardawe RFC" | How many tries for does Pontardawe RFC have? | CREATE TABLE table_14070062_3 (tries_for VARCHAR, club VARCHAR) |
SELECT weight__kg_ FROM table_24915874_1 WHERE horse = "Alcopop" | What was the weight in kg when the horse was Alcopop? | CREATE TABLE table_24915874_1 (weight__kg_ VARCHAR, horse VARCHAR) |
SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152 | Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152? | CREATE TABLE table_name_58 (games_won VARCHAR, points_for VARCHAR, points_against VARCHAR, bonus_points VARCHAR, points_difference VARCHAR) |
SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 3–1" | Which Game has a Series of bruins lead 3–1? | CREATE TABLE table_name_30 (game INTEGER, series VARCHAR) |
SELECT AVG(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20 | Find the average number of factories for the manufacturers that have more than 20 shops. | CREATE TABLE manufacturer (Num_of_Factories INTEGER, num_of_shops INTEGER) |
SELECT stadium FROM table_name_70 WHERE team = "nk zagreb" | What is the stadium of the NK Zagreb? | CREATE TABLE table_name_70 (stadium VARCHAR, team VARCHAR) |
SELECT * FROM Assessment_Notes ORDER BY date_of_notes | List all information about the assessment notes sorted by date in ascending order. | CREATE TABLE Assessment_Notes (date_of_notes VARCHAR) |
SELECT third FROM table_name_23 WHERE home = "madison, wisconsin" AND skip = "craig brown" | Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip? | CREATE TABLE table_name_23 (third VARCHAR, home VARCHAR, skip VARCHAR) |
SELECT round FROM table_name_23 WHERE player = "ken hemenway" | Ken Hemenway is in which Round? | CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR) |
SELECT laps FROM table_name_50 WHERE grid = 12 | How many laps for grid 12? | CREATE TABLE table_name_50 (laps VARCHAR, grid VARCHAR) |
SELECT points FROM table_23338693_1 WHERE series = "British Formula Renault 2.0 Winter Cup" AND f_laps = 0 | How many points have a series of british formula renault 2.0 winter cup and f/laps of 0? | CREATE TABLE table_23338693_1 (points VARCHAR, series VARCHAR, f_laps VARCHAR) |
SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania" | What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth? | CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR) |
SELECT date FROM table_name_40 WHERE team = "holden racing team" AND circuit = "eastern creek raceway" | What is Date, when Team is Holden Racing Team, and when Circuit is Eastern Creek Raceway? | CREATE TABLE table_name_40 (date VARCHAR, team VARCHAR, circuit VARCHAR) |
SELECT COUNT(mixed_doubles) FROM table_15001957_1 WHERE year = 1996 | How many mixed doubles were won in 1996? | CREATE TABLE table_15001957_1 (mixed_doubles VARCHAR, year VARCHAR) |
SELECT result FROM table_1342149_24 WHERE first_elected = 1920 | Name the result for first elected of 1920 | CREATE TABLE table_1342149_24 (result VARCHAR, first_elected VARCHAR) |
SELECT wounded FROM table_11793221_4 WHERE complement = "46 off 656 men" | What were the wounded for complement of 46 off 656 men? | CREATE TABLE table_11793221_4 (wounded VARCHAR, complement VARCHAR) |
SELECT high_points FROM table_23274514_4 WHERE team = "Phoenix" | Who tied in the highest point scorer when playing against Phoenix? | CREATE TABLE table_23274514_4 (high_points VARCHAR, team VARCHAR) |
SELECT year FROM table_name_15 WHERE qual = "147.481" | The 147.481 Qual, happened in what year? | CREATE TABLE table_name_15 (year VARCHAR, qual VARCHAR) |
SELECT nation FROM table_name_62 WHERE total < 14 AND silver = 1 AND rank = "5" | What nation won fewer than 14 total medals, 1 silver medal, and rank 5? | CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR) |
SELECT tournament FROM table_name_11 WHERE surface = "grass" AND opponent_in_the_final = "paul baccanello" | Name the tournament for grass surface and opponent in the final being paul baccanello | CREATE TABLE table_name_11 (tournament VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) |
SELECT college FROM table_name_59 WHERE player = "reuben foster" | What is Reuben Foster's college? | CREATE TABLE table_name_59 (college VARCHAR, player VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.