context
stringlengths 0
489
| instruction
stringlengths 16
244
| response
stringlengths 38
557
|
---|---|---|
CREATE TABLE table_name_85 (first_game INTEGER, played VARCHAR, lost VARCHAR) | How many first games are associated with 5 games played and under 3 games lost? | SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3 |
CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR) | What is the highest Points when the record was 12β2, and the Points Against are larger than 6? | SELECT MAX(points_for) FROM table_name_25 WHERE record = "12β2" AND points_against > 6 |
CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR) | Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? | SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency" |
CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR) | Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia? | SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = "unaffected" AND condition = "thrombocytopenia" |
CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR) | Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged? | SELECT condition FROM table_name_75 WHERE bleeding_time = "unaffected" AND prothrombin_time = "prolonged" |
CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) | Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6 | SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin" |
CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR) | What are the notes where the authors are Zhou & Zhang? | SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang" |
CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR) | How many years was Louis Armstrong performing? | SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong" |
CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR) | What tournament had a runner(s)-up of Scott Hoch & Kenny Perry? | SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry" |
CREATE TABLE table_name_65 (kerry__number INTEGER, others__percentage VARCHAR, kerry__percentage VARCHAR) | What was Kerry's lowest number of votes where Other received 0.8% and Kerry 70.4%? | SELECT MIN(kerry__number) FROM table_name_65 WHERE others__percentage = "0.8%" AND kerry__percentage = "70.4%" |
CREATE TABLE table_name_65 (others__number VARCHAR, kerry__percentage VARCHAR, bush__number VARCHAR) | How many votes did Others receive where Kerry has 44.6%, and Bush more than 163,650 votes? | SELECT COUNT(others__number) FROM table_name_65 WHERE kerry__percentage = "44.6%" AND bush__number > 163 OFFSET 650 |
CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR) | Which Appointed has a Presentation of Credentials on November 22, 1990 | SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = "november 22, 1990" |
CREATE TABLE table_name_5 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) | Which Termination of Mission has a Presentation of Credentials on October 29, 1981 | SELECT termination_of_mission FROM table_name_5 WHERE presentation_of_credentials = "october 29, 1981" |
CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR) | Where is the area of operation that had drilling during the year 1999? | SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999" |
CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR) | What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification? | SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe" |
CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR) | What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification? | SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe" |
CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) | Which gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no? | SELECT gold_coast FROM table_name_36 WHERE melbourne = "yes" AND perth = "yes" AND auckland = "no" AND sydney = "no" |
CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR) | Which Adelaide has an Auckland of no and a Melbourne of no? | SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no" |
CREATE TABLE table_name_79 (division INTEGER, season VARCHAR, apps VARCHAR, goals VARCHAR, team VARCHAR) | What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007? | SELECT MIN(division) FROM table_name_79 WHERE goals < 10 AND team = "dalian shide" AND apps < 17 AND season = "2007" |
CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR) | What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32? | SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040 |
CREATE TABLE table_name_9 (analog VARCHAR, callsign VARCHAR) | what is the analog type for wxmi? | SELECT analog FROM table_name_9 WHERE callsign = "wxmi" |
CREATE TABLE table_name_30 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) | Which Adelaide has a Sydney of yes, a Perth of no, a Melbourne of yes, and an Auckland of no? | SELECT adelaide FROM table_name_30 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND auckland = "no" |
CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR) | What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11? | SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0 |
CREATE TABLE table_name_18 (chart VARCHAR, debut_position VARCHAR, peak_position VARCHAR) | How many chart runs had a debut position of more than 7 when peak position was 11? | SELECT COUNT(chart) AS run FROM table_name_18 WHERE debut_position > 7 AND peak_position = 11 |
CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR) | Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist? | SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67" |
CREATE TABLE table_name_60 (category VARCHAR, film VARCHAR) | (A) Torzija was nominated in which category? | SELECT category FROM table_name_60 WHERE film = "(a) torzija" |
CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR) | How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals? | SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = "40-4" AND goals_for > 57 |
CREATE TABLE table_name_43 (silver VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR) | How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26? | SELECT COUNT(silver) FROM table_name_43 WHERE gold > 2 AND bronze < 35 AND nation = "china" AND total > 26 |
CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR) | Which Wins has a Country of new zealand and a Last title larger than 1968? | SELECT MIN(wins) FROM table_name_25 WHERE country = "new zealand" AND last_title > 1968 |
CREATE TABLE table_name_79 (last_title VARCHAR, country VARCHAR, wins VARCHAR, first_title VARCHAR) | What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji? | SELECT COUNT(last_title) FROM table_name_79 WHERE wins < 71 AND first_title > 1968 AND country = "fiji" |
CREATE TABLE table_name_2 (winners INTEGER, first_title VARCHAR, wins VARCHAR, country VARCHAR) | How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004? | SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = "fiji" AND first_title < 2004 |
CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR) | What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954? | SELECT MAX(points) FROM table_name_41 WHERE chassis = "gordini t16" AND year < 1954 |
CREATE TABLE table_name_97 (date VARCHAR, partner VARCHAR, score VARCHAR) | What is the Date when christophe rochus was partner, and the score was 2β6, 7β6 (7β5) , 0β6? | SELECT date FROM table_name_97 WHERE partner = "christophe rochus" AND score = "2β6, 7β6 (7β5) , 0β6" |
CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR) | What entrant has a year earlier than 1960 and a veritas straight-6 engine? | SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-6" |
CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR) | What is the average Year with a Veritas rs chassis and more than 0 points? | SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0 |
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR) | What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960? | SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960 |
CREATE TABLE table_name_13 (inf_stem VARCHAR, subj_pres VARCHAR, plur_pret VARCHAR) | What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo? | SELECT inf_stem FROM table_name_13 WHERE subj_pres = "a" AND plur_pret = "uo" |
CREATE TABLE table_name_58 (placement VARCHAR, votes VARCHAR, candidate VARCHAR) | What is the Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner? | SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = "jordan turner" |
CREATE TABLE table_name_96 (placement VARCHAR, candidate VARCHAR) | What is the Placement when the Candidate is Jean-Patrick Berthiaume? | SELECT placement FROM table_name_96 WHERE candidate = "jean-patrick berthiaume" |
CREATE TABLE table_name_90 (date VARCHAR, sport VARCHAR, record VARCHAR) | What is the Date, when the Sport is luge - men's doubles, and when the Record is, "start"? | SELECT date FROM table_name_90 WHERE sport = "luge - men's doubles" AND record = "start" |
CREATE TABLE table_name_38 (date VARCHAR, result VARCHAR, score VARCHAR) | When has Result of 2β0, and a Score of 2 β 0? | SELECT date FROM table_name_38 WHERE result = "2β0" AND score = "2 β 0" |
CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR, result VARCHAR) | What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs? | SELECT date FROM table_name_95 WHERE venue = "melbourne cricket ground" AND result = "eng by inns&225 runs" |
CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR) | What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912? | SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912" |
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, winning_score VARCHAR) | What was the margin of victory for the win with a score of 71-69-71-70=281? | SELECT margin_of_victory FROM table_name_38 WHERE winning_score = 71 - 69 - 71 - 70 = 281 |
CREATE TABLE table_name_93 (opened_in INTEGER, ride_name VARCHAR, manufacture VARCHAR, type VARCHAR) | What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers? | SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = "zamperla" AND type = "convoy ride" AND ride_name = "tiny truckers" |
CREATE TABLE table_name_17 (number_of_seasons_in_meistriliiga VARCHAR, club VARCHAR, first_season_in_top_division VARCHAR) | How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000? | SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000 |
CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR) | What year did the Cosworth v8 engine participate in? | SELECT AVG(year) FROM table_name_37 WHERE engine = "cosworth v8" |
CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, heat VARCHAR, lane VARCHAR) | What was the time for Jean Luc Razakarivony with less than 3 heat and more than 2 lanes? | SELECT time FROM table_name_44 WHERE heat < 3 AND lane > 2 AND name = "jean luc razakarivony" |
CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR) | When did Northeastern University join? | SELECT SUM(joined) FROM table_name_59 WHERE institution = "northeastern university" |
CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR) | Name the loss for june 22 | SELECT loss FROM table_name_8 WHERE date = "june 22" |
CREATE TABLE table_name_39 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR) | Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket? | SELECT prohibition_ticket FROM table_name_39 WHERE greenback_ticket = "abraham j. cuddeback" |
CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR) | What is the name of the player acquired via import and larger than 22? | SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 22 |
CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR) | What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends? | SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14 |
CREATE TABLE table_name_72 (method VARCHAR, event VARCHAR, res VARCHAR, time VARCHAR, round VARCHAR) | What is the method of the match in the Road fc 12 at 5:00 with less than 3 rounds, and a loss result? | SELECT method FROM table_name_72 WHERE time = "5:00" AND round < 3 AND res = "loss" AND event = "road fc 12" |
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR) | What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt? | SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt" |
CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR) | What issue was the Spoofed Title of the crockford files in? | SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files" |
CREATE TABLE table_name_1 (original_west_end_cast VARCHAR, original_broadway_cast VARCHAR) | Who was in the Original West End Cast when the Original Broadway Cast was audrie neenan? | SELECT original_west_end_cast FROM table_name_1 WHERE original_broadway_cast = "audrie neenan" |
CREATE TABLE table_name_93 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR) | What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20? | SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 20 |
CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR) | What is the lowest population for the area that has a density of 36.7? | SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7 |
CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR) | How many points against has team Cardiff had when there were less than 7 tries? | SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7 |
CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR) | What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant? | SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises" |
CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR) | What was the option from Italy with general television content, and the Cielo television service? | SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo" |
CREATE TABLE table_name_87 (bronze_medals VARCHAR, silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR) | Name the total number of bronze medals when gold medals was 2, total medals more than 4 and silver medals less than 5 | SELECT COUNT(bronze_medals) FROM table_name_87 WHERE gold_medals = 2 AND total_medals > 4 AND silver_medals < 5 |
CREATE TABLE table_name_91 (country VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) | What country has Tematico Content, and a package with sky TV and the Lei television service? | SELECT country FROM table_name_91 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "lei" |
CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR) | What is the television service that has package with sky tv, and it in Italian English? | SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english" |
CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) | What language is the Tematico content with a sky tv package, and Fox Crime television service? | SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime" |
CREATE TABLE table_name_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) | What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010? | SELECT category FROM table_name_44 WHERE result = "nominated" AND year = 2010 AND award = "kids' choice awards mexico" AND recipient_s_ = "joe jonas" |
CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, venue VARCHAR) | Which Year has a Competition of olympic games, and a Venue of atlanta, united states? | SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states" |
CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR) | What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)? | SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)" |
CREATE TABLE table_name_13 (year VARCHAR, venue VARCHAR) | Which Year has a Venue of atlanta, united states? | SELECT year FROM table_name_13 WHERE venue = "atlanta, united states" |
CREATE TABLE table_name_74 (net_power VARCHAR, type VARCHAR, finish_construction VARCHAR) | What was the net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977? | SELECT net_power FROM table_name_74 WHERE type = "wwer-440/230" AND finish_construction = "24.10.1977" |
CREATE TABLE table_name_56 (share INTEGER, rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__timeslot_ VARCHAR) | What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54? | SELECT AVG(share) FROM table_name_56 WHERE viewers__millions_ > 7.82 AND rank__timeslot_ = "3" AND rank__week_ = "54" |
CREATE TABLE table_name_56 (series_finale VARCHAR, translation VARCHAR) | What series finale has the translation αα° αα‘ αͺα αααααα / ααα ααααα£α α α‘αααα£ααα? | SELECT series_finale FROM table_name_56 WHERE translation = "αα° αα‘ αͺα αααααα / ααα ααααα£α α α‘αααα£ααα" |
CREATE TABLE table_name_62 (category VARCHAR, recipient VARCHAR, year VARCHAR) | What category was The Suite Life on Deck nominated for later than 2010? | SELECT category FROM table_name_62 WHERE recipient = "the suite life on deck" AND year > 2010 |
CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR) | What is the average Joined with a Nickname of wildcats in longmeadow, massachusetts? | SELECT AVG(joined) FROM table_name_55 WHERE nickname = "wildcats" AND location = "longmeadow, massachusetts" |
CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR) | What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3? | SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = "sergipe" AND brown___percentage_ > 61 OFFSET 3 |
CREATE TABLE table_name_3 (federal_state VARCHAR, representatives_of_national_average VARCHAR) | Which federal state has 6 representatives of national average? | SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = "6" |
CREATE TABLE table_name_54 (award VARCHAR, actor VARCHAR, year VARCHAR) | What award did Forest Whitaker win in 1989? | SELECT award FROM table_name_54 WHERE actor = "forest whitaker" AND year = 1989 |
CREATE TABLE table_name_58 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR) | What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP? | SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059 |
CREATE TABLE table_name_55 (population_millions INTEGER, influence VARCHAR) | What is the highest population in the millions that has an influence of 1.02? | SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02 |
CREATE TABLE table_name_49 (population_millions INTEGER, inhabitants_per_mep VARCHAR, member_state VARCHAR, influence VARCHAR, meps VARCHAR) | What is the sum of the population in millions that has an influence less than 2.91, a MEP smaller than 13, a member of Latvia, and more than 286,875 inhabitants per MEP? | SELECT SUM(population_millions) FROM table_name_49 WHERE influence < 2.91 AND meps < 13 AND member_state = "latvia" AND inhabitants_per_mep > 286 OFFSET 875 |
CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR) | What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million? | SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43 |
CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR) | What team does Reed Sorenson drive for? | SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson" |
CREATE TABLE table_name_98 (year INTEGER, drivers VARCHAR, poles VARCHAR, fast_laps VARCHAR) | What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps? | SELECT AVG(year) FROM table_name_98 WHERE poles < 2 AND fast_laps = 0 AND drivers = "adrian quaife-hobbs" |
CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR) | Who is Eric McClure's and Tristar Motorsports' crew chief? | SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure" |
CREATE TABLE table_name_83 (rank VARCHAR, name VARCHAR, lane VARCHAR, nationality VARCHAR) | How many ranks are higher than lane 4 from Great Britain, raced by Margaretha Pedder? | SELECT COUNT(rank) FROM table_name_83 WHERE lane > 4 AND nationality = "great britain" AND name = "margaretha pedder" |
CREATE TABLE table_name_9 (name VARCHAR, capacity__mw_ VARCHAR) | What is the Name of the power station with a Capacity of 25 MW? | SELECT name FROM table_name_9 WHERE capacity__mw_ = 25 |
CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR) | What is the number of claimed sales in the rock genre? | SELECT claimed_sales FROM table_name_85 WHERE genre = "rock" |
CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR) | What was the earliest release-year of the first charted record of Abba? | SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba" |
CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR) | What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%? | SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%" |
CREATE TABLE table_name_51 (score VARCHAR, competition VARCHAR, date VARCHAR) | A competition of test taking place on 23 Apr 1988 had what as a score? | SELECT score FROM table_name_51 WHERE competition = "test" AND date = "23 apr 1988" |
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR) | Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5? | SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5 |
CREATE TABLE table_name_99 (time INTEGER, name VARCHAR, lane VARCHAR) | Which average time has eithan urbach as a name with a lane bigger than 2? | SELECT AVG(time) FROM table_name_99 WHERE name = "eithan urbach" AND lane > 2 |
CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR) | What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus? | SELECT AVG(year) FROM table_name_17 WHERE engine = "cosworth straight-4" AND entrant = "ron harris / team lotus" |
CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR) | What is the color code with a temperature classification of ordinary? | SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = "ordinary" |
CREATE TABLE table_name_1 (temperature_rating VARCHAR, temperature_classification VARCHAR) | What is the temperature rating of the intermediate temperature classification? | SELECT temperature_rating FROM table_name_1 WHERE temperature_classification = "intermediate" |
CREATE TABLE table_name_37 (points INTEGER, games VARCHAR, losses VARCHAR) | What is the average number of points for a team that played 17 games and had more than 15 losses? | SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 15 |
CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR) | What is Home, when Ground is Humber College North, and when Time is 15:00? | SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00" |
CREATE TABLE table_name_90 (challenge_cup INTEGER, total VARCHAR, league VARCHAR, player VARCHAR) | What is the Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1? | SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" AND total > 1 |
CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR) | In what Year did Chernova come in 1st in GΓΆtzis, Austria? | SELECT SUM(year) FROM table_name_37 WHERE venue = "gΓΆtzis, austria" AND position = "1st" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.