answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' | What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open? | CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR) |
SELECT played FROM table_name_95 WHERE points_against = "points against" | Name the played with points against of points against | CREATE TABLE table_name_95 (played VARCHAR, points_against VARCHAR) |
SELECT name FROM table_name_31 WHERE title = "ruler" | Who held the title of Ruler? | CREATE TABLE table_name_31 (name VARCHAR, title VARCHAR) |
SELECT opponent FROM table_name_5 WHERE attendance = "76,202" | What opponent has 76,202 attendance ? | CREATE TABLE table_name_5 (opponent VARCHAR, attendance VARCHAR) |
SELECT COUNT(draws) FROM table_name_21 WHERE against = 1134 AND byes < 2 | What is the total number of Draws, when Against is "1134", and when Byes is less than 2? | CREATE TABLE table_name_21 (draws VARCHAR, against VARCHAR, byes VARCHAR) |
SELECT loci FROM table_name_77 WHERE software = "cinderella" | Is there Loci in the Cinderella software? | CREATE TABLE table_name_77 (loci VARCHAR, software VARCHAR) |
SELECT cfl_team FROM table_name_12 WHERE college = "montreal" AND player = "marc trepanier" | Which CFL Team has a College of montreal, and a Player of marc trepanier? | CREATE TABLE table_name_12 (cfl_team VARCHAR, college VARCHAR, player VARCHAR) |
SELECT MAX(age) FROM table_26301697_2 | Name the most age | CREATE TABLE table_26301697_2 (age INTEGER) |
SELECT high_rebounds FROM table_name_19 WHERE score = "l 101–109 (ot)" | What were the high rebounds when the score was l 101–109 (ot)? | CREATE TABLE table_name_19 (high_rebounds VARCHAR, score VARCHAR) |
SELECT MIN(l) FROM table_1644876_2 | What is the fewest number of losses? | CREATE TABLE table_1644876_2 (l INTEGER) |
SELECT loan_club FROM table_12608427_8 WHERE name = "Derry" | What was the loan club when Derry played? | CREATE TABLE table_12608427_8 (loan_club VARCHAR, name VARCHAR) |
SELECT MIN(wins) FROM table_name_19 WHERE year = 1988 | What were the least Wins in 1988? | CREATE TABLE table_name_19 (wins INTEGER, year VARCHAR) |
SELECT T2.Visit_Date, T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent" | What are the visit date and details of the visitor whose detail is 'Vincent'? | CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Visit_Details VARCHAR, Tourist_ID VARCHAR) |
SELECT engine FROM table_name_51 WHERE points = 6 AND chassis = "march 88c" | Which engine scored 6 points and used the march 88c chassis? | CREATE TABLE table_name_51 (engine VARCHAR, points VARCHAR, chassis VARCHAR) |
SELECT rider FROM table_23465864_6 WHERE fri_28_aug = "24' 23.36 92.820mph" | Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph? | CREATE TABLE table_23465864_6 (rider VARCHAR, fri_28_aug VARCHAR) |
SELECT opponent FROM table_name_69 WHERE score = "18-19" | Who scored 18-19? | CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR) |
SELECT MAX(points_awarded__platinum_) FROM table_name_51 WHERE points_awarded__gold_ = 9 AND points_awarded__silver_ > 6 | What points awarded are higher than 6 but smaller than 9 | CREATE TABLE table_name_51 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR, points_awarded__silver_ VARCHAR) |
SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 | what is the GDP of the city with the largest population. | CREATE TABLE city (gdp VARCHAR, Regional_Population VARCHAR) |
SELECT result FROM table_name_4 WHERE week > 2 AND date = "december 27, 2004" | What's the result for the game held on December 27, 2004 with a week greater than 2? | CREATE TABLE table_name_4 (result VARCHAR, week VARCHAR, date VARCHAR) |
SELECT record FROM table_name_9 WHERE visitor = "vancouver" | What was the record when Vancouver was the visitor? | CREATE TABLE table_name_9 (record VARCHAR, visitor VARCHAR) |
SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne" | What was South Melbourne's score when they played as the away team? | CREATE TABLE table_name_5 (away_team VARCHAR) |
SELECT date FROM table_name_51 WHERE record = "5-4" | When is the record 5-4? | CREATE TABLE table_name_51 (date VARCHAR, record VARCHAR) |
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd" | What shows for 2000 when 2013 shows 3rd? | CREATE TABLE table_name_19 (Id VARCHAR) |
SELECT candidates FROM table_1341577_44 WHERE incumbent = "Jack Fields" | Who were the candidates when Jack Fields was the incumbent? | CREATE TABLE table_1341577_44 (candidates VARCHAR, incumbent VARCHAR) |
SELECT opponent FROM table_name_5 WHERE time > 1040 AND aircraft = "spad xiii" AND number < 22 AND location = "dun-sur-meuse" | Who is the opponent with a time higher than 1040, a Spad xiii aircraft in Dun-Sur-Meuse with a lower number than 22? | CREATE TABLE table_name_5 (opponent VARCHAR, location VARCHAR, number VARCHAR, time VARCHAR, aircraft VARCHAR) |
SELECT tie_no FROM table_name_66 WHERE away_team = "slough town" | Which Tie # has an Away team of slough town? | CREATE TABLE table_name_66 (tie_no VARCHAR, away_team VARCHAR) |
SELECT AVG(draw) FROM table_name_63 WHERE points < 68 AND artist = "loudest whisper" AND place > 9 | What is the Draw number of the song by Artist of "Loudest Whisper" with 68 or less Points with a place of 9 or larger? | CREATE TABLE table_name_63 (draw INTEGER, place VARCHAR, points VARCHAR, artist VARCHAR) |
SELECT COUNT(points) FROM table_name_39 WHERE arena = "bell centre" | How many Points have an Arena of bell centre? | CREATE TABLE table_name_39 (points VARCHAR, arena VARCHAR) |
SELECT award FROM table_name_77 WHERE year > 2008 | What award was won after 2008? | CREATE TABLE table_name_77 (award VARCHAR, year INTEGER) |
SELECT MAX(grid) FROM table_name_4 WHERE driver = "giancarlo fisichella" AND laps < 52 | When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid? | CREATE TABLE table_name_4 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45 | What is the highest number of loss with a 7 position and more than 45 goals? | CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR) |
SELECT COUNT(title) FROM table_27115960_1 WHERE us_viewers__million_ = "7.56" | Title is the total number where u.s. viewers (million) is 7.56. | CREATE TABLE table_27115960_1 (title VARCHAR, us_viewers__million_ VARCHAR) |
SELECT source FROM table_name_28 WHERE date = "june 2008" | Which source has a date of June 2008? | CREATE TABLE table_name_28 (source VARCHAR, date VARCHAR) |
SELECT segment_a FROM table_name_94 WHERE netflix = "s08e04" | What is the segment for Netflix episode S08E04? | CREATE TABLE table_name_94 (segment_a VARCHAR, netflix VARCHAR) |
SELECT regular_season FROM table_1243601_1 WHERE year = "2007" | What was the regular season listing in 2007? | CREATE TABLE table_1243601_1 (regular_season VARCHAR, year VARCHAR) |
SELECT home_city FROM driver GROUP BY home_city ORDER BY COUNT(*) DESC LIMIT 1 | Show the home city with the most number of drivers. | CREATE TABLE driver (home_city VARCHAR) |
SELECT Num_of_Component, name FROM furniture WHERE Num_of_Component > 10 | 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 SUM(year) FROM table_name_81 WHERE sport = "soccer" AND college = "virginia" | In what year was the winner a soccer player from Virginia? | CREATE TABLE table_name_81 (year INTEGER, sport VARCHAR, college VARCHAR) |
SELECT MAX(psychological_dependence) FROM table_name_55 WHERE pleasure < 2.3 AND drug = "cannabis" AND physical_dependence < 0.8 | What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8? | CREATE TABLE table_name_55 (psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR) |
SELECT MIN(silver) FROM table_name_56 WHERE bronze > 4 AND gold > 21 | What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze? | CREATE TABLE table_name_56 (silver INTEGER, bronze VARCHAR, gold VARCHAR) |
SELECT COUNT(production_code) FROM table_2701851_5 WHERE no_in_series = "46b" | How many production codes did the episode number in series 46b have? | CREATE TABLE table_2701851_5 (production_code VARCHAR, no_in_series VARCHAR) |
SELECT result FROM table_name_56 WHERE opponent = "arsenal" | What was the result when the opponent was Arsenal? | CREATE TABLE table_name_56 (result VARCHAR, opponent VARCHAR) |
SELECT score FROM table_name_21 WHERE year = "1948" | What score did the year 1948 have? | CREATE TABLE table_name_21 (score VARCHAR, year VARCHAR) |
SELECT high_points FROM table_name_39 WHERE game > 69 AND team = "san francisco" | What high points did San Francisco have in a game later than 69? | CREATE TABLE table_name_39 (high_points VARCHAR, game VARCHAR, team VARCHAR) |
SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3" | What's the overall record of the team with 4-3 road record? | CREATE TABLE table_22993636_2 (overall_record VARCHAR, road_record VARCHAR) |
SELECT product_type_code FROM products GROUP BY product_type_code HAVING COUNT(*) >= 2 | Show the product type codes which have at least two products. | CREATE TABLE products (product_type_code VARCHAR) |
SELECT MIN(draws) FROM table_name_94 WHERE ballarat_fl = "sunbury" AND byes > 2 | What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2? | CREATE TABLE table_name_94 (draws INTEGER, ballarat_fl VARCHAR, byes VARCHAR) |
SELECT name FROM table_name_94 WHERE perfection = "77.96%" | Who had a perfection percentage of 77.96%? | CREATE TABLE table_name_94 (name VARCHAR, perfection VARCHAR) |
SELECT to_par FROM table_name_55 WHERE score = 72 - 71 - 65 - 69 = 277 | What is the to par of the player with a 72-71-65-69=277 score? | CREATE TABLE table_name_55 (to_par VARCHAR, score VARCHAR) |
SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–6" | Tell me the tournament for score in the final of 1–6, 3–6 | CREATE TABLE table_name_20 (tournament VARCHAR, score_in_the_final VARCHAR) |
SELECT away_team FROM table_name_91 WHERE venue = "vfl park" | Which Away team plays at the Venue vfl park? | CREATE TABLE table_name_91 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(round) FROM table_name_16 WHERE player = "tom morris" | Which round was Tom Morris picked in? | CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR) |
SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 1 | Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? | CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR) |
SELECT second FROM table_name_12 WHERE alternate = "margarita fomina" | Who is the second for the team with alternate Margarita Fomina? | CREATE TABLE table_name_12 (second VARCHAR, alternate VARCHAR) |
SELECT date FROM table_name_85 WHERE game = 21 | What was the date of game 21? | CREATE TABLE table_name_85 (date VARCHAR, game VARCHAR) |
SELECT COUNT(rank) FROM table_name_89 WHERE name = "chen yan" AND lane < 2 | What is the number of the rank for the name of Chen Yan in a lane less than 2? | CREATE TABLE table_name_89 (rank VARCHAR, name VARCHAR, lane VARCHAR) |
SELECT date FROM table_name_10 WHERE away_team = "fitzroy" | What is the date they played against fitzroy? | CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) |
SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65 | When did series number 65 originally air? | CREATE TABLE table_21304131_2 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7" | What is the population density (per km) that has -6.7 as the change (%)? | CREATE TABLE table_name_8 (population_density__per_km²_ VARCHAR, change___percentage_ VARCHAR) |
SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = "climax l4" | What is the tyres with a year earlier than 1961 for a climax l4 engine? | CREATE TABLE table_name_33 (tyres VARCHAR, year VARCHAR, engine VARCHAR) |
SELECT AVG(year) FROM table_name_14 WHERE team = "montreal expos" | What is the average year of the montreal expos? | CREATE TABLE table_name_14 (year INTEGER, team VARCHAR) |
SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' | Show all headquarters with both a company in banking industry and a company in Oil and gas. | CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) |
SELECT tournament FROM table_name_64 WHERE 2012 = "sf" AND 2010 = "qf" | Which tournament had a 2010 result of QF and a 2012 result of SF? | CREATE TABLE table_name_64 (tournament VARCHAR) |
SELECT MAX(interview) FROM table_name_98 WHERE swimsuit < 8.838 | What is the greatest interview that has a swimsuit less than 8.838? | CREATE TABLE table_name_98 (interview INTEGER, swimsuit INTEGER) |
SELECT socket FROM table_name_55 WHERE model_number = "atom e680t" | What is the socket of the model atom e680t? | CREATE TABLE table_name_55 (socket VARCHAR, model_number VARCHAR) |
SELECT date FROM table_name_73 WHERE injured = "21" | On what Date did the massacre result with 21 Injured? | CREATE TABLE table_name_73 (date VARCHAR, injured VARCHAR) |
SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks" | Which team does Robert Brooks play with? | CREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR) |
SELECT score FROM table_name_93 WHERE name = "nice international championships" AND champion = "björn borg" | What's the score of the Nice International Championships where Björn Borg was the champion? | CREATE TABLE table_name_93 (score VARCHAR, name VARCHAR, champion VARCHAR) |
SELECT opponent FROM table_name_63 WHERE score = "95-118" | Who did they play when the score was 95-118? | CREATE TABLE table_name_63 (opponent VARCHAR, score VARCHAR) |
SELECT MIN(fumb_td) FROM table_name_72 WHERE int_td = 1 AND fumb_f < 1 | Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1? | CREATE TABLE table_name_72 (fumb_td INTEGER, int_td VARCHAR, fumb_f VARCHAR) |
SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname | Find the first names of faculties of rank Professor in alphabetic order. | CREATE TABLE FACULTY (Fname VARCHAR, Rank VARCHAR) |
SELECT COUNT(2011) FROM table_name_48 WHERE airport = "sydney airport" AND rank < 1 | What was the total number of aircrafts in 2011 for sydney airport that was ranked number 1? | CREATE TABLE table_name_48 (airport VARCHAR, rank VARCHAR) |
SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7 | What is the average percent for the coach from 1905 and more than 7 losses? | CREATE TABLE table_name_97 (pct INTEGER, years VARCHAR, lost VARCHAR) |
SELECT AVG(round) FROM table_name_24 WHERE name = "george thomas" | In what Round was George Thomas Picked? | CREATE TABLE table_name_24 (round INTEGER, name VARCHAR) |
SELECT date_of_vacancy FROM table_name_78 WHERE team = "vitória de guimarães" | What was the day of vacancy for vitória de guimarães? | CREATE TABLE table_name_78 (date_of_vacancy VARCHAR, team VARCHAR) |
SELECT SUM(date) FROM table_name_92 WHERE score_in_the_final = "6–4, 6–2" | How many Dates have a Score in the final of 6–4, 6–2? | CREATE TABLE table_name_92 (date INTEGER, score_in_the_final VARCHAR) |
SELECT COUNT(year) FROM table_23015396_1 WHERE driver = "Mark Martin" | Name the number of year for mark martin | CREATE TABLE table_23015396_1 (year VARCHAR, driver VARCHAR) |
SELECT tie_no FROM table_name_52 WHERE home_team = "brighton & hove albion" | WHAT IS NO TIE FROM brighton & hove albion? | CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) |
SELECT nickname FROM table_name_27 WHERE colors = "black and gold" | What is the nickname of the team that has the colors black and gold? | CREATE TABLE table_name_27 (nickname VARCHAR, colors VARCHAR) |
SELECT player FROM table_10975034_2 WHERE college = "Wilfrid Laurier" | Which player from the 2004 CFL draft attended Wilfrid Laurier? | CREATE TABLE table_10975034_2 (player VARCHAR, college VARCHAR) |
SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-6" | Who did the high rebounds in the game with a 19-6 record? | CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR) |
SELECT MIN(density__inhabitants_km_2__) FROM table_name_39 WHERE area__km_2__ > 16.02 AND altitude__mslm_ < 116 AND city = "alessandria" | What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116? | CREATE TABLE table_name_39 (density__inhabitants_km_2__ INTEGER, city VARCHAR, area__km_2__ VARCHAR, altitude__mslm_ VARCHAR) |
SELECT title FROM course GROUP BY title HAVING COUNT(*) > 1 | Find the title of the course that is offered by more than one department. | CREATE TABLE course (title VARCHAR) |
SELECT home_team FROM table_name_24 WHERE game = "game 1" | Which Home Team has a Game of game 1? | CREATE TABLE table_name_24 (home_team VARCHAR, game VARCHAR) |
SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7 | What is the smallest average for the player with 13 matches and fewer than 7 catches? | CREATE TABLE table_name_82 (average INTEGER, matches VARCHAR, catches VARCHAR) |
SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.76" | Name the total number of troops per one million being 2.76 | CREATE TABLE table_30108346_1 (troops_per_one_million_population VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR) |
SELECT AVG(year) FROM table_name_42 WHERE start = 11 | What is the average Year, when Start is "11"? | CREATE TABLE table_name_42 (year INTEGER, start VARCHAR) |
SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1 | List the main industry with highest total market value and its number of companies. | CREATE TABLE company (main_industry VARCHAR, market_value INTEGER) |
SELECT location FROM table_name_26 WHERE method = "decision (split)" | In which location was the method decision (split)? | CREATE TABLE table_name_26 (location VARCHAR, method VARCHAR) |
SELECT manufacturer FROM table_name_20 WHERE rider = "shoya tomizawa" | Which manufacturer made Shoya Tomizawa's motorcycle? | CREATE TABLE table_name_20 (manufacturer VARCHAR, rider VARCHAR) |
SELECT MIN(ru) FROM table_10818465_1 | What is the lowest ru? | CREATE TABLE table_10818465_1 (ru INTEGER) |
SELECT AVG(pick) FROM table_name_34 WHERE college = "new mexico" | What is the pick number for New Mexico? | CREATE TABLE table_name_34 (pick INTEGER, college VARCHAR) |
SELECT surface FROM table_name_36 WHERE score = "6–4, 6–3" AND date = "4 may 1992" | What surface was played on with a score of 6–4, 6–3 and on 4 May 1992? | CREATE TABLE table_name_36 (surface VARCHAR, score VARCHAR, date VARCHAR) |
SELECT COUNT(division_southwest) FROM table_17881033_1 WHERE division_east = "Babi" | how many division southwest was there when division east was babi | CREATE TABLE table_17881033_1 (division_southwest VARCHAR, division_east VARCHAR) |
SELECT name FROM table_name_5 WHERE qual_1 = "1:22.085" | What is the name of the racer that had a first qualification time of 1:22.085? | CREATE TABLE table_name_5 (name VARCHAR, qual_1 VARCHAR) |
SELECT COUNT(goals) FROM table_name_36 WHERE transfer_window = "summer" AND name = "kenton" | How many goals for Kenton have a transfer window of Summer? | CREATE TABLE table_name_36 (goals VARCHAR, transfer_window VARCHAR, name VARCHAR) |
SELECT team FROM table_name_78 WHERE name = "andrew ranger" | What team was Andrew Ranger in? | CREATE TABLE table_name_78 (team VARCHAR, name VARCHAR) |
SELECT player FROM table_name_10 WHERE score = 72 - 73 - 67 - 72 = 284 | What is the name of the player when the Score was 72-73-67-72=284? | CREATE TABLE table_name_10 (player VARCHAR, score VARCHAR) |
SELECT series FROM table_1714685_1 WHERE title = "Galaxy Angel AA" | When galaxy angel aa is the title what was the series? | CREATE TABLE table_1714685_1 (series VARCHAR, title VARCHAR) |
SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = "Athens" | What is the lowest unlock order for the athens circuit? | CREATE TABLE table_24463470_1 (unlock_order INTEGER, circuit VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.