answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(branding) FROM table_17822401_1 WHERE power__kw_ = "5kW" | What is the number of brand where the power is 5kw? | CREATE TABLE table_17822401_1 (branding VARCHAR, power__kw_ VARCHAR) |
SELECT stadium FROM table_name_44 WHERE visiting_team = "pittsburgh steelers" | Which Stadium has a Visiting team of pittsburgh steelers? | CREATE TABLE table_name_44 (stadium VARCHAR, visiting_team VARCHAR) |
SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID | Show names of musicals and the number of actors who have appeared in the musicals. | CREATE TABLE actor (Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR) |
SELECT SUM(attendance) FROM table_name_62 WHERE date = "october 25, 1981" AND week < 8 | What was the attendance at the game before week 8, held on October 25, 1981? | CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR, week VARCHAR) |
SELECT MIN(week) FROM table_name_10 WHERE game_site = "cleveland browns stadium" | What is the earliest week that the Texans played at the Cleveland Browns Stadium? | CREATE TABLE table_name_10 (week INTEGER, game_site VARCHAR) |
SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407" | What's the Yellow fertility rate when Brazil is 0,43407? | CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR) |
SELECT city FROM table_name_42 WHERE airport = "toamasina airport" | what city is the toamasina airport in? | CREATE TABLE table_name_42 (city VARCHAR, airport VARCHAR) |
SELECT home_team FROM table_name_45 WHERE venue = "kardinia park" | Who was the home team at Kardinia Park? | CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) |
SELECT MIN(no_in_season) FROM table_19897294_10 WHERE no_in_series = "US6" | What's the season number of the episode with series number US6? | CREATE TABLE table_19897294_10 (no_in_season INTEGER, no_in_series VARCHAR) |
SELECT AVG(pick__number) FROM table_name_26 WHERE team_from = "rimouski océanic" | What pick # has a team from Rimouski Océanic? | CREATE TABLE table_name_26 (pick__number INTEGER, team_from VARCHAR) |
SELECT record FROM table_name_68 WHERE event = "superbrawl 21" | What is the record for the Superbrawl 21? | CREATE TABLE table_name_68 (record VARCHAR, event VARCHAR) |
SELECT player FROM table_name_40 WHERE position = "wide receiver" | What Player is a Wide Receiver? | CREATE TABLE table_name_40 (player VARCHAR, position VARCHAR) |
SELECT MIN(total_points) FROM table_27533947_1 WHERE players = "William Jakes" | If the player is William Jakes, what are the total points? | CREATE TABLE table_27533947_1 (total_points INTEGER, players VARCHAR) |
SELECT SUM(erp_w) FROM table_name_66 WHERE frequency_mhz = "105.1 fm" | What does the ERP W sum equal for 105.1 fm frequency? | CREATE TABLE table_name_66 (erp_w INTEGER, frequency_mhz VARCHAR) |
SELECT agg FROM table_name_94 WHERE team_2 = "cementarnica" | What is the agg when team 2 was Cementarnica? | CREATE TABLE table_name_94 (agg VARCHAR, team_2 VARCHAR) |
SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University" | When western carolina university is the school what is the control? | CREATE TABLE table_2076516_1 (control VARCHAR, school VARCHAR) |
SELECT survey FROM table_name_57 WHERE title = "ehsas jdeed" | What survey has the Ehsas Jdeed title? | CREATE TABLE table_name_57 (survey VARCHAR, title VARCHAR) |
SELECT winning_team FROM table_name_9 WHERE pole_position = "mario andretti" | What team does mario andretti play pole position for? | CREATE TABLE table_name_9 (winning_team VARCHAR, pole_position VARCHAR) |
SELECT report FROM table_name_32 WHERE location = "monaco" | What was the Report for the Monaco race? | CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR) |
SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0 | What is the oldest model Porsche v12 that has points less than or equal to 0. | CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR) |
SELECT points_difference FROM table_20760802_1 WHERE lost = "10" | How many of the points difference lost equal 10? | CREATE TABLE table_20760802_1 (points_difference VARCHAR, lost VARCHAR) |
SELECT score FROM table_name_42 WHERE player = "lee trevino" | What was Lee Trevino's score? | CREATE TABLE table_name_42 (score VARCHAR, player VARCHAR) |
SELECT COUNT(division) FROM table_1243601_1 WHERE year = "2006" | How many divisions were listed in 2006? | CREATE TABLE table_1243601_1 (division VARCHAR, year VARCHAR) |
SELECT city___state FROM table_name_20 WHERE winner = "rohan onslow" AND circuit = "oran park raceway" | What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"? | CREATE TABLE table_name_20 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) |
SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata" | What is the Nationality of the Deacon of S. Maria in Via Lata? | CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR) |
SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%" | How many polls show different percentages for Tom Emmer and 38% for Matt Entenza? | CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR) |
SELECT tries_for FROM table_name_35 WHERE try_bonus = "6" AND tries_against = "41" AND points_against = "317" | Name the tries when tries against were 41, try bonus was 6, and had 317 points. | CREATE TABLE table_name_35 (tries_for VARCHAR, points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR) |
SELECT original_channel FROM table_name_39 WHERE b_mountain_channel = "9" | What original channel is associated with B Mountain Channel 9? | CREATE TABLE table_name_39 (original_channel VARCHAR, b_mountain_channel VARCHAR) |
SELECT glider FROM table_name_84 WHERE pilot = "thomas gostner" | What glider did thomas gostner pilot? | CREATE TABLE table_name_84 (glider VARCHAR, pilot VARCHAR) |
SELECT opponent FROM table_name_93 WHERE surface = "clay" AND outcome = "winner" AND championship = "estoril" AND date = "15 april 1996" | who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996? | CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR) |
SELECT score FROM table_name_6 WHERE away_team = "ipswich town" | What is the score for the away team, Ipswich Town? | CREATE TABLE table_name_6 (score VARCHAR, away_team VARCHAR) |
SELECT place FROM table_name_19 WHERE score = 66 - 74 = 140 | In what place did the golfer that scored 66-74=140 finish? | CREATE TABLE table_name_19 (place VARCHAR, score VARCHAR) |
SELECT mission_no FROM table_191323_2 WHERE alt_name = "1962-F01" | Which mission number has alternate name 1962-f01 | CREATE TABLE table_191323_2 (mission_no VARCHAR, alt_name VARCHAR) |
SELECT Competition_type, COUNT(*) FROM competition GROUP BY Competition_type | List the types of competition and the number of competitions of each type. | CREATE TABLE competition (Competition_type VARCHAR) |
SELECT date FROM table_name_55 WHERE result = "bulgarian victory" AND battle = "battle of arcadiopolis" | What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis? | CREATE TABLE table_name_55 (date VARCHAR, result VARCHAR, battle VARCHAR) |
SELECT COUNT(horse) FROM table_21676617_1 WHERE year = 1985 | How many horses are mentioned competing in 1985? | CREATE TABLE table_21676617_1 (horse VARCHAR, year VARCHAR) |
SELECT score FROM table_name_9 WHERE home = "hornets" AND visitor = "clippers" | In the game where the Hornets were the home team and Clippers the visiting team, what is the score? | CREATE TABLE table_name_9 (score VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT MAX(crowd) FROM table_name_26 WHERE away_team = "st kilda" | What is the largest crowd for the St Kilda as the away team? | CREATE TABLE table_name_26 (crowd INTEGER, away_team VARCHAR) |
SELECT score FROM table_name_94 WHERE record = "7-2" | When the record was 7-2, what was the score for the game? | CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR) |
SELECT SUM(bronze) FROM table_name_29 WHERE nation = "west germany" AND silver < 2 | How many bronze medals did west germany win when they had less than 2 silver medals? | CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South" | What is the planet associated with the direction of south? | CREATE TABLE table_14850099_18 (planet VARCHAR, cardinal_direction VARCHAR) |
SELECT score_points FROM table_name_42 WHERE rank_points = "10" AND event = "wc milan" | which Score points has a Rank points of 10, and an Event of wc milan? | CREATE TABLE table_name_42 (score_points VARCHAR, rank_points VARCHAR, event VARCHAR) |
SELECT to_par FROM table_name_80 WHERE player = "hale irwin" | what is the to par when the player is hale irwin? | CREATE TABLE table_name_80 (to_par VARCHAR, player VARCHAR) |
SELECT type FROM table_name_29 WHERE course = "vicenza to marostica" | What type is the race with the vicenza to marostica course? | CREATE TABLE table_name_29 (type VARCHAR, course VARCHAR) |
SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC" | Find the title of all the albums of the artist "AC/DC". | CREATE TABLE ARTIST (ArtistId VARCHAR, Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR) |
SELECT date FROM table_name_60 WHERE week = 9 | When has a Week of 9? | CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR) |
SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 | How much Area (km 2) has a Common of collegno, and a Population smaller than 50137? | CREATE TABLE table_name_60 (area__km_2__ VARCHAR, common_of VARCHAR, population VARCHAR) |
SELECT color FROM table_name_16 WHERE transcription = "wan suk" | Which Color has a Transcription of wan suk? | CREATE TABLE table_name_16 (color VARCHAR, transcription VARCHAR) |
SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1" | How many total songs has the order #1 | CREATE TABLE table_21501518_1 (song_choice VARCHAR, order__number VARCHAR) |
SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3 | Find the name and rank of the 3 youngest winners across all matches. | CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR) |
SELECT stake AS President FROM table_name_77 WHERE organized = "april 18, 1965" | What was the stake president when the organized date is April 18, 1965? | CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR) |
SELECT length_of_marriage FROM table_24143253_4 WHERE name = "Ray Bradbury" | How long were Ray Bradbury and his wife married? | CREATE TABLE table_24143253_4 (length_of_marriage VARCHAR, name VARCHAR) |
SELECT score FROM table_name_62 WHERE opponent = "houston texans" | What score has houston texans as the opponent? | CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR) |
SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier" | What date was the match played where Amy Frazier was the opponent? | CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR) |
SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = "Butch Leitzinger Marino Franchitti Ben Devlin" | Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin | CREATE TABLE table_19598014_2 (gt2_winning_team VARCHAR, lmp2_winning_team VARCHAR) |
SELECT southbridge FROM table_name_56 WHERE cpu_support = "athlon, athlonxp, duron( socketa ), alpha21264" | What is the Southbridge when the CPU support was athlon, athlonxp, duron( socketa ), alpha21264? | CREATE TABLE table_name_56 (southbridge VARCHAR, cpu_support VARCHAR) |
SELECT SUM(frequency_mhz) FROM table_name_43 WHERE erp_w < 1 | Tell me the sum of frequency for ERP W less than 1 | CREATE TABLE table_name_43 (frequency_mhz INTEGER, erp_w INTEGER) |
SELECT opponent FROM table_name_58 WHERE date = "december 17, 1995" | Who was the opponent on December 17, 1995? | CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR) |
SELECT COUNT(game) FROM table_name_7 WHERE attendance = 18 OFFSET 568 | What is the total number of Game, when Attendance is "18,568"? | CREATE TABLE table_name_7 (game VARCHAR, attendance VARCHAR) |
SELECT parent_magazine FROM table_name_88 WHERE first_published = "december 16, 2004" | What was the parent magazine of the magazine that was first published on december 16, 2004? | CREATE TABLE table_name_88 (parent_magazine VARCHAR, first_published VARCHAR) |
SELECT year FROM table_2528382_2 WHERE co_stars = "Mala Sinha and Amitabh Bachchan" | In which years are co-stars mala sinha and amitabh bachchan? | CREATE TABLE table_2528382_2 (year VARCHAR, co_stars VARCHAR) |
SELECT entrant FROM table_name_95 WHERE driver = "louis chiron" AND chassis = "t26c" | Who was the entrant for Louis Chiron with a Chassis of T26C? | CREATE TABLE table_name_95 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR) |
SELECT high_assists FROM table_15873014_5 WHERE date = "January 3" | Who has the most assists on January 3? | CREATE TABLE table_15873014_5 (high_assists VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM premises | How many premises are there? | CREATE TABLE premises (Id VARCHAR) |
SELECT score FROM table_name_21 WHERE location_attendance = "groves high school" AND high_assists = "giovanni riley (9)" | What was the score for Groves High School when the high assist was Giovanni Riley (9)? | CREATE TABLE table_name_21 (score VARCHAR, location_attendance VARCHAR, high_assists VARCHAR) |
SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2 | what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2? | CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) |
SELECT promoted_to_league FROM table_23927423_4 WHERE relegated_to_league = "Coventry" | Who was promoted to the league when Coventry was relegated to the league? | CREATE TABLE table_23927423_4 (promoted_to_league VARCHAR, relegated_to_league VARCHAR) |
SELECT power_notation FROM table_name_35 WHERE long_scale = "one million" | For a long scale of one million, what is the power notion? | CREATE TABLE table_name_35 (power_notation VARCHAR, long_scale VARCHAR) |
SELECT date FROM table_name_98 WHERE set_3 = "15–6" | What is the Date with a Set 3 with 15–6? | CREATE TABLE table_name_98 (date VARCHAR, set_3 VARCHAR) |
SELECT display_size FROM table_11703336_1 WHERE calculator = "TI-82" | what is the display size for the calculator ti-82? | CREATE TABLE table_11703336_1 (display_size VARCHAR, calculator VARCHAR) |
SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m" | What is the highest age (years) that the 1st place had a performance of 62.20m? | CREATE TABLE table_name_45 (age__years_ INTEGER, place VARCHAR, performance VARCHAR) |
SELECT job_title FROM jobs WHERE min_salary > 9000 | display the job title of jobs which minimum salary is greater than 9000. | CREATE TABLE jobs (job_title VARCHAR, min_salary INTEGER) |
SELECT hometown FROM table_11677100_5 WHERE school = "Athens Drive High school" | What was the hometown of the player who attended Athens Drive High School? | CREATE TABLE table_11677100_5 (hometown VARCHAR, school VARCHAR) |
SELECT COUNT(attendance) FROM table_name_10 WHERE date = "10/05/1974" | What was the total attendance on 10/05/1974? | CREATE TABLE table_name_10 (attendance VARCHAR, date VARCHAR) |
SELECT COUNT(rank) FROM table_name_24 WHERE notes = "fc" AND country = "south africa" | What is the total rank and fc notes from South Africa? | CREATE TABLE table_name_24 (rank VARCHAR, notes VARCHAR, country VARCHAR) |
SELECT player FROM table_name_42 WHERE goals > 8 AND caps > 75 AND average = 0.432 | Who scored more than 8 goals, had more than 75 caps, and averaged 0.432? | CREATE TABLE table_name_42 (player VARCHAR, average VARCHAR, goals VARCHAR, caps 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 day FROM table_21536557_2 WHERE stage = "SS11" | Which days have a stage of ss11? | CREATE TABLE table_21536557_2 (day VARCHAR, stage VARCHAR) |
SELECT lyrics_by FROM table_191105_2 WHERE subject = "interjection" | When interjection is the subject who are the lyrics by? | CREATE TABLE table_191105_2 (lyrics_by VARCHAR, subject VARCHAR) |
SELECT 0 AS _100km_h__62mph_ FROM table_name_20 WHERE engine = "supercharged 5.4l v8" | What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine? | CREATE TABLE table_name_20 (engine VARCHAR) |
SELECT attendance FROM table_name_12 WHERE result = "l 49–21" | I want the attendance which has a result of l 49–21 | CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR) |
SELECT engine FROM table_name_16 WHERE tire = "goodyear" AND sponsor = "herdez" | What is the engine of the goodyear tire and Herdez as a sponsor? | CREATE TABLE table_name_16 (engine VARCHAR, tire VARCHAR, sponsor VARCHAR) |
SELECT city_of_license FROM table_name_93 WHERE network = "latv" | In which city is the network latv licensed? | CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR) |
SELECT transfer_fee FROM table_name_24 WHERE status = "transfer" AND country = "fra" | Name the transfer fee for transfer status for fra | CREATE TABLE table_name_24 (transfer_fee VARCHAR, status VARCHAR, country VARCHAR) |
SELECT license FROM table_name_91 WHERE name = "jriver media center" | What is the license for Jriver Media Center? | CREATE TABLE table_name_91 (license VARCHAR, name VARCHAR) |
SELECT circuit FROM table_name_21 WHERE winning_driver = "rupert keegan" AND round = 8 | What circuit did Rupert Keegan win in round 8? | CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) |
SELECT date FROM table_name_29 WHERE home_team = "millwall" | What date was Millwall the home team? | CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR) |
SELECT date FROM table_17622423_12 WHERE series = "2-2" | Name the date for series 2-2 | CREATE TABLE table_17622423_12 (date VARCHAR, series VARCHAR) |
SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = "tony stenson" | What nationality has a ranking less than 7 with tony stenson as the name? | CREATE TABLE table_name_13 (nationality VARCHAR, ranking VARCHAR, name VARCHAR) |
SELECT premiere FROM table_name_30 WHERE rank = "#7" | When was the premiere of the show that had a rank of #7? | CREATE TABLE table_name_30 (premiere VARCHAR, rank VARCHAR) |
SELECT constructor FROM table_1706942_1 WHERE q1_order = 4 | What is the constructor when the Q1 order is 4? | CREATE TABLE table_1706942_1 (constructor VARCHAR, q1_order VARCHAR) |
SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = "seychelles" | What is the current income inequality for the country of Seychelles? | CREATE TABLE table_name_15 (income_inequality_1994_2011__latest_available_ VARCHAR, country VARCHAR) |
SELECT set_1 FROM table_name_87 WHERE date = "jun 26" AND set_4 = "26-24" | What is Set 1, when Date is Jun 26, and when Set 4 is 26-24? | CREATE TABLE table_name_87 (set_1 VARCHAR, date VARCHAR, set_4 VARCHAR) |
SELECT report FROM table_name_65 WHERE fastest_lap = "jacques villeneuve" AND grand_prix = "australian grand prix" | During the Australian Grand Prix and the fastest lap was driven by Jacques Villeneuve, what's the report recorded? | CREATE TABLE table_name_65 (report VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR) |
SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" | Anastasija Reiberger from Germany had what 4.00? | CREATE TABLE table_name_51 (nationality VARCHAR, name VARCHAR) |
SELECT last_title FROM table_name_9 WHERE home_ground_[a_] = "sydney cricket ground" | When was the last title of the team with a home ground of Sydney cricket ground? | CREATE TABLE table_name_9 (last_title VARCHAR, home_ground_ VARCHAR, a_ VARCHAR) |
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15" | How many series awarded 15 points? | CREATE TABLE table_25561038_1 (races 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 AVG(points) FROM table_name_78 WHERE small_silver > 9 AND club = "aik" AND bronze > 8 | Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have? | CREATE TABLE table_name_78 (points INTEGER, bronze VARCHAR, small_silver VARCHAR, club VARCHAR) |
SELECT to_par FROM table_name_84 WHERE player = "bob charles" | What is Bob Charles' To par? | CREATE TABLE table_name_84 (to_par VARCHAR, player VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.