answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = "20%" | What country had 20% imports from russia? | CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_of_imports_from_russia VARCHAR) |
SELECT founder FROM manufacturers WHERE name = 'Sony' | Who is the founder of Sony? | CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR) |
SELECT date_sent FROM table_name_65 WHERE constellation = "cygnus" AND designation_hd = "hd 190360" | What date sent has cygnus as a constellation, and hd 190360 as a designation HD? | CREATE TABLE table_name_65 (date_sent VARCHAR, constellation VARCHAR, designation_hd VARCHAR) |
SELECT MIN(laps) FROM table_name_27 WHERE grid < 16 AND time = "+21.689" | Who had the lowest laps on a grid smaller than 16 with a time of +21.689? | CREATE TABLE table_name_27 (laps INTEGER, grid VARCHAR, time VARCHAR) |
SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1 | What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole? | CREATE TABLE table_name_23 (podiums INTEGER, series VARCHAR, poles VARCHAR) |
SELECT high_points FROM table_name_56 WHERE location_attendance = "staples center 18,964" | What is High Points, when Location Attendance is Staples Center 18,964? | CREATE TABLE table_name_56 (high_points VARCHAR, location_attendance VARCHAR) |
SELECT record FROM table_16677887_2 WHERE date = "Sept. 14" | What was the record for the game on Sept. 14? | CREATE TABLE table_16677887_2 (record VARCHAR, date VARCHAR) |
SELECT score FROM table_name_84 WHERE country = "united states" AND to_par = "+5" | What is the score of the United States, which has a to par of +5? | CREATE TABLE table_name_84 (score VARCHAR, country VARCHAR, to_par VARCHAR) |
SELECT name, date FROM battle | List the name, date and result of each battle. | CREATE TABLE battle (name VARCHAR, date VARCHAR) |
SELECT driver FROM table_27913160_3 WHERE round = 8 | Who was the driver in round 8? | CREATE TABLE table_27913160_3 (driver VARCHAR, round VARCHAR) |
SELECT driver FROM table_name_51 WHERE year < 1905 | Which driver had a year under 1905? | CREATE TABLE table_name_51 (driver VARCHAR, year INTEGER) |
SELECT SUM(total_apps) FROM table_name_28 WHERE pl_g > 0 AND player = "benayoun" AND cl_apps > 9 | What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL apps? | CREATE TABLE table_name_28 (total_apps INTEGER, cl_apps VARCHAR, pl_g VARCHAR, player VARCHAR) |
SELECT opponent FROM table_name_90 WHERE results¹ = "2:3" | Who did Yugoslavia play against that led to a result of 2:3? | CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR) |
SELECT player FROM table_name_18 WHERE position = "forward" | Which Player has a Position of forward? | CREATE TABLE table_name_18 (player VARCHAR, position VARCHAR) |
SELECT AVG(year) FROM table_name_25 WHERE points < 6 AND engine = "maserati straight-6" | What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine? | CREATE TABLE table_name_25 (year INTEGER, points VARCHAR, engine VARCHAR) |
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "melbourne" | What was the smallest crowd for a Melbourne away game? | CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR) |
SELECT current_status FROM table_name_66 WHERE livery = "network south-east" | What's the Current Status of Livery of the Network South-East? | CREATE TABLE table_name_66 (current_status VARCHAR, livery VARCHAR) |
SELECT tournament FROM table_name_60 WHERE extra = "3:06.94 s" | What tournament had an extra of 3:06.94 s? | CREATE TABLE table_name_60 (tournament VARCHAR, extra VARCHAR) |
SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200 | Find the ids and names of stations from which at least 200 trips started. | CREATE TABLE trip (start_station_id VARCHAR, start_station_name VARCHAR) |
SELECT COUNT(no_stamps_in_sheet) FROM table_15635768_1 WHERE face_value = "37¢" AND printer = "Banknote Corporation of America" | How many stamps have a face value of 37¢ and were printed in the banknote corporation of america? | CREATE TABLE table_15635768_1 (no_stamps_in_sheet VARCHAR, face_value VARCHAR, printer VARCHAR) |
SELECT gershausen FROM table_name_46 WHERE willingshain = "243" AND reckerode_ * * * * = "224" | What Gershausen has a Willingshain of 243 and Reckerode of 224? | CREATE TABLE table_name_46 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR) |
SELECT team FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" | Name the team for copa conmebol 1992 is round of 16 | CREATE TABLE table_15013825_8 (team VARCHAR, copa_conmebol_1992 VARCHAR) |
SELECT COUNT(date) FROM table_23184448_3 WHERE location = "Cedar Falls, Iowa" | On how many different dates did the team play a game in Cedar Falls, Iowa? | CREATE TABLE table_23184448_3 (date VARCHAR, location VARCHAR) |
SELECT event FROM table_name_92 WHERE opponent = "toa naketoatama" | Which event has Toa Naketoatama as an opponent? | CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR) |
SELECT title FROM table_23793770_1 WHERE directed_by = "Allison Liddi-Brown" | What is the title the episode directed by Allison Liddi-Brown? | CREATE TABLE table_23793770_1 (title VARCHAR, directed_by VARCHAR) |
SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-10" | Which Game has a Record of 27-11-10? | CREATE TABLE table_name_19 (game INTEGER, record VARCHAR) |
SELECT date_of_birth FROM table_name_50 WHERE club = "csk vmf moscow" | What is the Date of Birth of the Player from the CSK VMF Moscow Club? | CREATE TABLE table_name_50 (date_of_birth VARCHAR, club VARCHAR) |
SELECT opponent FROM table_name_56 WHERE game > 22 AND record = "17-10-4" | Who was the opponent at the game later than game 22 when the record was 17-10-4? | CREATE TABLE table_name_56 (opponent VARCHAR, game VARCHAR, record VARCHAR) |
SELECT last_10_meetings FROM table_name_43 WHERE games_played = "12" | What is the last 10 meetings that have 12 as the games played? | CREATE TABLE table_name_43 (last_10_meetings VARCHAR, games_played VARCHAR) |
SELECT school AS website FROM table_28523_2 WHERE school = "Cunningham Hill Infant school" | What is the website of the cunningham hill infant school? | CREATE TABLE table_28523_2 (school VARCHAR) |
SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter | Find the number of different products that are produced by companies at different headquarter cities. | CREATE TABLE manufacturers (Headquarter VARCHAR, code VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR) |
SELECT tournament FROM table_name_43 WHERE score = "3–6 6–4 4–6" | Which Tournament has a Score of 3–6 6–4 4–6? | CREATE TABLE table_name_43 (tournament VARCHAR, score VARCHAR) |
SELECT bronze FROM table_name_52 WHERE year = 1998 | What's the Bronze with the Year of 1998? | CREATE TABLE table_name_52 (bronze VARCHAR, year VARCHAR) |
SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi" | Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final? | CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR) |
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)" | What is Block A when Prince Devitt is Devitt (9:53)? | CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR) |
SELECT SUM(interview) FROM table_name_75 WHERE province = "monte cristi" AND swimsuit > 7.27 | Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27 | CREATE TABLE table_name_75 (interview INTEGER, province VARCHAR, swimsuit VARCHAR) |
SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion" | Which year had playoffs of champion? | CREATE TABLE table_name_27 (year INTEGER, playoffs VARCHAR) |
SELECT AVG(grid) FROM table_name_78 WHERE laps > 23 | What is the average grid with more than 23 laps? | CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER) |
SELECT COUNT(2012 AS _election_results) FROM table_19283806_4 WHERE cook_pvi = "D+16" | How many election results in 2012 had a Cook PVI of D+16? | CREATE TABLE table_19283806_4 (cook_pvi VARCHAR) |
SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca" | Which nation is Danilo di Luca from? | CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR) |
SELECT elected FROM table_name_56 WHERE district = 15 | What was the year elected in District 15? | CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR) |
SELECT season FROM table_27069503_2 WHERE conf_record = "15-1-1" | In what season was the conference record for the Pandas 15-1-1? | CREATE TABLE table_27069503_2 (season VARCHAR, conf_record VARCHAR) |
SELECT cost_per_capita FROM table_12340907_1 WHERE total_costs__2005_ = "$700,116" | When total costs (2005) are $700,116, what is the cost per capita? | CREATE TABLE table_12340907_1 (cost_per_capita VARCHAR, total_costs__2005_ VARCHAR) |
SELECT score FROM table_name_50 WHERE date = "13 june 2004" | What score was on 13 June 2004? | CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) |
SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1 | Which Team wins has an Individual winner smaller than 1 and Total win larger than 1? | CREATE TABLE table_name_60 (team_wins INTEGER, individual_winners VARCHAR, total_wins VARCHAR) |
SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14" | What episode had 10.14 million viewers (U.S.)? | CREATE TABLE table_21550897_1 (_number INTEGER, us_viewers__million_ VARCHAR) |
SELECT venue FROM table_name_57 WHERE attendance = "13,634" | Which venue has 13,634 people in attendance? | CREATE TABLE table_name_57 (venue VARCHAR, attendance VARCHAR) |
SELECT player FROM table_name_50 WHERE games_played > 46 AND goals_allowed < 195 | Who played over 46 games and allowed less than 195 goals? | CREATE TABLE table_name_50 (player VARCHAR, games_played VARCHAR, goals_allowed VARCHAR) |
SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = "renault" AND laps > 23 | Who drove the renault that went over 23 laps and had a grid under 11? | CREATE TABLE table_name_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR) |
SELECT opponent FROM table_name_37 WHERE week = "4" | Who did the Texan's play on Week 4? | CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR) |
SELECT MIN(pupil_teacher_ratio) FROM table_name_13 WHERE city = "saratoga" AND students < 1213 | What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students? | CREATE TABLE table_name_13 (pupil_teacher_ratio INTEGER, city VARCHAR, students VARCHAR) |
SELECT player FROM table_11677691_10 WHERE school = "Vista Murrieta High school" | What player represented Vista Murrieta High School? | CREATE TABLE table_11677691_10 (player VARCHAR, school VARCHAR) |
SELECT position FROM table_name_15 WHERE team = "kr" | What position did the kr team player play? | CREATE TABLE table_name_15 (position VARCHAR, team VARCHAR) |
SELECT year FROM table_name_76 WHERE album = "remixes" | What year was the version with a remixes album? | CREATE TABLE table_name_76 (year VARCHAR, album VARCHAR) |
SELECT hdtv FROM table_name_82 WHERE language = "english" AND television_service = "mtv dance" | What is HDTV, when Language is English, and when Television Service is MTV Dance? | CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR) |
SELECT MIN(year) FROM table_name_55 WHERE wins < 0 | What is the earliest year associated with under 0 wins? | CREATE TABLE table_name_55 (year INTEGER, wins INTEGER) |
SELECT MAX(gold) FROM table_name_87 WHERE total > 9 AND silver > 10 | What is the highest gold number count where a county had over 9 golds and 10 silvers? | CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR) |
SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3" | Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? | CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR) |
SELECT name FROM table_name_20 WHERE height = "m (ft 1in)" | What is the Name of the Player with a Height of m (ft 1in)? | CREATE TABLE table_name_20 (name VARCHAR, height VARCHAR) |
SELECT away_team FROM table_name_94 WHERE home_team = "mauritius" | Which away team goes against the home team Mauritius? | CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) |
SELECT place FROM table_name_47 WHERE player = "david graham" | What place is David Graham in? | CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR) |
SELECT MAX(grid) FROM table_name_78 WHERE driver = "martin brundle" | What is the top grid that is driven by martin brundle? | CREATE TABLE table_name_78 (grid INTEGER, driver VARCHAR) |
SELECT hometown FROM table_name_95 WHERE name = "john davis" | What is John Davis's home town? | CREATE TABLE table_name_95 (hometown VARCHAR, name VARCHAR) |
SELECT freedom_in_the_world_2013 FROM table_1604579_2 WHERE country = "Guinea" | How much freedom can did the people of Guinea experience in 2013? | CREATE TABLE table_1604579_2 (freedom_in_the_world_2013 VARCHAR, country VARCHAR) |
SELECT total FROM table_21995420_6 WHERE school = "University of the Cordilleras UC Dance Squad" | What is every total for the University of the Cordilleras UC Dance Squad? | CREATE TABLE table_21995420_6 (total VARCHAR, school VARCHAR) |
SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard" | I want the lowest Grid for David Coulthard | CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR) |
SELECT home_team FROM table_name_59 WHERE venue = "glenferrie oval" | What is glenferrie oval's home team? | CREATE TABLE table_name_59 (home_team VARCHAR, venue VARCHAR) |
SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern" | What year did they finish 1st, southern? | CREATE TABLE table_12002388_1 (year INTEGER, reg_season VARCHAR) |
SELECT state FROM table_name_21 WHERE royal_house = "ji" AND name = "wu" | What state had the name of wu for the royal house of ji? | CREATE TABLE table_name_21 (state VARCHAR, royal_house VARCHAR, name VARCHAR) |
SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = "k216ga" | What is the Sum of ERP W, when Call Sign is K216GA? | CREATE TABLE table_name_49 (erp_w INTEGER, call_sign VARCHAR) |
SELECT date FROM table_name_8 WHERE opponent = "austria" | What day was the opponent Austria? | CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) |
SELECT COUNT(network) FROM table_22654139_2 WHERE year = 2007 | Name the network for 2007 total | CREATE TABLE table_22654139_2 (network VARCHAR, year VARCHAR) |
SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1" | How many different items appear in the enrollment column that joined in 1931, 1949 1? | CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR) |
SELECT notes FROM table_name_62 WHERE distance > 7 AND location = "aplin" | Which Notes have a Distance larger than 7, and a Location of aplin? | CREATE TABLE table_name_62 (notes VARCHAR, distance VARCHAR, location VARCHAR) |
SELECT spouse_to FROM table_name_27 WHERE born_as = "rania al yassin" | Who was the spouse of the consort who was born as rania al yassin? | CREATE TABLE table_name_27 (spouse_to VARCHAR, born_as VARCHAR) |
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1 | List the state in the US with the most invoices. | CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR) |
SELECT outgoing_manager FROM table_name_66 WHERE replaced_by = "sandy clark" | Who is the Outgoing Manager replaced by Sandy Clark? | CREATE TABLE table_name_66 (outgoing_manager VARCHAR, replaced_by VARCHAR) |
SELECT deputy_prime_minister FROM table_name_87 WHERE left_office = "1981" | Which deputy prime minister left office in 1981? | CREATE TABLE table_name_87 (deputy_prime_minister VARCHAR, left_office VARCHAR) |
SELECT MIN(year) FROM table_name_46 WHERE team = "pramac d'antin ducati" | Question doesn't make sense since there is no team of pramac d'antin ducati | CREATE TABLE table_name_46 (year INTEGER, team VARCHAR) |
SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills" | What player's original team are the Buffalo Bills? | CREATE TABLE table_name_31 (player VARCHAR, original_nfl_team VARCHAR) |
SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "6–3 7–6(5)" | Who is the opponent in the final on a hard surface with a score of 6–3 7–6(5)? | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) |
SELECT date FROM table_name_23 WHERE game > 5 | On what date was the game more than 5? | CREATE TABLE table_name_23 (date VARCHAR, game INTEGER) |
SELECT COUNT(report) FROM table_10707176_2 WHERE circuit = "Cleveland Burke Lakefront Airport" | How many reports were the for the cleveland burke lakefront airport circut? | CREATE TABLE table_10707176_2 (report VARCHAR, circuit VARCHAR) |
SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)" | What is Location Attendance, when High Assists is Alvin Williams (9)? | CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR) |
SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000 | Show distinct names of singers that have songs with sales more than 300000. | CREATE TABLE song (Singer_ID VARCHAR, Sales INTEGER); CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR) |
SELECT position FROM table_name_89 WHERE school_club_team = "illinois" | Which Position has a School/Club Team of illinois? | CREATE TABLE table_name_89 (position VARCHAR, school_club_team VARCHAR) |
SELECT MAX(rank) FROM table_name_24 WHERE points < 32 | What is the highest rank of the player with less than 32 points? | CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) |
SELECT operator FROM table_name_89 WHERE region = "yorkshire" | What was the operator of the ensemble from Yorkshire? | CREATE TABLE table_name_89 (operator VARCHAR, region VARCHAR) |
SELECT points FROM table_26124171_1 WHERE team = "Pole Services" | How many points were scored on pole services? | CREATE TABLE table_26124171_1 (points VARCHAR, team VARCHAR) |
SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24" | what is the number of attendance on june 24 | CREATE TABLE table_name_8 (attendance VARCHAR, date VARCHAR) |
SELECT television_service FROM table_name_5 WHERE content = "calcio" AND package_option = "option" | What is Television Service, when Content is Calcio, and when Package/Option is Option? | CREATE TABLE table_name_5 (television_service VARCHAR, content VARCHAR, package_option VARCHAR) |
SELECT MAX(points) FROM table_18607260_6 WHERE team = "Libertad" | Name the maximum points for libertad | CREATE TABLE table_18607260_6 (points INTEGER, team VARCHAR) |
SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id | find the name of all departments that do actually have one or more employees assigned to them. | CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR) |
SELECT name FROM table_24990183_5 WHERE country = "Georgia" | Who was the player from georgia? | CREATE TABLE table_24990183_5 (name VARCHAR, country VARCHAR) |
SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4 | How yes votes were there for measure 4? | CREATE TABLE table_256286_60 (yes_votes INTEGER, meas_num VARCHAR) |
SELECT loss FROM table_name_71 WHERE date = "july 2" | Which Loss has a Date of july 2? | CREATE TABLE table_name_71 (loss VARCHAR, date VARCHAR) |
SELECT date FROM table_name_36 WHERE location_attendance = "madison square garden" AND game < 6 AND team = "seattle" | What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6? | CREATE TABLE table_name_36 (date VARCHAR, team VARCHAR, location_attendance VARCHAR, game VARCHAR) |
SELECT town_city FROM table_name_45 WHERE name = "nana museum of the arctic" | In what Town/City is Nana Museum of The Arctic located? | CREATE TABLE table_name_45 (town_city VARCHAR, name VARCHAR) |
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1 | Which film has the most copies in the inventory? List both title and id. | CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (film_id VARCHAR) |
SELECT date FROM table_name_23 WHERE opponent_in_the_final = "barbara paulus" | What date was the opponent in the final Barbara Paulus? | CREATE TABLE table_name_23 (date VARCHAR, opponent_in_the_final VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.