answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT april FROM table_name_41 WHERE june = "candice cassidy" | CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR) | Name the april for candice cassidy |
SELECT october FROM table_name_71 WHERE july = "kimberley stanfield" | CREATE TABLE table_name_71 (october VARCHAR, july VARCHAR) | Name the october for july of kimberley stanfield |
SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855β1859" | CREATE TABLE table_name_25 (representative VARCHAR, state VARCHAR, years VARCHAR) | Which Representative was from Kentucky during the years of 1855β1859? |
SELECT lifespan FROM table_name_31 WHERE party = "republican" AND years = "1953β1970" | CREATE TABLE table_name_31 (lifespan VARCHAR, party VARCHAR, years VARCHAR) | What was the lifespan of the Representative from the Republican Party during the years of 1953β1970? |
SELECT years FROM table_name_20 WHERE state = "iowa" AND lifespan = "1880β1942" | CREATE TABLE table_name_20 (years VARCHAR, state VARCHAR, lifespan VARCHAR) | What years did the Representative from Iowa with a lifespan of 1880β1942 serve? |
SELECT representative FROM table_name_71 WHERE lifespan = "1795β1866" | CREATE TABLE table_name_71 (representative VARCHAR, lifespan VARCHAR) | Which Representative had a Lifespan of 1795β1866? |
SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye" | CREATE TABLE table_name_47 (week INTEGER, attendance VARCHAR) | When did the Chiefs have their first bye? |
SELECT position FROM table_name_76 WHERE round = 2 | CREATE TABLE table_name_76 (position VARCHAR, round VARCHAR) | What is the position played for the player drafted in round 2? |
SELECT name FROM table_name_54 WHERE position = "3b" | CREATE TABLE table_name_54 (name VARCHAR, position VARCHAR) | what is the name of the player that played position 3b? |
SELECT school FROM table_name_90 WHERE name = "ivey armstrong" | CREATE TABLE table_name_90 (school VARCHAR, name VARCHAR) | what is the school for Ivey armstrong? |
SELECT position FROM table_name_37 WHERE school = "university of alabama" | CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR) | what is the position for the player from university of alabama? |
SELECT SUM(days_with_frost) FROM table_name_22 WHERE city_town = "lugo" | CREATE TABLE table_name_22 (days_with_frost INTEGER, city_town VARCHAR) | How many days with frost were there in the City/Town of Lugo have? |
SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = "ourense" AND days_with_frost > 30 | CREATE TABLE table_name_98 (sunlight_hours INTEGER, city_town VARCHAR, days_with_frost VARCHAR) | What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense? |
SELECT MAX(sunlight_hours) FROM table_name_23 WHERE city_town = "pontevedra" | CREATE TABLE table_name_23 (sunlight_hours INTEGER, city_town VARCHAR) | What is the largest amount of sunlight hours for the City of Pontevedra? |
SELECT AVG(lane) FROM table_name_8 WHERE nationality = "united states" AND rank = 3 | CREATE TABLE table_name_8 (lane INTEGER, nationality VARCHAR, rank VARCHAR) | for the rank of 3 for the united states, what is the average lane? |
SELECT AVG(lane) FROM table_name_30 WHERE nationality = "netherlands" AND rank > 1 | CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR, rank VARCHAR) | for the rank more than 1 and nationality of netherlands, what is the lane? |
SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04 | CREATE TABLE table_name_27 (nationality VARCHAR, lane VARCHAR, time VARCHAR) | for the time of 49.04 and lane less than 3, what is the nationality? |
SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 8 | CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR) | for the rank of 8 and lane less than 3 what is the name? |
SELECT played FROM table_name_1 WHERE lost = "2" | CREATE TABLE table_name_1 (played VARCHAR, lost VARCHAR) | What play has a loss of 2? |
SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc" | CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR) | What try bonus has a club of caerphilly rfc? |
SELECT club FROM table_name_38 WHERE played = "22" AND losing_bonus = "7" | CREATE TABLE table_name_38 (club VARCHAR, played VARCHAR, losing_bonus VARCHAR) | What club has a play of 22, and losing bonus of 7? |
SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16" | CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR) | What point against has tries against of 77, and a lost of 16? |
SELECT sport FROM table_name_64 WHERE league = "nll" | CREATE TABLE table_name_64 (sport VARCHAR, league VARCHAR) | The nll participate in what sport? |
SELECT began_play FROM table_name_50 WHERE club = "western new york flash" | CREATE TABLE table_name_50 (began_play VARCHAR, club VARCHAR) | When did the Club of western new york flash begin to play? |
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl" | CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR) | Which club plays soccer in the nwsl? |
SELECT began_play FROM table_name_48 WHERE club = "rochester rhinos" | CREATE TABLE table_name_48 (began_play VARCHAR, club VARCHAR) | When did the Rochester Rhinos begin to play? |
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3 | CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR) | The sun of total that has a tour of 7 and a Giro smaller than 3 is 12. |
SELECT gender FROM table_name_68 WHERE name = "lynmore primary school" | CREATE TABLE table_name_68 (gender VARCHAR, name VARCHAR) | What genders did Lynmore Primary School take? |
SELECT area FROM table_name_45 WHERE gender = "coed" AND decile = "9" AND name = "kaharoa school" | CREATE TABLE table_name_45 (area VARCHAR, name VARCHAR, gender VARCHAR, decile VARCHAR) | Which area served coed genders at Kaharoa school and had a Decile of 9? |
SELECT gender FROM table_name_15 WHERE authority = "integrated" AND roll = 142 | CREATE TABLE table_name_15 (gender VARCHAR, authority VARCHAR, roll VARCHAR) | What was the gender for the integrated authority with a roll of 142? |
SELECT authority FROM table_name_46 WHERE area = "eastbourne" AND gender = "coed" | CREATE TABLE table_name_46 (authority VARCHAR, area VARCHAR, gender VARCHAR) | Who is the authority for the coed Eastbourne school? |
SELECT COUNT(laps) FROM table_name_99 WHERE rank = "3" | CREATE TABLE table_name_99 (laps VARCHAR, rank VARCHAR) | What is the sum of all laps with rank 3? |
SELECT SUM(laps) FROM table_name_32 WHERE start = "10" AND finish = "20" | CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR, finish VARCHAR) | What is the sum of all laps starting at 10 and finishing at 20? |
SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192 | CREATE TABLE table_name_90 (rank VARCHAR, start VARCHAR, laps VARCHAR) | What's the rank when the start is 10 and the laps are fewer than 192? |
SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = "116.470" | CREATE TABLE table_name_99 (rank VARCHAR, laps VARCHAR, qual VARCHAR) | What's the rank when the laps are fewer than 137 and the qual is 116.470? |
SELECT director_s_ FROM table_name_61 WHERE writer_s_ = "al mackay" | CREATE TABLE table_name_61 (director_s_ VARCHAR, writer_s_ VARCHAR) | What director worked with Al Mackay as writer? |
SELECT producer_s_ FROM table_name_94 WHERE writer_s_ = "robert sproul-cran" | CREATE TABLE table_name_94 (producer_s_ VARCHAR, writer_s_ VARCHAR) | Which producer worked with Robert Sproul-cran as writer? |
SELECT film FROM table_name_8 WHERE writer_s_ = "al mackay" | CREATE TABLE table_name_8 (film VARCHAR, writer_s_ VARCHAR) | Which film did Al Mackay write? |
SELECT director_s_ FROM table_name_22 WHERE film = "the chapel" | CREATE TABLE table_name_22 (director_s_ VARCHAR, film VARCHAR) | Who directed the film 'The Chapel'? |
SELECT award FROM table_name_40 WHERE producer_s_ = "andrew ryder" | CREATE TABLE table_name_40 (award VARCHAR, producer_s_ VARCHAR) | What award did Andrew Ryder win as producer? |
SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3 | CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR) | What is the total national rank of Canada with lanes larger than 3? |
SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7 | CREATE TABLE table_name_32 (wins VARCHAR, points VARCHAR, draws VARCHAR) | For the team with 39+1 points and fewer than 7 draws, how many wins were scored? |
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8 | CREATE TABLE table_name_94 (draws INTEGER, goal_difference VARCHAR, losses VARCHAR) | For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored? |
SELECT club FROM table_name_47 WHERE goals_against < 29 AND goal_difference < 26 | CREATE TABLE table_name_47 (club VARCHAR, goals_against VARCHAR, goal_difference VARCHAR) | Which club had fewer than 29 goals against and a difference smaller than 26? |
SELECT score FROM table_name_70 WHERE attendance = "23,493" | CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR) | What was the score when the Rangers' attendance was 23,493? |
SELECT opponent FROM table_name_60 WHERE date = "april 14, 2007" | CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) | Who was the opponent on the game on April 14, 2007? |
SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007" | CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR) | How many people were in attendance on the game on April 8, 2007? |
SELECT date FROM table_name_18 WHERE attendance = "16,404" | CREATE TABLE table_name_18 (date VARCHAR, attendance VARCHAR) | What was the date of the game with 16,404 people? |
SELECT category FROM table_name_61 WHERE winner_nominee_s_ = "dev patel" | CREATE TABLE table_name_61 (category VARCHAR, winner_nominee_s_ VARCHAR) | Which category was Dev Patel nominated for? |
SELECT film FROM table_name_19 WHERE winner_nominee_s_ = "eddie murphy" AND result = "nominated" | CREATE TABLE table_name_19 (film VARCHAR, winner_nominee_s_ VARCHAR, result VARCHAR) | Which film was Eddie Murphy nominated for? |
SELECT finish FROM table_name_71 WHERE start = "22" | CREATE TABLE table_name_71 (finish VARCHAR, start VARCHAR) | When the start is 22, what is the finish? |
SELECT year FROM table_name_39 WHERE laps = 54 | CREATE TABLE table_name_39 (year VARCHAR, laps VARCHAR) | What year resulted in 54 laps? |
SELECT date FROM table_name_89 WHERE score = "2β4" | CREATE TABLE table_name_89 (date VARCHAR, score VARCHAR) | On what date was the score 2β4? |
SELECT home FROM table_name_93 WHERE score = "4β3" | CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR) | Who was the home team when the score was 4β3? |
SELECT date FROM table_name_53 WHERE record = "2β1" | CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR) | On what date was the record 2β1? |
SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider" | CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR) | Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider? |
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring" | CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR) | What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring? |
SELECT date FROM table_name_34 WHERE circuit = "hockenheimring" AND winning_manufacturer = "mercedes-benz" | CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR, winning_manufacturer VARCHAR) | What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz? |
SELECT winning_driver FROM table_name_15 WHERE circuit = "lausitzring" | CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR) | Who was the winning driver of the Circuit of Lausitzring? |
SELECT city_of_license FROM table_name_47 WHERE brand = "txdot har" | CREATE TABLE table_name_47 (city_of_license VARCHAR, brand VARCHAR) | What is the city of txdot har? |
SELECT website FROM table_name_22 WHERE brand = "radio mexicana" | CREATE TABLE table_name_22 (website VARCHAR, brand VARCHAR) | What was radio mexicana's website? |
SELECT player FROM table_name_11 WHERE rank > 9 | CREATE TABLE table_name_11 (player VARCHAR, rank INTEGER) | Which player ranks higher than 9? |
SELECT gross_revenue__2011_ FROM table_name_78 WHERE gross_revenue__1982_ = "$156,315" | CREATE TABLE table_name_78 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR) | What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982? |
SELECT gross_revenue__2011_ FROM table_name_6 WHERE gross_revenue__1982_ = "$156,315" | CREATE TABLE table_name_6 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR) | What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982? |
SELECT tickets_sold___available FROM table_name_51 WHERE gross_revenue__2011_ = "$333,100" | CREATE TABLE table_name_51 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) | How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011? |
SELECT venue FROM table_name_54 WHERE city = "brussels, belgium" | CREATE TABLE table_name_54 (venue VARCHAR, city VARCHAR) | What is the venue in the city of Brussels, Belgium? |
SELECT venue FROM table_name_84 WHERE gross_revenue__2011_ = "$1,325,153" | CREATE TABLE table_name_84 (venue VARCHAR, gross_revenue__2011_ VARCHAR) | What venue had gross revenues of $1,325,153 in 2011? |
SELECT SUM(total_region) FROM table_name_90 WHERE mt_morgan > 5 OFFSET 060 | CREATE TABLE table_name_90 (total_region INTEGER, mt_morgan INTEGER) | What is the sum of people in the total region when more than 5,060 were in Mt. Morgan? |
SELECT SUM(swimsuit) FROM table_name_48 WHERE preliminaries < 8.27 | CREATE TABLE table_name_48 (swimsuit INTEGER, preliminaries INTEGER) | What is the total swimsuit with Preliminaries smaller than 8.27? |
SELECT AVG(interview) FROM table_name_65 WHERE preliminaries > 8.27 AND evening_gown = 8.85 AND average < 8.842 | CREATE TABLE table_name_65 (interview INTEGER, average VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR) | What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842? |
SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405 | CREATE TABLE table_name_32 (swimsuit VARCHAR, evening_gown VARCHAR, interview VARCHAR) | How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405? |
SELECT 2000 AS _population FROM table_name_71 WHERE state_s_ = "ok" AND percent_change__1990_2000_ = "a078 +17.22%" | CREATE TABLE table_name_71 (state_s_ VARCHAR, percent_change__1990_2000_ VARCHAR) | What is the 2000 population in OK with a 1990-2000 percent change of A078 +17.22%? |
SELECT SUM(matches) FROM table_name_74 WHERE goalkeeper = "wilfredo caballero" AND average < 1.11 | CREATE TABLE table_name_74 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR) | How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11? |
SELECT COUNT(average) FROM table_name_85 WHERE goals < 41 AND goalkeeper = "claudio bravo" | CREATE TABLE table_name_85 (average VARCHAR, goals VARCHAR, goalkeeper VARCHAR) | What is the average goals less than 41 that goalkeeper Claudio Bravo had? |
SELECT MAX(average) FROM table_name_3 WHERE goals < 45 AND team = "real sociedad" | CREATE TABLE table_name_3 (average INTEGER, goals VARCHAR, team VARCHAR) | What is the highest average of goals less than 45 for team Real Sociedad? |
SELECT ceased_to_be_countess FROM table_name_19 WHERE birth = "3 may 1446" | CREATE TABLE table_name_19 (ceased_to_be_countess VARCHAR, birth VARCHAR) | When did the person born on 3 May 1446 cease to be countess? |
SELECT father FROM table_name_97 WHERE birth = "1363" | CREATE TABLE table_name_97 (father VARCHAR, birth VARCHAR) | Who was the father of the person born in 1363? |
SELECT marriage FROM table_name_90 WHERE death = "17 december 1471" | CREATE TABLE table_name_90 (marriage VARCHAR, death VARCHAR) | When was the marriage of the person who died on 17 December 1471? |
SELECT surface FROM table_name_38 WHERE against = "poland" | CREATE TABLE table_name_38 (surface VARCHAR, against VARCHAR) | On what surface did Poland play as the against team? |
SELECT against FROM table_name_99 WHERE result = "3β6, 2β6" | CREATE TABLE table_name_99 (against VARCHAR, result VARCHAR) | Who was played against with a result of 3β6, 2β6? |
SELECT MIN(year) FROM table_name_92 WHERE venue = "paris, france" | CREATE TABLE table_name_92 (year INTEGER, venue VARCHAR) | Name the least year for paris, france venue |
SELECT SUM(pick) FROM table_name_72 WHERE school = "mckinney high school" | CREATE TABLE table_name_72 (pick INTEGER, school VARCHAR) | What's the total number of picks for mckinney high school? |
SELECT MAX(pick) FROM table_name_31 WHERE player = "adam jones" | CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR) | What was the highest pick for the player Adam Jones? |
SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton" | CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR) | What's the total number of picks for the player Matt Murton? |
SELECT position FROM table_name_86 WHERE pick = 32 | CREATE TABLE table_name_86 (position VARCHAR, pick VARCHAR) | What position was pick 32? |
SELECT winner FROM table_name_49 WHERE circuit = "barbagallo raceway" | CREATE TABLE table_name_49 (winner VARCHAR, circuit VARCHAR) | Who won at the Barbagallo Raceway circuit? |
SELECT race_title FROM table_name_72 WHERE circuit = "oran park raceway" | CREATE TABLE table_name_72 (race_title VARCHAR, circuit VARCHAR) | What was the title of the race at Oran Park Raceway? |
SELECT winner FROM table_name_17 WHERE circuit = "oran park raceway" | CREATE TABLE table_name_17 (winner VARCHAR, circuit VARCHAR) | Who won at the Oran Park Raceway? |
SELECT city___state FROM table_name_70 WHERE winner = "jim richards" AND circuit = "winton motor raceway" | CREATE TABLE table_name_70 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) | When Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed? |
SELECT capacity__thousands_of_metric_tons_ FROM table_name_83 WHERE operator = "cyprus amax minerals" | CREATE TABLE table_name_83 (capacity__thousands_of_metric_tons_ VARCHAR, operator VARCHAR) | What is the capacity of the mine that is operated by Cyprus Amax minerals? |
SELECT rank FROM table_name_56 WHERE county = "pima" AND mine = "silver bell" | CREATE TABLE table_name_56 (rank VARCHAR, county VARCHAR, mine VARCHAR) | What rank is the Silver Bell mine of Pima county? |
SELECT capacity__thousands_of_metric_tons_ FROM table_name_67 WHERE county = "gila" AND mine = "pinto valley" | CREATE TABLE table_name_67 (capacity__thousands_of_metric_tons_ VARCHAR, county VARCHAR, mine VARCHAR) | What is the capacity of the Pinto Valley mine in Gila county? |
SELECT 1 AS st_leg FROM table_name_31 WHERE agg = "10-2" | CREATE TABLE table_name_31 (agg VARCHAR) | What is the first leg with an agg of 10-2? |
SELECT agg FROM table_name_38 WHERE team_2 = "vantour club mangoungou" | CREATE TABLE table_name_38 (agg VARCHAR, team_2 VARCHAR) | What is the agg of team 2 for Vantour Club Mangoungou? |
SELECT 1 AS st_leg FROM table_name_19 WHERE team_1 = "hardware stars" | CREATE TABLE table_name_19 (team_1 VARCHAR) | What is the first leg of team 1 for Hardware stars? |
SELECT date FROM table_name_58 WHERE opponent = "siena" AND ground = "home" | CREATE TABLE table_name_58 (date VARCHAR, opponent VARCHAR, ground VARCHAR) | On what date was the game played at home against the opponent Siena? |
SELECT time FROM table_name_32 WHERE opponent = "cagliari" AND round = "16" | CREATE TABLE table_name_32 (time VARCHAR, opponent VARCHAR, round VARCHAR) | What time was the game played against Cagliari that lasted 16 rounds? |
SELECT ground FROM table_name_7 WHERE score = "3-2" AND time = "15:00 cet" | CREATE TABLE table_name_7 (ground VARCHAR, score VARCHAR, time VARCHAR) | Where was the game played that had a score of 3-2 and a time of 15:00 cet? |
SELECT score FROM table_name_49 WHERE date = "april 18" | CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) | What was the score on April 18? |
SELECT attendance FROM table_name_77 WHERE loss = "nakamura (0-1)" | CREATE TABLE table_name_77 (attendance VARCHAR, loss VARCHAR) | What was the attendance when Nakamura (0-1) lost? |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.